@stencil/core 2.18.1 → 2.19.1-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.
- package/cli/index.cjs +16 -14
- package/cli/index.d.ts +2 -0
- package/cli/index.js +16 -14
- package/cli/package.json +1 -1
- package/compiler/package.json +1 -1
- package/compiler/stencil.js +1527 -1207
- package/compiler/stencil.min.js +2 -2
- package/dependencies.json +1 -1
- package/dev-server/client/index.js +1 -1
- package/dev-server/client/package.json +1 -1
- package/dev-server/connector.html +2 -2
- 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 +1 -1
- 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/shadow-css.js +1 -1
- package/internal/hydrate/package.json +1 -1
- package/internal/hydrate/runner.d.ts +1 -1
- package/internal/package.json +1 -1
- package/internal/stencil-private.d.ts +31 -12
- package/internal/stencil-public-compiler.d.ts +10 -0
- package/internal/stencil-public-docs.d.ts +24 -0
- package/internal/stencil-public-runtime.d.ts +5 -0
- package/internal/testing/package.json +1 -1
- package/mock-doc/index.cjs +16 -6
- package/mock-doc/index.js +16 -6
- package/mock-doc/package.json +1 -1
- package/package.json +11 -12
- package/screenshot/package.json +1 -1
- package/sys/node/autoprefixer.js +5 -5
- package/sys/node/graceful-fs.js +1 -1
- package/sys/node/index.d.ts +2 -0
- package/sys/node/index.js +93 -95
- package/sys/node/package.json +1 -1
- package/sys/node/prompts.js +1 -1
- package/sys/node/worker.js +1 -1
- package/testing/index.js +131 -130
- package/testing/package.json +1 -1
package/testing/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
Stencil Testing v2.
|
|
2
|
+
Stencil Testing v2.19.1-0 | MIT Licensed | https://stenciljs.com
|
|
3
3
|
*/
|
|
4
4
|
function _lazyRequire(e) {
|
|
5
5
|
return new Proxy({}, {
|
|
@@ -198,7 +198,7 @@ async function runJest(e, t) {
|
|
|
198
198
|
e.flags.ci || e.flags.e2e ? t.__STENCIL_DEFAULT_TIMEOUT__ = "30000" : t.__STENCIL_DEFAULT_TIMEOUT__ = "15000",
|
|
199
199
|
e.flags.devtools && (t.__STENCIL_DEFAULT_TIMEOUT__ = "300000000"), e.logger.debug(`default timeout: ${t.__STENCIL_DEFAULT_TIMEOUT__}`);
|
|
200
200
|
const n = function n(e) {
|
|
201
|
-
const t = require("yargs"), r = [ ...e.flags.
|
|
201
|
+
const t = require("yargs"), r = [ ...e.flags.knownArgs.slice(), ...e.flags.unknownArgs.slice() ];
|
|
202
202
|
r.some((e => e.startsWith("--max-workers") || e.startsWith("--maxWorkers"))) || r.push(`--max-workers=${e.maxConcurrentWorkers}`),
|
|
203
203
|
e.flags.devtools && r.push("--runInBand"), e.logger.info(e.logger.magenta(`jest args: ${r.join(" ")}`));
|
|
204
204
|
let s = t(r).argv;
|
|
@@ -2766,7 +2766,8 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
2766
2766
|
console.error(e);
|
|
2767
2767
|
}
|
|
2768
2768
|
}, createSystem = e => {
|
|
2769
|
-
|
|
2769
|
+
var t;
|
|
2770
|
+
const r = null !== (t = null == e ? void 0 : e.logger) && void 0 !== t ? t : (() => {
|
|
2770
2771
|
let e = IS_BROWSER_ENV, t = "info";
|
|
2771
2772
|
return {
|
|
2772
2773
|
enableColors: t => e = t,
|
|
@@ -2808,15 +2809,15 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
2808
2809
|
})(t, e)));
|
|
2809
2810
|
}
|
|
2810
2811
|
};
|
|
2811
|
-
})(),
|
|
2812
|
+
})(), s = new Map, n = new Set, o = e => n.add(e), i = e => n.delete(e), a = buildEvents(), l = IS_BROWSER_ENV && navigator.hardwareConcurrency || 1, c = e => {
|
|
2812
2813
|
if ("/" === e || "" === e) return "/";
|
|
2813
2814
|
const t = path$2.dirname(e), r = path$2.basename(e);
|
|
2814
2815
|
return t.endsWith("/") ? normalizePath(`${t}${r}`) : normalizePath(`${t}/${r}`);
|
|
2815
|
-
},
|
|
2816
|
-
const t =
|
|
2816
|
+
}, u = e => {
|
|
2817
|
+
const t = s.get(c(e));
|
|
2817
2818
|
return !(!t || !(t.isDirectory || t.isFile && "string" == typeof t.data));
|
|
2818
|
-
},
|
|
2819
|
-
e =
|
|
2819
|
+
}, d = (e, t) => {
|
|
2820
|
+
e = c(e);
|
|
2820
2821
|
const r = {
|
|
2821
2822
|
basename: path$2.basename(e),
|
|
2822
2823
|
dirname: path$2.dirname(e),
|
|
@@ -2824,60 +2825,60 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
2824
2825
|
newDirs: [],
|
|
2825
2826
|
error: null
|
|
2826
2827
|
};
|
|
2827
|
-
return
|
|
2828
|
-
},
|
|
2828
|
+
return h(e, t, r), r;
|
|
2829
|
+
}, h = (e, t, r) => {
|
|
2829
2830
|
const n = path$2.dirname(e);
|
|
2830
|
-
t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) &&
|
|
2831
|
-
const o =
|
|
2832
|
-
o ? (o.isDirectory = !0, o.isFile = !1) : (
|
|
2831
|
+
t && t.recursive && !(e => "/" === e || windowsPathRegex.test(e))(n) && h(n, t, r);
|
|
2832
|
+
const o = s.get(e);
|
|
2833
|
+
o ? (o.isDirectory = !0, o.isFile = !1) : (s.set(e, {
|
|
2833
2834
|
basename: path$2.basename(e),
|
|
2834
2835
|
dirname: n,
|
|
2835
2836
|
isDirectory: !0,
|
|
2836
2837
|
isFile: !1,
|
|
2837
2838
|
watcherCallbacks: null,
|
|
2838
2839
|
data: void 0
|
|
2839
|
-
}),
|
|
2840
|
-
},
|
|
2841
|
-
e =
|
|
2842
|
-
const t = [],
|
|
2843
|
-
return
|
|
2840
|
+
}), r.newDirs.push(e), b(e, new Set));
|
|
2841
|
+
}, p = e => {
|
|
2842
|
+
e = c(e);
|
|
2843
|
+
const t = [], r = s.get(e);
|
|
2844
|
+
return r && r.isDirectory && s.forEach(((r, s) => {
|
|
2844
2845
|
"/" !== s && (r.isDirectory || r.isFile && "string" == typeof r.data) && (e.endsWith("/") && `${e}${r.basename}` === s || `${e}/${r.basename}` === s) && t.push(s);
|
|
2845
2846
|
})), t.sort();
|
|
2846
|
-
},
|
|
2847
|
-
e =
|
|
2848
|
-
const t =
|
|
2847
|
+
}, f = e => {
|
|
2848
|
+
e = c(e);
|
|
2849
|
+
const t = s.get(e);
|
|
2849
2850
|
if (t && t.isFile) return t.data;
|
|
2850
|
-
},
|
|
2851
|
-
path:
|
|
2851
|
+
}, m = e => ({
|
|
2852
|
+
path: c(e),
|
|
2852
2853
|
error: null
|
|
2853
|
-
}),
|
|
2854
|
-
const n =
|
|
2855
|
-
if (!n.error && !
|
|
2856
|
-
const n = path$2.dirname(t), o =
|
|
2854
|
+
}), g = (e, t, r) => {
|
|
2855
|
+
const n = _(e);
|
|
2856
|
+
if (!n.error && !r.error) if (n.isFile) {
|
|
2857
|
+
const n = path$2.dirname(t), o = d(n, {
|
|
2857
2858
|
recursive: !0
|
|
2858
|
-
}), i =
|
|
2859
|
-
|
|
2859
|
+
}), i = s.get(e).data, a = E(t, i);
|
|
2860
|
+
r.newDirs.push(...o.newDirs), r.renamed.push({
|
|
2860
2861
|
oldPath: e,
|
|
2861
2862
|
newPath: t,
|
|
2862
2863
|
isDirectory: !1,
|
|
2863
2864
|
isFile: !0
|
|
2864
|
-
}), a.error ?
|
|
2865
|
+
}), a.error ? r.error = a.error : r.newFiles.push(t);
|
|
2865
2866
|
} else if (n.isDirectory) {
|
|
2866
|
-
const
|
|
2867
|
+
const s = p(e), n = d(t, {
|
|
2867
2868
|
recursive: !0
|
|
2868
2869
|
});
|
|
2869
|
-
|
|
2870
|
+
r.newDirs.push(...n.newDirs), r.renamed.push({
|
|
2870
2871
|
oldPath: e,
|
|
2871
2872
|
newPath: t,
|
|
2872
2873
|
isDirectory: !0,
|
|
2873
2874
|
isFile: !1
|
|
2874
2875
|
});
|
|
2875
|
-
for (const n of
|
|
2876
|
-
const
|
|
2877
|
-
|
|
2876
|
+
for (const n of s) {
|
|
2877
|
+
const s = n.replace(e, t);
|
|
2878
|
+
g(n, s, r);
|
|
2878
2879
|
}
|
|
2879
2880
|
}
|
|
2880
|
-
},
|
|
2881
|
+
}, y = (e, t = {}) => {
|
|
2881
2882
|
const r = {
|
|
2882
2883
|
basename: path$2.basename(e),
|
|
2883
2884
|
dirname: path$2.dirname(e),
|
|
@@ -2886,23 +2887,23 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
2886
2887
|
removedFiles: [],
|
|
2887
2888
|
error: null
|
|
2888
2889
|
};
|
|
2889
|
-
return
|
|
2890
|
-
},
|
|
2891
|
-
if (!
|
|
2892
|
-
e =
|
|
2893
|
-
const n =
|
|
2890
|
+
return w(e, t, r), r;
|
|
2891
|
+
}, w = (e, t, r) => {
|
|
2892
|
+
if (!r.error) {
|
|
2893
|
+
e = c(e);
|
|
2894
|
+
const n = p(e);
|
|
2894
2895
|
if (t && t.recursive) for (const e of n) {
|
|
2895
|
-
const n =
|
|
2896
|
-
if (n) if (n.isDirectory)
|
|
2897
|
-
const t =
|
|
2898
|
-
t.error ?
|
|
2896
|
+
const n = s.get(e);
|
|
2897
|
+
if (n) if (n.isDirectory) w(e, t, r); else if (n.isFile) {
|
|
2898
|
+
const t = v(e);
|
|
2899
|
+
t.error ? r.error = t.error : r.removedFiles.push(e);
|
|
2899
2900
|
}
|
|
2900
|
-
} else if (n.length > 0) return void (
|
|
2901
|
-
|
|
2901
|
+
} else if (n.length > 0) return void (r.error = "cannot delete directory that contains files/subdirectories");
|
|
2902
|
+
s.delete(e), b(e, new Set), r.removedDirs.push(e);
|
|
2902
2903
|
}
|
|
2903
|
-
},
|
|
2904
|
-
e =
|
|
2905
|
-
const t =
|
|
2904
|
+
}, _ = e => {
|
|
2905
|
+
e = c(e);
|
|
2906
|
+
const t = s.get(e);
|
|
2906
2907
|
return t && (t.isDirectory || t.isFile && "string" == typeof t.data) ? {
|
|
2907
2908
|
isDirectory: t.isDirectory,
|
|
2908
2909
|
isFile: t.isFile,
|
|
@@ -2916,52 +2917,52 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
2916
2917
|
size: 0,
|
|
2917
2918
|
error: `ENOENT: no such file or directory, statSync '${e}'`
|
|
2918
2919
|
};
|
|
2919
|
-
},
|
|
2920
|
-
e =
|
|
2920
|
+
}, v = e => {
|
|
2921
|
+
e = c(e);
|
|
2921
2922
|
const t = {
|
|
2922
2923
|
basename: path$2.basename(e),
|
|
2923
2924
|
dirname: path$2.dirname(e),
|
|
2924
2925
|
path: e,
|
|
2925
2926
|
error: null
|
|
2926
|
-
},
|
|
2927
|
-
if (
|
|
2928
|
-
if (
|
|
2929
|
-
|
|
2927
|
+
}, r = s.get(e);
|
|
2928
|
+
if (r) {
|
|
2929
|
+
if (r.watcherCallbacks) for (const t of r.watcherCallbacks) t(e, "fileDelete");
|
|
2930
|
+
s.delete(e), b(e, new Set);
|
|
2930
2931
|
}
|
|
2931
2932
|
return t;
|
|
2932
|
-
}, v = (e, t) => {
|
|
2933
|
-
const s = l(path$2.dirname(e)), n = r.get(s);
|
|
2934
|
-
if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
|
|
2935
|
-
t.has(s) || (t.add(s), v(s, t));
|
|
2936
2933
|
}, b = (e, t) => {
|
|
2937
|
-
const
|
|
2938
|
-
|
|
2934
|
+
const r = c(path$2.dirname(e)), n = s.get(r);
|
|
2935
|
+
if (n && n.isDirectory && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, null);
|
|
2936
|
+
t.has(r) || (t.add(r), b(r, t));
|
|
2937
|
+
}, E = (e, t) => {
|
|
2938
|
+
const r = {
|
|
2939
|
+
path: e = c(e),
|
|
2939
2940
|
error: null
|
|
2940
|
-
}, n =
|
|
2941
|
+
}, n = s.get(e);
|
|
2941
2942
|
if (n) {
|
|
2942
2943
|
const r = n.data !== t;
|
|
2943
2944
|
if (n.data = t, r && n.watcherCallbacks) for (const t of n.watcherCallbacks) t(e, "fileUpdate");
|
|
2944
|
-
} else
|
|
2945
|
+
} else s.set(e, {
|
|
2945
2946
|
basename: path$2.basename(e),
|
|
2946
2947
|
dirname: path$2.dirname(e),
|
|
2947
2948
|
isDirectory: !1,
|
|
2948
2949
|
isFile: !0,
|
|
2949
2950
|
watcherCallbacks: null,
|
|
2950
2951
|
data: t
|
|
2951
|
-
}),
|
|
2952
|
-
return
|
|
2953
|
-
},
|
|
2954
|
-
|
|
2955
|
-
const
|
|
2952
|
+
}), b(e, new Set);
|
|
2953
|
+
return r;
|
|
2954
|
+
}, T = "undefined" != typeof self ? null === self || void 0 === self ? void 0 : self.fetch : "undefined" != typeof window ? null === window || void 0 === window ? void 0 : window.fetch : "undefined" != typeof global ? null === global || void 0 === global ? void 0 : global.fetch : void 0, S = Promise.resolve();
|
|
2955
|
+
d("/");
|
|
2956
|
+
const C = {
|
|
2956
2957
|
name: "in-memory",
|
|
2957
|
-
version: "2.
|
|
2958
|
-
events:
|
|
2959
|
-
access: async e =>
|
|
2960
|
-
accessSync:
|
|
2961
|
-
addDestory:
|
|
2962
|
-
copyFile: async (e, t) => (
|
|
2963
|
-
createDir: async (e, t) =>
|
|
2964
|
-
createDirSync:
|
|
2958
|
+
version: "2.19.1-0",
|
|
2959
|
+
events: a,
|
|
2960
|
+
access: async e => u(e),
|
|
2961
|
+
accessSync: u,
|
|
2962
|
+
addDestory: o,
|
|
2963
|
+
copyFile: async (e, t) => (E(t, f(e)), !0),
|
|
2964
|
+
createDir: async (e, t) => d(e, t),
|
|
2965
|
+
createDirSync: d,
|
|
2965
2966
|
homeDir: () => os__namespace.homedir(),
|
|
2966
2967
|
isTTY: () => {
|
|
2967
2968
|
var e;
|
|
@@ -2970,19 +2971,19 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
2970
2971
|
getEnvironmentVar: e => null == process__namespace ? void 0 : process__namespace.env[e],
|
|
2971
2972
|
destroy: async () => {
|
|
2972
2973
|
const e = [];
|
|
2973
|
-
|
|
2974
|
+
n.forEach((t => {
|
|
2974
2975
|
try {
|
|
2975
|
-
const
|
|
2976
|
-
|
|
2976
|
+
const r = t();
|
|
2977
|
+
r && r.then && e.push(r);
|
|
2977
2978
|
} catch (e) {
|
|
2978
|
-
|
|
2979
|
+
r.error(`stencil sys destroy: ${e}`);
|
|
2979
2980
|
}
|
|
2980
|
-
})), await Promise.all(e),
|
|
2981
|
+
})), await Promise.all(e), n.clear();
|
|
2981
2982
|
},
|
|
2982
2983
|
encodeToBase64: e => btoa(unescape(encodeURIComponent(e))),
|
|
2983
|
-
exit: async e =>
|
|
2984
|
+
exit: async e => r.warn(`exit ${e}`),
|
|
2984
2985
|
getCurrentDirectory: () => "/",
|
|
2985
|
-
getCompilerExecutingPath: () => IS_WEB_WORKER_ENV ? location.href :
|
|
2986
|
+
getCompilerExecutingPath: () => IS_WEB_WORKER_ENV ? location.href : C.getRemoteModuleUrl({
|
|
2986
2987
|
moduleId: "@stencil/core",
|
|
2987
2988
|
path: "compiler/stencil.min.js"
|
|
2988
2989
|
}),
|
|
@@ -2991,18 +2992,18 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
2991
2992
|
const t = `${e.moduleId}${e.version ? "@" + e.version : ""}/${e.path}`;
|
|
2992
2993
|
return new URL(t, "https://cdn.jsdelivr.net/npm/").href;
|
|
2993
2994
|
},
|
|
2994
|
-
hardwareConcurrency:
|
|
2995
|
+
hardwareConcurrency: l,
|
|
2995
2996
|
isSymbolicLink: async e => !1,
|
|
2996
|
-
nextTick: e =>
|
|
2997
|
-
normalizePath:
|
|
2997
|
+
nextTick: e => S.then(e),
|
|
2998
|
+
normalizePath: c,
|
|
2998
2999
|
platformPath: pathBrowserify,
|
|
2999
|
-
readDir: async e =>
|
|
3000
|
-
readDirSync:
|
|
3001
|
-
readFile: async e =>
|
|
3002
|
-
readFileSync:
|
|
3003
|
-
realpath: async e =>
|
|
3004
|
-
realpathSync:
|
|
3005
|
-
removeDestory:
|
|
3000
|
+
readDir: async e => p(e),
|
|
3001
|
+
readDirSync: p,
|
|
3002
|
+
readFile: async e => f(e),
|
|
3003
|
+
readFileSync: f,
|
|
3004
|
+
realpath: async e => m(e),
|
|
3005
|
+
realpathSync: m,
|
|
3006
|
+
removeDestory: i,
|
|
3006
3007
|
rename: async (e, t) => {
|
|
3007
3008
|
const r = {
|
|
3008
3009
|
oldPath: e = normalizePath(e),
|
|
@@ -3015,39 +3016,39 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
3015
3016
|
isFile: !1,
|
|
3016
3017
|
isDirectory: !1,
|
|
3017
3018
|
error: null
|
|
3018
|
-
}, s =
|
|
3019
|
+
}, s = _(e);
|
|
3019
3020
|
if (s.error) r.error = `${e} does not exist`; else if (s.isFile ? r.isFile = !0 : s.isDirectory && (r.isDirectory = !0),
|
|
3020
|
-
|
|
3021
|
-
const t =
|
|
3021
|
+
g(e, t, r), !r.error) if (r.isDirectory) {
|
|
3022
|
+
const t = y(e, {
|
|
3022
3023
|
recursive: !0
|
|
3023
3024
|
});
|
|
3024
3025
|
t.error ? r.error = t.error : (r.oldDirs.push(...t.removedDirs), r.oldFiles.push(...t.removedFiles));
|
|
3025
3026
|
} else if (r.isFile) {
|
|
3026
|
-
const t =
|
|
3027
|
+
const t = v(e);
|
|
3027
3028
|
t.error ? r.error = t.error : r.oldFiles.push(e);
|
|
3028
3029
|
}
|
|
3029
3030
|
return r;
|
|
3030
3031
|
},
|
|
3031
|
-
fetch:
|
|
3032
|
-
resolvePath: e =>
|
|
3033
|
-
removeDir: async (e, t = {}) =>
|
|
3034
|
-
removeDirSync:
|
|
3035
|
-
stat: async e =>
|
|
3036
|
-
statSync:
|
|
3032
|
+
fetch: T,
|
|
3033
|
+
resolvePath: e => c(e),
|
|
3034
|
+
removeDir: async (e, t = {}) => y(e, t),
|
|
3035
|
+
removeDirSync: y,
|
|
3036
|
+
stat: async e => _(e),
|
|
3037
|
+
statSync: _,
|
|
3037
3038
|
tmpDirSync: () => "/.tmp",
|
|
3038
|
-
removeFile: async e =>
|
|
3039
|
-
removeFileSync:
|
|
3039
|
+
removeFile: async e => v(e),
|
|
3040
|
+
removeFileSync: v,
|
|
3040
3041
|
watchDirectory: (e, t) => {
|
|
3041
|
-
e =
|
|
3042
|
-
const
|
|
3043
|
-
const
|
|
3044
|
-
if (
|
|
3045
|
-
const e =
|
|
3046
|
-
e > -1 &&
|
|
3042
|
+
e = c(e);
|
|
3043
|
+
const r = s.get(e), n = () => {
|
|
3044
|
+
const r = s.get(e);
|
|
3045
|
+
if (r && r.watcherCallbacks) {
|
|
3046
|
+
const e = r.watcherCallbacks.indexOf(t);
|
|
3047
|
+
e > -1 && r.watcherCallbacks.splice(e, 1);
|
|
3047
3048
|
}
|
|
3048
3049
|
};
|
|
3049
|
-
return n
|
|
3050
|
-
|
|
3050
|
+
return o(n), r ? (r.isDirectory = !0, r.isFile = !1, r.watcherCallbacks = r.watcherCallbacks || [],
|
|
3051
|
+
r.watcherCallbacks.push(t)) : s.set(e, {
|
|
3051
3052
|
basename: path$2.basename(e),
|
|
3052
3053
|
dirname: path$2.dirname(e),
|
|
3053
3054
|
isDirectory: !0,
|
|
@@ -3056,21 +3057,21 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
3056
3057
|
data: void 0
|
|
3057
3058
|
}), {
|
|
3058
3059
|
close() {
|
|
3059
|
-
|
|
3060
|
+
i(n), n();
|
|
3060
3061
|
}
|
|
3061
3062
|
};
|
|
3062
3063
|
},
|
|
3063
3064
|
watchFile: (e, t) => {
|
|
3064
|
-
e =
|
|
3065
|
-
const
|
|
3066
|
-
const
|
|
3067
|
-
if (
|
|
3068
|
-
const e =
|
|
3069
|
-
e > -1 &&
|
|
3065
|
+
e = c(e);
|
|
3066
|
+
const r = s.get(e), n = () => {
|
|
3067
|
+
const r = s.get(e);
|
|
3068
|
+
if (r && r.watcherCallbacks) {
|
|
3069
|
+
const e = r.watcherCallbacks.indexOf(t);
|
|
3070
|
+
e > -1 && r.watcherCallbacks.splice(e, 1);
|
|
3070
3071
|
}
|
|
3071
3072
|
};
|
|
3072
|
-
return n
|
|
3073
|
-
|
|
3073
|
+
return o(n), r ? (r.isDirectory = !1, r.isFile = !0, r.watcherCallbacks = r.watcherCallbacks || [],
|
|
3074
|
+
r.watcherCallbacks.push(t)) : s.set(e, {
|
|
3074
3075
|
basename: path$2.basename(e),
|
|
3075
3076
|
dirname: path$2.dirname(e),
|
|
3076
3077
|
isDirectory: !1,
|
|
@@ -3079,13 +3080,13 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
3079
3080
|
data: void 0
|
|
3080
3081
|
}), {
|
|
3081
3082
|
close() {
|
|
3082
|
-
|
|
3083
|
+
i(n), n();
|
|
3083
3084
|
}
|
|
3084
3085
|
};
|
|
3085
3086
|
},
|
|
3086
3087
|
watchTimeout: 32,
|
|
3087
|
-
writeFile: async (e, t) =>
|
|
3088
|
-
writeFileSync:
|
|
3088
|
+
writeFile: async (e, t) => E(e, t),
|
|
3089
|
+
writeFileSync: E,
|
|
3089
3090
|
generateContentHash: async (e, t) => {
|
|
3090
3091
|
const r = await crypto.subtle.digest("SHA-256", (new TextEncoder).encode(e));
|
|
3091
3092
|
let s = Array.from(new Uint8Array(r)).map((e => e.toString(16).padStart(2, "0"))).join("");
|
|
@@ -3156,7 +3157,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
3156
3157
|
},
|
|
3157
3158
|
maxWorkers: u
|
|
3158
3159
|
};
|
|
3159
|
-
})(
|
|
3160
|
+
})(C, e) : null,
|
|
3160
3161
|
details: {
|
|
3161
3162
|
cpuModel: "",
|
|
3162
3163
|
freemem: () => 0,
|
|
@@ -3164,13 +3165,13 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
3164
3165
|
release: "",
|
|
3165
3166
|
totalmem: 0
|
|
3166
3167
|
},
|
|
3167
|
-
copy: async (e,
|
|
3168
|
+
copy: async (e, t) => (r.info("todo, copy task", e.length, t), {
|
|
3168
3169
|
diagnostics: [],
|
|
3169
3170
|
dirPaths: [],
|
|
3170
3171
|
filePaths: []
|
|
3171
3172
|
})
|
|
3172
3173
|
};
|
|
3173
|
-
return
|
|
3174
|
+
return C.resolveModuleId = e => ((e, t, r) => {
|
|
3174
3175
|
const s = ((e, t, r) => ({
|
|
3175
3176
|
async isFile(s, n) {
|
|
3176
3177
|
const o = normalizeFsPath(s);
|
|
@@ -3222,7 +3223,7 @@ const COMMON_DIR_MODULE_EXTS = [ ".tsx", ".ts", ".mjs", ".js", ".jsx", ".json",
|
|
|
3222
3223
|
}
|
|
3223
3224
|
}));
|
|
3224
3225
|
}));
|
|
3225
|
-
})(
|
|
3226
|
+
})(C, 0, e), C;
|
|
3226
3227
|
}, createTestingSystem = () => {
|
|
3227
3228
|
let e = 0, t = 0;
|
|
3228
3229
|
const r = createSystem();
|