esm-sync 3.3.3-beta.2 → 3.3.4-beta.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.
Files changed (3) hide show
  1. package/README.md +23 -22
  2. package/esm/loader.js +29123 -1
  3. package/package.json +23 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "esm-sync",
3
- "version": "3.3.3-beta.2",
3
+ "version": "3.3.4-beta.0",
4
4
  "description": "Tomorrow's ECMAScript modules today!",
5
5
  "keywords": [
6
6
  "commonjs",
@@ -16,29 +16,15 @@
16
16
  "url": "https://github.com/nktnet1/esm-sync"
17
17
  },
18
18
  "license": "MIT",
19
- "author": "Khiet Tam Nguyen <tamkhietnguyen1@gmail.com>",
19
+ "author": "Khiet Tam Nguyen",
20
20
  "main": "esm.js",
21
21
  "types": "index.d.ts",
22
22
  "private": false,
23
- "runkitExample": "require = require(\"@nktnet1/esm\")(module)\nrequire(\"lodash-es\")",
23
+ "runkitExample": "require = require(\"esm-sync\")(module)\nrequire(\"lodash-es\")",
24
24
  "esm": true,
25
25
  "engines": {
26
26
  "node": ">=6"
27
27
  },
28
- "scripts": {
29
- "prelint": "npm run pretest",
30
- "prepare": "npm run build:prod",
31
- "prepub": "npm run test:prod && npm run build:prod",
32
- "pretest": "npm run build -- --test",
33
- "pretest:prod": "npm run build:prod -- --test",
34
- "build": "node script/build.js",
35
- "build:prod": "npm run build -- --prod",
36
- "clean": "node script/clean.js",
37
- "lint": "eslint '**/*.{js,mjs}' --fix --quiet",
38
- "pub": "node script/publish.js",
39
- "test": "node script/test.js",
40
- "test:prod": "node script/test.js --prod"
41
- },
42
28
  "devDependencies": {
43
29
  "@babel/core": "^7.29.0",
44
30
  "@babel/plugin-proposal-class-properties": "^7.18.6",
@@ -53,7 +39,7 @@
53
39
  "@babel/runtime": "^7.29.2",
54
40
  "@hapi/lab": "^24.7.1",
55
41
  "@std/esm": "^0.26.0",
56
- "@types/node": "^14.18.63",
42
+ "@types/node": "^25.6.0",
57
43
  "acorn": "^8.16.0",
58
44
  "ava": "^3.15.0",
59
45
  "babel-eslint": "^10.1.0",
@@ -71,14 +57,14 @@
71
57
  "eslint-plugin-node": "^11.1.0",
72
58
  "execa": "^4.1.0",
73
59
  "express": "^4.22.1",
74
- "flow-remove-types": "^2.309.0",
75
- "fs-extra": "^9.1.0",
60
+ "flow-remove-types": "^2.310.0",
61
+ "fs-extra": "^11.3.4",
76
62
  "global-prefix": "^3.0.0",
77
63
  "globby": "^11.1.0",
78
64
  "golden-fleece": "^1.0.9",
79
65
  "hard-rejection": "^2.1.0",
80
66
  "html-minifier": "^4.0.0",
81
- "husky": "^4.3.8",
67
+ "husky": "^9.1.7",
82
68
  "jasmine": "^3.99.0",
83
69
  "jest": "^26.6.3",
84
70
  "json-6": "^1.1.4",
@@ -95,7 +81,7 @@
95
81
  "proxyquire": "^2.1.3",
96
82
  "require-inject": "^1.4.4",
97
83
  "requizzle": "^0.2.4",
98
- "rewire": "^5.0.0",
84
+ "rewire": "^9.0.1",
99
85
  "semver": "^7.7.4",
100
86
  "sinon": "^9.2.4",
101
87
  "sleep": "^6.3.0",
@@ -105,7 +91,7 @@
105
91
  "terser-webpack-plugin": "^3.1.0",
106
92
  "test262-parser": "^2.2.0",
107
93
  "trash": "^6.1.1",
108
- "ts-node": "^8.10.2",
94
+ "ts-node": "^10.9.2",
109
95
  "typescript": "^3.9.10",
110
96
  "unexpected": "^11.15.1",
111
97
  "unused-webpack-plugin": "^2.4.0",
@@ -122,5 +108,18 @@
122
108
  ],
123
109
  "dependencies": {
124
110
  "punycode": "^2.3.1"
111
+ },
112
+ "scripts": {
113
+ "prelint": "pnpm pretest",
114
+ "prepub": "pnpm test:prod && pnpm build:prod",
115
+ "pretest": "pnpm build --test",
116
+ "pretest:prod": "pnpm build:prod --test",
117
+ "build": "node script/build.js",
118
+ "build:prod": "pnpm build --prod",
119
+ "clean": "node script/clean.js",
120
+ "lint": "eslint '**/*.{js,mjs}' --fix --quiet",
121
+ "pub": "node script/publish.js",
122
+ "test": "node script/test.js",
123
+ "test:prod": "node script/test.js --prod"
125
124
  }
126
- }
125
+ }