@jsenv/core 38.3.1 → 38.3.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/README.md
CHANGED
|
@@ -9,7 +9,8 @@ The pillars of jsenv are:
|
|
|
9
9
|
3. A build server serving build files
|
|
10
10
|
4. A test runner executing test files in web browser(s)
|
|
11
11
|
|
|
12
|
-
Jsenv cares a lot about the developer experience.
|
|
12
|
+
Jsenv cares a lot about the developer experience.
|
|
13
|
+
As a result it can be enjoyed by people without much experience in tooling or seeking for a simple tool without hidden complexities.
|
|
13
14
|
|
|
14
15
|
[Link to documentation](<https://github.com/jsenv/core/wiki/A)-directory-structure>)
|
|
15
16
|
|
|
@@ -1,37 +1,45 @@
|
|
|
1
1
|
function _getRequireWildcardCache(nodeInterop) {
|
|
2
|
-
if (typeof WeakMap !== "function") return null
|
|
3
|
-
|
|
4
|
-
var
|
|
2
|
+
if (typeof WeakMap !== "function") return null;
|
|
3
|
+
|
|
4
|
+
var cacheBabelInterop = new WeakMap();
|
|
5
|
+
var cacheNodeInterop = new WeakMap();
|
|
5
6
|
return (_getRequireWildcardCache = function (nodeInterop) {
|
|
6
|
-
return nodeInterop ? cacheNodeInterop : cacheBabelInterop
|
|
7
|
-
})(nodeInterop)
|
|
7
|
+
return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
|
|
8
|
+
})(nodeInterop);
|
|
8
9
|
}
|
|
10
|
+
|
|
9
11
|
export default function _interopRequireWildcard(obj, nodeInterop) {
|
|
10
12
|
if (!nodeInterop && obj && obj.__esModule) {
|
|
11
|
-
return obj
|
|
13
|
+
return obj;
|
|
12
14
|
}
|
|
15
|
+
|
|
13
16
|
if (obj === null || (typeof obj !== "object" && typeof obj !== "function")) {
|
|
14
|
-
return { default: obj }
|
|
17
|
+
return { default: obj };
|
|
15
18
|
}
|
|
16
|
-
|
|
19
|
+
|
|
20
|
+
var cache = _getRequireWildcardCache(nodeInterop);
|
|
17
21
|
if (cache && cache.has(obj)) {
|
|
18
|
-
return cache.get(obj)
|
|
22
|
+
return cache.get(obj);
|
|
19
23
|
}
|
|
20
|
-
|
|
21
|
-
var
|
|
24
|
+
|
|
25
|
+
var newObj = { __proto__: null };
|
|
26
|
+
var hasPropertyDescriptor =
|
|
27
|
+
Object.defineProperty && Object.getOwnPropertyDescriptor;
|
|
22
28
|
for (var key in obj) {
|
|
23
29
|
if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
24
|
-
var desc = hasPropertyDescriptor
|
|
30
|
+
var desc = hasPropertyDescriptor
|
|
31
|
+
? Object.getOwnPropertyDescriptor(obj, key)
|
|
32
|
+
: null;
|
|
25
33
|
if (desc && (desc.get || desc.set)) {
|
|
26
|
-
Object.defineProperty(newObj, key, desc)
|
|
34
|
+
Object.defineProperty(newObj, key, desc);
|
|
27
35
|
} else {
|
|
28
|
-
newObj[key] = obj[key]
|
|
36
|
+
newObj[key] = obj[key];
|
|
29
37
|
}
|
|
30
38
|
}
|
|
31
39
|
}
|
|
32
|
-
newObj.default = obj
|
|
40
|
+
newObj.default = obj;
|
|
33
41
|
if (cache) {
|
|
34
|
-
cache.set(obj, newObj)
|
|
42
|
+
cache.set(obj, newObj);
|
|
35
43
|
}
|
|
36
|
-
return newObj
|
|
37
|
-
}
|
|
44
|
+
return newObj;
|
|
45
|
+
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
export default function _isNativeFunction(fn) {
|
|
2
|
+
// Note: This function returns "true" for core-js functions.
|
|
3
|
+
try {
|
|
4
|
+
return Function.toString.call(fn).indexOf("[native code]") !== -1;
|
|
5
|
+
} catch (e) {
|
|
6
|
+
// Firefox 31 throws when "toString" is applied to an HTMLElement
|
|
7
|
+
return typeof fn === "function";
|
|
8
|
+
}
|
|
9
|
+
}
|
package/dist/jsenv_core.js
CHANGED
|
@@ -3245,8 +3245,7 @@ function isUnicodeSupported() {
|
|
|
3245
3245
|
return process$1.env.TERM !== 'linux'; // Linux console (kernel)
|
|
3246
3246
|
}
|
|
3247
3247
|
|
|
3248
|
-
return Boolean(process$1.env.
|
|
3249
|
-
|| Boolean(process$1.env.WT_SESSION) // Windows Terminal
|
|
3248
|
+
return Boolean(process$1.env.WT_SESSION) // Windows Terminal
|
|
3250
3249
|
|| Boolean(process$1.env.TERMINUS_SUBLIME) // Terminus (<0.2.27)
|
|
3251
3250
|
|| process$1.env.ConEmuTask === '{cmd::Cmder}' // ConEmu and cmder
|
|
3252
3251
|
|| process$1.env.TERM_PROGRAM === 'Terminus-Sublime'
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jsenv/core",
|
|
3
|
-
"version": "38.3.
|
|
3
|
+
"version": "38.3.2",
|
|
4
4
|
"description": "Tool to develop, test and build js projects",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -44,14 +44,16 @@
|
|
|
44
44
|
"eslint": "npx eslint . --ext=.js,.mjs,.cjs,.html",
|
|
45
45
|
"dev": "node --conditions=development ./scripts/dev/dev.mjs",
|
|
46
46
|
"test": "node --conditions=development ./scripts/test/test.mjs",
|
|
47
|
-
"test:packages": "npm run test --workspaces --if-present -- --workspace",
|
|
48
47
|
"snapshots:core": "npm run test -- --no-snapshot-assertion",
|
|
49
48
|
"snapshots:packages": "npm run test --workspaces --if-present -- --workspace --no-snapshot-assertion",
|
|
50
49
|
"snapshots:only_dev_server_errors": "node --conditions=development ./tests/dev_server/errors/generate_snapshot_files.mjs",
|
|
50
|
+
"workspace:test": "npm run test --workspaces --if-present -- --workspace",
|
|
51
51
|
"build": "node --conditions=development ./scripts/build/build.mjs",
|
|
52
52
|
"build:file_size": "node ./scripts/build/build_file_size.mjs --log",
|
|
53
|
-
"workspace:
|
|
54
|
-
"
|
|
53
|
+
"workspace:build": "npm run build --workspaces --if-present",
|
|
54
|
+
"monorepo:upgrade_versions": "node ./scripts/monorepo/upgrade_external_versions.mjs",
|
|
55
|
+
"monorepo:sync_packages_versions": "node ./scripts/monorepo/sync_packages_versions.mjs",
|
|
56
|
+
"monorepo:publish": "node ./scripts/monorepo/publish_packages.mjs",
|
|
55
57
|
"performances": "node --expose-gc ./scripts/performance/generate_performance_report.mjs --log --once",
|
|
56
58
|
"prettier": "prettier --write .",
|
|
57
59
|
"playwright:install": "npx playwright install-deps && npx playwright install",
|
|
@@ -61,20 +63,20 @@
|
|
|
61
63
|
"dependencies": {
|
|
62
64
|
"@financial-times/polyfill-useragent-normaliser": "1.10.2",
|
|
63
65
|
"@jsenv/abort": "4.2.4",
|
|
64
|
-
"@jsenv/ast": "5.2.
|
|
66
|
+
"@jsenv/ast": "5.2.1",
|
|
65
67
|
"@jsenv/filesystem": "4.3.2",
|
|
66
68
|
"@jsenv/importmap": "1.2.1",
|
|
67
69
|
"@jsenv/integrity": "0.0.1",
|
|
68
|
-
"@jsenv/js-module-fallback": "1.3.
|
|
69
|
-
"@jsenv/log": "3.4.
|
|
70
|
+
"@jsenv/js-module-fallback": "1.3.7",
|
|
71
|
+
"@jsenv/log": "3.4.2",
|
|
70
72
|
"@jsenv/node-esm-resolution": "1.0.1",
|
|
71
|
-
"@jsenv/plugin-bundling": "2.5.
|
|
72
|
-
"@jsenv/plugin-minification": "1.5.
|
|
73
|
-
"@jsenv/plugin-supervisor": "1.3.
|
|
74
|
-
"@jsenv/plugin-transpilation": "1.3.
|
|
73
|
+
"@jsenv/plugin-bundling": "2.5.8",
|
|
74
|
+
"@jsenv/plugin-minification": "1.5.4",
|
|
75
|
+
"@jsenv/plugin-supervisor": "1.3.7",
|
|
76
|
+
"@jsenv/plugin-transpilation": "1.3.6",
|
|
75
77
|
"@jsenv/runtime-compat": "1.2.0",
|
|
76
|
-
"@jsenv/server": "15.1.
|
|
77
|
-
"@jsenv/sourcemap": "1.2.
|
|
78
|
+
"@jsenv/server": "15.1.5",
|
|
79
|
+
"@jsenv/sourcemap": "1.2.4",
|
|
78
80
|
"@jsenv/url-meta": "8.1.0",
|
|
79
81
|
"@jsenv/urls": "2.2.1",
|
|
80
82
|
"@jsenv/utils": "2.0.1"
|
|
@@ -87,12 +89,12 @@
|
|
|
87
89
|
"@jsenv/eslint-config": "./packages/independent/eslint-config/",
|
|
88
90
|
"@jsenv/file-size-impact": "14.1.3",
|
|
89
91
|
"@jsenv/https-local": "3.0.7",
|
|
90
|
-
"@jsenv/
|
|
92
|
+
"@jsenv/monorepo": "0.0.2",
|
|
91
93
|
"@jsenv/performance-impact": "4.1.3",
|
|
92
94
|
"@jsenv/plugin-as-js-classic": "./packages/related/plugin-as-js-classic/",
|
|
93
95
|
"@jsenv/test": "./packages/related/test/",
|
|
94
96
|
"babel-plugin-transform-async-to-promises": "0.8.18",
|
|
95
|
-
"eslint": "8.
|
|
97
|
+
"eslint": "8.53.0",
|
|
96
98
|
"eslint-plugin-html": "7.1.0",
|
|
97
99
|
"eslint-plugin-import": "2.29.0",
|
|
98
100
|
"eslint-plugin-react": "7.33.2",
|