@stencil/core 2.14.1 → 2.15.1
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/bin/stencil +19 -13
- package/cli/index.cjs +72 -55
- package/cli/index.js +72 -55
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +248 -57
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +1 -1
- package/dev-server/client/index.js +3 -3
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +3 -3
- package/dev-server/index.js +1 -1
- package/dev-server/package.json +1 -1
- package/dev-server/server-process.js +2 -2
- package/internal/app-data/package.json +1 -1
- package/internal/client/css-shim.js +2 -2
- package/internal/client/dom.js +1 -1
- package/internal/client/index.js +1 -1
- package/internal/client/package.json +1 -1
- package/internal/client/patch-browser.js +1 -1
- package/internal/client/patch-esm.js +1 -1
- package/internal/client/polyfills/css-shim.js +1 -1
- package/internal/client/shadow-css.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/hydrate/runner.js +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-public-compiler.d.ts +18 -14
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +13 -3
- package/mock-doc/index.d.ts +4 -0
- package/mock-doc/index.js +13 -3
- package/mock-doc/package.json +1 -1
- package/package.json +7 -5
- package/screenshot/package.json +1 -1
- package/sys/node/index.js +11 -11
- package/sys/node/node-fetch.js +1 -1
- package/sys/node/package.json +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +8 -8
- package/testing/package.json +1 -1
package/sys/node/package.json
CHANGED
package/sys/node/worker.js
CHANGED
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Testing v2.
|
|
2
|
+
Stencil Testing v2.15.1 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _lazyRequire(e) {
|
|
5
5
|
return new Proxy({}, {
|
|
@@ -135,7 +135,6 @@ async function runJest(e, t) {
|
|
|
135
135
|
e.flags.devtools && r.push("--runInBand"), e.logger.info(e.logger.magenta(`jest args: ${r.join(" ")}`));
|
|
136
136
|
let s = t(r).argv;
|
|
137
137
|
if (s = {
|
|
138
|
-
...s,
|
|
139
138
|
detectLeaks: !1,
|
|
140
139
|
"detect-leaks": !1,
|
|
141
140
|
detectOpenHandles: !1,
|
|
@@ -153,7 +152,8 @@ async function runJest(e, t) {
|
|
|
153
152
|
runTestsByPath: !1,
|
|
154
153
|
"run-tests-by-path": !1,
|
|
155
154
|
testLocationInResults: !1,
|
|
156
|
-
"test-location-in-results": !1
|
|
155
|
+
"test-location-in-results": !1,
|
|
156
|
+
...s
|
|
157
157
|
}, s.config = function n(e) {
|
|
158
158
|
const t = e.testing, r = require("jest-config").defaults, s = Object.keys(r), n = {};
|
|
159
159
|
return Object.keys(t).forEach((e => {
|
|
@@ -1027,7 +1027,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
|
|
|
1027
1027
|
const r = crypto$3.createHash("md5");
|
|
1028
1028
|
return r.update(t + ":"), r.update(e.userAgent + ":"), r.update(e.viewport.width + ":"),
|
|
1029
1029
|
r.update(e.viewport.height + ":"), r.update(e.viewport.deviceScaleFactor + ":"),
|
|
1030
|
-
r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":"), r.digest("hex").
|
|
1030
|
+
r.update(e.viewport.hasTouch + ":"), r.update(e.viewport.isMobile + ":"), r.digest("hex").slice(0, 8).toLowerCase();
|
|
1031
1031
|
}(e, s), p = {
|
|
1032
1032
|
id: d,
|
|
1033
1033
|
image: l,
|
|
@@ -1066,7 +1066,7 @@ async function compareScreenshot(e, t, r, s, n, o, i, a) {
|
|
|
1066
1066
|
if (p.diff.imageA = f, p.diff.imageA !== p.diff.imageB) {
|
|
1067
1067
|
p.diff.cacheKey = function m(e, t, r) {
|
|
1068
1068
|
const s = crypto$3.createHash("md5");
|
|
1069
|
-
return s.update(`${e}:${t}:${r}`), s.digest("hex").
|
|
1069
|
+
return s.update(`${e}:${t}:${r}`), s.digest("hex").slice(0, 10);
|
|
1070
1070
|
}(p.diff.imageA, p.diff.imageB, a);
|
|
1071
1071
|
const r = t.cache[p.diff.cacheKey];
|
|
1072
1072
|
if ("number" != typeof r || isNaN(r)) {
|
|
@@ -2882,7 +2882,7 @@ const createSystem = e => {
|
|
|
2882
2882
|
u("/");
|
|
2883
2883
|
const S = {
|
|
2884
2884
|
name: "in-memory",
|
|
2885
|
-
version: "2.
|
|
2885
|
+
version: "2.15.1",
|
|
2886
2886
|
events: i,
|
|
2887
2887
|
access: async e => c(e),
|
|
2888
2888
|
accessSync: c,
|
|
@@ -3017,7 +3017,7 @@ const createSystem = e => {
|
|
|
3017
3017
|
generateContentHash: async (e, t) => {
|
|
3018
3018
|
const r = await crypto.subtle.digest("SHA-256", (new TextEncoder).encode(e));
|
|
3019
3019
|
let s = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
|
|
3020
|
-
return "number" == typeof t && (s = s.
|
|
3020
|
+
return "number" == typeof t && (s = s.slice(0, t)), s;
|
|
3021
3021
|
},
|
|
3022
3022
|
createWorkerController: HAS_WEB_WORKER ? e => ((e, t) => {
|
|
3023
3023
|
let r, s = 0, n = !1, o = !1, i = 0;
|
|
@@ -3156,7 +3156,7 @@ const createSystem = e => {
|
|
|
3156
3156
|
const r = createSystem();
|
|
3157
3157
|
r.platformPath = path__default.default, r.generateContentHash = (e, t) => {
|
|
3158
3158
|
let r = crypto$3.createHash("sha1").update(e).digest("hex").toLowerCase();
|
|
3159
|
-
return "number" == typeof t && (r = r.
|
|
3159
|
+
return "number" == typeof t && (r = r.slice(0, t)), Promise.resolve(r);
|
|
3160
3160
|
};
|
|
3161
3161
|
const s = t => {
|
|
3162
3162
|
const r = t;
|