@stencil/core 4.41.0 → 4.41.1-dev.1768194718.8f9efc5

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal",
3
- "version": "4.41.0",
3
+ "version": "4.41.1-dev.1768194718.8f9efc5",
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",
@@ -6,7 +6,8 @@
6
6
  * TypeScript will automatically import from this module in development mode.
7
7
  */
8
8
 
9
- import type { VNode } from '../stencil-public-runtime';
9
+ import type { VNode, JSXBase } from '../stencil-public-runtime';
10
+ import type { JSX as LocalJSX } from '../stencil-public-runtime';
10
11
 
11
12
  export { Fragment } from '../stencil-public-runtime';
12
13
 
@@ -21,3 +22,20 @@ export function jsxDEV(
21
22
  source?: any,
22
23
  self?: any,
23
24
  ): VNode;
25
+
26
+ /**
27
+ * JSX namespace for TypeScript's automatic JSX runtime.
28
+ * This is required for TypeScript to resolve JSX element types when using
29
+ * "jsx": "react-jsxdev" with "jsxImportSource": "@stencil/core".
30
+ */
31
+ export namespace JSX {
32
+ type BaseElements = LocalJSX.IntrinsicElements & JSXBase.IntrinsicElements;
33
+
34
+ export type IntrinsicElements = {
35
+ [K in keyof BaseElements]: BaseElements[K] & { children?: any };
36
+ } & {
37
+ [tagName: string]: any;
38
+ };
39
+
40
+ export type Element = VNode | VNode[] | null;
41
+ }
@@ -7,7 +7,8 @@
7
7
  * these modules instead of requiring manual `h` imports.
8
8
  */
9
9
 
10
- import type { VNode } from '../stencil-public-runtime';
10
+ import type { VNode, JSXBase } from '../stencil-public-runtime';
11
+ import type { JSX as LocalJSX } from '../stencil-public-runtime';
11
12
 
12
13
  export { Fragment } from '../stencil-public-runtime';
13
14
 
@@ -20,3 +21,20 @@ export function jsx(type: any, props: any, key?: string): VNode;
20
21
  * JSX runtime function for creating elements with static children.
21
22
  */
22
23
  export function jsxs(type: any, props: any, key?: string): VNode;
24
+
25
+ /**
26
+ + * JSX namespace for TypeScript's automatic JSX runtime.
27
+ + * This is required for TypeScript to resolve JSX element types when using
28
+ + * "jsx": "react-jsx" with "jsxImportSource": "@stencil/core".
29
+ + */
30
+ export namespace JSX {
31
+ type BaseElements = LocalJSX.IntrinsicElements & JSXBase.IntrinsicElements;
32
+
33
+ export type IntrinsicElements = {
34
+ [K in keyof BaseElements]: BaseElements[K] & { children?: any };
35
+ } & {
36
+ [tagName: string]: any;
37
+ };
38
+
39
+ export type Element = VNode | VNode[] | null;
40
+ }
@@ -618,7 +618,7 @@ export interface FunctionalUtilities {
618
618
  map: (children: VNode[], cb: (vnode: ChildNode, index: number, array: ChildNode[]) => ChildNode) => VNode[];
619
619
  }
