@jrc03c/pause 0.0.2 → 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 (2) hide show
  1. package/index.js +2 -4
  2. package/package.json +3 -2
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jrc03c/pause",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "a simple async pause function",
5
5
  "main": "index.js",
6
6
  "license": "ISC",
@@ -9,5 +9,6 @@
9
9
  "js",
10
10
  "settimeout"
11
11
  ],
12
- "author": "jrc03c"
12
+ "author": "jrc03c",
13
+ "type": "module"
13
14
  }