@jsenv/core 25.6.1 → 25.6.2
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/dist/browser_runtime/asset-manifest.json +2 -2
- package/dist/browser_runtime/{browser_runtime_27a156f1.js → browser_runtime_c81cd9af.js} +4 -1
- package/dist/browser_runtime/{browser_runtime_27a156f1.js.map → browser_runtime_c81cd9af.js.map} +3 -3
- package/dist/build_manifest.js +5 -5
- package/dist/compile_proxy/asset-manifest.json +2 -2
- package/dist/compile_proxy/{compile_proxy.html__inline__20_f4285042.js.map → compile_proxy.html__inline__20_c05fdc30.js.map} +2 -2
- package/dist/compile_proxy/{compile_proxy_f2f16cc6.html → compile_proxy_93ec4247.html} +4 -2
- package/dist/redirector/asset-manifest.json +2 -2
- package/dist/redirector/{redirector.html__inline__12_404b8295.js.map → redirector.html__inline__12_20421b23.js.map} +2 -2
- package/dist/redirector/{redirector_eef2bb25.html → redirector_ddc79416.html} +4 -2
- package/dist/toolbar/asset-manifest.json +2 -2
- package/dist/toolbar/{toolbar.main_2c56a4e0.js.map → toolbar.main_7d7783d3.js.map} +2 -2
- package/dist/toolbar/{toolbar_7447de59.html → toolbar_d6045dd0.html} +4 -2
- package/dist/toolbar_injector/asset-manifest.json +2 -2
- package/dist/toolbar_injector/{toolbar_injector_524c2404.js → toolbar_injector_c8c214dd.js} +5 -2
- package/dist/toolbar_injector/{toolbar_injector_524c2404.js.map → toolbar_injector_c8c214dd.js.map} +4 -4
- package/helpers/babel/asyncIterator/asyncIterator.js +61 -8
- package/helpers/babel/createClass/createClass.js +12 -12
- package/helpers/babel/inherits/inherits.js +10 -6
- package/helpers/babel/jsx/jsx.js +27 -22
- package/helpers/babel/objectSpread2/objectSpread2.js +22 -14
- package/helpers/babel/readme.md +3 -8
- package/helpers/babel/wrapRegExp/wrapRegExp.js +29 -29
- package/package.json +34 -36
- package/readme.md +1 -1
- package/src/dev_server.js +6 -4
- package/src/internal/jsenvCoreDirectoryUrl.js +7 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "25.6.
|
|
3
|
+
"version": "25.6.2",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -51,16 +51,16 @@
|
|
|
51
51
|
"playwright": "1.x"
|
|
52
52
|
},
|
|
53
53
|
"dependencies": {
|
|
54
|
-
"@babel/core": "7.16.
|
|
55
|
-
"@babel/helper-module-imports": "7.16.
|
|
56
|
-
"@babel/helpers": "7.16.
|
|
57
|
-
"@babel/parser": "7.16.
|
|
58
|
-
"@babel/plugin-proposal-dynamic-import": "7.16.
|
|
54
|
+
"@babel/core": "7.16.12",
|
|
55
|
+
"@babel/helper-module-imports": "7.16.7",
|
|
56
|
+
"@babel/helpers": "7.16.7",
|
|
57
|
+
"@babel/parser": "7.16.12",
|
|
58
|
+
"@babel/plugin-proposal-dynamic-import": "7.16.7",
|
|
59
59
|
"@babel/plugin-syntax-dynamic-import": "7.8.3",
|
|
60
|
-
"@babel/plugin-syntax-import-assertions": "7.16.
|
|
60
|
+
"@babel/plugin-syntax-import-assertions": "7.16.7",
|
|
61
61
|
"@babel/plugin-syntax-import-meta": "7.10.4",
|
|
62
62
|
"@babel/plugin-syntax-numeric-separator": "7.10.4",
|
|
63
|
-
"@babel/plugin-transform-modules-systemjs": "7.16.
|
|
63
|
+
"@babel/plugin-transform-modules-systemjs": "7.16.7",
|
|
64
64
|
"@c88/v8-coverage": "0.1.1",
|
|
65
65
|
"@jsenv/abort": "4.1.2",
|
|
66
66
|
"@jsenv/filesystem": "2.7.1",
|
|
@@ -68,19 +68,19 @@
|
|
|
68
68
|
"@jsenv/integrity": "0.0.1",
|
|
69
69
|
"@jsenv/log": "1.5.0",
|
|
70
70
|
"@jsenv/logger": "4.0.1",
|
|
71
|
-
"@jsenv/server": "12.4.
|
|
71
|
+
"@jsenv/server": "12.4.2",
|
|
72
72
|
"@jsenv/uneval": "1.6.0",
|
|
73
73
|
"@rollup/plugin-commonjs": "21.0.1",
|
|
74
74
|
"@rollup/plugin-json": "4.1.0",
|
|
75
|
-
"@rollup/plugin-node-resolve": "13.1.
|
|
76
|
-
"@rollup/plugin-replace": "3.0.
|
|
75
|
+
"@rollup/plugin-node-resolve": "13.1.3",
|
|
76
|
+
"@rollup/plugin-replace": "3.0.1",
|
|
77
77
|
"acorn-import-assertions": "1.8.0",
|
|
78
78
|
"ansi-to-html": "0.7.2",
|
|
79
|
-
"bytes": "3.1.
|
|
79
|
+
"bytes": "3.1.2",
|
|
80
80
|
"cjs-module-lexer": "1.2.2",
|
|
81
|
-
"construct-style-sheets-polyfill": "3.0
|
|
82
|
-
"cssnano": "5.0.
|
|
83
|
-
"cssnano-preset-default": "5.1.
|
|
81
|
+
"construct-style-sheets-polyfill": "3.1.0",
|
|
82
|
+
"cssnano": "5.0.16",
|
|
83
|
+
"cssnano-preset-default": "5.1.11",
|
|
84
84
|
"cuid": "2.1.8",
|
|
85
85
|
"es-iife": "0.2.2",
|
|
86
86
|
"estree-walker": "3.0.1",
|
|
@@ -90,15 +90,15 @@
|
|
|
90
90
|
"istanbul-lib-coverage": "3.2.0",
|
|
91
91
|
"istanbul-lib-instrument": "5.1.0",
|
|
92
92
|
"istanbul-lib-report": "3.0.0",
|
|
93
|
-
"istanbul-reports": "3.1.
|
|
93
|
+
"istanbul-reports": "3.1.3",
|
|
94
94
|
"magic-string": "0.25.7",
|
|
95
95
|
"parse5": "6.0.1",
|
|
96
96
|
"pidtree": "0.5.0",
|
|
97
97
|
"postcss": "8.4.5",
|
|
98
98
|
"postcss-value-parser": "4.2.0",
|
|
99
99
|
"regenerator-runtime": "0.13.9",
|
|
100
|
-
"resolve": "1.
|
|
101
|
-
"rollup": "2.
|
|
100
|
+
"resolve": "1.22.0",
|
|
101
|
+
"rollup": "2.66.1",
|
|
102
102
|
"rollup-plugin-node-builtins-brofs": "2.1.3",
|
|
103
103
|
"rollup-plugin-node-globals": "1.4.0",
|
|
104
104
|
"rollup-plugin-polyfill-node": "0.8.0",
|
|
@@ -106,42 +106,40 @@
|
|
|
106
106
|
"strip-ansi": "7.0.1",
|
|
107
107
|
"systemjs": "6.11.0",
|
|
108
108
|
"terser": "5.10.0",
|
|
109
|
-
"v8-to-istanbul": "8.1.
|
|
109
|
+
"v8-to-istanbul": "8.1.1",
|
|
110
110
|
"vm2": "3.9.5",
|
|
111
|
-
"why-is-node-running": "2.2.0",
|
|
112
111
|
"wrap-ansi": "8.0.1"
|
|
113
112
|
},
|
|
114
113
|
"devDependencies": {
|
|
115
114
|
"@babel/eslint-parser": "7.16.5",
|
|
116
|
-
"@babel/plugin-syntax-jsx": "7.16.
|
|
117
|
-
"@babel/plugin-transform-block-scoping": "7.16.
|
|
118
|
-
"@babel/plugin-transform-react-jsx": "7.16.
|
|
119
|
-
"@babel/plugin-transform-typescript": "7.16.
|
|
120
|
-
"@babel/preset-env": "7.16.
|
|
121
|
-
"@jsenv/assert": "2.5.
|
|
115
|
+
"@babel/plugin-syntax-jsx": "7.16.7",
|
|
116
|
+
"@babel/plugin-transform-block-scoping": "7.16.7",
|
|
117
|
+
"@babel/plugin-transform-react-jsx": "7.16.7",
|
|
118
|
+
"@babel/plugin-transform-typescript": "7.16.8",
|
|
119
|
+
"@babel/preset-env": "7.16.11",
|
|
120
|
+
"@jsenv/assert": "2.5.2",
|
|
122
121
|
"@jsenv/babel-preset": "1.1.2",
|
|
123
122
|
"@jsenv/eslint-config": "16.0.9",
|
|
124
|
-
"@jsenv/file-size-impact": "12.1.
|
|
123
|
+
"@jsenv/file-size-impact": "12.1.8",
|
|
125
124
|
"@jsenv/github-release-package": "1.3.4",
|
|
126
125
|
"@jsenv/https-local": "1.0.7",
|
|
127
126
|
"@jsenv/importmap-eslint-resolver": "5.2.5",
|
|
128
127
|
"@jsenv/importmap-node-module": "5.1.3",
|
|
129
128
|
"@jsenv/package-publish": "1.7.2",
|
|
130
|
-
"@jsenv/performance-impact": "2.2.
|
|
129
|
+
"@jsenv/performance-impact": "2.2.7",
|
|
131
130
|
"@jsenv/pwa": "4.0.1",
|
|
132
|
-
"babel-plugin-transform-async-to-promises": "0.8.
|
|
133
|
-
"eslint": "
|
|
131
|
+
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
132
|
+
"eslint": "8.8.0",
|
|
134
133
|
"eslint-plugin-html": "6.2.0",
|
|
135
|
-
"eslint-plugin-import": "2.25.
|
|
136
|
-
"eslint-plugin-react": "7.
|
|
134
|
+
"eslint-plugin-import": "2.25.4",
|
|
135
|
+
"eslint-plugin-react": "7.28.0",
|
|
137
136
|
"node-notifier": "10.0.0",
|
|
138
|
-
"playwright": "1.
|
|
137
|
+
"playwright": "1.18.1",
|
|
139
138
|
"postcss-import": "14.0.2",
|
|
140
|
-
"preact": "10.6.
|
|
139
|
+
"preact": "10.6.5",
|
|
141
140
|
"prettier": "2.5.1",
|
|
142
141
|
"react": "17.0.2",
|
|
143
142
|
"react-dom": "17.0.2",
|
|
144
|
-
"redux": "4.1.2"
|
|
145
|
-
"rollup-plugin-import-assert": "1.1.1"
|
|
143
|
+
"redux": "4.1.2"
|
|
146
144
|
}
|
|
147
145
|
}
|
package/readme.md
CHANGED
|
@@ -12,7 +12,7 @@ This section demos 3 things jsenv provides:
|
|
|
12
12
|
2. A dev server
|
|
13
13
|
3. A build script
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
The upcoming demos applies jsenv to simple use cases to make them straightforward.
|
|
16
16
|
|
|
17
17
|
## Test runner overview
|
|
18
18
|
|
package/src/dev_server.js
CHANGED
|
@@ -22,6 +22,11 @@ import {
|
|
|
22
22
|
} from "./internal/jsenvInternalFiles.js"
|
|
23
23
|
import { jsenvExplorableConfig } from "./jsenvExplorableConfig.js"
|
|
24
24
|
|
|
25
|
+
const EXPLORING_HTML_URL = new URL(
|
|
26
|
+
"./src/internal/dev_server/exploring/exploring.html",
|
|
27
|
+
jsenvCoreDirectoryUrl,
|
|
28
|
+
).href
|
|
29
|
+
|
|
25
30
|
export const startDevServer = async ({
|
|
26
31
|
signal = new AbortController().signal,
|
|
27
32
|
handleSIGINT = true,
|
|
@@ -67,10 +72,7 @@ export const startDevServer = async ({
|
|
|
67
72
|
await assertProjectDirectoryExists({ projectDirectoryUrl })
|
|
68
73
|
if (mainFileRelativeUrl === undefined) {
|
|
69
74
|
mainFileRelativeUrl = urlToRelativeUrl(
|
|
70
|
-
|
|
71
|
-
"./src/internal/dev_server/exploring/exploring.html",
|
|
72
|
-
jsenvCoreDirectoryUrl,
|
|
73
|
-
).href,
|
|
75
|
+
EXPLORING_HTML_URL,
|
|
74
76
|
projectDirectoryUrl,
|
|
75
77
|
)
|
|
76
78
|
}
|
|
@@ -1,22 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { fileSystemPathToUrl, resolveUrl } from "@jsenv/filesystem"
|
|
4
|
-
|
|
5
|
-
let jsenvCoreDirectoryUrl
|
|
6
|
-
if (typeof __filename === "string") {
|
|
7
|
-
jsenvCoreDirectoryUrl = resolveUrl(
|
|
8
|
-
// get ride of dist/commonjs/main.js
|
|
9
|
-
"../../",
|
|
10
|
-
fileSystemPathToUrl(__filename),
|
|
11
|
-
)
|
|
12
|
-
} else {
|
|
13
|
-
jsenvCoreDirectoryUrl = resolveUrl(
|
|
1
|
+
export const jsenvCoreDirectoryUrl = String(
|
|
2
|
+
new URL(
|
|
14
3
|
// get ride of src/internal/jsenvCoreDirectoryUrl.js
|
|
15
4
|
"../../",
|
|
16
5
|
import.meta.url,
|
|
17
|
-
)
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export const jsenvDistDirectoryUrl = new URL("./dist/", jsenvCoreDirectoryUrl)
|
|
6
|
+
),
|
|
7
|
+
)
|
|
21
8
|
|
|
22
|
-
export
|
|
9
|
+
export const jsenvDistDirectoryUrl = String(
|
|
10
|
+
new URL("./dist/", jsenvCoreDirectoryUrl),
|
|
11
|
+
)
|