@jrc03c/pause 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.js +2 -4
  2. package/moon.yml +19 -0
  3. package/package.json +3 -5
package/index.js CHANGED
@@ -8,10 +8,8 @@ function pause(ms) {
8
8
  })
9
9
  }
10
10
 
11
- if (typeof module !== "undefined") {
12
- module.exports = pause
13
- }
14
-
15
11
  if (typeof window !== "undefined") {
16
12
  window.pause = pause
17
13
  }
14
+
15
+ export default pause
package/moon.yml ADDED
@@ -0,0 +1,19 @@
1
+ language: javascript
2
+ tasks:
3
+ pub:
4
+ command:
5
+ - npm
6
+ - publish
7
+ - --access=public
8
+ deps:
9
+ - ~:pub-dep1
10
+ local: true
11
+ platform: node
12
+ pub-dep1:
13
+ command:
14
+ - npm
15
+ - version
16
+ - patch
17
+ - --force
18
+ local: true
19
+ platform: node
package/package.json CHANGED
@@ -1,16 +1,14 @@
1
1
  {
2
2
  "name": "@jrc03c/pause",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "a simple async pause function",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "pub": "npm version patch --force && npm publish --access=public"
8
- },
6
+ "license": "ISC",
9
7
  "keywords": [
10
8
  "pause",
11
9
  "js",
12
10
  "settimeout"
13
11
  ],
14
12
  "author": "jrc03c",
15
- "license": "ISC"
13
+ "type": "module"
16
14
  }