dopant 5.0.2 → 5.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 CHANGED
@@ -1,10 +1,10 @@
1
1
  The aerogel-weight & dead-simple resource loader 🚚
2
2
  ---
3
- This package provides **lightweight** dynamic resource loader for the web browsers.
3
+ This package provides a **lightweight** dynamic resource loader for the web browsers.
4
4
 
5
5
  ## Prerequisites
6
6
 
7
- * Node.js `>= 20.x`
7
+ * Node.js `>= 20.0.0`
8
8
 
9
9
  ## Installation
10
10
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "author": {
3
- "name": "Yehor Sergeenko",
4
3
  "email": "yehor.sergeenko@gmail.com",
4
+ "name": "Yehor Sergeenko",
5
5
  "url": "https://github.com/bricss"
6
6
  },
7
7
  "bugs": {
@@ -9,22 +9,22 @@
9
9
  },
10
10
  "description": "The aerogel-weight & dead-simple resource loader 🚚",
11
11
  "devDependencies": {
12
- "@babel/cli": "^7.28.3",
13
- "@babel/core": "^7.28.5",
14
- "@babel/eslint-parser": "^7.28.5",
15
- "@babel/preset-env": "^7.28.5",
12
+ "@babel/cli": "^7.28.6",
13
+ "@babel/core": "^7.29.0",
14
+ "@babel/eslint-parser": "^7.28.6",
15
+ "@babel/preset-env": "^7.29.0",
16
16
  "c8": "^10.1.3",
17
17
  "eslint": "^9.39.2",
18
- "eslint-config-ultra-refined": "^3.8.4",
18
+ "eslint-config-ultra-refined": "^3.8.5",
19
19
  "mocha": "^11.7.5",
20
- "playwright-chromium": "^1.57.0"
20
+ "playwright-chromium": "^1.58.1"
21
21
  },
22
22
  "engines": {
23
- "node": ">=20.x"
23
+ "node": ">=20.0.0"
24
24
  },
25
25
  "exports": {
26
- "import": "./src/index.mjs",
27
- "require": "./dist/index.js"
26
+ "import": "./src/index.js",
27
+ "require": "./dist/index.cjs"
28
28
  },
29
29
  "files": [
30
30
  "dist",
@@ -43,12 +43,14 @@
43
43
  "url": "git+https://github.com/bricss/dopant.git"
44
44
  },
45
45
  "scripts": {
46
- "build": "rm -rf dist && npx babel src -d dist",
47
- "lint": "eslint",
48
- "prepack": "npm run build",
46
+ "build": "rm -rf dist && npx babel src --out-dir dist --out-file-extension .cjs",
47
+ "lint": "eslint --concurrency=auto",
48
+ "prepack": "npm run build && sh misc.sh && npm run lint",
49
49
  "pretest": "rm -rf coverage",
50
- "test": "mocha --exit --recursive",
50
+ "test": "mocha",
51
+ "test:bail": "mocha --bail",
51
52
  "test:cover": "npm test && c8 report --reporter=lcov --reporter=text"
52
53
  },
53
- "version": "5.0.2"
54
+ "type": "module",
55
+ "version": "5.0.4"
54
56
  }
@@ -45,12 +45,11 @@ export default (...args) => {
45
45
  });
46
46
  }
47
47
 
48
- return Promise.allSettled(args)
49
- .then((results) => results.reduce((acc, val) => {
50
- val.status === 'rejected'
51
- ? console.error(val.reason)
52
- : acc.push(val.value);
53
-
54
- return acc;
55
- }, []));
48
+ return Promise.allSettled(args).then((results) => results.reduce((acc, val) => {
49
+ val.status === 'rejected'
50
+ ? console.error(val.reason)
51
+ : acc.push(val.value);
52
+
53
+ return acc;
54
+ }, []));
56
55
  };
File without changes