@stencil/core 4.19.2-dev.1721019702.82a7bb9 → 4.19.2-dev.1721192498.5e74837

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 (66) hide show
  1. package/cli/index.cjs +1 -1
  2. package/cli/index.js +1 -1
  3. package/cli/package.json +1 -1
  4. package/compiler/lib.dom.asynciterable.d.ts +5 -0
  5. package/compiler/lib.dom.d.ts +211 -33
  6. package/compiler/lib.dom.iterable.d.ts +8 -0
  7. package/compiler/lib.es2015.core.d.ts +40 -0
  8. package/compiler/lib.es2018.intl.d.ts +16 -4
  9. package/compiler/lib.es2019.intl.d.ts +1 -1
  10. package/compiler/lib.es2020.bigint.d.ts +2 -3
  11. package/compiler/lib.es2020.intl.d.ts +32 -7
  12. package/compiler/lib.es2021.weakref.d.ts +1 -1
  13. package/compiler/lib.es2022.regexp.d.ts +1 -1
  14. package/compiler/lib.es2023.d.ts +1 -0
  15. package/compiler/lib.es2023.intl.d.ts +56 -0
  16. package/compiler/lib.es5.d.ts +31 -9
  17. package/compiler/lib.esnext.array.d.ts +35 -0
  18. package/compiler/lib.esnext.collection.d.ts +77 -0
  19. package/compiler/lib.esnext.d.ts +3 -0
  20. package/compiler/lib.esnext.intl.d.ts +1 -8
  21. package/compiler/lib.esnext.regexp.d.ts +25 -0
  22. package/compiler/lib.esnext.string.d.ts +29 -0
  23. package/compiler/lib.webworker.asynciterable.d.ts +5 -0
  24. package/compiler/lib.webworker.d.ts +20 -6
  25. package/compiler/lib.webworker.iterable.d.ts +5 -0
  26. package/compiler/package.json +1 -1
  27. package/compiler/stencil.js +222062 -219614
  28. package/dev-server/client/index.js +1 -1
  29. package/dev-server/client/package.json +1 -1
  30. package/dev-server/connector.html +2 -2
  31. package/dev-server/index.js +1 -1
  32. package/dev-server/package.json +1 -1
  33. package/dev-server/server-process.js +2 -2
  34. package/internal/app-data/package.json +1 -1
  35. package/internal/client/index.js +21 -15
  36. package/internal/client/package.json +1 -1
  37. package/internal/client/patch-browser.js +1 -1
  38. package/internal/client/shadow-css.js +6 -30
  39. package/internal/hydrate/index.js +24 -20
  40. package/internal/hydrate/package.json +1 -1
  41. package/internal/hydrate/runner.js +5 -5
  42. package/internal/package.json +1 -1
  43. package/internal/stencil-private.d.ts +0 -1
  44. package/internal/testing/index.js +20 -14
  45. package/internal/testing/package.json +1 -1
  46. package/mock-doc/index.cjs +3 -3
  47. package/mock-doc/index.d.ts +1 -1
  48. package/mock-doc/index.js +3 -3
  49. package/mock-doc/package.json +1 -1
  50. package/package.json +2 -2
  51. package/screenshot/index.js +1 -1
  52. package/screenshot/package.json +1 -1
  53. package/screenshot/pixel-match.js +1 -1
  54. package/screenshot/screenshot-compare.d.ts +1 -2
  55. package/screenshot/screenshot-fs.d.ts +0 -1
  56. package/sys/node/index.js +1 -1
  57. package/sys/node/package.json +1 -1
  58. package/sys/node/worker.js +1 -1
  59. package/testing/index.js +1 -1
  60. package/testing/jest/jest-27-and-under/jest-facade.d.ts +41 -41
  61. package/testing/jest/jest-28/jest-facade.d.ts +35 -53
  62. package/testing/jest/jest-29/jest-facade.d.ts +36 -55
  63. package/testing/package.json +1 -1
  64. package/testing/puppeteer/puppeteer-declarations.d.ts +0 -1
  65. package/testing/puppeteer/puppeteer-screenshot.d.ts +1 -1
  66. package/testing/testing-utils.d.ts +0 -1
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/hydrate",
3
- "version": "4.19.2-dev.1721019702.82a7bb9",
3
+ "version": "4.19.2-dev.1721192498.5e74837",
4
4
  "description": "Stencil internal hydrate platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Hydrate Runner v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Hydrate Runner v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __export = (target, all) => {
@@ -10414,7 +10414,7 @@ function normalizeSerializationOptions(opts = {}) {
10414
10414
  removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
10415
10415
  removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
10416
10416
  removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
10417
- serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? false : opts.serializeShadowRoot,
10417
+ serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? true : opts.serializeShadowRoot,
10418
10418
  fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
10419
10419
  };
10420
10420
  }