620
620
  export interface FunctionalComponent<T = {}> {
621
- (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[];
621
+ (props: T, children: VNode[], utils: FunctionalUtilities): VNode | VNode[] | null;
622
622
  }
623
623
  /**
624
624
  * A Child VDOM node
@@ -3178,7 +3178,8 @@ var newVNode = (tag, text) => {
3178
3178
  const vnode = {
3179
3179
  $flags$: 0,
3180
3180
  $tag$: tag,
3181
- $text$: text,
3181
+ // Normalize undefined to null to prevent rendering "undefined" as text
3182
+ $text$: text != null ? text : null,
3182
3183
  $elm$: null,
3183
3184
  $children$: null
3184
3185
  };
@@ -4321,7 +4322,7 @@ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
4321
4322
  `The JSX ${newVNode2.$text$ !== null ? `"${newVNode2.$text$}" text` : `"${newVNode2.$tag$}" element`} node should not be shared within the same renderer. The renderer caches element lookups in order to improve performance. However, a side effect from this is that the exact same JSX node should not be reused. For more information please see https://stenciljs.com/docs/templating-jsx#avoid-shared-jsx-nodes`
4322
4323
  );
4323
4324
  }
4324
- if (import_app_data13.BUILD.vdomText && newVNode2.$text$ !== null) {
4325
+ if (import_app_data13.BUILD.vdomText && newVNode2.$text$ != null) {
4325
4326
  elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
4326
4327
  } else if (import_app_data13.BUILD.slotRelocation && newVNode2.$flags$ & 1 /* isSlotReference */) {
4327
4328
  elm = newVNode2.$elm$ = import_app_data13.BUILD.isDebug || import_app_data13.BUILD.hydrateServerSide ? slotReferenceDebugNode(newVNode2) : win.document.createTextNode("");
@@ -4593,7 +4594,7 @@ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
4593
4594
  const tag = newVNode2.$tag$;
4594
4595
  const text = newVNode2.$text$;
4595
4596
  let defaultHolder;
4596
- if (!import_app_data13.BUILD.vdomText || text === null) {
4597
+ if (!import_app_data13.BUILD.vdomText || text == null) {
4597
4598
  if (import_app_data13.BUILD.svg) {
4598
4599
  isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
4599
4600
  }
@@ -6158,11 +6159,22 @@ function setTagTransformer(transformer) {
6158
6159
 
6159
6160
  // src/runtime/vdom/jsx-dev-runtime.ts
6160
6161
  function jsxDEV(type, props, key, _isStaticChildren, _source, _self) {
6161
- const { children, ...rest } = props;
6162
- const vnodeData = key !== void 0 ? { ...rest, key } : rest;
6163
- if (Array.isArray(children)) {
6164
- return h(type, vnodeData, ...children);
6165
- } else if (children !== void 0) {
6162
+ const propsObj = props || {};
6163
+ const { children, ...rest } = propsObj;
6164
+ let vnodeData = rest;
6165
+ if (key !== void 0 && !("key" in rest)) {
6166
+ vnodeData = { ...rest, key };
6167
+ }
6168
+ if (vnodeData && Object.keys(vnodeData).length === 0) {
6169
+ vnodeData = null;
6170
+ }
6171
+ if (children !== void 0) {
6172
+ if (Array.isArray(children)) {
6173
+ return h(type, vnodeData, ...children);
6174
+ }
6175
+ if (typeof children === "object" && children !== null && "$flags$" in children) {
6176
+ return h(type, vnodeData, children);
6177
+ }
6166
6178
  return h(type, vnodeData, children);
6167
6179
  }
6168
6180
  return h(type, vnodeData);
@@ -6173,7 +6185,7 @@ function jsx(type, props, key) {
6173
6185
  const propsObj = props || {};
6174
6186
  const { children, ...rest } = propsObj;
6175
6187
  let vnodeData = rest;
6176
- if (key !== void 0) {
6188
+ if (key !== void 0 && !("key" in rest)) {
6177
6189
  vnodeData = { ...rest, key };
6178
6190
  }
6179
6191
  if (vnodeData && Object.keys(vnodeData).length === 0) {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/internal/testing",
3
- "version": "4.41.0",
3
+ "version": "4.41.1-dev.1768194718.8f9efc5",
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.41.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc (CommonJS) v4.41.1-dev.1768194718.8f9efc5 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __defProp = Object.defineProperty;
@@ -9496,7 +9496,7 @@ var MockWindow = class {
9496
9496
  if (this.__timeouts == null) {
9497
9497
  this.__timeouts = /* @__PURE__ */ new Set();
9498
9498
  }
9499
- ms = Math.min(ms, this.__maxTimeout);
9499
+ ms = Math.min(ms != null ? ms : 0, this.__maxTimeout);
9500
9500
  if (this.__allowInterval) {
9501
9501
  const intervalId = this.__setInterval(() => {
9502
9502
  if (this.__timeouts) {
@@ -9544,7 +9544,7 @@ var MockWindow = class {
9544
9544
  if (this.__timeouts == null) {
9545
9545
  this.__timeouts = /* @__PURE__ */ new Set();
9546
9546
  }
9547
- ms = Math.min(ms, this.__maxTimeout);
9547
+ ms = Math.min(ms != null ? ms : 0, this.__maxTimeout);
9548
9548
  const timeoutId = this.__setTimeout.call(
9549
9549
  nativeWindow || this,
9550
9550
  () => {
package/mock-doc/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Mock Doc v4.41.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Mock Doc v4.41.1-dev.1768194718.8f9efc5 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  var __defProp = Object.defineProperty;
5
5
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -9444,7 +9444,7 @@ var MockWindow = class {
9444
9444
  if (this.__timeouts == null) {
9445
9445
  this.__timeouts = /* @__PURE__ */ new Set();
9446
9446
  }
9447
- ms = Math.min(ms, this.__maxTimeout);
9447
+ ms = Math.min(ms != null ? ms : 0, this.__maxTimeout);
9448
9448
  if (this.__allowInterval) {
9449
9449
  const intervalId = this.__setInterval(() => {
9450
9450
  if (this.__timeouts) {
@@ -9492,7 +9492,7 @@ var MockWindow = class {
9492
9492
  if (this.__timeouts == null) {
9493
9493
  this.__timeouts = /* @__PURE__ */ new Set();
9494
9494
  }
9495
- ms = Math.min(ms, this.__maxTimeout);
9495
+ ms = Math.min(ms != null ? ms : 0, this.__maxTimeout);
9496
9496
  const timeoutId = this.__setTimeout.call(
9497
9497
  nativeWindow || this,
9498
9498
  () => {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/mock-doc",
3
- "version": "4.41.0",
3
+ "version": "4.41.1-dev.1768194718.8f9efc5",
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.41.0",
3
+ "version": "4.41.1-dev.1768194718.8f9efc5",
4
4
  "license": "MIT",
5
5
  "main": "./internal/stencil-core/index.cjs",
6
6
  "module": "./internal/stencil-core/index.js",
@@ -1,5 +1,5 @@
1
1
  /*
2
- Stencil Screenshot v4.41.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot v4.41.1-dev.1768194718.8f9efc5 | 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.41.0",
3
+ "version": "4.41.1-dev.1768194718.8f9efc5",
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.41.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Screenshot Pixel Match v4.41.1-dev.1768194718.8f9efc5 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
  var __create = Object.create;
package/sys/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Stencil Node System v4.41.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System v4.41.1-dev.1768194718.8f9efc5 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";var Eo=Object.create;var ln=Object.defineProperty;var So=Object.getOwnPropertyDescriptor;var $o=Object.getOwnPropertyNames;var xo=Object.getPrototypeOf,To=Object.prototype.hasOwnProperty;var Hr=r=>{throw TypeError(r)};var Co=(r,e,t)=>e in r?ln(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t;var ge=(r,e)=>()=>(e||r((e={exports:{}}).exports,e),e.exports),Br=(r,e)=>{for(var t in e)ln(r,t,{get:e[t],enumerable:!0})},jr=(r,e,t,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of $o(e))!To.call(r,s)&&s!==t&&ln(r,s,{get:()=>e[s],enumerable:!(n=So(e,s))||n.enumerable});return r};var be=(r,e,t)=>(t=r!=null?Eo(xo(r)):{},jr(e||!r||!r.__esModule?ln(t,"default",{value:r,enumerable:!0}):t,r)),Lo=r=>jr(ln({},"__esModule",{value:!0}),r);var Yn=(r,e,t)=>Co(r,typeof e!="symbol"?e+"":e,t),Qn=(r,e,t)=>e.has(r)||Hr("Cannot "+t);var W=(r,e,t)=>(Qn(r,e,"read from private field"),t?t.call(r):e.get(r)),ze=(r,e,t)=>e.has(r)?Hr("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(r):e.set(r,t),Se=(r,e,t,n)=>(Qn(r,e,"write to private field"),n?n.call(r,t):e.set(r,t),t),wt=(r,e,t)=>(Qn(r,e,"access private method"),t);var Xr=ge((bu,cn)=>{"use strict";var Ro=typeof process<"u"&&process.env.TERM_PROGRAM==="Hyper",Ao=typeof process<"u"&&process.platform==="win32",Ur=typeof process<"u"&&process.platform==="linux",Zn={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"},zr=Object.assign({},Zn,{check:"\u221A",cross:"\xD7",ellipsisLarge:"...",ellipsis:"...",info:"i",questionSmall:"?",pointer:">",pointerSmall:"\xBB",radioOff:"( )",radioOn:"(*)",warning:"\u203C"}),Wr=Object.assign({},Zn,{ballotCross:"\u2718",check:"\u2714",cross:"\u2716",ellipsisLarge:"\u22EF",ellipsis:"\u2026",info:"\u2139",questionFull:"\uFF1F",questionSmall:"\uFE56",pointer:Ur?"\u25B8":"\u276F",pointerSmall:Ur?"\u2023":"\u203A",radioOff:"\u25EF",radioOn:"\u25C9",warning:"\u26A0"});cn.exports=Ao&&!Ro?zr:Wr;Reflect.defineProperty(cn.exports,"common",{enumerable:!1,value:Zn});Reflect.defineProperty(cn.exports,"windows",{enumerable:!1,value:zr});Reflect.defineProperty(cn.exports,"other",{enumerable:!1,value:Wr})});var Gr=ge((Eu,qn)=>{"use strict";var Oo=r=>r!==null&&typeof r=="object"&&!Array.isArray(r),Do=/[\u001b\u009b][[\]#;?()]*(?:(?:(?:[^\W_]*;?[^\W_]*)\u0007)|(?:(?:[0-9]{1,4}(;[0-9]{0,4})*)?[~0-9=<>cf-nqrtyA-PRZ]))/g,No=()=>typeof process<"u"?process.env.FORCE_COLOR!=="0":!1,Vr=()=>{let r={enabled:No(),visible:!0,styles:{},keys:{}},e=i=>{let o=i.open=`\x1B[${i.codes[0]}m`,a=i.close=`\x1B[${i.codes[1]}m`,u=i.regex=new RegExp(`\\u001b\\[${i.codes[1]}m`,"g");return i.wrap=(c,p)=>{c.includes(a)&&(c=c.replace(u,a+o));let m=o+c+a;return p?m.replace(/\r*\n/g,`${a}$&${o}`):m},i},t=(i,o,a)=>typeof i=="function"?i(o):i.wrap(o,a),n=(i,o)=>{if(i===""||i==null)return"";if(r.enabled===!1)return i;if(r.visible===!1)return"";let a=""+i,u=a.includes(`
5
5
  `),c=o.length;for(c>0&&o.includes("unstyle")&&(o=[...new Set(["unstyle",...o])].reverse());c-- >0;)a=t(r.styles[o[c]],a,u);return a},s=(i,o,a)=>{r.styles[i]=e({name:i,codes:o}),(r.keys[a]||(r.keys[a]=[])).push(i),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(c){r.alias(i,c)},get(){let c=p=>n(p,c.stack);return Reflect.setPrototypeOf(c,r),c.stack=this.stack?this.stack.concat(i):[i],c}})};return s("reset",[0,0],"modifier"),s("bold",[1,22],"modifier"),s("dim",[2,22],"modifier"),s("italic",[3,23],"modifier"),s("underline",[4,24],"modifier"),s("inverse",[7,27],"modifier"),s("hidden",[8,28],"modifier"),s("strikethrough",[9,29],"modifier"),s("black",[30,39],"color"),s("red",[31,39],"color"),s("green",[32,39],"color"),s("yellow",[33,39],"color"),s("blue",[34,39],"color"),s("magenta",[35,39],"color"),s("cyan",[36,39],"color"),s("white",[37,39],"color"),s("gray",[90,39],"color"),s("grey",[90,39],"color"),s("bgBlack",[40,49],"bg"),s("bgRed",[41,49],"bg"),s("bgGreen",[42,49],"bg"),s("bgYellow",[43,49],"bg"),s("bgBlue",[44,49],"bg"),s("bgMagenta",[45,49],"bg"),s("bgCyan",[46,49],"bg"),s("bgWhite",[47,49],"bg"),s("blackBright",[90,39],"bright"),s("redBright",[91,39],"bright"),s("greenBright",[92,39],"bright"),s("yellowBright",[93,39],"bright"),s("blueBright",[94,39],"bright"),s("magentaBright",[95,39],"bright"),s("cyanBright",[96,39],"bright"),s("whiteBright",[97,39],"bright"),s("bgBlackBright",[100,49],"bgBright"),s("bgRedBright",[101,49],"bgBright"),s("bgGreenBright",[102,49],"bgBright"),s("bgYellowBright",[103,49],"bgBright"),s("bgBlueBright",[104,49],"bgBright"),s("bgMagentaBright",[105,49],"bgBright"),s("bgCyanBright",[106,49],"bgBright"),s("bgWhiteBright",[107,49],"bgBright"),r.ansiRegex=Do,r.hasColor=r.hasAnsi=i=>(r.ansiRegex.lastIndex=0,typeof i=="string"&&i!==""&&r.ansiRegex.test(i)),r.alias=(i,o)=>{let a=typeof o=="string"?r[o]:o;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:i}),r.styles[i]=a,a.stack=[i]),Reflect.defineProperty(r,i,{configurable:!0,enumerable:!0,set(u){r.alias(i,u)},get(){let u=c=>n(c,u.stack);return Reflect.setPrototypeOf(u,r),u.stack=this.stack?this.stack.concat(a.stack):a.stack,u}})},r.theme=i=>{if(!Oo(i))throw new TypeError("Expected theme to be an object");for(let o of Object.keys(i))r.alias(o,i[o]);return r},r.alias("unstyle",i=>typeof i=="string"&&i!==""?(r.ansiRegex.lastIndex=0,i.replace(r.ansiRegex,"")):""),r.alias("noop",i=>i),r.none=r.clear=r.noop,r.stripColor=r.unstyle,r.symbols=Xr(),r.define=s,r};qn.exports=Vr();qn.exports.create=Vr});var as=ge((ld,os)=>{"use strict";os.exports=ss;function ss(r,e,t){r instanceof RegExp&&(r=rs(r,t)),e instanceof RegExp&&(e=rs(e,t));var n=is(r,e,t);return n&&{start:n[0],end:n[1],pre:t.slice(0,n[0]),body:t.slice(n[0]+r.length,n[1]),post:t.slice(n[1]+e.length)}}function rs(r,e){var t=e.match(r);return t?t[0]:null}ss.range=is;function is(r,e,t){var n,s,i,o,a,u=t.indexOf(r),c=t.indexOf(e,u+1),p=u;if(u>=0&&c>0){if(r===e)return[u,c];for(n=[],i=t.length;p>=0&&!a;)p==u?(n.push(p),u=t.indexOf(r,p+1)):n.length==1?a=[n.pop(),c]:(s=n.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,p+1)),p=u<c&&u>=0?u:c;n.length&&(a=[i,o])}return a}});var ms=ge((cd,hs)=>{var ls=as();hs.exports=_o;var cs="\0SLASH"+Math.random()+"\0",us="\0OPEN"+Math.random()+"\0",ir="\0CLOSE"+Math.random()+"\0",ds="\0COMMA"+Math.random()+"\0",fs="\0PERIOD"+Math.random()+"\0";function sr(r){return parseInt(r,10)==r?parseInt(r,10):r.charCodeAt(0)}function Zo(r){return r.split("\\\\").join(cs).split("\\{").join(us).split("\\}").join(ir).split("\\,").join(ds).split("\\.").join(fs)}function qo(r){return r.split(cs).join("\\").split(us).join("{").split(ir).join("}").split(ds).join(",").split(fs).join(".")}function ps(r){if(!r)return[""];var e=[],t=ls("{","}",r);if(!t)return r.split(",");var n=t.pre,s=t.body,i=t.post,o=n.split(",");o[o.length-1]+="{"+s+"}";var a=ps(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function _o(r){return r?(r.substr(0,2)==="{}"&&(r="\\{\\}"+r.substr(2)),dn(Zo(r),!0).map(qo)):[]}function ea(r){return"{"+r+"}"}function ta(r){return/^-?0\d/.test(r)}function na(r,e){return r<=e}function ra(r,e){return r>=e}function dn(r,e){var t=[],n=ls("{","}",r);if(!n)return[r];var s=n.pre,i=n.post.length?dn(n.post,!1):[""];if(/\$$/.test(n.pre))for(var o=0;o<i.length;o++){var a=s+"{"+n.body+"}"+i[o];t.push(a)}else{var u=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(n.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(n.body),p=u||c,m=n.body.indexOf(",")>=0;if(!p&&!m)return n.post.match(/,(?!,).*\}/)?(r=n.pre+"{"+n.body+ir+n.post,dn(r)):[r];var S;if(p)S=n.body.split(/\.\./);else if(S=ps(n.body),S.length===1&&(S=dn(S[0],!1).map(ea),S.length===1))return i.map(function(L){return n.pre+S[0]+L});var T;if(p){var h=sr(S[0]),b=sr(S[1]),$=Math.max(S[0].length,S[1].length),D=S.length==3?Math.abs(sr(S[2])):1,A=na,I=b<h;I&&(D*=-1,A=ra);var w=S.some(ta);T=[];for(var g=h;A(g,b);g+=D){var x;if(c)x=String.fromCharCode(g),x==="\\"&&(x="");else if(x=String(g),w){var C=$-x.length;if(C>0){var O=new Array(C+1).join("0");g<0?x="-"+O+x.slice(1):x=O+x}}T.push(x)}}else{T=[];for(var P=0;P<S.length;P++)T.push.apply(T,dn(S[P],!1))}for(var P=0;P<T.length;P++)for(var o=0;o<i.length;o++){var a=s+T[P]+i[o];(!e||p||a)&&t.push(a)}}return t}});var Gs=ge((Vv,Vs)=>{Vs.exports=(function(r){var e={};function t(n){if(e[n])return e[n].exports;var s=e[n]={i:n,l:!1,exports:{}};return r[n].call(s.exports,s,s.exports,t),s.l=!0,s.exports}return t.m=r,t.c=e,t.i=function(n){return n},t.d=function(n,s,i){t.o(n,s)||Object.defineProperty(n,s,{configurable:!1,enumerable:!0,get:i})},t.n=function(n){var s=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(s,"a",s),s},t.o=function(n,s){return Object.prototype.hasOwnProperty.call(n,s)},t.p="",t(t.s=14)})([(function(r,e){r.exports=require("path")}),(function(r,e,t){"use strict";e.__esModule=!0;var n=t(173),s=i(n);function i(o){return o&&o.__esModule?o:{default:o}}e.default=function(o){return function(){var a=o.apply(this,arguments);return new s.default(function(u,c){function p(m,S){try{var T=a[m](S),h=T.value}catch(b){c(b);return}if(T.done)u(h);else return s.default.resolve(h).then(function(b){p("next",b)},function(b){p("throw",b)})}return p("next")})}}}),(function(r,e){r.exports=require("util")}),(function(r,e){r.exports=require("fs")}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0});class n extends Error{constructor(c,p){super(c),this.code=p}}e.MessageError=n;class s extends n{constructor(c,p,m){super(c,p),this.process=m}}e.ProcessSpawnError=s;class i extends n{}e.SecurityError=i;class o extends n{}e.ProcessTermError=o;class a extends Error{constructor(c,p){super(c),this.responseCode=p}}e.ResponseError=a}),(function(r,e,t){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getFirstSuitableFolder=e.readFirstAvailableStream=e.makeTempDir=e.hardlinksWork=e.writeFilePreservingEol=e.getFileSizeOnDisk=e.walk=e.symlink=e.find=e.readJsonAndFile=e.readJson=e.readFileAny=e.hardlinkBulk=e.copyBulk=e.unlink=e.glob=e.link=e.chmod=e.lstat=e.exists=e.mkdirp=e.stat=e.access=e.rename=e.readdir=e.realpath=e.readlink=e.writeFile=e.open=e.readFileBuffer=e.lockQueue=e.constants=void 0;var n;function s(){return n=F(t(1))}let i=(()=>{var Y=(0,(n||s()).default)(function*(G,U,j,V){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,an=we.type,Qe=we.onFresh||tt,$e=we.onDone||tt;if(le.has(re.toLowerCase())?V.verbose(`The case-insensitive file ${re} shouldn't be copied twice in one bulk copy`):le.add(re.toLowerCase()),an==="symlink"){yield Ce((l||d()).default.dirname(re)),Qe(),Fe.symlink.push({dest:re,linkname:me}),$e();return}if(U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let xe=yield Oe(me),St;xe.isDirectory()&&(St=yield Ne(me));let Ge;try{Ge=yield Oe(re)}catch(Ue){if(Ue.code!=="ENOENT")throw Ue}if(Ge){let Ue=xe.isSymbolicLink()&&Ge.isSymbolicLink(),$t=xe.isDirectory()&&Ge.isDirectory(),ht=xe.isFile()&&Ge.isFile();if(ht&&he.has(re)){$e(),V.verbose(V.lang("verboseFileSkipArtifact",me));return}if(ht&&xe.size===Ge.size&&(0,(z||Z()).fileDatesEqual)(xe.mtime,Ge.mtime)){$e(),V.verbose(V.lang("verboseFileSkip",me,re,xe.size,+xe.mtime));return}if(Ue){let ke=yield ce(me);if(ke===(yield ce(re))){$e(),V.verbose(V.lang("verboseFileSkipSymlink",me,re,ke));return}}if($t){let ke=yield Ne(re);Kt(St,"src files not initialised");for(var dt=ke,At=Array.isArray(dt),Ze=0,dt=At?dt:dt[Symbol.iterator]();;){var Qt;if(At){if(Ze>=dt.length)break;Qt=dt[Ze++]}else{if(Ze=dt.next(),Ze.done)break;Qt=Ze.value}let Nt=Qt;if(St.indexOf(Nt)<0){let xt=(l||d()).default.join(re,Nt);if(j.add(xt),(yield Oe(xt)).isDirectory())for(var ft=yield Ne(xt),Ot=Array.isArray(ft),qe=0,ft=Ot?ft:ft[Symbol.iterator]();;){var Zt;if(Ot){if(qe>=ft.length)break;Zt=ft[qe++]}else{if(qe=ft.next(),qe.done)break;Zt=qe.value}let Kn=Zt;j.add((l||d()).default.join(xt,Kn))}}}}}if(Ge&&Ge.isSymbolicLink()&&(yield(0,(z||Z()).unlink)(re),Ge=null),xe.isSymbolicLink()){Qe();let Ue=yield ce(me);Fe.symlink.push({dest:re,linkname:Ue}),$e()}else if(xe.isDirectory()){Ge||(V.verbose(V.lang("verboseFileFolder",re)),yield Ce(re));let Ue=re.split((l||d()).default.sep);for(;Ue.length;)le.add(Ue.join((l||d()).default.sep).toLowerCase()),Ue.pop();Kt(St,"src files not initialised");let $t=St.length;$t||$e();for(var pt=St,Dt=Array.isArray(pt),_e=0,pt=Dt?pt:pt[Symbol.iterator]();;){var je;if(Dt){if(_e>=pt.length)break;je=pt[_e++]}else{if(_e=pt.next(),_e.done)break;je=_e.value}let ht=je;G.push({dest:(l||d()).default.join(re,ht),onFresh:Qe,onDone:(function(ke){function Nt(){return ke.apply(this,arguments)}return Nt.toString=function(){return ke.toString()},Nt})(function(){--$t===0&&$e()}),src:(l||d()).default.join(me,ht)})}}else if(xe.isFile())Qe(),Fe.file.push({src:me,dest:re,atime:xe.atime,mtime:xe.mtime,mode:xe.mode}),$e();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=G,ue=Array.isArray(oe),ie=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(ie>=oe.length)break;Ye=oe[ie++]}else{if(ie=oe.next(),ie.done)break;Ye=ie.value}let ae=Ye,we=ae.onDone;ae.onDone=function(){U.onProgress(ae.dest),we&&we()}}U.onStart(G.length);let Fe={file:[],symlink:[],link:[]};for(;G.length;){let ae=G.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var He=he,Rt=Array.isArray(He),ct=0,He=Rt?He:He[Symbol.iterator]();;){var Ht;if(Rt){if(ct>=He.length)break;Ht=He[ct++]}else{if(ct=He.next(),ct.done)break;Ht=ct.value}let ae=Ht;j.has(ae)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Be=j,on=Array.isArray(Be),ut=0,Be=on?Be:Be[Symbol.iterator]();;){var Bt;if(on){if(ut>=Be.length)break;Bt=Be[ut++]}else{if(ut=Be.next(),ut.done)break;Bt=ut.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Fe});return function(U,j,V,ne){return Y.apply(this,arguments)}})(),o=(()=>{var Y=(0,(n||s()).default)(function*(G,U,j,V){let ne=(()=>{var ae=(0,(n||s()).default)(function*(we){let me=we.src,re=we.dest,an=we.onFresh||tt,Qe=we.onDone||tt;if(le.has(re.toLowerCase())){Qe();return}if(le.add(re.toLowerCase()),U.ignoreBasenames.indexOf((l||d()).default.basename(me))>=0)return;let $e=yield Oe(me),xe;$e.isDirectory()&&(xe=yield Ne(me));let St=yield lt(re);if(St){let je=yield Oe(re),Ue=$e.isSymbolicLink()&&je.isSymbolicLink(),$t=$e.isDirectory()&&je.isDirectory(),ht=$e.isFile()&&je.isFile();if($e.mode!==je.mode)try{yield Re(re,$e.mode)}catch(ke){V.verbose(ke)}if(ht&&he.has(re)){Qe(),V.verbose(V.lang("verboseFileSkipArtifact",me));return}if(ht&&$e.ino!==null&&$e.ino===je.ino){Qe(),V.verbose(V.lang("verboseFileSkip",me,re,$e.ino));return}if(Ue){let ke=yield ce(me);if(ke===(yield ce(re))){Qe(),V.verbose(V.lang("verboseFileSkipSymlink",me,re,ke));return}}if($t){let ke=yield Ne(re);Kt(xe,"src files not initialised");for(var Ze=ke,Ge=Array.isArray(Ze),At=0,Ze=Ge?Ze:Ze[Symbol.iterator]();;){var dt;if(Ge){if(At>=Ze.length)break;dt=Ze[At++]}else{if(At=Ze.next(),At.done)break;dt=At.value}let Nt=dt;if(xe.indexOf(Nt)<0){let xt=(l||d()).default.join(re,Nt);if(j.add(xt),(yield Oe(xt)).isDirectory())for(var qe=yield Ne(xt),Qt=Array.isArray(qe),Ot=0,qe=Qt?qe:qe[Symbol.iterator]();;){var ft;if(Qt){if(Ot>=qe.length)break;ft=qe[Ot++]}else{if(Ot=qe.next(),Ot.done)break;ft=Ot.value}let Kn=ft;j.add((l||d()).default.join(xt,Kn))}}}}}if($e.isSymbolicLink()){an();let je=yield ce(me);Fe.symlink.push({dest:re,linkname:je}),Qe()}else if($e.isDirectory()){V.verbose(V.lang("verboseFileFolder",re)),yield Ce(re);let je=re.split((l||d()).default.sep);for(;je.length;)le.add(je.join((l||d()).default.sep).toLowerCase()),je.pop();Kt(xe,"src files not initialised");let Ue=xe.length;Ue||Qe();for(var _e=xe,Zt=Array.isArray(_e),Dt=0,_e=Zt?_e:_e[Symbol.iterator]();;){var pt;if(Zt){if(Dt>=_e.length)break;pt=_e[Dt++]}else{if(Dt=_e.next(),Dt.done)break;pt=Dt.value}let $t=pt;G.push({onFresh:an,src:(l||d()).default.join(me,$t),dest:(l||d()).default.join(re,$t),onDone:(function(ht){function ke(){return ht.apply(this,arguments)}return ke.toString=function(){return ht.toString()},ke})(function(){--Ue===0&&Qe()})})}}else if($e.isFile())an(),Fe.link.push({src:me,dest:re,removeDest:St}),Qe();else throw new Error(`unsure how to copy this: ${me}`)});return function(me){return ae.apply(this,arguments)}})(),he=new Set(U.artifactFiles||[]),le=new Set;for(var oe=G,ue=Array.isArray(oe),ie=0,oe=ue?oe:oe[Symbol.iterator]();;){var Ye;if(ue){if(ie>=oe.length)break;Ye=oe[ie++]}else{if(ie=oe.next(),ie.done)break;Ye=ie.value}let ae=Ye,we=ae.onDone||tt;ae.onDone=function(){U.onProgress(ae.dest),we()}}U.onStart(G.length);let Fe={file:[],symlink:[],link:[]};for(;G.length;){let ae=G.splice(0,Ft);yield Promise.all(ae.map(ne))}for(var He=he,Rt=Array.isArray(He),ct=0,He=Rt?He:He[Symbol.iterator]();;){var Ht;if(Rt){if(ct>=He.length)break;Ht=He[ct++]}else{if(ct=He.next(),ct.done)break;Ht=ct.value}let ae=Ht;j.has(ae)&&(V.verbose(V.lang("verboseFilePhantomExtraneous",ae)),j.delete(ae))}for(var Be=j,on=Array.isArray(Be),ut=0,Be=on?Be:Be[Symbol.iterator]();;){var Bt;if(on){if(ut>=Be.length)break;Bt=Be[ut++]}else{if(ut=Be.next(),ut.done)break;Bt=ut.value}let ae=Bt;le.has(ae.toLowerCase())&&j.delete(ae)}return Fe});return function(U,j,V,ne){return Y.apply(this,arguments)}})(),a=e.copyBulk=(()=>{var Y=(0,(n||s()).default)(function*(G,U,j){let V={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,ignoreBasenames:j&&j.ignoreBasenames||[],artifactFiles:j&&j.artifactFiles||[]},ne=yield i(G,V,V.possibleExtraneous,U);V.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.file,le=new Map;yield(E||R()).queue(he,(()=>{var ie=(0,(n||s()).default)(function*(oe){let Ye;for(;Ye=le.get(oe.dest);)yield Ye;U.verbose(U.lang("verboseFileCopy",oe.src,oe.dest));let Fe=(0,(z||Z()).copyFile)(oe,function(){return le.delete(oe.dest)});return le.set(oe.dest,Fe),V.onProgress(oe.dest),Fe});return function(oe){return ie.apply(this,arguments)}})(),Ft);let ue=ne.symlink;yield(E||R()).queue(ue,function(ie){let oe=(l||d()).default.resolve((l||d()).default.dirname(ie.dest),ie.linkname);return U.verbose(U.lang("verboseFileSymlink",ie.dest,oe)),T(oe,ie.dest)})});return function(U,j,V){return Y.apply(this,arguments)}})(),u=e.hardlinkBulk=(()=>{var Y=(0,(n||s()).default)(function*(G,U,j){let V={onStart:j&&j.onStart||tt,onProgress:j&&j.onProgress||tt,possibleExtraneous:j?j.possibleExtraneous:new Set,artifactFiles:j&&j.artifactFiles||[],ignoreBasenames:[]},ne=yield o(G,V,V.possibleExtraneous,U);V.onStart(ne.file.length+ne.symlink.length+ne.link.length);let he=ne.link;yield(E||R()).queue(he,(()=>{var ue=(0,(n||s()).default)(function*(ie){U.verbose(U.lang("verboseFileLink",ie.src,ie.dest)),ie.removeDest&&(yield(0,(z||Z()).unlink)(ie.dest)),yield $n(ie.src,ie.dest)});return function(ie){return ue.apply(this,arguments)}})(),Ft);let le=ne.symlink;yield(E||R()).queue(le,function(ue){let ie=(l||d()).default.resolve((l||d()).default.dirname(ue.dest),ue.linkname);return U.verbose(U.lang("verboseFileSymlink",ue.dest,ie)),T(ie,ue.dest)})});return function(U,j,V){return Y.apply(this,arguments)}})(),c=e.readFileAny=(()=>{var Y=(0,(n||s()).default)(function*(G){for(var V=G,U=Array.isArray(V),j=0,V=U?V:V[Symbol.iterator]();;){var ne;if(U){if(j>=V.length)break;ne=V[j++]}else{if(j=V.next(),j.done)break;ne=j.value}let he=ne;if(yield lt(he))return Jn(he)}return null});return function(U){return Y.apply(this,arguments)}})(),p=e.readJson=(()=>{var Y=(0,(n||s()).default)(function*(G){return(yield m(G)).object});return function(U){return Y.apply(this,arguments)}})(),m=e.readJsonAndFile=(()=>{var Y=(0,(n||s()).default)(function*(G){let U=yield Jn(G);try{return{object:(0,(M||B()).default)(JSON.parse(sn(U))),content:U}}catch(j){throw j.message=`${G}: ${j.message}`,j}});return function(U){return Y.apply(this,arguments)}})(),S=e.find=(()=>{var Y=(0,(n||s()).default)(function*(G,U){let j=U.split((l||d()).default.sep);for(;j.length;){let V=j.concat(G).join((l||d()).default.sep);if(yield lt(V))return V;j.pop()}return!1});return function(U,j){return Y.apply(this,arguments)}})(),T=e.symlink=(()=>{var Y=(0,(n||s()).default)(function*(G,U){try{if((yield Oe(U)).isSymbolicLink()&&(yield Pe(U))===G)return}catch(j){if(j.code!=="ENOENT")throw j}if(yield(0,(z||Z()).unlink)(U),process.platform==="win32")yield Tn(G,U,"junction");else{let j;try{j=(l||d()).default.relative((x||C()).default.realpathSync((l||d()).default.dirname(U)),(x||C()).default.realpathSync(G))}catch(V){if(V.code!=="ENOENT")throw V;j=(l||d()).default.relative((l||d()).default.dirname(U),G)}yield Tn(j||".",U)}});return function(U,j){return Y.apply(this,arguments)}})(),h=e.walk=(()=>{var Y=(0,(n||s()).default)(function*(G,U,j=new Set){let V=[],ne=yield Ne(G);j.size&&(ne=ne.filter(function(oe){return!j.has(oe)}));for(var ue=ne,he=Array.isArray(ue),le=0,ue=he?ue:ue[Symbol.iterator]();;){var ie;if(he){if(le>=ue.length)break;ie=ue[le++]}else{if(le=ue.next(),le.done)break;ie=le.value}let oe=ie,Ye=U?(l||d()).default.join(U,oe):oe,Fe=(l||d()).default.join(G,oe),Rt=yield Oe(Fe);V.push({relative:Ye,basename:oe,absolute:Fe,mtime:+Rt.mtime}),Rt.isDirectory()&&(V=V.concat(yield h(Fe,Ye,j)))}return V});return function(U,j){return Y.apply(this,arguments)}})(),b=e.getFileSizeOnDisk=(()=>{var Y=(0,(n||s()).default)(function*(G){let U=yield Oe(G),j=U.size,V=U.blksize;return Math.ceil(j/V)*V});return function(U){return Y.apply(this,arguments)}})(),$=(()=>{var Y=(0,(n||s()).default)(function*(G){if(!(yield lt(G)))return;let U=yield Q(G);for(let j=0;j<U.length;++j){if(U[j]===vo)return`\r
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/sys/node",
3
- "version": "4.41.0",
3
+ "version": "4.41.1-dev.1768194718.8f9efc5",
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.41.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Node System Worker v4.41.1-dev.1768194718.8f9efc5 | 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("../../sys/node/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.41.0 | MIT Licensed | https://stenciljs.com
2
+ Stencil Testing v4.41.1-dev.1768194718.8f9efc5 | MIT Licensed | https://stenciljs.com
3
3
  */
4
4
  "use strict";
5
5
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stencil/core/testing",
3
- "version": "4.41.0",
3
+ "version": "4.41.1-dev.1768194718.8f9efc5",
4
4
  "description": "Stencil testing suite.",
5
5
  "main": "./index.js",
6
6
  "types": "./index.d.ts",