dopant 2.0.3 → 2.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.
- package/README.md +31 -31
- package/package.json +11 -11
package/README.md
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
The aerogel-weight & dead-simple resource loader 🚚
|
|
2
|
-
---
|
|
3
|
-
This package provides **lightweight** dynamic resource loader for the web browsers.
|
|
4
|
-
|
|
5
|
-
## Prerequisites
|
|
6
|
-
|
|
7
|
-
* Node.js `>= 14.x`
|
|
8
|
-
|
|
9
|
-
## Installation
|
|
10
|
-
|
|
11
|
-
```bash
|
|
12
|
-
npm install dopant --save
|
|
13
|
-
```
|
|
14
|
-
|
|
15
|
-
### Usage
|
|
16
|
-
|
|
17
|
-
```javascript
|
|
18
|
-
import dopant from 'dopant';
|
|
19
|
-
|
|
20
|
-
dopant([
|
|
21
|
-
'//somewhe.re/assets/css/layout.css',
|
|
22
|
-
'//somewhe.re/assets/js/main.cjs',
|
|
23
|
-
]).then(() => console.log('pow!'));
|
|
24
|
-
|
|
25
|
-
dopant('//somewhe.re/assets/js/lib.js')
|
|
26
|
-
.then(() => dopant('//somewhe.re/assets/js/main.js'))
|
|
27
|
-
.finally(() => console.log('pow!'));
|
|
28
|
-
|
|
29
|
-
dopant('//somewhe.re/assets/js/index.mjs')
|
|
30
|
-
.then(() => console.log('pow!'));
|
|
31
|
-
```
|
|
1
|
+
The aerogel-weight & dead-simple resource loader 🚚
|
|
2
|
+
---
|
|
3
|
+
This package provides **lightweight** dynamic resource loader for the web browsers.
|
|
4
|
+
|
|
5
|
+
## Prerequisites
|
|
6
|
+
|
|
7
|
+
* Node.js `>= 14.x`
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
```bash
|
|
12
|
+
npm install dopant --save
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
### Usage
|
|
16
|
+
|
|
17
|
+
```javascript
|
|
18
|
+
import dopant from 'dopant';
|
|
19
|
+
|
|
20
|
+
dopant([
|
|
21
|
+
'//somewhe.re/assets/css/layout.css',
|
|
22
|
+
'//somewhe.re/assets/js/main.cjs',
|
|
23
|
+
]).then(() => console.log('pow!'));
|
|
24
|
+
|
|
25
|
+
dopant('//somewhe.re/assets/js/lib.js')
|
|
26
|
+
.then(() => dopant('//somewhe.re/assets/js/main.js'))
|
|
27
|
+
.finally(() => console.log('pow!'));
|
|
28
|
+
|
|
29
|
+
dopant('//somewhe.re/assets/js/index.mjs')
|
|
30
|
+
.then(() => console.log('pow!'));
|
|
31
|
+
```
|
package/package.json
CHANGED
|
@@ -9,16 +9,16 @@
|
|
|
9
9
|
},
|
|
10
10
|
"description": "The aerogel-weight & dead-simple resource loader 🚚",
|
|
11
11
|
"devDependencies": {
|
|
12
|
-
"@babel/cli": "^7.
|
|
13
|
-
"@babel/core": "^7.
|
|
14
|
-
"@babel/eslint-parser": "^7.
|
|
15
|
-
"@babel/plugin-transform-runtime": "^7.
|
|
16
|
-
"@babel/preset-env": "^7.
|
|
17
|
-
"c8": "^7.
|
|
18
|
-
"eslint": "^
|
|
19
|
-
"eslint-config-ultra-refined": "^1.0
|
|
20
|
-
"mocha": "^9.
|
|
21
|
-
"playwright-chromium": "^1.
|
|
12
|
+
"@babel/cli": "^7.15.7",
|
|
13
|
+
"@babel/core": "^7.15.8",
|
|
14
|
+
"@babel/eslint-parser": "^7.15.8",
|
|
15
|
+
"@babel/plugin-transform-runtime": "^7.15.8",
|
|
16
|
+
"@babel/preset-env": "^7.15.8",
|
|
17
|
+
"c8": "^7.10.0",
|
|
18
|
+
"eslint": "^8.1.0",
|
|
19
|
+
"eslint-config-ultra-refined": "^2.1.0",
|
|
20
|
+
"mocha": "^9.1.3",
|
|
21
|
+
"playwright-chromium": "^1.16.1"
|
|
22
22
|
},
|
|
23
23
|
"engines": {
|
|
24
24
|
"node": ">=14.x"
|
|
@@ -52,5 +52,5 @@
|
|
|
52
52
|
"test": "mocha --exit --recursive",
|
|
53
53
|
"test:cover": "npm test && c8 report --reporter=lcov --reporter=text"
|
|
54
54
|
},
|
|
55
|
-
"version": "2.0.
|
|
55
|
+
"version": "2.0.4"
|
|
56
56
|
}
|