Skip to content

Commit 360c18f

Browse files
committedMar 12, 2023
Add module export
1 parent f09ea28 commit 360c18f

File tree

4 files changed

+9
-5
lines changed

4 files changed

+9
-5
lines changed
 

‎README.md

+3-2
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,9 @@ You can find bare-minimum demo code for screenshotting & screenshot editing in t
4747

4848
npm:
4949

50-
```
51-
npm i feedbackplus
50+
```js
51+
$ npm i feedbackplus
52+
import FeedbackPlus from 'feedbackplus'
5253
```
5354

5455
cdn via [jsDelivr](https://www.jsdelivr.com/package/gh/ColonelParrot/feedbackplus) (or with [cdnjs](https://cdnjs.com/libraries/feedbackplus)):

‎docs/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<div data-id="npm" class="option">
8080
<div class="terminal">
8181
<pre><code class="language-js">$ npm i feedbackplus
82-
$ import FeedbackPlus from 'feedbackplus/src/feedbackplus'</code></pre>
82+
$ import FeedbackPlus from 'feedbackplus'</code></pre>
8383
<svg class="terminal-copy terminal-icon" data-clipboard-key="npm" xmlns="http://www.w3.org/2000/svg"
8484
width="22" height="22">
8585
<path

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "feedbackplus",
3-
"version": "1.5.0",
3+
"version": "1.6.0",
44
"homepage": "https://colonelparrot.github.io/feedbackplus/",
55
"description": "Screenshotting and screenshot editing for your feedback forms with JavaScript.",
66
"main": "src/feedbackplus.js",

‎src/feedbackplus.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! FeedbackPlus v1.5.0 | (c) ColonelParrot and other contributors | MIT License */
1+
/*! FeedbackPlus v1.6.0 | (c) ColonelParrot and other contributors | MIT License */
22

33
; (function (global, factory) {
44
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -321,5 +321,8 @@
321321
}
322322
}
323323

324+
if(typeof module !== 'undefined'){
325+
module.exports = { FeedbackPlus }
326+
}
324327
return FeedbackPlus
325328
})));

0 commit comments

Comments
 (0)
Please sign in to comment.