@@ -10540,7 +10540,7 @@ style="${cssText}">`;
10540
10540
  }
10541
10541
  if (EMPTY_ELEMENTS.has(tagName) === false) {
10542
10542
  const shadowRoot = node.shadowRoot;
10543
- if (opts.serializeShadowRoot && shadowRoot != null) {
10543
+ if (shadowRoot != null && opts.serializeShadowRoot) {
10544
10544
  output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
10545
10545
  yield* streamToHtml(shadowRoot, opts, output);
10546
10546
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
@@ -14884,7 +14884,7 @@ var removeUnusedStyleText = (usedSelectors, diagnostics, styleElm) => {
14884
14884
 
14885
14885
  // src/hydrate/runner/inspect-element.ts
14886
14886
  function inspectElement(results, elm, depth) {
14887
- const children = elm.children;
14887
+ const children = [...Array.from(elm.children), ...Array.from(elm.shadowRoot ? elm.shadowRoot.children : [])];
14888
14888
  for (let i = 0, ii = children.length; i < ii; i++) {
14889
14889
  const childElm = children[i];
14890
14890
  const tagName = childElm.nodeName.toLowerCase();
@@ -15279,7 +15279,7 @@ function renderToString(html, options, asStream) {
15279
15279
  const opts = normalizeHydrateOptions(options);
15280
15280
  opts.serializeToHtml = true;
15281
15281
  opts.fullDocument = typeof opts.fullDocument === "boolean" ? opts.fullDocument : true;
15282
- opts.serializeShadowRoot = Boolean(opts.serializeShadowRoot);
15282
+ opts.serializeShadowRoot = typeof opts.serializeShadowRoot === "boolean" ? opts.serializeShadowRoot : true;
15283
15283
  opts.constrainTimeouts = false;
15284
15284
  return hydrateDocument(html, opts, asStream);
15285
15285
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.19.2-dev.1721019702.82a7bb9",
3
+ "version": "4.19.2-dev.1721192498.5e74837",
4
4
  "description": "Stencil internals only to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1690,7 +1690,6 @@ export interface TransformCssToEsmInput {
1690
1690
  * is not shared by multiple fields, nor is it a composite of multiple modes).
1691
1691
  */
1692
1692
  mode?: string;
1693
- commentOriginalSelector?: boolean;
1694
1693
  sourceMap?: boolean;
1695
1694
  minify?: boolean;
1696
1695
  docs?: boolean;
@@ -1011,10 +1011,21 @@ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1011
1011
  if (nonce != null) {
1012
1012
  styleElm.setAttribute("nonce", nonce);
1013
1013
  }
1014
- if (import_app_data7.BUILD.hydrateServerSide || import_app_data7.BUILD.hotModuleReplacement) {
1014
+ if ((import_app_data7.BUILD.hydrateServerSide || import_app_data7.BUILD.hotModuleReplacement) && cmpMeta.$flags$ & 2 /* scopedCssEncapsulation */) {
1015
1015
  styleElm.setAttribute(HYDRATED_STYLE_ID, scopeId2);
1016
1016
  }
1017
- styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
1017
+ const injectStyle = (
1018
+ /**
1019
+ * we render a scoped component
1020
+ */
1021
+ !(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) || /**
1022
+ * we are using shadow dom and render the style tag within the shadowRoot
1023
+ */
1024
+ cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */ && styleContainerNode.nodeName !== "HEAD"
1025
+ );
1026
+ if (injectStyle) {
1027
+ styleContainerNode.insertBefore(styleElm, styleContainerNode.querySelector("link"));
1028
+ }
1018
1029
  }
1019
1030
  if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1020
1031
  styleElm.innerHTML += SLOT_FB_CSS;
@@ -1039,7 +1050,7 @@ var attachStyles = (hostRef) => {
1039
1050
  cmpMeta,
1040
1051
  hostRef.$modeName$
1041
1052
  );
1042
- if ((import_app_data7.BUILD.shadowDom || import_app_data7.BUILD.scoped) && import_app_data7.BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */) {
1053
+ if ((import_app_data7.BUILD.shadowDom || import_app_data7.BUILD.scoped) && import_app_data7.BUILD.cssAnnotations && flags & 10 /* needsScopedEncapsulation */ && flags & 2 /* scopedCssEncapsulation */) {
1043
1054
  elm["s-sc"] = scopeId2;
1044
1055
  elm.classList.add(scopeId2 + "-h");
1045
1056
  if (import_app_data7.BUILD.scoped && flags & 2 /* scopedCssEncapsulation */) {
@@ -1049,7 +1060,6 @@ var attachStyles = (hostRef) => {
1049
1060
  endAttachStyles();
1050
1061
  };
1051
1062
  var getScopeId = (cmp, mode) => "sc-" + (import_app_data7.BUILD.mode && mode && cmp.$flags$ & 32 /* hasMode */ ? cmp.$tagName$ + "-" + mode : cmp.$tagName$);
1052
- var convertScopedToShadow = (css) => css.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g, "$1{");
1053
1063
 
1054
1064
  // src/runtime/vdom/vdom-render.ts
1055
1065
  var import_app_data10 = require("@stencil/core/internal/app-data");
@@ -1245,7 +1255,9 @@ var createElm = (oldParentVNode, newParentVNode, childIndex, parentElm) => {
1245
1255
  if (import_app_data10.BUILD.vdomAttribute) {
1246
1256
  updateElement(null, newVNode2, isSvgMode);
1247
1257
  }
1248
- if ((import_app_data10.BUILD.shadowDom || import_app_data10.BUILD.scoped) && isDef(scopeId) && elm["s-si"] !== scopeId) {
1258
+ const rootNode = elm.getRootNode();
1259
+ const isElementWithinShadowRoot = !rootNode.querySelector("body");
1260
+ if (!isElementWithinShadowRoot && import_app_data10.BUILD.scoped && isDef(scopeId) && elm["s-si"] !== scopeId) {
1249
1261
  elm.classList.add(elm["s-si"] = scopeId);
1250
1262
  }
1251
1263
  if (import_app_data10.BUILD.scoped) {
@@ -2201,7 +2213,8 @@ More information: https://stenciljs.com/docs/properties#prop-mutability`
2201
2213
  if (this.hasOwnProperty(propName)) {
2202
2214
  newValue = this[propName];
2203
2215
  delete this[propName];
2204
- } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && this[propName] == newValue) {
2216
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2217
+ this[propName] == newValue) {
2205
2218
  return;
2206
2219
  } else if (propName == null) {
2207
2220
  const hostRef = getHostRef(this);
@@ -2308,7 +2321,7 @@ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2308
2321
  const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2309
2322
  if (!import_app_data14.BUILD.hydrateServerSide && import_app_data14.BUILD.shadowDom && // TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2310
2323
  import_app_data14.BUILD.shadowDomShim && cmpMeta.$flags$ & 8 /* needsShadowDomShim */) {
2311
- style = await import("../client/shadow-css.js").then((m) => m.scopeCss(style, scopeId2, false));
2324
+ style = await import("../client/shadow-css.js").then((m) => m.scopeCss(style, scopeId2));
2312
2325
  }
2313
2326
  registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2314
2327
  endRegisterStyles();
@@ -2877,10 +2890,8 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2877
2890
  const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2878
2891
  const dataStyles = /* @__PURE__ */ doc.createElement("style");
2879
2892
  const deferredConnectedCallbacks = [];
2880
- const styles2 = /* @__PURE__ */ doc.querySelectorAll(`[${HYDRATED_STYLE_ID}]`);
2881
2893
  let appLoadFallback;
2882
2894
  let isBootstrapping = true;
2883
- let i2 = 0;
2884
2895
  Object.assign(plt, options);
2885
2896
  plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", doc.baseURI).href;
2886
2897
  if (import_app_data19.BUILD.asyncQueue) {
@@ -2891,11 +2902,6 @@ var bootstrapLazy = (lazyBundles, options = {}) => {
2891
2902
  if (import_app_data19.BUILD.hydrateClientSide) {
2892
2903
  plt.$flags$ |= 2 /* appLoaded */;
2893
2904
  }
2894
- if (import_app_data19.BUILD.hydrateClientSide && import_app_data19.BUILD.shadowDom) {
2895
- for (; i2 < styles2.length; i2++) {
2896
- registerStyle(styles2[i2].getAttribute(HYDRATED_STYLE_ID), convertScopedToShadow(styles2[i2].innerHTML), true);
2897
- }
2898
- }
2899
2905
  let hasSlotRelocation = false;
2900
2906
  lazyBundles.map((lazyBundle) => {
2901
2907
  lazyBundle[1].map((compactMeta) => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/testing",
3
- "version": "4.19.2-dev.1721019702.82a7bb9",
3
+ "version": "4.19.2-dev.1721192498.5e74837",
4
4
  "description": "Stencil internal testing platform to be imported by the Stencil Compiler. Breaking changes can and will happen at any time.",
5
5
  "main": "./index.js",
6
6
  "private": true
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc (CommonJS) v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
@@ -6287,7 +6287,7 @@ function normalizeSerializationOptions(opts = {}) {
6287
6287
  removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
6288
6288
  removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
6289
6289
  removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
6290
- serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? false : opts.serializeShadowRoot,
6290
+ serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? true : opts.serializeShadowRoot,
6291
6291
  fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
6292
6292
  };
6293
6293
  }
@@ -6413,7 +6413,7 @@ style="${cssText}">`;
6413
6413
  }
6414
6414
  if (EMPTY_ELEMENTS.has(tagName) === false) {
6415
6415
  const shadowRoot = node.shadowRoot;
6416
- if (opts.serializeShadowRoot && shadowRoot != null) {
6416
+ if (shadowRoot != null && opts.serializeShadowRoot) {
6417
6417
  output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
6418
6418
  yield* streamToHtml(shadowRoot, opts, output);
6419
6419
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
@@ -975,7 +975,7 @@ declare class MockWindow {
975
975
  addEventListener: (_type: string, _handler: (ev?: any) => void) => void;
976
976
  removeEventListener: (_type: string, _handler: (ev?: any) => void) => void;
977
977
  dispatchEvent: (_ev: any) => void;
978
- onchange: (this: MediaQueryList, ev: MediaQueryListEvent) => any;
978
+ onchange: ((this: MediaQueryList, ev: MediaQueryListEvent) => any) | null;
979
979
  };
980
980
  get Node(): any;
981
981
  get NodeList(): any;
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
 
5
5
  // src/runtime/runtime-constants.ts
@@ -6234,7 +6234,7 @@ function normalizeSerializationOptions(opts = {}) {
6234
6234
  removeAttributeQuotes: typeof opts.removeAttributeQuotes !== "boolean" ? false : opts.removeAttributeQuotes,
6235
6235
  removeBooleanAttributeQuotes: typeof opts.removeBooleanAttributeQuotes !== "boolean" ? false : opts.removeBooleanAttributeQuotes,
6236
6236
  removeHtmlComments: typeof opts.removeHtmlComments !== "boolean" ? false : opts.removeHtmlComments,
6237
- serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? false : opts.serializeShadowRoot,
6237
+ serializeShadowRoot: typeof opts.serializeShadowRoot !== "boolean" ? true : opts.serializeShadowRoot,
6238
6238
  fullDocument: typeof opts.fullDocument !== "boolean" ? true : opts.fullDocument
6239
6239
  };
6240
6240
  }
@@ -6360,7 +6360,7 @@ style="${cssText}">`;
6360
6360
  }
6361
6361
  if (EMPTY_ELEMENTS.has(tagName) === false) {
6362
6362
  const shadowRoot = node.shadowRoot;
6363
- if (opts.serializeShadowRoot && shadowRoot != null) {
6363
+ if (shadowRoot != null && opts.serializeShadowRoot) {
6364
6364
  output.indent = output.indent + ((_c = opts.indentSpaces) != null ? _c : 0);
6365
6365
  yield* streamToHtml(shadowRoot, opts, output);
6366
6366
  output.indent = output.indent - ((_d = opts.indentSpaces) != null ? _d : 0);
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.19.2-dev.1721019702.82a7bb9",
3
+ "version": "4.19.2-dev.1721192498.5e74837",
4
4
  "description": "Mock window, document and DOM outside of a browser environment.",
5
5
  "main": "./index.cjs",
6
6
  "module": "./index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core",
3
- "version": "4.19.2-dev.1721019702.82a7bb9",
3
+ "version": "4.19.2-dev.1721192498.5e74837",
4
4
  "license": "MIT",
5
5
  "main": "./internal/stencil-core/index.cjs",
6
6
  "module": "./internal/stencil-core/index.js",
@@ -181,7 +181,7 @@
181
181
  "semver": "^7.3.7",
182
182
  "terser": "5.31.1",
183
183
  "tsx": "^4.10.3",
184
- "typescript": "~5.4.0",
184
+ "typescript": "~5.5.3",
185
185
  "webpack": "^5.75.0",
186
186
  "ws": "8.17.1"
187
187
  },
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/screenshot",
3
- "version": "4.19.2-dev.1721019702.82a7bb9",
3
+ "version": "4.19.2-dev.1721192498.5e74837",
4
4
  "description": "Stencil Screenshot.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot Pixel Match v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot Pixel Match v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type * as d from '@stencil/core/internal';
3
2
  export declare function compareScreenshot(emulateConfig: d.EmulateConfig, screenshotBuildData: d.ScreenshotBuildData, currentScreenshotBuf: Buffer, screenshotTimeoutMs: number | null, desc: string, width: number, height: number, testPath: string, pixelmatchThreshold: number): Promise<{
4
3
  id: string;
@@ -17,5 +16,5 @@ export declare function compareScreenshot(emulateConfig: d.EmulateConfig, screen
17
16
  allowableMismatchedPixels: number;
18
17
  allowableMismatchedRatio: number;
19
18
  testPath: string;
20
- cacheKey: string;
19
+ cacheKey: string | undefined;
21
20
  }>;
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import type * as d from '@stencil/core/internal';
3
2
  export declare function writeScreenshotImage(imagePath: string, screenshotBuf: Buffer): Promise<void>;
4
3
  export declare function writeScreenshotData(dataDir: string, screenshotData: d.Screenshot): Promise<void>;
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var yi=Object.create;var $t=Object.defineProperty;var bi=Object.getOwnPropertyDescriptor;var Ei=Object.getOwnPropertyNames;var Ti=Object.getPrototypeOf,xi=Object.prototype.hasOwnProperty;var he=(n,t)=>()=>(t||n((t={exports:{}}).exports,t),t.exports),Sr=(n,t)=>{for(var e in t)$t(n,e,{get:t[e],enumerable:!0})},Lr=(n,t,e,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Ei(t))!xi.call(n,i)&&i!==e&&$t(n,i,{get:()=>t[i],enumerable:!(r=bi(t,i))||r.enumerable});return n};var ve=(n,t,e)=>(e=n!=null?yi(Ti(n)):{},Lr(t||!n||!n.__esModule?$t(e,"default",{value:n,enumerable:!0}):e,n)),Ci=n=>Lr($t({},"__esModule",{value:!0}),n);var Dr=he((Oo,Dt)=>{"use strict";var Si=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",Li=typeof process<"u"&&process.platform==="win32",Or=typeof process<"u"&&process.platform==="linux",_t={ballotDisabled:"\u2612",ballotOff:"\u2610",ballotOn:"\u2611",bullet:"\u2022",bulletWhite:"\u25E6",fullBlock:"\u2588",heart:"\u2764",identicalTo:"\u2261",line:"\u2500",mark:"\u203B",middot:"\xB7",minus:"\uFF0D",multiplication:"\xD7",obelus:"\xF7",pencilDownRight:"\u270E",pencilRight:"\u270F",pencilUpRight:"\u2710",percent:"%",pilcrow2:"\u2761",pilcrow:"\xB6",plusMinus:"\xB1",question:"?",section:"\xA7",starsOff:"\u2606",starsOn:"\u2605",upDownArrow:"\u2195"},Ar=Object.assign({},_t,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Rr=Object.assign({},_t,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Or?"\u25B8":"\u276F",pointerSmall:Or?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});Dt.exports=Li&&!Si?Ar:Rr;Reflect.defineProperty(Dt.exports,"common",{enumerable:!1,value:_t});Reflect.defineProperty(Dt.exports,"windows",{enumerable:!1,value:Ar});Reflect.defineProperty(Dt.exports,"other",{enumerable:!1,value:Rr})});var wr=he((Ao,er)=>{"use strict";var Oi=n=>n!==null&&typeof n=="object"&&!Array.isArray(n),Ai=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,Ri=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,Pr=()=>{let n={enabled:Ri(),visible:!0,styles:{},keys:{}},t=s=>{let l=s.open=`\x1B[${s.codes[0]}m`,a=s.close=`\x1B[${s.codes[1]}m`,d=s.regex=new RegExp(`\\u001b\\[${s.codes[1]}m`,"g");return s.wrap=(c,y)=>{c.includes(a)&&(c=c.replace(d,a+l));let h=l+c+a;return y?h.replace(/\r*\n/g,`${a}$&${l}`):h},s},e=(s,l,a)=>typeof s=="function"?s(l):s.wrap(l,a),r=(s,l)=>{if(s===""||s==null)return"";if(n.enabled===!1)return s;if(n.visible===!1)return"";let a=""+s,d=a.includes(`
5
5
  `),c=l.length;for(c>0&&l.includes("unstyle")&&(l=[...new Set(["unstyle",...l])].reverse());c-- >0;)a=e(n.styles[l[c]],a,d);return a},i=(s,l,a)=>{n.styles[s]=t({name:s,codes:l}),(n.keys[a]||(n.keys[a]=[])).push(s),Reflect.defineProperty(n,s,{configurable:!0,enumerable:!0,set(c){n.alias(s,c)},get(){let c=y=>r(y,c.stack);return Reflect.setPrototypeOf(c,n),c.stack=this.stack?this.stack.concat(s):[s],c}})};return i("reset",[0,0],"modifier"),i("bold",[1,22],"modifier"),i("dim",[2,22],"modifier"),i("italic",[3,23],"modifier"),i("underline",[4,24],"modifier"),i("inverse",[7,27],"modifier"),i("hidden",[8,28],"modifier"),i("strikethrough",[9,29],"modifier"),i("black",[30,39],"color"),i("red",[31,39],"color"),i("green",[32,39],"color"),i("yellow",[33,39],"color"),i("blue",[34,39],"color"),i("magenta",[35,39],"color"),i("cyan",[36,39],"color"),i("white",[37,39],"color"),i("gray",[90,39],"color"),i("grey",[90,39],"color"),i("bgBlack",[40,49],"bg"),i("bgRed",[41,49],"bg"),i("bgGreen",[42,49],"bg"),i("bgYellow",[43,49],"bg"),i("bgBlue",[44,49],"bg"),i("bgMagenta",[45,49],"bg"),i("bgCyan",[46,49],"bg"),i("bgWhite",[47,49],"bg"),i("blackBright",[90,39],"bright"),i("redBright",[91,39],"bright"),i("greenBright",[92,39],"bright"),i("yellowBright",[93,39],"bright"),i("blueBright",[94,39],"bright"),i("magentaBright",[95,39],"bright"),i("cyanBright",[96,39],"bright"),i("whiteBright",[97,39],"bright"),i("bgBlackBright",[100,49],"bgBright"),i("bgRedBright",[101,49],"bgBright"),i("bgGreenBright",[102,49],"bgBright"),i("bgYellowBright",[103,49],"bgBright"),i("bgBlueBright",[104,49],"bgBright"),i("bgMagentaBright",[105,49],"bgBright"),i("bgCyanBright",[106,49],"bgBright"),i("bgWhiteBright",[107,49],"bgBright"),n.ansiRegex=Ai,n.hasColor=n.hasAnsi=s=>(n.ansiRegex.lastIndex=0,typeof s=="string"&&s!==""&&n.ansiRegex.test(s)),n.alias=(s,l)=>{let a=typeof l=="string"?n[l]:l;if(typeof a!="function")throw new TypeError("Expected alias to be the name of an existing color (string) or a function");a.stack||(Reflect.defineProperty(a,"name",{value:s}),n.styles[s]=a,a.stack=[s]),Reflect.defineProperty(n,s,{configurable:!0,enumerable:!0,set(d){n.alias(s,d)},get(){let d=c=>r(c,d.stack);return Reflect.setPrototypeOf(d,n),d.stack=this.stack?this.stack.concat(a.stack):a.stack,d}})},n.theme=s=>{if(!Oi(s))throw new TypeError("Expected theme to be an object");for(let l of Object.keys(s))n.alias(l,s[l]);return n},n.alias("unstyle",s=>typeof s=="string"&&s!==""?(n.ansiRegex.lastIndex=0,s.replace(n.ansiRegex,"")):""),n.alias("noop",s=>s),n.none=n.clear=n.noop,n.stripColor=n.unstyle,n.symbols=Dr(),n.define=i,n};er.exports=Pr();er.exports.create=Pr});var Gr=he((yl,Vr)=>{Vr.exports=function(n){var t={};function e(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return n[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=n,e.c=t,e.i=function(r){return r},e.d=function(r,i,s){e.o(r,i)||Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:s})},e.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return e.d(i,"a",i),i},e.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},e.p="",e(e.s=14)}([function(n,t){n.exports=require("path")},function(n,t,e){"use strict";t.__esModule=!0;var r=e(173),i=s(r);function s(l){return l&&l.__esModule?l:{default:l}}t.default=function(l){return function(){var a=l.apply(this,arguments);return new i.default(function(d,c){function y(h,A){try{var x=a[h](A),g=x.value}catch(C){c(C);return}if(x.done)d(g);else return i.default.resolve(g).then(function(C){y("next",C)},function(C){y("throw",C)})}return y("next")})}}},function(n,t){n.exports=require("util")},function(n,t){n.exports=require("fs")},function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});class r extends Error{constructor(c,y){super(c),this.code=y}}t.MessageError=r;class i extends r{constructor(c,y,h){super(c,y),this.process=h}}t.ProcessSpawnError=i;class s extends r{}t.SecurityError=s;class l extends r{}t.ProcessTermError=l;class a extends Error{constructor(c,y){super(c),this.responseCode=y}}t.ResponseError=a},function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getFirstSuitableFolder=t.readFirstAvailableStream=t.makeTempDir=t.hardlinksWork=t.writeFilePreservingEol=t.getFileSizeOnDisk=t.walk=t.symlink=t.find=t.readJsonAndFile=t.readJson=t.readFileAny=t.hardlinkBulk=t.copyBulk=t.unlink=t.glob=t.link=t.chmod=t.lstat=t.exists=t.mkdirp=t.stat=t.access=t.rename=t.readdir=t.realpath=t.readlink=t.writeFile=t.open=t.readFileBuffer=t.lockQueue=t.constants=void 0;var r;function i(){return r=B(e(1))}let s=(()=>{var K=(0,(r||i()).default)(function*(G,U,j,V){let te=(()=>{var se=(0,(r||i()).default)(function*(Le){let ge=Le.src,re=Le.dest,Rt=Le.type,He=Le.onFresh||Je,ye=Le.onDone||Je;if(oe.has(re.toLowerCase())?V.verbose(`The case-insensitive file ${re} shouldn't be copied twice in one bulk copy`):oe.add(re.toLowerCase()),Rt==="symlink"){yield Ee((o||u()).default.dirname(re)),He(),Re.symlink.push({dest:re,linkname:ge}),ye();return}if(U.ignoreBasenames.indexOf((o||u()).default.basename(ge))>=0)return;let be=yield Ce(ge),rt;be.isDirectory()&&(rt=yield Se(ge));let Ne;try{Ne=yield Ce(re)}catch(ke){if(ke.code!=="ENOENT")throw ke}if(Ne){let ke=be.isSymbolicLink()&&Ne.isSymbolicLink(),nt=be.isDirectory()&&Ne.isDirectory(),qe=be.isFile()&&Ne.isFile();if(qe&&de.has(re)){ye(),V.verbose(V.lang("verboseFileSkipArtifact",ge));return}if(qe&&be.size===Ne.size&&(0,(X||Q()).fileDatesEqual)(be.mtime,Ne.mtime)){ye(),V.verbose(V.lang("verboseFileSkip",ge,re,be.size,+be.mtime));return}if(ke){let Oe=yield ae(ge);if(Oe===(yield ae(re))){ye(),V.verbose(V.lang("verboseFileSkipSymlink",ge,re,Oe));return}}if(nt){let Oe=yield Se(re);yt(rt,"src files not initialised");for(var Ye=Oe,lt=Array.isArray(Ye),je=0,Ye=lt?Ye:Ye[Symbol.iterator]();;){var Et;if(lt){if(je>=Ye.length)break;Et=Ye[je++]}else{if(je=Ye.next(),je.done)break;Et=je.value}let ft=Et;if(rt.indexOf(ft)<0){let it=(o||u()).default.join(re,ft);if(j.add(it),(yield Ce(it)).isDirectory())for(var Qe=yield Se(it),ut=Array.isArray(Qe),Ue=0,Qe=ut?Qe:Qe[Symbol.iterator]();;){var Tt;if(ut){if(Ue>=Qe.length)break;Tt=Qe[Ue++]}else{if(Ue=Qe.next(),Ue.done)break;Tt=Ue.value}let qt=Tt;j.add((o||u()).default.join(it,qt))}}}}}if(Ne&&Ne.isSymbolicLink()&&(yield(0,(X||Q()).unlink)(re),Ne=null),be.isSymbolicLink()){He();let ke=yield ae(ge);Re.symlink.push({dest:re,linkname:ke}),ye()}else if(be.isDirectory()){Ne||(V.verbose(V.lang("verboseFileFolder",re)),yield Ee(re));let ke=re.split((o||u()).default.sep);for(;ke.length;)oe.add(ke.join((o||u()).default.sep).toLowerCase()),ke.pop();yt(rt,"src files not initialised");let nt=rt.length;nt||ye();for(var Ze=rt,ct=Array.isArray(Ze),Xe=0,Ze=ct?Ze:Ze[Symbol.iterator]();;){var we;if(ct){if(Xe>=Ze.length)break;we=Ze[Xe++]}else{if(Xe=Ze.next(),Xe.done)break;we=Xe.value}let qe=we;G.push({dest:(o||u()).default.join(re,qe),onFresh:He,onDone:function(Oe){function ft(){return Oe.apply(this,arguments)}return ft.toString=function(){return Oe.toString()},ft}(function(){--nt===0&&ye()}),src:(o||u()).default.join(ge,qe)})}}else if(be.isFile())He(),Re.file.push({src:ge,dest:re,atime:be.atime,mtime:be.mtime,mode:be.mode}),ye();else throw new Error(`unsure how to copy this: ${ge}`)});return function(ge){return se.apply(this,arguments)}})(),de=new Set(U.artifactFiles||[]),oe=new Set;for(var ie=G,le=Array.isArray(ie),ne=0,ie=le?ie:ie[Symbol.iterator]();;){var $e;if(le){if(ne>=ie.length)break;$e=ie[ne++]}else{if(ne=ie.next(),ne.done)break;$e=ne.value}let se=$e,Le=se.onDone;se.onDone=function(){U.onProgress(se.dest),Le&&Le()}}U.onStart(G.length);let Re={file:[],symlink:[],link:[]};for(;G.length;){let se=G.splice(0,dt);yield Promise.all(se.map(te))}for(var De=de,at=Array.isArray(De),ze=0,De=at?De:De[Symbol.iterator]();;){var gt;if(at){if(ze>=De.length)break;gt=De[ze++]}else{if(ze=De.next(),ze.done)break;gt=ze.value}let se=gt;j.has(se)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",se)),j.delete(se))}for(var Pe=j,At=Array.isArray(Pe),Ke=0,Pe=At?Pe:Pe[Symbol.iterator]();;){var pt;if(At){if(Ke>=Pe.length)break;pt=Pe[Ke++]}else{if(Ke=Pe.next(),Ke.done)break;pt=Ke.value}let se=pt;oe.has(se.toLowerCase())&&j.delete(se)}return Re});return function(U,j,V,te){return K.apply(this,arguments)}})(),l=(()=>{var K=(0,(r||i()).default)(function*(G,U,j,V){let te=(()=>{var se=(0,(r||i()).default)(function*(Le){let ge=Le.src,re=Le.dest,Rt=Le.onFresh||Je,He=Le.onDone||Je;if(oe.has(re.toLowerCase())){He();return}if(oe.add(re.toLowerCase()),U.ignoreBasenames.indexOf((o||u()).default.basename(ge))>=0)return;let ye=yield Ce(ge),be;ye.isDirectory()&&(be=yield Se(ge));let rt=yield We(re);if(rt){let we=yield Ce(re),ke=ye.isSymbolicLink()&&we.isSymbolicLink(),nt=ye.isDirectory()&&we.isDirectory(),qe=ye.isFile()&&we.isFile();if(ye.mode!==we.mode)try{yield Te(re,ye.mode)}catch(Oe){V.verbose(Oe)}if(qe&&de.has(re)){He(),V.verbose(V.lang("verboseFileSkipArtifact",ge));return}if(qe&&ye.ino!==null&&ye.ino===we.ino){He(),V.verbose(V.lang("verboseFileSkip",ge,re,ye.ino));return}if(ke){let Oe=yield ae(ge);if(Oe===(yield ae(re))){He(),V.verbose(V.lang("verboseFileSkipSymlink",ge,re,Oe));return}}if(nt){let Oe=yield Se(re);yt(be,"src files not initialised");for(var je=Oe,Ne=Array.isArray(je),lt=0,je=Ne?je:je[Symbol.iterator]();;){var Ye;if(Ne){if(lt>=je.length)break;Ye=je[lt++]}else{if(lt=je.next(),lt.done)break;Ye=lt.value}let ft=Ye;if(be.indexOf(ft)<0){let it=(o||u()).default.join(re,ft);if(j.add(it),(yield Ce(it)).isDirectory())for(var Ue=yield Se(it),Et=Array.isArray(Ue),ut=0,Ue=Et?Ue:Ue[Symbol.iterator]();;){var Qe;if(Et){if(ut>=Ue.length)break;Qe=Ue[ut++]}else{if(ut=Ue.next(),ut.done)break;Qe=ut.value}let qt=Qe;j.add((o||u()).default.join(it,qt))}}}}}if(ye.isSymbolicLink()){Rt();let we=yield ae(ge);Re.symlink.push({dest:re,linkname:we}),He()}else if(ye.isDirectory()){V.verbose(V.lang("verboseFileFolder",re)),yield Ee(re);let we=re.split((o||u()).default.sep);for(;we.length;)oe.add(we.join((o||u()).default.sep).toLowerCase()),we.pop();yt(be,"src files not initialised");let ke=be.length;ke||He();for(var Xe=be,Tt=Array.isArray(Xe),ct=0,Xe=Tt?Xe:Xe[Symbol.iterator]();;){var Ze;if(Tt){if(ct>=Xe.length)break;Ze=Xe[ct++]}else{if(ct=Xe.next(),ct.done)break;Ze=ct.value}let nt=Ze;G.push({onFresh:Rt,src:(o||u()).default.join(ge,nt),dest:(o||u()).default.join(re,nt),onDone:function(qe){function Oe(){return qe.apply(this,arguments)}return Oe.toString=function(){return qe.toString()},Oe}(function(){--ke===0&&He()})})}}else if(ye.isFile())Rt(),Re.link.push({src:ge,dest:re,removeDest:rt}),He();else throw new Error(`unsure how to copy this: ${ge}`)});return function(ge){return se.apply(this,arguments)}})(),de=new Set(U.artifactFiles||[]),oe=new Set;for(var ie=G,le=Array.isArray(ie),ne=0,ie=le?ie:ie[Symbol.iterator]();;){var $e;if(le){if(ne>=ie.length)break;$e=ie[ne++]}else{if(ne=ie.next(),ne.done)break;$e=ne.value}let se=$e,Le=se.onDone||Je;se.onDone=function(){U.onProgress(se.dest),Le()}}U.onStart(G.length);let Re={file:[],symlink:[],link:[]};for(;G.length;){let se=G.splice(0,dt);yield Promise.all(se.map(te))}for(var De=de,at=Array.isArray(De),ze=0,De=at?De:De[Symbol.iterator]();;){var gt;if(at){if(ze>=De.length)break;gt=De[ze++]}else{if(ze=De.next(),ze.done)break;gt=ze.value}let se=gt;j.has(se)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",se)),j.delete(se))}for(var Pe=j,At=Array.isArray(Pe),Ke=0,Pe=At?Pe:Pe[Symbol.iterator]();;){var pt;if(At){if(Ke>=Pe.length)break;pt=Pe[Ke++]}else{if(Ke=Pe.next(),Ke.done)break;pt=Ke.value}let se=pt;oe.has(se.toLowerCase())&&j.delete(se)}return Re});return function(U,j,V,te){return K.apply(this,arguments)}})(),a=t.copyBulk=(()=>{var K=(0,(r||i()).default)(function*(G,U,j){let V={onStart:j&&j.onStart||Je,onProgress:j&&j.onProgress||Je,possibleExtraneous:j?j.possibleExtraneous:new Set,ignoreBasenames:j&&j.ignoreBasenames||[],artifactFiles:j&&j.artifactFiles||[]},te=yield s(G,V,V.possibleExtraneous,U);V.onStart(te.file.length+te.symlink.length+te.link.length);let de=te.file,oe=new Map;yield(b||L()).queue(de,(()=>{var ne=(0,(r||i()).default)(function*(ie){let $e;for(;$e=oe.get(ie.dest);)yield $e;U.verbose(U.lang("verboseFileCopy",ie.src,ie.dest));let Re=(0,(X||Q()).copyFile)(ie,function(){return oe.delete(ie.dest)});return oe.set(ie.dest,Re),V.onProgress(ie.dest),Re});return function(ie){return ne.apply(this,arguments)}})(),dt);let le=te.symlink;yield(b||L()).queue(le,function(ne){let ie=(o||u()).default.resolve((o||u()).default.dirname(ne.dest),ne.linkname);return U.verbose(U.lang("verboseFileSymlink",ne.dest,ie)),x(ie,ne.dest)})});return function(U,j,V){return K.apply(this,arguments)}})(),d=t.hardlinkBulk=(()=>{var K=(0,(r||i()).default)(function*(G,U,j){let V={onStart:j&&j.onStart||Je,onProgress:j&&j.onProgress||Je,possibleExtraneous:j?j.possibleExtraneous:new Set,artifactFiles:j&&j.artifactFiles||[],ignoreBasenames:[]},te=yield l(G,V,V.possibleExtraneous,U);V.onStart(te.file.length+te.symlink.length+te.link.length);let de=te.link;yield(b||L()).queue(de,(()=>{var le=(0,(r||i()).default)(function*(ne){U.verbose(U.lang("verboseFileLink",ne.src,ne.dest)),ne.removeDest&&(yield(0,(X||Q()).unlink)(ne.dest)),yield Mt(ne.src,ne.dest)});return function(ne){return le.apply(this,arguments)}})(),dt);let oe=te.symlink;yield(b||L()).queue(oe,function(le){let ne=(o||u()).default.resolve((o||u()).default.dirname(le.dest),le.linkname);return U.verbose(U.lang("verboseFileSymlink",le.dest,ne)),x(ne,le.dest)})});return function(U,j,V){return K.apply(this,arguments)}})(),c=t.readFileAny=(()=>{var K=(0,(r||i()).default)(function*(G){for(var V=G,U=Array.isArray(V),j=0,V=U?V:V[Symbol.iterator]();;){var te;if(U){if(j>=V.length)break;te=V[j++]}else{if(j=V.next(),j.done)break;te=j.value}let de=te;if(yield We(de))return Zt(de)}return null});return function(U){return K.apply(this,arguments)}})(),y=t.readJson=(()=>{var K=(0,(r||i()).default)(function*(G){return(yield h(G)).object});return function(U){return K.apply(this,arguments)}})(),h=t.readJsonAndFile=(()=>{var K=(0,(r||i()).default)(function*(G){let U=yield Zt(G);try{return{object:(0,(F||H()).default)(JSON.parse(Ot(U))),content:U}}catch(j){throw j.message=`${G}: ${j.message}`,j}});return function(U){return K.apply(this,arguments)}})(),A=t.find=(()=>{var K=(0,(r||i()).default)(function*(G,U){let j=U.split((o||u()).default.sep);for(;j.length;){let V=j.concat(G).join((o||u()).default.sep);if(yield We(V))return V;j.pop()}return!1});return function(U,j){return K.apply(this,arguments)}})(),x=t.symlink=(()=>{var K=(0,(r||i()).default)(function*(G,U){try{if((yield Ce(U)).isSymbolicLink()&&(yield Ae(U))===G)return}catch(j){if(j.code!=="ENOENT")throw j}if(yield(0,(X||Q()).unlink)(U),process.platform==="win32")yield Ft(G,U,"junction");else{let j;try{j=(o||u()).default.relative((E||S()).default.realpathSync((o||u()).default.dirname(U)),(E||S()).default.realpathSync(G))}catch(V){if(V.code!=="ENOENT")throw V;j=(o||u()).default.relative((o||u()).default.dirname(U),G)}yield Ft(j||".",U)}});return function(U,j){return K.apply(this,arguments)}})(),g=t.walk=(()=>{var K=(0,(r||i()).default)(function*(G,U,j=new Set){let V=[],te=yield Se(G);j.size&&(te=te.filter(function(ie){return!j.has(ie)}));for(var le=te,de=Array.isArray(le),oe=0,le=de?le:le[Symbol.iterator]();;){var ne;if(de){if(oe>=le.length)break;ne=le[oe++]}else{if(oe=le.next(),oe.done)break;ne=oe.value}let ie=ne,$e=U?(o||u()).default.join(U,ie):ie,Re=(o||u()).default.join(G,ie),at=yield Ce(Re);V.push({relative:$e,basename:ie,absolute:Re,mtime:+at.mtime}),at.isDirectory()&&(V=V.concat(yield g(Re,$e,j)))}return V});return function(U,j){return K.apply(this,arguments)}})(),C=t.getFileSizeOnDisk=(()=>{var K=(0,(r||i()).default)(function*(G){let U=yield Ce(G),j=U.size,V=U.blksize;return Math.ceil(j/V)*V});return function(U){return K.apply(this,arguments)}})(),T=(()=>{var K=(0,(r||i()).default)(function*(G){if(!(yield We(G)))return;let U=yield Y(G);for(let j=0;j<U.length;++j){if(U[j]===hi)return`\r
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.19.2-dev.1721019702.82a7bb9",
3
+ "version": "4.19.2-dev.1721192498.5e74837",
4
4
  "description": "Stencil Node System.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",
@@ -1,4 +1,4 @@
1
1
  /*!
2
- Stencil Node System Worker v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var f=Object.create;var d=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var E=Object.getOwnPropertyNames;var y=Object.getPrototypeOf,R=Object.prototype.hasOwnProperty;var g=(n,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let e of E(t))!R.call(n,e)&&e!==r&&d(n,e,{get:()=>t[e],enumerable:!(s=p(t,e))||s.enumerable});return n};var c=(n,t,r)=>(r=n!=null?f(y(n)):{},g(t||!n||!n.__esModule?d(r,"default",{value:n,enumerable:!0}):r,n));var l=c(require("../../compiler/stencil.js")),m=c(require("./index.js"));var a=(n,t)=>{let r=e=>{e&&e.code==="ERR_IPC_CHANNEL_CLOSED"&&n.exit(0)},s=(e,o)=>{let i={stencilId:e,stencilRtnValue:null,stencilRtnError:"Error"};typeof o=="string"?i.stencilRtnError+=": "+o:o&&(o.stack?i.stencilRtnError+=": "+o.stack:o.message&&(i.stencilRtnError+=":"+o.message)),n.send(i,r)};n.on("message",async e=>{if(e&&typeof e.stencilId=="number")try{let o={stencilId:e.stencilId,stencilRtnValue:await t(e),stencilRtnError:null};n.send(o,r)}catch(o){s(e.stencilId,o)}}),n.on("unhandledRejection",e=>{s(-1,e)})};var k=m.createNodeSys({process}),M=l.createWorkerMessageHandler(k);a(process,M);
package/testing/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Testing v4.19.2-dev.1721019702.82a7bb9 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v4.19.2-dev.1721192498.5e74837 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
 
@@ -39,20 +39,20 @@ export declare class Jest27Stencil implements JestFacade {
39
39
  getJestSetupTestFramework(): typeof jestSetupTestFramework;
40
40
  getJestPreset(): Partial<{
41
41
  automock: boolean;
42
- bail: number | boolean;
42
+ bail: boolean | number;
43
43
  cache: boolean;
44
- cacheDirectory: string;
44
+ cacheDirectory: import("@jest/types/build/Config").Path;
45
45
  ci: boolean;
46
46
  clearMocks: boolean;
47
47
  changedFilesWithAncestor: boolean;
48
48
  changedSince: string;
49
49
  collectCoverage: boolean;
50
- collectCoverageFrom: string[];
50
+ collectCoverageFrom: Array<import("@jest/types/build/Config").Glob>;
51
51
  collectCoverageOnlyFrom: {
52
52
  [key: string]: boolean;
53
53
  };
54
54
  coverageDirectory: string;
55
- coveragePathIgnorePatterns: string[];
55
+ coveragePathIgnorePatterns: Array<string>;
56
56
  coverageProvider: "babel" | "v8";
57
57
  coverageReporters: import("@jest/types/build/Config").CoverageReporters;
58
58
  coverageThreshold: {
@@ -64,74 +64,74 @@ export declare class Jest27Stencil implements JestFacade {
64
64
  detectOpenHandles: boolean;
65
65
  displayName: string | import("@jest/types/build/Config").DisplayName;
66
66
  expand: boolean;
67
- extensionsToTreatAsEsm: string[];
68
- extraGlobals: string[];
69
- filter: string;
67
+ extensionsToTreatAsEsm: Array<import("@jest/types/build/Config").Path>;
68
+ extraGlobals: Array<string>;
69
+ filter: import("@jest/types/build/Config").Path;
70
70
  findRelatedTests: boolean;
71
- forceCoverageMatch: string[];
71
+ forceCoverageMatch: Array<import("@jest/types/build/Config").Glob>;
72
72
  forceExit: boolean;
73
73
  json: boolean;
74
74
  globals: import("@jest/types/build/Config").ConfigGlobals;
75
- globalSetup: string;
76
- globalTeardown: string;
75
+ globalSetup: string | null | undefined;
76
+ globalTeardown: string | null | undefined;
77
77
  haste: import("@jest/types/build/Config").HasteConfig;
78
78
  injectGlobals: boolean;
79
- reporters: (string | import("@jest/types/build/Config").ReporterConfig)[];
79
+ reporters: Array<string | import("@jest/types/build/Config").ReporterConfig>;
80
80
  logHeapUsage: boolean;
81
81
  lastCommit: boolean;
82
82
  listTests: boolean;
83
83
  maxConcurrency: number;
84
- maxWorkers: string | number;
85
- moduleDirectories: string[];
86
- moduleFileExtensions: string[];
87
- moduleLoader: string;
84
+ maxWorkers: number | string;
85
+ moduleDirectories: Array<string>;
86
+ moduleFileExtensions: Array<string>;
87
+ moduleLoader: import("@jest/types/build/Config").Path;
88
88
  moduleNameMapper: {
89
- [key: string]: string | string[];
89
+ [key: string]: string | Array<string>;
90
90
  };
91
- modulePathIgnorePatterns: string[];
92
- modulePaths: string[];
91
+ modulePathIgnorePatterns: Array<string>;
92
+ modulePaths: Array<string>;
93
93
  name: string;
94
94
  noStackTrace: boolean;
95
95
  notify: boolean;
96
96
  notifyMode: string;
97
97
  onlyChanged: boolean;
98
98
  onlyFailures: boolean;
99
- outputFile: string;
99
+ outputFile: import("@jest/types/build/Config").Path;
100
100
  passWithNoTests: boolean;
101
- preprocessorIgnorePatterns: string[];
102
- preset: string;
103
- prettierPath: string;
104
- projects: (string | import("@jest/types/build/Config").InitialProjectOptions)[];
105
- replname: string;
101
+ preprocessorIgnorePatterns: Array<import("@jest/types/build/Config").Glob>;
102
+ preset: string | null | undefined;
103
+ prettierPath: string | null | undefined;
104
+ projects: Array<import("@jest/types/build/Config").Glob | import("@jest/types/build/Config").InitialProjectOptions>;
105
+ replname: string | null | undefined;
106
106
  resetMocks: boolean;
107
107
  resetModules: boolean;
108
- resolver: string;
108
+ resolver: import("@jest/types/build/Config").Path | null | undefined;
109
109
  restoreMocks: boolean;
110
- rootDir: string;
111
- roots: string[];
110
+ rootDir: import("@jest/types/build/Config").Path;
111
+ roots: Array<import("@jest/types/build/Config").Path>;
112
112
  runner: string;
113
113
  runTestsByPath: boolean;
114
114
  scriptPreprocessor: string;
115
- setupFiles: string[];
116
- setupTestFrameworkScriptFile: string;
117
- setupFilesAfterEnv: string[];
115
+ setupFiles: Array<import("@jest/types/build/Config").Path>;
116
+ setupTestFrameworkScriptFile: import("@jest/types/build/Config").Path;
117
+ setupFilesAfterEnv: Array<import("@jest/types/build/Config").Path>;
118
118
  silent: boolean;
119
119
  skipFilter: boolean;
120
120
  skipNodeResolution: boolean;
121
121
  slowTestThreshold: number;
122
- snapshotResolver: string;
123
- snapshotSerializers: string[];
122
+ snapshotResolver: import("@jest/types/build/Config").Path;
123
+ snapshotSerializers: Array<import("@jest/types/build/Config").Path>;
124
124
  snapshotFormat: import("@jest/types/build/Config").PrettyFormatOptions;
125
125
  errorOnDeprecated: boolean;
126
126
  testEnvironment: string;
127
127
  testEnvironmentOptions: Record<string, unknown>;
128
128
  testFailureExitCode: string | number;
129
129
  testLocationInResults: boolean;
130
- testMatch: string[];
130
+ testMatch: Array<import("@jest/types/build/Config").Glob>;
131
131
  testNamePattern: string;
132
- testPathDirs: string[];
133
- testPathIgnorePatterns: string[];
134
- testRegex: string | string[];
132
+ testPathDirs: Array<import("@jest/types/build/Config").Path>;
133
+ testPathIgnorePatterns: Array<string>;
134
+ testRegex: string | Array<string>;
135
135
  testResultsProcessor: string;
136
136
  testRunner: string;
137
137
  testSequencer: string;
@@ -139,17 +139,17 @@ export declare class Jest27Stencil implements JestFacade {
139
139
  testTimeout: number;
140
140
  timers: "real" | "fake" | "modern" | "legacy";
141
141
  transform: {
142
- [regex: string]: string | import("@jest/types/build/Config").TransformerConfig;
142
+ [regex: string]: import("@jest/types/build/Config").Path | import("@jest/types/build/Config").TransformerConfig;
143
143
  };
144
- transformIgnorePatterns: string[];
145
- watchPathIgnorePatterns: string[];
146
- unmockedModulePathPatterns: string[];
144
+ transformIgnorePatterns: Array<import("@jest/types/build/Config").Glob>;
145
+ watchPathIgnorePatterns: Array<string>;
146
+ unmockedModulePathPatterns: Array<string>;
147
147
  updateSnapshot: boolean;
148
148
  useStderr: boolean;
149
149
  verbose?: boolean;
150
150
  watch: boolean;
151
151
  watchAll: boolean;
152
152
  watchman: boolean;
153
- watchPlugins: (string | [string, Record<string, unknown>])[];
153
+ watchPlugins: Array<string | [string, Record<string, unknown>]>;
154
154
  }>;
155
155
  }