@ly-js/test-changeset 1.0.3 → 1.1.0
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.
- package/index.js +9 -1
- package/package.json +2 -4
package/index.js
CHANGED
|
@@ -1,4 +1,12 @@
|
|
|
1
1
|
|
|
2
|
-
export function timeout(time =
|
|
2
|
+
export function timeout(time = 2000) {
|
|
3
|
+
return new Promise(resolve => setTimeout(resolve, time))
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
export function test(time = 2000) {
|
|
7
|
+
return new Promise(resolve => setTimeout(resolve, time))
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export function test2(time = 2000) {
|
|
3
11
|
return new Promise(resolve => setTimeout(resolve, time))
|
|
4
12
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ly-js/test-changeset",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"keywords": [],
|
|
@@ -21,7 +21,5 @@
|
|
|
21
21
|
"access": "public",
|
|
22
22
|
"registry": "https://registry.npmjs.org/"
|
|
23
23
|
},
|
|
24
|
-
"scripts": {
|
|
25
|
-
"test": "echo \"Error: no test specified\" && exit 1"
|
|
26
|
-
}
|
|
24
|
+
"scripts": {}
|
|
27
25
|
}
|