From 49aea808f682d289139bd84d0cc3d6ebc2faae29 Mon Sep 17 00:00:00 2001 From: Miles Johnson Date: Tue, 21 May 2024 19:59:04 -0700 Subject: [PATCH] internal: Update snapshots. --- .../tests/__snapshots__/outputs.test.ts.snap | 28 +- .../__snapshots__/assetImports.test.ts.snap | 256 ++++---- .../__snapshots__/asyncAwait.test.ts.snap | 120 ++-- .../__snapshots__/cjsMjsWrapper.test.ts.snap | 600 +++++++++--------- .../__snapshots__/dynamicImports.test.ts.snap | 320 +++++----- .../__snapshots__/generators.test.ts.snap | 40 +- .../__snapshots__/jsonImports.test.ts.snap | 40 +- .../__snapshots__/namespaces.test.ts.snap | 72 +-- .../__snapshots__/newSyntax.test.ts.snap | 200 +++--- .../examples/__snapshots__/react.test.ts.snap | 112 ++-- .../examples/__snapshots__/solid.test.ts.snap | 80 +-- 11 files changed, 934 insertions(+), 934 deletions(-) diff --git a/packages/packemon/tests/__snapshots__/outputs.test.ts.snap b/packages/packemon/tests/__snapshots__/outputs.test.ts.snap index d2c17a73..2327bb1b 100644 --- a/packages/packemon/tests/__snapshots__/outputs.test.ts.snap +++ b/packages/packemon/tests/__snapshots__/outputs.test.ts.snap @@ -63,7 +63,7 @@ exports.Example = Example; `; exports[`Feature flags > compiles > lib/helpers.js 3`] = ` -""use strict"; +"'use strict'; function _array_like_to_array(arr, len) { if (len == null || len > arr.length) len = arr.length; for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i]; @@ -137,7 +137,7 @@ var Example = /*#__PURE__*/ function() { { key: "foo", get: function get() { - return ""; + return ''; }, set: function set(value) {} } @@ -150,7 +150,7 @@ exports.Example = Example; `; exports[`Feature flags > compiles > lib/helpers.js 4`] = ` -""use strict"; +"'use strict'; function _array_like_to_array(arr, len) { if (len == null || len > arr.length) len = arr.length; for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i]; @@ -224,7 +224,7 @@ var Example = /*#__PURE__*/ function() { { key: "foo", get: function get() { - return ""; + return ''; }, set: function set(value) {} } @@ -1466,7 +1466,7 @@ exports.EXAMPLE = EXAMPLE; exports[`Outputs (babel) > artifacts > builds all the artifacts with rollup > lib/test.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -'use strict';const _excluded=["maxLength"],_excluded2=["value"];function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i=0)continue;target[key]=source[key];}return target;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);icollector.add(key);Object.getOwnPropertyNames(obj).forEach(collect);Object.getOwnPropertySymbols(obj).forEach(collect);}function getOwnProperties(obj){const ownProps=/* @__PURE__ */new Set();if(isFinalObj(obj))return[];collectOwnProperties(obj,ownProps);return Array.from(ownProps);}const defaultCloneOptions={forceWritable:false};function deepClone(val,options=defaultCloneOptions){const seen=/* @__PURE__ */new WeakMap();return clone(val,seen,options);}function clone(val,seen,options=defaultCloneOptions){let k,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){out=Array(k=val.length);seen.set(val,out);while(k--)out[k]=clone(val[k],seen,options);return out;}if(Object.prototype.toString.call(val)==="[object Object]"){out=Object.create(Object.getPrototypeOf(val));seen.set(val,out);const props=getOwnProperties(val);for(const k2 of props){const descriptor=Object.getOwnPropertyDescriptor(val,k2);if(!descriptor)continue;const cloned=clone(val[k2],seen,options);if(options.forceWritable){Object.defineProperty(out,k2,{enumerable:descriptor.enumerable,configurable:true,writable:true,value:cloned});}else if("get"in descriptor){Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{get(){return cloned;}}));}else{Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{value:cloned}));}}return out;}return val;}function objectAttr(source,path,defaultValue=void 0){const paths=path.replace(/\\[(\\d+)\\]/g,".$1").split(".");let result=source;for(const p of paths){result=Object(result)[p];if(result===void 0)return defaultValue;}return result;}function createDefer(){let resolve=null;let reject=null;const p=new Promise((_resolve,_reject)=>{resolve=_resolve;reject=_reject;});p.resolve=resolve;p.reject=reject;return p;}var commonjsGlobal$1=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};function getDefaultExportFromCjs$2(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,'default')?x['default']:x;}function getAugmentedNamespace(n){if(n.__esModule)return n;var f=n.default;if(typeof f=="function"){var a=function a(){if(this instanceof a){return Reflect.construct(f,arguments,this.constructor);}return f.apply(this,arguments);};a.prototype=f.prototype;}else a={};Object.defineProperty(a,'__esModule',{value:true});Object.keys(n).forEach(function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:true,get:function(){return n[k];}});});return a;}var build$1={};var ansiStyles={exports:{}};ansiStyles.exports;(function(module){const ANSI_BACKGROUND_OFFSET=10;const wrapAnsi256=(offset=0)=>code=>\`\\u001B[\${38+offset};5;\${code}m\`;const wrapAnsi16m=(offset=0)=>(red,green,blue)=>\`\\u001B[\${38+offset};2;\${red};\${green};\${blue}m\`;function assembleStyles(){const codes=new Map();const styles={modifier:{reset:[0,0],// 21 isn't widely supported and 22 does the same thing +'use strict';const _excluded=["maxLength"],_excluded2=["value"];function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);icollector.add(key);Object.getOwnPropertyNames(obj).forEach(collect);Object.getOwnPropertySymbols(obj).forEach(collect);}function getOwnProperties(obj){const ownProps=/* @__PURE__ */new Set();if(isFinalObj(obj))return[];collectOwnProperties(obj,ownProps);return Array.from(ownProps);}const defaultCloneOptions={forceWritable:false};function deepClone(val,options=defaultCloneOptions){const seen=/* @__PURE__ */new WeakMap();return clone(val,seen,options);}function clone(val,seen,options=defaultCloneOptions){let k,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){out=Array(k=val.length);seen.set(val,out);while(k--)out[k]=clone(val[k],seen,options);return out;}if(Object.prototype.toString.call(val)==="[object Object]"){out=Object.create(Object.getPrototypeOf(val));seen.set(val,out);const props=getOwnProperties(val);for(const k2 of props){const descriptor=Object.getOwnPropertyDescriptor(val,k2);if(!descriptor)continue;const cloned=clone(val[k2],seen,options);if(options.forceWritable){Object.defineProperty(out,k2,{enumerable:descriptor.enumerable,configurable:true,writable:true,value:cloned});}else if("get"in descriptor){Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{get(){return cloned;}}));}else{Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{value:cloned}));}}return out;}return val;}function objectAttr(source,path,defaultValue=void 0){const paths=path.replace(/\\[(\\d+)\\]/g,".$1").split(".");let result=source;for(const p of paths){result=Object(result)[p];if(result===void 0)return defaultValue;}return result;}function createDefer(){let resolve=null;let reject=null;const p=new Promise((_resolve,_reject)=>{resolve=_resolve;reject=_reject;});p.resolve=resolve;p.reject=reject;return p;}var commonjsGlobal$1=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};function getDefaultExportFromCjs$2(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,'default')?x['default']:x;}function getAugmentedNamespace(n){if(n.__esModule)return n;var f=n.default;if(typeof f=="function"){var a=function a(){if(this instanceof a){return Reflect.construct(f,arguments,this.constructor);}return f.apply(this,arguments);};a.prototype=f.prototype;}else a={};Object.defineProperty(a,'__esModule',{value:true});Object.keys(n).forEach(function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:true,get:function(){return n[k];}});});return a;}var build$1={};var ansiStyles={exports:{}};ansiStyles.exports;(function(module){const ANSI_BACKGROUND_OFFSET=10;const wrapAnsi256=(offset=0)=>code=>\`\\u001B[\${38+offset};5;\${code}m\`;const wrapAnsi16m=(offset=0)=>(red,green,blue)=>\`\\u001B[\${38+offset};2;\${red};\${green};\${blue}m\`;function assembleStyles(){const codes=new Map();const styles={modifier:{reset:[0,0],// 21 isn't widely supported and 22 does the same thing bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],// Bright color blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],// Bright color bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};// Alias bright black as gray (and grey) @@ -1582,7 +1582,7 @@ if(type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||enableDebugTracing||t type.$$typeof===REACT_MODULE_REFERENCE||type.getModuleId!==undefined){return true;}}return false;}function typeOf(object){if(typeof object==='object'&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof;}}case REACT_PORTAL_TYPE:return $$typeof;}}return undefined;}var ContextConsumer=REACT_CONTEXT_TYPE;var ContextProvider=REACT_PROVIDER_TYPE;var Element=REACT_ELEMENT_TYPE;var ForwardRef=REACT_FORWARD_REF_TYPE;var Fragment=REACT_FRAGMENT_TYPE;var Lazy=REACT_LAZY_TYPE;var Memo=REACT_MEMO_TYPE;var Portal=REACT_PORTAL_TYPE;var Profiler=REACT_PROFILER_TYPE;var StrictMode=REACT_STRICT_MODE_TYPE;var Suspense=REACT_SUSPENSE_TYPE;var SuspenseList=REACT_SUSPENSE_LIST_TYPE;var hasWarnedAboutDeprecatedIsAsyncMode=false;var hasWarnedAboutDeprecatedIsConcurrentMode=false;// AsyncMode should be deprecated function isAsyncMode(object){{if(!hasWarnedAboutDeprecatedIsAsyncMode){hasWarnedAboutDeprecatedIsAsyncMode=true;// Using console['warn'] to evade Babel and ESLint console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, '+'and will be removed in React 18+.');}}return false;}function isConcurrentMode(object){{if(!hasWarnedAboutDeprecatedIsConcurrentMode){hasWarnedAboutDeprecatedIsConcurrentMode=true;// Using console['warn'] to evade Babel and ESLint -console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, '+'and will be removed in React 18+.');}}return false;}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE;}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE;}function isElement(object){return typeof object==='object'&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE;}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE;}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE;}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE;}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE;}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE;}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE;}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE;}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE;}function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE;}reactIs_development.ContextConsumer=ContextConsumer;reactIs_development.ContextProvider=ContextProvider;reactIs_development.Element=Element;reactIs_development.ForwardRef=ForwardRef;reactIs_development.Fragment=Fragment;reactIs_development.Lazy=Lazy;reactIs_development.Memo=Memo;reactIs_development.Portal=Portal;reactIs_development.Profiler=Profiler;reactIs_development.StrictMode=StrictMode;reactIs_development.Suspense=Suspense;reactIs_development.SuspenseList=SuspenseList;reactIs_development.isAsyncMode=isAsyncMode;reactIs_development.isConcurrentMode=isConcurrentMode;reactIs_development.isContextConsumer=isContextConsumer;reactIs_development.isContextProvider=isContextProvider;reactIs_development.isElement=isElement;reactIs_development.isForwardRef=isForwardRef;reactIs_development.isFragment=isFragment;reactIs_development.isLazy=isLazy;reactIs_development.isMemo=isMemo;reactIs_development.isPortal=isPortal;reactIs_development.isProfiler=isProfiler;reactIs_development.isStrictMode=isStrictMode;reactIs_development.isSuspense=isSuspense;reactIs_development.isSuspenseList=isSuspenseList;reactIs_development.isValidElementType=isValidElementType;reactIs_development.typeOf=typeOf;})();}return reactIs_development;}if(process.env.NODE_ENV==='production'){reactIs.exports=requireReactIs_production_min();}else{reactIs.exports=requireReactIs_development();}var reactIsExports=reactIs.exports;Object.defineProperty(ReactElement$3,'__esModule',{value:true});ReactElement$3.test=ReactElement$3.serialize=ReactElement$3.default=void 0;var ReactIs=_interopRequireWildcard(reactIsExports);var _markup$1=markup;function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=='function')return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=='object'&&typeof obj!=='function'){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=='default'&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}/** +console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, '+'and will be removed in React 18+.');}}return false;}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE;}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE;}function isElement(object){return typeof object==='object'&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE;}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE;}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE;}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE;}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE;}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE;}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE;}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE;}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE;}function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE;}reactIs_development.ContextConsumer=ContextConsumer;reactIs_development.ContextProvider=ContextProvider;reactIs_development.Element=Element;reactIs_development.ForwardRef=ForwardRef;reactIs_development.Fragment=Fragment;reactIs_development.Lazy=Lazy;reactIs_development.Memo=Memo;reactIs_development.Portal=Portal;reactIs_development.Profiler=Profiler;reactIs_development.StrictMode=StrictMode;reactIs_development.Suspense=Suspense;reactIs_development.SuspenseList=SuspenseList;reactIs_development.isAsyncMode=isAsyncMode;reactIs_development.isConcurrentMode=isConcurrentMode;reactIs_development.isContextConsumer=isContextConsumer;reactIs_development.isContextProvider=isContextProvider;reactIs_development.isElement=isElement;reactIs_development.isForwardRef=isForwardRef;reactIs_development.isFragment=isFragment;reactIs_development.isLazy=isLazy;reactIs_development.isMemo=isMemo;reactIs_development.isPortal=isPortal;reactIs_development.isProfiler=isProfiler;reactIs_development.isStrictMode=isStrictMode;reactIs_development.isSuspense=isSuspense;reactIs_development.isSuspenseList=isSuspenseList;reactIs_development.isValidElementType=isValidElementType;reactIs_development.typeOf=typeOf;})();}return reactIs_development;}if(process.env.NODE_ENV==='production'){reactIs.exports=requireReactIs_production_min();}else{reactIs.exports=requireReactIs_development();}var reactIsExports=reactIs.exports;Object.defineProperty(ReactElement$3,'__esModule',{value:true});ReactElement$3.test=ReactElement$3.serialize=ReactElement$3.default=void 0;var ReactIs=_interopRequireWildcard(reactIsExports);var _markup$1=markup;function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=='function')return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=='object'&&typeof obj!=='function'){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=='default'&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the @@ -1948,7 +1948,7 @@ findSubsequences(nChange,aStart,aEnd,bStart,bEnd,transposed,callbacks,aIndexesF, Inner error message: \${err==null?void 0:err.message}\`));}}function isAsymmetricMatcher(data){const type=getType$2(data);return type==="Object"&&typeof data.asymmetricMatch==="function";}function isReplaceable(obj1,obj2){const obj1Type=getType$2(obj1);const obj2Type=getType$2(obj2);return obj1Type===obj2Type&&(obj1Type==="Object"||obj1Type==="Array");}function replaceAsymmetricMatcher(actual,expected,actualReplaced=/* @__PURE__ */new WeakSet(),expectedReplaced=/* @__PURE__ */new WeakSet()){if(!isReplaceable(actual,expected))return{replacedActual:actual,replacedExpected:expected};if(actualReplaced.has(actual)||expectedReplaced.has(expected))return{replacedActual:actual,replacedExpected:expected};actualReplaced.add(actual);expectedReplaced.add(expected);getOwnProperties(expected).forEach(key=>{const expectedValue=expected[key];const actualValue=actual[key];if(isAsymmetricMatcher(expectedValue)){if(expectedValue.asymmetricMatch(actualValue))actual[key]=expectedValue;}else if(isAsymmetricMatcher(actualValue)){if(actualValue.asymmetricMatch(expectedValue))expected[key]=actualValue;}else if(isReplaceable(actualValue,expectedValue)){const replaced=replaceAsymmetricMatcher(actualValue,expectedValue,actualReplaced,expectedReplaced);actual[key]=replaced.replacedActual;expected[key]=replaced.replacedExpected;}});return{replacedActual:actual,replacedExpected:expected};}function createChainable(keys,fn){function create(context){const chain2=function(...args){return fn.apply(context,args);};Object.assign(chain2,fn);chain2.withContext=()=>chain2.bind(context);chain2.setContext=(key,value)=>{context[key]=value;};chain2.mergeContext=ctx=>{Object.assign(context,ctx);};for(const key of keys){Object.defineProperty(chain2,key,{get(){return create(_objectSpread(_objectSpread({},context),{},{[key]:true}));}});}return chain2;}const chain=create({});chain.fn=fn;return chain;}function getNames(task){const names=[task.name];let current=task;while((current==null?void 0:current.suite)||(current==null?void 0:current.file)){current=current.suite||current.file;if(current==null?void 0:current.name)names.unshift(current.name);}return names;}const _DRIVE_LETTER_START_RE=/^[A-Za-z]:\\//;function normalizeWindowsPath$1(input=""){if(!input){return input;}return input.replace(/\\\\/g,"/").replace(_DRIVE_LETTER_START_RE,r=>r.toUpperCase());}const _IS_ABSOLUTE_RE$1=/^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;function cwd$1(){if(typeof process!=="undefined"&&typeof process.cwd==="function"){return process.cwd().replace(/\\\\/g,"/");}return"/";}const resolve$3=function(...arguments_){arguments_=arguments_.map(argument=>normalizeWindowsPath$1(argument));let resolvedPath="";let resolvedAbsolute=false;for(let index=arguments_.length-1;index>=-1&&!resolvedAbsolute;index--){const path=index>=0?arguments_[index]:cwd$1();if(!path||path.length===0){continue;}resolvedPath=\`\${path}/\${resolvedPath}\`;resolvedAbsolute=isAbsolute$1(path);}resolvedPath=normalizeString$1(resolvedPath,!resolvedAbsolute);if(resolvedAbsolute&&!isAbsolute$1(resolvedPath)){return\`/\${resolvedPath}\`;}return resolvedPath.length>0?resolvedPath:".";};function normalizeString$1(path,allowAboveRoot){let res="";let lastSegmentLength=0;let lastSlash=-1;let dots=0;let char=null;for(let index=0;index<=path.length;++index){if(index2){const lastSlashIndex=res.lastIndexOf("/");if(lastSlashIndex===-1){res="";lastSegmentLength=0;}else{res=res.slice(0,lastSlashIndex);lastSegmentLength=res.length-1-res.lastIndexOf("/");}lastSlash=index;dots=0;continue;}else if(res.length>0){res="";lastSegmentLength=0;lastSlash=index;dots=0;continue;}}if(allowAboveRoot){res+=res.length>0?"/..":"..";lastSegmentLength=2;}}else{if(res.length>0){res+=\`/\${path.slice(lastSlash+1,index)}\`;}else{res=path.slice(lastSlash+1,index);}lastSegmentLength=index-lastSlash-1;}lastSlash=index;dots=0;}else if(char==="."&&dots!==-1){++dots;}else{dots=-1;}}return res;}const isAbsolute$1=function(p){return _IS_ABSOLUTE_RE$1.test(p);};function normalizeWindowsPath(input=""){if(!input||!input.includes("\\\\")){return input;}return input.replace(/\\\\/g,"/");}const _IS_ABSOLUTE_RE=/^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;function cwd(){if(typeof process!=="undefined"){return process.cwd().replace(/\\\\/g,"/");}return"/";}const resolve$2=function(...arguments_){arguments_=arguments_.map(argument=>normalizeWindowsPath(argument));let resolvedPath="";let resolvedAbsolute=false;for(let index=arguments_.length-1;index>=-1&&!resolvedAbsolute;index--){const path=index>=0?arguments_[index]:cwd();if(!path||path.length===0){continue;}resolvedPath=\`\${path}/\${resolvedPath}\`;resolvedAbsolute=isAbsolute(path);}resolvedPath=normalizeString(resolvedPath,!resolvedAbsolute);if(resolvedAbsolute&&!isAbsolute(resolvedPath)){return\`/\${resolvedPath}\`;}return resolvedPath.length>0?resolvedPath:".";};function normalizeString(path,allowAboveRoot){let res="";let lastSegmentLength=0;let lastSlash=-1;let dots=0;let char=null;for(let index=0;index<=path.length;++index){if(index2){const lastSlashIndex=res.lastIndexOf("/");if(lastSlashIndex===-1){res="";lastSegmentLength=0;}else{res=res.slice(0,lastSlashIndex);lastSegmentLength=res.length-1-res.lastIndexOf("/");}lastSlash=index;dots=0;continue;}else if(res.length>0){res="";lastSegmentLength=0;lastSlash=index;dots=0;continue;}}if(allowAboveRoot){res+=res.length>0?"/..":"..";lastSegmentLength=2;}}else{if(res.length>0){res+=\`/\${path.slice(lastSlash+1,index)}\`;}else{res=path.slice(lastSlash+1,index);}lastSegmentLength=index-lastSlash-1;}lastSlash=index;dots=0;}else if(char==="."&&dots!==-1){++dots;}else{dots=-1;}}return res;}const isAbsolute=function(p){return _IS_ABSOLUTE_RE.test(p);};const chars$1='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';const intToChar$1=new Uint8Array(64);// 64 possible chars. const charToInt$1=new Uint8Array(128);// z is 122 in ASCII for(let i=0;i eval"))line=line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,":$1");if(!line.includes("@")&&!line.includes(":"))return null;const functionNameRegex=/((.*".+"[^@]*)?[^@]*)(?:@)/;const matches=line.match(functionNameRegex);const functionName=matches&&matches[1]?matches[1]:void 0;const _extractLocation$=extractLocation$1(line.replace(functionNameRegex,"")),_extractLocation$2=_slicedToArray(_extractLocation$,3),url=_extractLocation$2[0],lineNumber=_extractLocation$2[1],columnNumber=_extractLocation$2[2];if(!url||!lineNumber||!columnNumber)return null;return{file:url,method:functionName||"",line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}function parseSingleStack(raw){const line=raw.trim();if(!CHROME_IE_STACK_REGEXP$1.test(line))return parseSingleFFOrSafariStack$1(line);return parseSingleV8Stack$1(line);}function parseSingleV8Stack$1(raw){let line=raw.trim();if(!CHROME_IE_STACK_REGEXP$1.test(line))return null;if(line.includes("(eval "))line=line.replace(/eval code/g,"eval").replace(/(\\(eval at [^()]*)|(,.*$)/g,"");let sanitizedLine=line.replace(/^\\s+/,"").replace(/\\(eval code/g,"(").replace(/^.*?\\s+/,"");const location=sanitizedLine.match(/ (\\(.+\\)$)/);sanitizedLine=location?sanitizedLine.replace(location[0],""):sanitizedLine;const _extractLocation$3=extractLocation$1(location?location[1]:sanitizedLine),_extractLocation$4=_slicedToArray(_extractLocation$3,3),url=_extractLocation$4[0],lineNumber=_extractLocation$4[1],columnNumber=_extractLocation$4[2];let method=location&&sanitizedLine||"";let file=url&&["eval",""].includes(url)?void 0:url;if(!file||!lineNumber||!columnNumber)return null;if(method.startsWith("async "))method=method.slice(6);if(file.startsWith("file://"))file=file.slice(7);file=resolve$2(file);if(method)method=method.replace(/__vite_ssr_import_\\d+__\\./g,"");return{method,file,line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}const fnMap=/* @__PURE__ */new WeakMap();const fixtureMap=/* @__PURE__ */new WeakMap();const hooksMap=/* @__PURE__ */new WeakMap();function setFn(key,fn){fnMap.set(key,fn);}function setFixture(key,fixture){fixtureMap.set(key,fixture);}function getFixture(key){return fixtureMap.get(key);}function setHooks(key,hooks){hooksMap.set(key,hooks);}function getHooks(key){return hooksMap.get(key);}class PendingError extends Error{constructor(message,task){super(message);this.message=message;this.taskId=task.id;}code="VITEST_PENDING";taskId;}const collectorContext={tasks:[],currentSuite:null};function collectTask(task){var _a;(_a=collectorContext.currentSuite)==null?void 0:_a.tasks.push(task);}async function runWithSuite(suite,fn){const prev=collectorContext.currentSuite;collectorContext.currentSuite=suite;await fn();collectorContext.currentSuite=prev;}function withTimeout(fn,timeout,isHook=false){if(timeout<=0||timeout===Number.POSITIVE_INFINITY)return fn;const _getSafeTimers=getSafeTimers(),setTimeout=_getSafeTimers.setTimeout,clearTimeout=_getSafeTimers.clearTimeout;return(...args)=>{return Promise.race([fn(...args),new Promise((resolve,reject)=>{var _a;const timer=setTimeout(()=>{clearTimeout(timer);reject(new Error(makeTimeoutMsg(isHook,timeout)));},timeout);(_a=timer.unref)==null?void 0:_a.call(timer);})]);};}function createTestContext(test,runner){var _a;const context=function(){throw new Error("done() callback is deprecated, use promise instead");};context.task=test;context.skip=()=>{test.pending=true;throw new PendingError("test is skipped; abort execution",test);};context.onTestFailed=fn=>{test.onFailed||(test.onFailed=[]);test.onFailed.push(fn);};context.onTestFinished=fn=>{test.onFinished||(test.onFinished=[]);test.onFinished.push(fn);};return((_a=runner.extendTaskContext)==null?void 0:_a.call(runner,context))||context;}function makeTimeoutMsg(isHook,timeout){return\`\${isHook?"Hook":"Test"} timed out in \${timeout}ms. -If this is a long-running \${isHook?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "\${isHook?"hookTimeout":"testTimeout"}".\`;}function mergeContextFixtures(fixtures,context={}){const fixtureOptionKeys=["auto"];const fixtureArray=Object.entries(fixtures).map(([prop,value])=>{const fixtureItem={value};if(Array.isArray(value)&&value.length>=2&&isObject$1(value[1])&&Object.keys(value[1]).some(key=>fixtureOptionKeys.includes(key))){Object.assign(fixtureItem,value[1]);fixtureItem.value=value[0];}fixtureItem.prop=prop;fixtureItem.isFn=typeof fixtureItem.value==="function";return fixtureItem;});if(Array.isArray(context.fixtures))context.fixtures=context.fixtures.concat(fixtureArray);else context.fixtures=fixtureArray;fixtureArray.forEach(fixture=>{if(fixture.isFn){const usedProps=getUsedProps(fixture.value);if(usedProps.length)fixture.deps=context.fixtures.filter(({prop})=>prop!==fixture.prop&&usedProps.includes(prop));}});return context;}const fixtureValueMaps=/* @__PURE__ */new Map();const cleanupFnArrayMap=/* @__PURE__ */new Map();function withFixtures(fn,testContext){return hookContext=>{const context=hookContext||testContext;if(!context)return fn({});const fixtures=getFixture(context);if(!(fixtures==null?void 0:fixtures.length))return fn(context);const usedProps=getUsedProps(fn);const hasAutoFixture=fixtures.some(({auto})=>auto);if(!usedProps.length&&!hasAutoFixture)return fn(context);if(!fixtureValueMaps.get(context))fixtureValueMaps.set(context,/* @__PURE__ */new Map());const fixtureValueMap=fixtureValueMaps.get(context);if(!cleanupFnArrayMap.has(context))cleanupFnArrayMap.set(context,[]);const cleanupFnArray=cleanupFnArrayMap.get(context);const usedFixtures=fixtures.filter(({prop,auto})=>auto||usedProps.includes(prop));const pendingFixtures=resolveDeps(usedFixtures);if(!pendingFixtures.length)return fn(context);async function resolveFixtures(){for(const fixture of pendingFixtures){if(fixtureValueMap.has(fixture))continue;const resolvedValue=fixture.isFn?await resolveFixtureFunction(fixture.value,context,cleanupFnArray):fixture.value;context[fixture.prop]=resolvedValue;fixtureValueMap.set(fixture,resolvedValue);cleanupFnArray.unshift(()=>{fixtureValueMap.delete(fixture);});}}return resolveFixtures().then(()=>fn(context));};}async function resolveFixtureFunction(fixtureFn,context,cleanupFnArray){const useFnArgPromise=createDefer();let isUseFnArgResolved=false;const fixtureReturn=fixtureFn(context,async useFnArg=>{isUseFnArgResolved=true;useFnArgPromise.resolve(useFnArg);const useReturnPromise=createDefer();cleanupFnArray.push(async()=>{useReturnPromise.resolve();await fixtureReturn;});await useReturnPromise;}).catch(e=>{if(!isUseFnArgResolved){useFnArgPromise.reject(e);return;}throw e;});return useFnArgPromise;}function resolveDeps(fixtures,depSet=/* @__PURE__ */new Set(),pendingFixtures=[]){fixtures.forEach(fixture=>{if(pendingFixtures.includes(fixture))return;if(!fixture.isFn||!fixture.deps){pendingFixtures.push(fixture);return;}if(depSet.has(fixture))throw new Error(\`Circular fixture dependency detected: \${fixture.prop} <- \${[...depSet].reverse().map(d=>d.prop).join(" <- ")}\`);depSet.add(fixture);resolveDeps(fixture.deps,depSet,pendingFixtures);pendingFixtures.push(fixture);depSet.clear();});return pendingFixtures;}function getUsedProps(fn){const match=fn.toString().match(/[^(]*\\(([^)]*)/);if(!match)return[];const args=splitByComma(match[1]);if(!args.length)return[];const first=args[0];if(!(first.startsWith("{")&&first.endsWith("}")))throw new Error(\`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "\${first}".\`);const _first=first.slice(1,-1).replace(/\\s/g,"");const props=splitByComma(_first).map(prop=>{return prop.replace(/\\:.*|\\=.*/g,"");});const last=props.at(-1);if(last&&last.startsWith("..."))throw new Error(\`Rest parameters are not supported in fixtures, received "\${last}".\`);return props;}function splitByComma(s){const result=[];const stack=[];let start=0;for(let i=0;i{};if(typeof optionsOrTest==="object"){if(typeof optionsOrFn==="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");options=optionsOrTest;}else if(typeof optionsOrTest==="number"){options={timeout:optionsOrTest};}else if(typeof optionsOrFn==="object"){options=optionsOrFn;}if(typeof optionsOrFn==="function"){if(typeof optionsOrTest==="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");fn=optionsOrFn;}else if(typeof optionsOrTest==="function"){fn=optionsOrTest;}return{options,handler:fn};}function createSuiteCollector(name,factory=()=>{},mode,shuffle,each,suiteOptions){const tasks=[];const factoryQueue=[];let suite2;initSuite();const task=function(name2="",options={}){const task2={id:"",name:name2,suite:void 0,each:options.each,fails:options.fails,context:void 0,type:"custom",retry:options.retry??runner.config.retry,repeats:options.repeats,mode:options.only?"only":options.skip?"skip":options.todo?"todo":"run",meta:options.meta??/* @__PURE__ */Object.create(null)};const handler=options.handler;if(options.concurrent||!options.sequential&&runner.config.sequence.concurrent)task2.concurrent=true;if(shuffle)task2.shuffle=true;const context=createTestContext(task2,runner);Object.defineProperty(task2,"context",{value:context,enumerable:false});setFixture(context,options.fixtures);if(handler){setFn(task2,withTimeout(withFixtures(handler,context),(options==null?void 0:options.timeout)??runner.config.testTimeout));}if(runner.config.includeTaskLocation);tasks.push(task2);return task2;};const test2=createTest(function(name2,optionsOrFn,optionsOrTest){let _parseArguments=parseArguments(optionsOrFn,optionsOrTest),options=_parseArguments.options,handler=_parseArguments.handler;if(typeof suiteOptions==="object")options=Object.assign({},suiteOptions,options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);const test3=task(formatName(name2),_objectSpread(_objectSpread(_objectSpread({},this),options),{},{handler}));test3.type="test";});const collector={type:"collector",name,mode,options:suiteOptions,test:test2,tasks,collect,task,clear,on:addHook};function addHook(name2,...fn){getHooks(suite2)[name2].push(...fn);}function initSuite(includeLocation){if(typeof suiteOptions==="number")suiteOptions={timeout:suiteOptions};suite2={id:"",type:"suite",name,mode,each,shuffle,tasks:[],meta:/* @__PURE__ */Object.create(null),projectName:""};setHooks(suite2,createSuiteHooks());}function clear(){tasks.length=0;factoryQueue.length=0;initSuite();}async function collect(file){factoryQueue.length=0;if(factory)await runWithSuite(collector,()=>factory(test2));const allChildren=[];for(const i of[...factoryQueue,...tasks])allChildren.push(i.type==="collector"?await i.collect(file):i);suite2.file=file;suite2.tasks=allChildren;allChildren.forEach(task2=>{task2.suite=suite2;if(file)task2.file=file;});return suite2;}collectTask(collector);return collector;}function createSuite(){function suiteFn(name,factoryOrOptions,optionsOrFactory={}){const mode=this.only?"only":this.skip?"skip":this.todo?"todo":"run";const currentSuite=getCurrentSuite();let _parseArguments2=parseArguments(factoryOrOptions,optionsOrFactory),options=_parseArguments2.options,factory=_parseArguments2.handler;if(currentSuite==null?void 0:currentSuite.options)options=_objectSpread(_objectSpread({},currentSuite.options),options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);return createSuiteCollector(formatName(name),factory,mode,this.shuffle,this.each,options);}suiteFn.each=function(cases,...args){const suite2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments3=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments3.options,handler=_parseArguments3.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?suite2(formatTitle(_name,items,idx),()=>handler(...items),options):suite2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?suite2(formatTitle(_name,items,idx),options,()=>handler(...items)):suite2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};suiteFn.skipIf=condition=>condition?suite.skip:suite;suiteFn.runIf=condition=>condition?suite:suite.skip;return createChainable(["concurrent","sequential","shuffle","skip","only","todo"],suiteFn);}function createTaskCollector(fn,context){const taskFn=fn;taskFn.each=function(cases,...args){const test2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments4=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments4.options,handler=_parseArguments4.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?test2(formatTitle(_name,items,idx),()=>handler(...items),options):test2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?test2(formatTitle(_name,items,idx),options,()=>handler(...items)):test2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};taskFn.skipIf=function(condition){return condition?this.skip:this;};taskFn.runIf=function(condition){return condition?this:this.skip;};taskFn.extend=function(fixtures){const _context=mergeContextFixtures(fixtures,context);return createTest(function fn2(name,optionsOrFn,optionsOrTest){getCurrentSuite().test.fn.call(this,formatName(name),optionsOrFn,optionsOrTest);},_context);};const _test=createChainable(["concurrent","sequential","skip","only","todo","fails"],taskFn);if(context)_test.mergeContext(context);return _test;}function createTest(fn,context){return createTaskCollector(fn,context);}function formatName(name){return typeof name==="string"?name:name instanceof Function?name.name||"":String(name);}function formatTitle(template,items,idx){if(template.includes("%#")){template=template.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,\`\${idx}\`).replace(/__vitest_escaped_%__/g,"%%");}const count=template.split("%").length-1;let formatted=format(template,...items.slice(0,count));if(isObject$1(items[0])){formatted=formatted.replace(/\\$([$\\w_.]+)/g,// https://github.com/chaijs/chai/pull/1490 +If this is a long-running \${isHook?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "\${isHook?"hookTimeout":"testTimeout"}".\`;}function mergeContextFixtures(fixtures,context={}){const fixtureOptionKeys=["auto"];const fixtureArray=Object.entries(fixtures).map(([prop,value])=>{const fixtureItem={value};if(Array.isArray(value)&&value.length>=2&&isObject$1(value[1])&&Object.keys(value[1]).some(key=>fixtureOptionKeys.includes(key))){Object.assign(fixtureItem,value[1]);fixtureItem.value=value[0];}fixtureItem.prop=prop;fixtureItem.isFn=typeof fixtureItem.value==="function";return fixtureItem;});if(Array.isArray(context.fixtures))context.fixtures=context.fixtures.concat(fixtureArray);else context.fixtures=fixtureArray;fixtureArray.forEach(fixture=>{if(fixture.isFn){const usedProps=getUsedProps(fixture.value);if(usedProps.length)fixture.deps=context.fixtures.filter(({prop})=>prop!==fixture.prop&&usedProps.includes(prop));}});return context;}const fixtureValueMaps=/* @__PURE__ */new Map();const cleanupFnArrayMap=/* @__PURE__ */new Map();function withFixtures(fn,testContext){return hookContext=>{const context=hookContext||testContext;if(!context)return fn({});const fixtures=getFixture(context);if(!(fixtures==null?void 0:fixtures.length))return fn(context);const usedProps=getUsedProps(fn);const hasAutoFixture=fixtures.some(({auto})=>auto);if(!usedProps.length&&!hasAutoFixture)return fn(context);if(!fixtureValueMaps.get(context))fixtureValueMaps.set(context,/* @__PURE__ */new Map());const fixtureValueMap=fixtureValueMaps.get(context);if(!cleanupFnArrayMap.has(context))cleanupFnArrayMap.set(context,[]);const cleanupFnArray=cleanupFnArrayMap.get(context);const usedFixtures=fixtures.filter(({prop,auto})=>auto||usedProps.includes(prop));const pendingFixtures=resolveDeps(usedFixtures);if(!pendingFixtures.length)return fn(context);async function resolveFixtures(){for(const fixture of pendingFixtures){if(fixtureValueMap.has(fixture))continue;const resolvedValue=fixture.isFn?await resolveFixtureFunction(fixture.value,context,cleanupFnArray):fixture.value;context[fixture.prop]=resolvedValue;fixtureValueMap.set(fixture,resolvedValue);cleanupFnArray.unshift(()=>{fixtureValueMap.delete(fixture);});}}return resolveFixtures().then(()=>fn(context));};}async function resolveFixtureFunction(fixtureFn,context,cleanupFnArray){const useFnArgPromise=createDefer();let isUseFnArgResolved=false;const fixtureReturn=fixtureFn(context,async useFnArg=>{isUseFnArgResolved=true;useFnArgPromise.resolve(useFnArg);const useReturnPromise=createDefer();cleanupFnArray.push(async()=>{useReturnPromise.resolve();await fixtureReturn;});await useReturnPromise;}).catch(e=>{if(!isUseFnArgResolved){useFnArgPromise.reject(e);return;}throw e;});return useFnArgPromise;}function resolveDeps(fixtures,depSet=/* @__PURE__ */new Set(),pendingFixtures=[]){fixtures.forEach(fixture=>{if(pendingFixtures.includes(fixture))return;if(!fixture.isFn||!fixture.deps){pendingFixtures.push(fixture);return;}if(depSet.has(fixture))throw new Error(\`Circular fixture dependency detected: \${fixture.prop} <- \${[...depSet].reverse().map(d=>d.prop).join(" <- ")}\`);depSet.add(fixture);resolveDeps(fixture.deps,depSet,pendingFixtures);pendingFixtures.push(fixture);depSet.clear();});return pendingFixtures;}function getUsedProps(fn){const match=fn.toString().match(/[^(]*\\(([^)]*)/);if(!match)return[];const args=splitByComma(match[1]);if(!args.length)return[];const first=args[0];if(!(first.startsWith("{")&&first.endsWith("}")))throw new Error(\`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "\${first}".\`);const _first=first.slice(1,-1).replace(/\\s/g,"");const props=splitByComma(_first).map(prop=>{return prop.replace(/\\:.*|\\=.*/g,"");});const last=props.at(-1);if(last&&last.startsWith("..."))throw new Error(\`Rest parameters are not supported in fixtures, received "\${last}".\`);return props;}function splitByComma(s){const result=[];const stack=[];let start=0;for(let i=0;i{};if(typeof optionsOrTest==="object"){if(typeof optionsOrFn==="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");options=optionsOrTest;}else if(typeof optionsOrTest==="number"){options={timeout:optionsOrTest};}else if(typeof optionsOrFn==="object"){options=optionsOrFn;}if(typeof optionsOrFn==="function"){if(typeof optionsOrTest==="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");fn=optionsOrFn;}else if(typeof optionsOrTest==="function"){fn=optionsOrTest;}return{options,handler:fn};}function createSuiteCollector(name,factory=()=>{},mode,shuffle,each,suiteOptions){const tasks=[];const factoryQueue=[];let suite2;initSuite();const task=function(name2="",options={}){const task2={id:"",name:name2,suite:void 0,each:options.each,fails:options.fails,context:void 0,type:"custom",retry:options.retry??runner.config.retry,repeats:options.repeats,mode:options.only?"only":options.skip?"skip":options.todo?"todo":"run",meta:options.meta??/* @__PURE__ */Object.create(null)};const handler=options.handler;if(options.concurrent||!options.sequential&&runner.config.sequence.concurrent)task2.concurrent=true;if(shuffle)task2.shuffle=true;const context=createTestContext(task2,runner);Object.defineProperty(task2,"context",{value:context,enumerable:false});setFixture(context,options.fixtures);if(handler){setFn(task2,withTimeout(withFixtures(handler,context),(options==null?void 0:options.timeout)??runner.config.testTimeout));}if(runner.config.includeTaskLocation);tasks.push(task2);return task2;};const test2=createTest(function(name2,optionsOrFn,optionsOrTest){let _parseArguments=parseArguments(optionsOrFn,optionsOrTest),options=_parseArguments.options,handler=_parseArguments.handler;if(typeof suiteOptions==="object")options=Object.assign({},suiteOptions,options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);const test3=task(formatName(name2),_objectSpread(_objectSpread(_objectSpread({},this),options),{},{handler}));test3.type="test";});const collector={type:"collector",name,mode,options:suiteOptions,test:test2,tasks,collect,task,clear,on:addHook};function addHook(name2,...fn){getHooks(suite2)[name2].push(...fn);}function initSuite(includeLocation){if(typeof suiteOptions==="number")suiteOptions={timeout:suiteOptions};suite2={id:"",type:"suite",name,mode,each,shuffle,tasks:[],meta:/* @__PURE__ */Object.create(null),projectName:""};setHooks(suite2,createSuiteHooks());}function clear(){tasks.length=0;factoryQueue.length=0;initSuite();}async function collect(file){factoryQueue.length=0;if(factory)await runWithSuite(collector,()=>factory(test2));const allChildren=[];for(const i of[...factoryQueue,...tasks])allChildren.push(i.type==="collector"?await i.collect(file):i);suite2.file=file;suite2.tasks=allChildren;allChildren.forEach(task2=>{task2.suite=suite2;if(file)task2.file=file;});return suite2;}collectTask(collector);return collector;}function createSuite(){function suiteFn(name,factoryOrOptions,optionsOrFactory={}){const mode=this.only?"only":this.skip?"skip":this.todo?"todo":"run";const currentSuite=getCurrentSuite();let _parseArguments2=parseArguments(factoryOrOptions,optionsOrFactory),options=_parseArguments2.options,factory=_parseArguments2.handler;if(currentSuite==null?void 0:currentSuite.options)options=_objectSpread(_objectSpread({},currentSuite.options),options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);return createSuiteCollector(formatName(name),factory,mode,this.shuffle,this.each,options);}suiteFn.each=function(cases,...args){const suite2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments3=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments3.options,handler=_parseArguments3.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?suite2(formatTitle(_name,items,idx),()=>handler(...items),options):suite2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?suite2(formatTitle(_name,items,idx),options,()=>handler(...items)):suite2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};suiteFn.skipIf=condition=>condition?suite.skip:suite;suiteFn.runIf=condition=>condition?suite:suite.skip;return createChainable(["concurrent","sequential","shuffle","skip","only","todo"],suiteFn);}function createTaskCollector(fn,context){const taskFn=fn;taskFn.each=function(cases,...args){const test2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments4=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments4.options,handler=_parseArguments4.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?test2(formatTitle(_name,items,idx),()=>handler(...items),options):test2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?test2(formatTitle(_name,items,idx),options,()=>handler(...items)):test2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};taskFn.skipIf=function(condition){return condition?this.skip:this;};taskFn.runIf=function(condition){return condition?this:this.skip;};taskFn.extend=function(fixtures){const _context=mergeContextFixtures(fixtures,context);return createTest(function fn2(name,optionsOrFn,optionsOrTest){getCurrentSuite().test.fn.call(this,formatName(name),optionsOrFn,optionsOrTest);},_context);};const _test=createChainable(["concurrent","sequential","skip","only","todo","fails"],taskFn);if(context)_test.mergeContext(context);return _test;}function createTest(fn,context){return createTaskCollector(fn,context);}function formatName(name){return typeof name==="string"?name:name instanceof Function?name.name||"":String(name);}function formatTitle(template,items,idx){if(template.includes("%#")){template=template.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,\`\${idx}\`).replace(/__vitest_escaped_%__/g,"%%");}const count=template.split("%").length-1;let formatted=format(template,...items.slice(0,count));if(isObject$1(items[0])){formatted=formatted.replace(/\\$([$\\w_.]+)/g,// https://github.com/chaijs/chai/pull/1490 (_,key)=>{var _a,_b;return objDisplay$2(objectAttr(items[0],key),{truncate:(_b=(_a=void 0)==null?void 0:_a.chaiConfig)==null?void 0:_b.truncateThreshold});});}return formatted;}function formatTemplateString(cases,args){const header=cases.join("").trim().replace(/ /g,"").split("\\n").map(i=>i.split("|"))[0];const res=[];for(let i=0;i @@ -8128,11 +8128,11 @@ low=lastIndex===-1?0:lastIndex;}else{high=lastIndex;}}state.lastKey=key;state.la if(line>=decoded.length)return OMapping(null,null,null,null);const segments=decoded[line];const index=traceSegmentInternal(segments,map._decodedMemo,line,column,bias||GREATEST_LOWER_BOUND);if(index===-1)return OMapping(null,null,null,null);const segment=segments[index];if(segment.length===1)return OMapping(null,null,null,null);const names=map.names,resolvedSources=map.resolvedSources;return OMapping(resolvedSources[segment[SOURCES_INDEX]],segment[SOURCE_LINE]+1,segment[SOURCE_COLUMN],segment.length===5?names[segment[NAMES_INDEX]]:null);};})();function OMapping(source,line,column,name){return{source,line,column,name};}function traceSegmentInternal(segments,memo,line,column,bias){let index=memoizedBinarySearch(segments,column,memo,line);if(found){index=(bias===LEAST_UPPER_BOUND?upperBound:lowerBound)(segments,column,index);}else if(bias===LEAST_UPPER_BOUND)index++;if(index===-1||index===segments.length)return-1;return index;}const CHROME_IE_STACK_REGEXP=/^\\s*at .*(\\S+:\\d+|\\(native\\))/m;const SAFARI_NATIVE_CODE_REGEXP=/^(eval@)?(\\[native code])?$/;const stackIgnorePatterns=["node:internal",/\\/packages\\/\\w+\\/dist\\//,/\\/@vitest\\/\\w+\\/dist\\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chai.js",/__vitest_browser__/];function extractLocation(urlLike){if(!urlLike.includes(":"))return[urlLike];const regExp=/(.+?)(?::(\\d+))?(?::(\\d+))?$/;const parts=regExp.exec(urlLike.replace(/^\\(|\\)$/g,""));if(!parts)return[urlLike];let url=parts[1];if(url.startsWith("http:")||url.startsWith("https:")){const urlObj=new URL(url);url=urlObj.pathname;}if(url.startsWith("/@fs/")){url=url.slice(typeof process!=="undefined"&&process.platform==="win32"?5:4);}return[url,parts[2]||void 0,parts[3]||void 0];}function parseSingleFFOrSafariStack(raw){let line=raw.trim();if(SAFARI_NATIVE_CODE_REGEXP.test(line))return null;if(line.includes(" > eval"))line=line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,":$1");if(!line.includes("@")&&!line.includes(":"))return null;const functionNameRegex=/((.*".+"[^@]*)?[^@]*)(?:@)/;const matches=line.match(functionNameRegex);const functionName=matches&&matches[1]?matches[1]:void 0;const _extractLocation=extractLocation(line.replace(functionNameRegex,"")),_extractLocation2=_slicedToArray(_extractLocation,3),url=_extractLocation2[0],lineNumber=_extractLocation2[1],columnNumber=_extractLocation2[2];if(!url||!lineNumber||!columnNumber)return null;return{file:url,method:functionName||"",line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}function parseSingleV8Stack(raw){let line=raw.trim();if(!CHROME_IE_STACK_REGEXP.test(line))return null;if(line.includes("(eval "))line=line.replace(/eval code/g,"eval").replace(/(\\(eval at [^()]*)|(,.*$)/g,"");let sanitizedLine=line.replace(/^\\s+/,"").replace(/\\(eval code/g,"(").replace(/^.*?\\s+/,"");const location=sanitizedLine.match(/ (\\(.+\\)$)/);sanitizedLine=location?sanitizedLine.replace(location[0],""):sanitizedLine;const _extractLocation3=extractLocation(location?location[1]:sanitizedLine),_extractLocation4=_slicedToArray(_extractLocation3,3),url=_extractLocation4[0],lineNumber=_extractLocation4[1],columnNumber=_extractLocation4[2];let method=location&&sanitizedLine||"";let file=url&&["eval",""].includes(url)?void 0:url;if(!file||!lineNumber||!columnNumber)return null;if(method.startsWith("async "))method=method.slice(6);if(file.startsWith("file://"))file=file.slice(7);file=resolve$3(file);if(method)method=method.replace(/__vite_ssr_import_\\d+__\\./g,"");return{method,file,line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}function parseStacktrace(stack,options={}){const _options$ignoreStackE=options.ignoreStackEntries,ignoreStackEntries=_options$ignoreStackE===void 0?stackIgnorePatterns:_options$ignoreStackE;let stacks=!CHROME_IE_STACK_REGEXP.test(stack)?parseFFOrSafariStackTrace(stack):parseV8Stacktrace(stack);if(ignoreStackEntries.length)stacks=stacks.filter(stack2=>!ignoreStackEntries.some(p=>stack2.file.match(p)));return stacks.map(stack2=>{var _a;const map=(_a=options.getSourceMap)==null?void 0:_a.call(options,stack2.file);if(!map||typeof map!=="object"||!map.version)return stack2;const traceMap=new TraceMap(map);const _originalPositionFor=originalPositionFor(traceMap,stack2),line=_originalPositionFor.line,column=_originalPositionFor.column;if(line!=null&&column!=null)return _objectSpread(_objectSpread({},stack2),{},{line,column});return stack2;});}function parseFFOrSafariStackTrace(stack){return stack.split("\\n").map(line=>parseSingleFFOrSafariStack(line)).filter(notNullish);}function parseV8Stacktrace(stack){return stack.split("\\n").map(line=>parseSingleV8Stack(line)).filter(notNullish);}function parseErrorStacktrace(e,options={}){if(!e||isPrimitive(e))return[];if(e.stacks)return e.stacks;const stackStr=e.stack||e.stackStr||"";let stackFrames=parseStacktrace(stackStr,options);if(options.frameFilter)stackFrames=stackFrames.filter(f=>options.frameFilter(e,f)!==false);e.stacks=stackFrames;return stackFrames;}async function saveInlineSnapshots(environment,snapshots){const MagicString=(await import('./bundle-D7lcxiVj.js')).default;const files=new Set(snapshots.map(i=>i.file));await Promise.all(Array.from(files).map(async file=>{const snaps=snapshots.filter(i=>i.file===file);const code=await environment.readSnapshotFile(file);const s=new MagicString(code);for(const snap of snaps){const index=positionToOffset(code,snap.line,snap.column);replaceInlineSnap(code,s,index,snap.snapshot);}const transformed=s.toString();if(transformed!==code)await environment.saveSnapshotFile(file,transformed);}));}const startObjectRegex=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*({)/m;function replaceObjectSnap(code,s,index,newSnap){let _code=code.slice(index);const startMatch=startObjectRegex.exec(_code);if(!startMatch)return false;_code=_code.slice(startMatch.index);let callEnd=getCallLastIndex(_code);if(callEnd===null)return false;callEnd+=index+startMatch.index;const shapeStart=index+startMatch.index+startMatch[0].length;const shapeEnd=getObjectShapeEndIndex(code,shapeStart);const snap=\`, \${prepareSnapString(newSnap,code,index)}\`;if(shapeEnd===callEnd){s.appendLeft(callEnd,snap);}else{s.overwrite(shapeEnd,callEnd,snap);}return true;}function getObjectShapeEndIndex(code,index){let startBraces=1;let endBraces=0;while(startBraces!==endBraces&&indexi?indentNext+i:"").join("\\n").replace(/\`/g,"\\\\\`").replace(/\\\${/g,"\\\\\${")} \${indent}\${quote}\`;}const startRegex=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*[\\w_$]*(['"\`\\)])/m;function replaceInlineSnap(code,s,index,newSnap){const codeStartingAtIndex=code.slice(index);const startMatch=startRegex.exec(codeStartingAtIndex);const firstKeywordMatch=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(codeStartingAtIndex);if(!startMatch||startMatch.index!==(firstKeywordMatch==null?void 0:firstKeywordMatch.index))return replaceObjectSnap(code,s,index,newSnap);const quote=startMatch[1];const startIndex=index+startMatch.index+startMatch[0].length;const snapString=prepareSnapString(newSnap,code,index);if(quote===")"){s.appendRight(startIndex-1,snapString);return true;}const quoteEndRE=new RegExp(\`(?:^|[^\\\\\\\\])\${quote}\`);const endMatch=quoteEndRE.exec(code.slice(startIndex));if(!endMatch)return false;const endIndex=startIndex+endMatch.index+endMatch[0].length;s.overwrite(startIndex-1,endIndex,snapString);return true;}const INDENTATION_REGEX=/^([^\\S\\n]*)\\S/m;function stripSnapshotIndentation(inlineSnapshot){const match=inlineSnapshot.match(INDENTATION_REGEX);if(!match||!match[1]){return inlineSnapshot;}const indentation=match[1];const lines=inlineSnapshot.split(/\\n/g);if(lines.length<=2){return inlineSnapshot;}if(lines[0].trim()!==""||lines[lines.length-1].trim()!==""){return inlineSnapshot;}for(let i=1;i{if(!snap.readonly)await environment.saveSnapshotFile(snap.file,snap.snapshot);}));}class SnapshotState{constructor(testFilePath,snapshotPath,snapshotContent,options){this.testFilePath=testFilePath;this.snapshotPath=snapshotPath;const _getSnapshotData=getSnapshotData(snapshotContent,options),data=_getSnapshotData.data,dirty=_getSnapshotData.dirty;this._fileExists=snapshotContent!=null;this._initialData=data;this._snapshotData=data;this._dirty=dirty;this._inlineSnapshots=[];this._rawSnapshots=[];this._uncheckedKeys=new Set(Object.keys(this._snapshotData));this._counters=/* @__PURE__ */new Map();this.expand=options.expand||false;this.added=0;this.matched=0;this.unmatched=0;this._updateSnapshot=options.updateSnapshot;this.updated=0;this._snapshotFormat=_objectSpread({printBasicPrototype:false,escapeString:false},options.snapshotFormat);this._environment=options.snapshotEnvironment;}_counters;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;added;expand;matched;unmatched;updated;static async create(testFilePath,options){const snapshotPath=await options.snapshotEnvironment.resolvePath(testFilePath);const content=await options.snapshotEnvironment.readSnapshotFile(snapshotPath);return new SnapshotState(testFilePath,snapshotPath,content,options);}get environment(){return this._environment;}markSnapshotsAsCheckedForTest(testName){this._uncheckedKeys.forEach(uncheckedKey=>{if(keyToTestName(uncheckedKey)===testName)this._uncheckedKeys.delete(uncheckedKey);});}_inferInlineSnapshotStack(stacks){const promiseIndex=stacks.findIndex(i=>i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(promiseIndex!==-1)return stacks[promiseIndex+3];const stackIndex=stacks.findIndex(i=>i.method.includes("__INLINE_SNAPSHOT__"));return stackIndex!==-1?stacks[stackIndex+2]:null;}_addSnapshot(key,receivedSerialized,options){this._dirty=true;if(options.isInline){const stacks=parseErrorStacktrace(options.error||new Error("snapshot"),{ignoreStackEntries:[]});const stack=this._inferInlineSnapshotStack(stacks);if(!stack){throw new Error(\`@vitest/snapshot: Couldn't infer stack frame for inline snapshot. -\${JSON.stringify(stacks)}\`);}stack.column--;this._inlineSnapshots.push(_objectSpread({snapshot:receivedSerialized},stack));}else if(options.rawSnapshot){this._rawSnapshots.push(_objectSpread(_objectSpread({},options.rawSnapshot),{},{snapshot:receivedSerialized}));}else{this._snapshotData[key]=receivedSerialized;}}clear(){this._snapshotData=this._initialData;this._counters=/* @__PURE__ */new Map();this.added=0;this.matched=0;this.unmatched=0;this.updated=0;this._dirty=false;}async save(){const hasExternalSnapshots=Object.keys(this._snapshotData).length;const hasInlineSnapshots=this._inlineSnapshots.length;const hasRawSnapshots=this._rawSnapshots.length;const isEmpty=!hasExternalSnapshots&&!hasInlineSnapshots&&!hasRawSnapshots;const status={deleted:false,saved:false};if((this._dirty||this._uncheckedKeys.size)&&!isEmpty){if(hasExternalSnapshots){await saveSnapshotFile(this._environment,this._snapshotData,this.snapshotPath);this._fileExists=true;}if(hasInlineSnapshots)await saveInlineSnapshots(this._environment,this._inlineSnapshots);if(hasRawSnapshots)await saveRawSnapshots(this._environment,this._rawSnapshots);status.saved=true;}else if(!hasExternalSnapshots&&this._fileExists){if(this._updateSnapshot==="all"){await this._environment.removeSnapshotFile(this.snapshotPath);this._fileExists=false;}status.deleted=true;}return status;}getUncheckedCount(){return this._uncheckedKeys.size||0;}getUncheckedKeys(){return Array.from(this._uncheckedKeys);}removeUncheckedKeys(){if(this._updateSnapshot==="all"&&this._uncheckedKeys.size){this._dirty=true;this._uncheckedKeys.forEach(key=>delete this._snapshotData[key]);this._uncheckedKeys.clear();}}match({testName,received,key,inlineSnapshot,isInline,error,rawSnapshot}){this._counters.set(testName,(this._counters.get(testName)||0)+1);const count=Number(this._counters.get(testName));if(!key)key=testNameToKey(testName,count);if(!(isInline&&this._snapshotData[key]!==void 0))this._uncheckedKeys.delete(key);let receivedSerialized=rawSnapshot&&typeof received==="string"?received:serialize(received,void 0,this._snapshotFormat);if(!rawSnapshot)receivedSerialized=addExtraLineBreaks(receivedSerialized);if(rawSnapshot){if(rawSnapshot.content&&rawSnapshot.content.match(/\\r\\n/)&&!receivedSerialized.match(/\\r\\n/))rawSnapshot.content=normalizeNewlines(rawSnapshot.content);}const expected=isInline?inlineSnapshot:rawSnapshot?rawSnapshot.content:this._snapshotData[key];const expectedTrimmed=prepareExpected(expected);const pass=expectedTrimmed===prepareExpected(receivedSerialized);const hasSnapshot=expected!==void 0;const snapshotIsPersisted=isInline||this._fileExists||rawSnapshot&&rawSnapshot.content!=null;if(pass&&!isInline&&!rawSnapshot){this._snapshotData[key]=receivedSerialized;}if(hasSnapshot&&this._updateSnapshot==="all"||(!hasSnapshot||!snapshotIsPersisted)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")){if(this._updateSnapshot==="all"){if(!pass){if(hasSnapshot)this.updated++;else this.added++;this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});}else{this.matched++;}}else{this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});this.added++;}return{actual:"",count,expected:"",key,pass:true};}else{if(!pass){this.unmatched++;return{actual:removeExtraLineBreaks(receivedSerialized),count,expected:expectedTrimmed!==void 0?removeExtraLineBreaks(expectedTrimmed):void 0,key,pass:false};}else{this.matched++;return{actual:"",count,expected:"",key,pass:true};}}}async pack(){const snapshot={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0};const uncheckedCount=this.getUncheckedCount();const uncheckedKeys=this.getUncheckedKeys();if(uncheckedCount)this.removeUncheckedKeys();const status=await this.save();snapshot.fileDeleted=status.deleted;snapshot.added=this.added;snapshot.matched=this.matched;snapshot.unmatched=this.unmatched;snapshot.updated=this.updated;snapshot.unchecked=!status.deleted?uncheckedCount:0;snapshot.uncheckedKeys=Array.from(uncheckedKeys);return snapshot;}}function createMismatchError(message,expand,actual,expected){const error=new Error(message);Object.defineProperty(error,"actual",{value:actual,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"expected",{value:expected,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"diffOptions",{value:{expand}});return error;}class SnapshotClient{constructor(options={}){this.options=options;}filepath;name;snapshotState;snapshotStateMap=/* @__PURE__ */new Map();async startCurrentRun(filepath,name,options){var _a;this.filepath=filepath;this.name=name;if(((_a=this.snapshotState)==null?void 0:_a.testFilePath)!==filepath){await this.finishCurrentRun();if(!this.getSnapshotState(filepath)){this.snapshotStateMap.set(filepath,await SnapshotState.create(filepath,options));}this.snapshotState=this.getSnapshotState(filepath);}}getSnapshotState(filepath){return this.snapshotStateMap.get(filepath);}clearTest(){this.filepath=void 0;this.name=void 0;}skipTestSnapshots(name){var _a;(_a=this.snapshotState)==null?void 0:_a.markSnapshotsAsCheckedForTest(name);}assert(options){var _a,_b,_c,_d;const _options$filepath=options.filepath,filepath=_options$filepath===void 0?this.filepath:_options$filepath,_options$name=options.name,name=_options$name===void 0?this.name:_options$name,message=options.message,_options$isInline=options.isInline,isInline=_options$isInline===void 0?false:_options$isInline,properties=options.properties,inlineSnapshot=options.inlineSnapshot,error=options.error,errorMessage=options.errorMessage,rawSnapshot=options.rawSnapshot;let received=options.received;if(!filepath)throw new Error("Snapshot cannot be used outside of test");if(typeof properties==="object"){if(typeof received!=="object"||!received)throw new Error("Received value must be an object when the matcher has properties");try{const pass2=((_b=(_a=this.options).isEqual)==null?void 0:_b.call(_a,received,properties))??false;if(!pass2)throw createMismatchError("Snapshot properties mismatched",(_c=this.snapshotState)==null?void 0:_c.expand,received,properties);else received=deepMergeSnapshot(received,properties);}catch(err){err.message=errorMessage||"Snapshot mismatched";throw err;}}const testName=[name,...(message?[message]:[])].join(" > ");const snapshotState=this.getSnapshotState(filepath);const _snapshotState$match=snapshotState.match({testName,received,isInline,error,inlineSnapshot,rawSnapshot}),actual=_snapshotState$match.actual,expected=_snapshotState$match.expected,key=_snapshotState$match.key,pass=_snapshotState$match.pass;if(!pass)throw createMismatchError(\`Snapshot \\\`\${key||"unknown"}\\\` mismatched\`,(_d=this.snapshotState)==null?void 0:_d.expand,actual==null?void 0:actual.trim(),expected==null?void 0:expected.trim());}async assertRaw(options){if(!options.rawSnapshot)throw new Error("Raw snapshot is required");const _options$filepath2=options.filepath,filepath=_options$filepath2===void 0?this.filepath:_options$filepath2,rawSnapshot=options.rawSnapshot;if(rawSnapshot.content==null){if(!filepath)throw new Error("Snapshot cannot be used outside of test");const snapshotState=this.getSnapshotState(filepath);options.filepath||(options.filepath=filepath);rawSnapshot.file=await snapshotState.environment.resolveRawPath(filepath,rawSnapshot.file);rawSnapshot.content=(await snapshotState.environment.readSnapshotFile(rawSnapshot.file))||void 0;}return this.assert(options);}async finishCurrentRun(){if(!this.snapshotState)return null;const result=await this.snapshotState.pack();this.snapshotState=void 0;return result;}clear(){this.snapshotStateMap.clear();}}function getFullName(task,separator=" > "){return getNames(task).join(separator);}function isChildProcess(){return typeof process!=="undefined"&&!!process.send;}const RealDate=Date;let now=null;class MockDate extends RealDate{constructor(y,m,d,h,M,s,ms){super();let date;switch(arguments.length){case 0:if(now!==null)date=new RealDate(now.valueOf());else date=new RealDate();break;case 1:date=new RealDate(y);break;default:d=typeof d==="undefined"?1:d;h=h||0;M=M||0;s=s||0;ms=ms||0;date=new RealDate(y,m,d,h,M,s,ms);break;}Object.setPrototypeOf(date,MockDate.prototype);return date;}}MockDate.UTC=RealDate.UTC;MockDate.now=function(){return new MockDate().valueOf();};MockDate.parse=function(dateString){return RealDate.parse(dateString);};MockDate.toString=function(){return RealDate.toString();};function mockDate(date){const dateObj=new RealDate(date.valueOf());if(Number.isNaN(dateObj.getTime()))throw new TypeError(\`mockdate: The time set is an invalid date: \${date}\`);globalThis.Date=MockDate;now=dateObj.valueOf();}function resetDate(){globalThis.Date=RealDate;}function resetModules(modules,resetMocks=false){const skipPaths=[// Vitest +\${JSON.stringify(stacks)}\`);}stack.column--;this._inlineSnapshots.push(_objectSpread({snapshot:receivedSerialized},stack));}else if(options.rawSnapshot){this._rawSnapshots.push(_objectSpread(_objectSpread({},options.rawSnapshot),{},{snapshot:receivedSerialized}));}else{this._snapshotData[key]=receivedSerialized;}}clear(){this._snapshotData=this._initialData;this._counters=/* @__PURE__ */new Map();this.added=0;this.matched=0;this.unmatched=0;this.updated=0;this._dirty=false;}async save(){const hasExternalSnapshots=Object.keys(this._snapshotData).length;const hasInlineSnapshots=this._inlineSnapshots.length;const hasRawSnapshots=this._rawSnapshots.length;const isEmpty=!hasExternalSnapshots&&!hasInlineSnapshots&&!hasRawSnapshots;const status={deleted:false,saved:false};if((this._dirty||this._uncheckedKeys.size)&&!isEmpty){if(hasExternalSnapshots){await saveSnapshotFile(this._environment,this._snapshotData,this.snapshotPath);this._fileExists=true;}if(hasInlineSnapshots)await saveInlineSnapshots(this._environment,this._inlineSnapshots);if(hasRawSnapshots)await saveRawSnapshots(this._environment,this._rawSnapshots);status.saved=true;}else if(!hasExternalSnapshots&&this._fileExists){if(this._updateSnapshot==="all"){await this._environment.removeSnapshotFile(this.snapshotPath);this._fileExists=false;}status.deleted=true;}return status;}getUncheckedCount(){return this._uncheckedKeys.size||0;}getUncheckedKeys(){return Array.from(this._uncheckedKeys);}removeUncheckedKeys(){if(this._updateSnapshot==="all"&&this._uncheckedKeys.size){this._dirty=true;this._uncheckedKeys.forEach(key=>delete this._snapshotData[key]);this._uncheckedKeys.clear();}}match({testName,received,key,inlineSnapshot,isInline,error,rawSnapshot}){this._counters.set(testName,(this._counters.get(testName)||0)+1);const count=Number(this._counters.get(testName));if(!key)key=testNameToKey(testName,count);if(!(isInline&&this._snapshotData[key]!==void 0))this._uncheckedKeys.delete(key);let receivedSerialized=rawSnapshot&&typeof received==="string"?received:serialize(received,void 0,this._snapshotFormat);if(!rawSnapshot)receivedSerialized=addExtraLineBreaks(receivedSerialized);if(rawSnapshot){if(rawSnapshot.content&&rawSnapshot.content.match(/\\r\\n/)&&!receivedSerialized.match(/\\r\\n/))rawSnapshot.content=normalizeNewlines(rawSnapshot.content);}const expected=isInline?inlineSnapshot:rawSnapshot?rawSnapshot.content:this._snapshotData[key];const expectedTrimmed=prepareExpected(expected);const pass=expectedTrimmed===prepareExpected(receivedSerialized);const hasSnapshot=expected!==void 0;const snapshotIsPersisted=isInline||this._fileExists||rawSnapshot&&rawSnapshot.content!=null;if(pass&&!isInline&&!rawSnapshot){this._snapshotData[key]=receivedSerialized;}if(hasSnapshot&&this._updateSnapshot==="all"||(!hasSnapshot||!snapshotIsPersisted)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")){if(this._updateSnapshot==="all"){if(!pass){if(hasSnapshot)this.updated++;else this.added++;this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});}else{this.matched++;}}else{this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});this.added++;}return{actual:"",count,expected:"",key,pass:true};}else{if(!pass){this.unmatched++;return{actual:removeExtraLineBreaks(receivedSerialized),count,expected:expectedTrimmed!==void 0?removeExtraLineBreaks(expectedTrimmed):void 0,key,pass:false};}else{this.matched++;return{actual:"",count,expected:"",key,pass:true};}}}async pack(){const snapshot={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0};const uncheckedCount=this.getUncheckedCount();const uncheckedKeys=this.getUncheckedKeys();if(uncheckedCount)this.removeUncheckedKeys();const status=await this.save();snapshot.fileDeleted=status.deleted;snapshot.added=this.added;snapshot.matched=this.matched;snapshot.unmatched=this.unmatched;snapshot.updated=this.updated;snapshot.unchecked=!status.deleted?uncheckedCount:0;snapshot.uncheckedKeys=Array.from(uncheckedKeys);return snapshot;}}function createMismatchError(message,expand,actual,expected){const error=new Error(message);Object.defineProperty(error,"actual",{value:actual,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"expected",{value:expected,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"diffOptions",{value:{expand}});return error;}class SnapshotClient{constructor(options={}){this.options=options;}filepath;name;snapshotState;snapshotStateMap=/* @__PURE__ */new Map();async startCurrentRun(filepath,name,options){var _a;this.filepath=filepath;this.name=name;if(((_a=this.snapshotState)==null?void 0:_a.testFilePath)!==filepath){await this.finishCurrentRun();if(!this.getSnapshotState(filepath)){this.snapshotStateMap.set(filepath,await SnapshotState.create(filepath,options));}this.snapshotState=this.getSnapshotState(filepath);}}getSnapshotState(filepath){return this.snapshotStateMap.get(filepath);}clearTest(){this.filepath=void 0;this.name=void 0;}skipTestSnapshots(name){var _a;(_a=this.snapshotState)==null?void 0:_a.markSnapshotsAsCheckedForTest(name);}assert(options){var _a,_b,_c,_d;const _options$filepath=options.filepath,filepath=_options$filepath===void 0?this.filepath:_options$filepath,_options$name=options.name,name=_options$name===void 0?this.name:_options$name,message=options.message,_options$isInline=options.isInline,isInline=_options$isInline===void 0?false:_options$isInline,properties=options.properties,inlineSnapshot=options.inlineSnapshot,error=options.error,errorMessage=options.errorMessage,rawSnapshot=options.rawSnapshot;let received=options.received;if(!filepath)throw new Error("Snapshot cannot be used outside of test");if(typeof properties==="object"){if(typeof received!=="object"||!received)throw new Error("Received value must be an object when the matcher has properties");try{const pass2=((_b=(_a=this.options).isEqual)==null?void 0:_b.call(_a,received,properties))??false;if(!pass2)throw createMismatchError("Snapshot properties mismatched",(_c=this.snapshotState)==null?void 0:_c.expand,received,properties);else received=deepMergeSnapshot(received,properties);}catch(err){err.message=errorMessage||"Snapshot mismatched";throw err;}}const testName=[name,...(message?[message]:[])].join(" > ");const snapshotState=this.getSnapshotState(filepath);const _snapshotState$match=snapshotState.match({testName,received,isInline,error,inlineSnapshot,rawSnapshot}),actual=_snapshotState$match.actual,expected=_snapshotState$match.expected,key=_snapshotState$match.key,pass=_snapshotState$match.pass;if(!pass)throw createMismatchError(\`Snapshot \\\`\${key||"unknown"}\\\` mismatched\`,(_d=this.snapshotState)==null?void 0:_d.expand,actual==null?void 0:actual.trim(),expected==null?void 0:expected.trim());}async assertRaw(options){if(!options.rawSnapshot)throw new Error("Raw snapshot is required");const _options$filepath2=options.filepath,filepath=_options$filepath2===void 0?this.filepath:_options$filepath2,rawSnapshot=options.rawSnapshot;if(rawSnapshot.content==null){if(!filepath)throw new Error("Snapshot cannot be used outside of test");const snapshotState=this.getSnapshotState(filepath);options.filepath||(options.filepath=filepath);rawSnapshot.file=await snapshotState.environment.resolveRawPath(filepath,rawSnapshot.file);rawSnapshot.content=(await snapshotState.environment.readSnapshotFile(rawSnapshot.file))||void 0;}return this.assert(options);}async finishCurrentRun(){if(!this.snapshotState)return null;const result=await this.snapshotState.pack();this.snapshotState=void 0;return result;}clear(){this.snapshotStateMap.clear();}}function isChildProcess(){return typeof process!=="undefined"&&!!process.send;}const RealDate=Date;let now=null;class MockDate extends RealDate{constructor(y,m,d,h,M,s,ms){super();let date;switch(arguments.length){case 0:if(now!==null)date=new RealDate(now.valueOf());else date=new RealDate();break;case 1:date=new RealDate(y);break;default:d=typeof d==="undefined"?1:d;h=h||0;M=M||0;s=s||0;ms=ms||0;date=new RealDate(y,m,d,h,M,s,ms);break;}Object.setPrototypeOf(date,MockDate.prototype);return date;}}MockDate.UTC=RealDate.UTC;MockDate.now=function(){return new MockDate().valueOf();};MockDate.parse=function(dateString){return RealDate.parse(dateString);};MockDate.toString=function(){return RealDate.toString();};function mockDate(date){const dateObj=new RealDate(date.valueOf());if(Number.isNaN(dateObj.getTime()))throw new TypeError(\`mockdate: The time set is an invalid date: \${date}\`);globalThis.Date=MockDate;now=dateObj.valueOf();}function resetDate(){globalThis.Date=RealDate;}function resetModules(modules,resetMocks=false){const skipPaths=[// Vitest /\\/vitest\\/dist\\//,/\\/vite-node\\/dist\\//,// yarn's .store folder /vitest-virtual-\\w+\\/dist/,// cnpm /@vitest\\/dist/,// don't clear mocks -...(!resetMocks?[/^mock:/]:[])];modules.forEach((mod,path)=>{if(skipPaths.some(re=>re.test(path)))return;modules.invalidateModule(mod);});}function waitNextTick(){const _getSafeTimers2=getSafeTimers(),setTimeout=_getSafeTimers2.setTimeout;return new Promise(resolve=>setTimeout(resolve,0));}async function waitForImportsToResolve(){await waitNextTick();const state=getWorkerState();const promises=[];let resolvingCount=0;for(const mod of state.moduleCache.values()){if(mod.promise&&!mod.evaluated)promises.push(mod.promise);if(mod.resolving)resolvingCount++;}if(!promises.length&&!resolvingCount)return;await Promise.allSettled(promises);await waitForImportsToResolve();}function commonjsRequire(path){throw new Error('Could not dynamically require "'+path+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}var chaiSubset={exports:{}};(function(module,exports){(function(){(function(chaiSubset){if(typeof commonjsRequire==='function'&&'object'==='object'&&'object'==='object'){return module.exports=chaiSubset;}else{return chai.use(chaiSubset);}})(function(chai,utils){var Assertion=chai.Assertion;var assertionPrototype=Assertion.prototype;Assertion.addMethod('containSubset',function(expected){var actual=utils.flag(this,'object');var showDiff=chai.config.showDiff;assertionPrototype.assert.call(this,compare(expected,actual),'expected #{act} to contain subset #{exp}','expected #{act} to not contain subset #{exp}',expected,actual,showDiff);});chai.assert.containSubset=function(val,exp,msg){new chai.Assertion(val,msg).to.be.containSubset(exp);};function compare(expected,actual){if(expected===actual){return true;}if(typeof actual!==typeof expected){return false;}if(typeof expected!=='object'||expected===null){return expected===actual;}if(!!expected&&!actual){return false;}if(Array.isArray(expected)){if(typeof actual.length!=='number'){return false;}var aa=Array.prototype.slice.call(actual);return expected.every(function(exp){return aa.some(function(act){return compare(exp,act);});});}if(expected instanceof Date){if(actual instanceof Date){return expected.getTime()===actual.getTime();}else{return false;}}return Object.keys(expected).every(function(key){var eo=expected[key];var ao=actual[key];if(typeof eo==='object'&&eo!==null&&ao!==null){return compare(eo,ao);}if(typeof eo==='function'){return eo(ao);}return ao===eo;});}});}).call(commonjsGlobal);})(chaiSubset);var chaiSubsetExports=chaiSubset.exports;var Subset=/*@__PURE__*/getDefaultExportFromCjs$1(chaiSubsetExports);const MATCHERS_OBJECT=Symbol.for("matchers-object");const JEST_MATCHERS_OBJECT=Symbol.for("$$jest-matchers-object");const GLOBAL_EXPECT=Symbol.for("expect-global");const ASYMMETRIC_MATCHERS_OBJECT=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,MATCHERS_OBJECT)){const globalState=/* @__PURE__ */new WeakMap();const matchers=/* @__PURE__ */Object.create(null);const customEqualityTesters=[];const assymetricMatchers=/* @__PURE__ */Object.create(null);Object.defineProperty(globalThis,MATCHERS_OBJECT,{get:()=>globalState});Object.defineProperty(globalThis,JEST_MATCHERS_OBJECT,{configurable:true,get:()=>({state:globalState.get(globalThis[GLOBAL_EXPECT]),matchers,customEqualityTesters})});Object.defineProperty(globalThis,ASYMMETRIC_MATCHERS_OBJECT,{get:()=>assymetricMatchers});}function recordAsyncExpect(test,promise){if(test&&promise instanceof Promise){promise=promise.finally(()=>{const index=test.promises.indexOf(promise);if(index!==-1)test.promises.splice(index,1);});if(!test.promises)test.promises=[];test.promises.push(promise);}return promise;}let _client;function getSnapshotClient(){if(!_client){_client=new SnapshotClient({isEqual:(received,expected)=>{return equals(received,expected,[iterableEquality,subsetEquality]);}});}return _client;}function getError(expected,promise){if(typeof expected!=="function"){if(!promise)throw new Error(\`expected must be a function, received \${typeof expected}\`);return expected;}try{expected();}catch(e){return e;}throw new Error("snapshot function didn't throw");}const SnapshotPlugin=(chai,utils)=>{const getTestNames=test=>{var _a;if(!test)return{};return{filepath:(_a=test.file)==null?void 0:_a.filepath,name:getNames(test).slice(1).join(" > ")};};for(const key of["matchSnapshot","toMatchSnapshot"]){utils.addMethod(chai.Assertion.prototype,key,function(properties,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error(\`\${key} cannot be used with "not"\`);const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");if(typeof properties==="string"&&typeof message==="undefined"){message=properties;properties=void 0;}const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:false,properties,errorMessage},getTestNames(test)));});}utils.addMethod(chai.Assertion.prototype,"toMatchFileSnapshot",function(file,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchFileSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const errorMessage=utils.flag(this,"message");const promise=getSnapshotClient().assertRaw(_objectSpread({received:expected,message,isInline:false,rawSnapshot:{file},errorMessage},getTestNames(test)));return recordAsyncExpect(test,promise);});utils.addMethod(chai.Assertion.prototype,"toMatchInlineSnapshot",function __INLINE_SNAPSHOT__(properties,inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");if(typeof properties==="string"){message=inlineSnapshot;inlineSnapshot=properties;properties=void 0;}if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:true,properties,inlineSnapshot,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function __INLINE_SNAPSHOT__(inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,inlineSnapshot,isInline:true,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.expect,"addSnapshotSerializer",addSerializer);};use(JestExtend);use(JestChaiExpect);use(Subset);use(SnapshotPlugin);use(JestAsymmetricMatchers);function createExpect(test){var _a;const expect$1=(value,message)=>{const _getState=getState(expect$1),assertionCalls=_getState.assertionCalls;setState({assertionCalls:assertionCalls+1,soft:false},expect$1);const assert2=expect(value,message);const _test=test||getCurrentTest();if(_test)return assert2.withTest(_test);else return assert2;};Object.assign(expect$1,expect);Object.assign(expect$1,globalThis[ASYMMETRIC_MATCHERS_OBJECT$1]);expect$1.getState=()=>getState(expect$1);expect$1.setState=state=>setState(state,expect$1);const globalState=getState(globalThis[GLOBAL_EXPECT$1])||{};setState(_objectSpread(_objectSpread({},globalState),{},{assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:getCurrentEnvironment(),testPath:test?(_a=test.suite.file)==null?void 0:_a.filepath:globalState.testPath,currentTestName:test?getFullName(test):globalState.currentTestName}),expect$1);expect$1.extend=matchers=>expect.extend(expect$1,matchers);expect$1.addEqualityTesters=customTesters=>addCustomEqualityTesters(customTesters);expect$1.soft=(...args)=>{const assert2=expect$1(...args);expect$1.setState({soft:true});return assert2;};expect$1.unreachable=message=>{assert.fail(\`expected\${message?\` "\${message}" \`:" "}not to be reached\`);};function assertions(expected){const errorGen=()=>new Error(\`expected number of assertions to be \${expected}, but got \${expect$1.getState().assertionCalls}\`);if(Error.captureStackTrace)Error.captureStackTrace(errorGen(),assertions);expect$1.setState({expectedAssertionsNumber:expected,expectedAssertionsNumberErrorGen:errorGen});}function hasAssertions(){const error=new Error("expected any number of assertion, but got none");if(Error.captureStackTrace)Error.captureStackTrace(error,hasAssertions);expect$1.setState({isExpectingAssertions:true,isExpectingAssertionsError:error});}util.addMethod(expect$1,"assertions",assertions);util.addMethod(expect$1,"hasAssertions",hasAssertions);return expect$1;}const globalExpect=createExpect();Object.defineProperty(globalThis,GLOBAL_EXPECT$1,{value:globalExpect,writable:true,configurable:true});/** +...(!resetMocks?[/^mock:/]:[])];modules.forEach((mod,path)=>{if(skipPaths.some(re=>re.test(path)))return;modules.invalidateModule(mod);});}function waitNextTick(){const _getSafeTimers2=getSafeTimers(),setTimeout=_getSafeTimers2.setTimeout;return new Promise(resolve=>setTimeout(resolve,0));}async function waitForImportsToResolve(){await waitNextTick();const state=getWorkerState();const promises=[];let resolvingCount=0;for(const mod of state.moduleCache.values()){if(mod.promise&&!mod.evaluated)promises.push(mod.promise);if(mod.resolving)resolvingCount++;}if(!promises.length&&!resolvingCount)return;await Promise.allSettled(promises);await waitForImportsToResolve();}function commonjsRequire(path){throw new Error('Could not dynamically require "'+path+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}var chaiSubset={exports:{}};(function(module,exports){(function(){(function(chaiSubset){if(typeof commonjsRequire==='function'&&'object'==='object'&&'object'==='object'){return module.exports=chaiSubset;}else{return chai.use(chaiSubset);}})(function(chai,utils){var Assertion=chai.Assertion;var assertionPrototype=Assertion.prototype;Assertion.addMethod('containSubset',function(expected){var actual=utils.flag(this,'object');var showDiff=chai.config.showDiff;assertionPrototype.assert.call(this,compare(expected,actual),'expected #{act} to contain subset #{exp}','expected #{act} to not contain subset #{exp}',expected,actual,showDiff);});chai.assert.containSubset=function(val,exp,msg){new chai.Assertion(val,msg).to.be.containSubset(exp);};function compare(expected,actual){if(expected===actual){return true;}if(typeof actual!==typeof expected){return false;}if(typeof expected!=='object'||expected===null){return expected===actual;}if(!!expected&&!actual){return false;}if(Array.isArray(expected)){if(typeof actual.length!=='number'){return false;}var aa=Array.prototype.slice.call(actual);return expected.every(function(exp){return aa.some(function(act){return compare(exp,act);});});}if(expected instanceof Date){if(actual instanceof Date){return expected.getTime()===actual.getTime();}else{return false;}}return Object.keys(expected).every(function(key){var eo=expected[key];var ao=actual[key];if(typeof eo==='object'&&eo!==null&&ao!==null){return compare(eo,ao);}if(typeof eo==='function'){return eo(ao);}return ao===eo;});}});}).call(commonjsGlobal);})(chaiSubset);var chaiSubsetExports=chaiSubset.exports;var Subset=/*@__PURE__*/getDefaultExportFromCjs$1(chaiSubsetExports);const MATCHERS_OBJECT=Symbol.for("matchers-object");const JEST_MATCHERS_OBJECT=Symbol.for("$$jest-matchers-object");const GLOBAL_EXPECT=Symbol.for("expect-global");const ASYMMETRIC_MATCHERS_OBJECT=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,MATCHERS_OBJECT)){const globalState=/* @__PURE__ */new WeakMap();const matchers=/* @__PURE__ */Object.create(null);const customEqualityTesters=[];const assymetricMatchers=/* @__PURE__ */Object.create(null);Object.defineProperty(globalThis,MATCHERS_OBJECT,{get:()=>globalState});Object.defineProperty(globalThis,JEST_MATCHERS_OBJECT,{configurable:true,get:()=>({state:globalState.get(globalThis[GLOBAL_EXPECT]),matchers,customEqualityTesters})});Object.defineProperty(globalThis,ASYMMETRIC_MATCHERS_OBJECT,{get:()=>assymetricMatchers});}function recordAsyncExpect(test,promise){if(test&&promise instanceof Promise){promise=promise.finally(()=>{const index=test.promises.indexOf(promise);if(index!==-1)test.promises.splice(index,1);});if(!test.promises)test.promises=[];test.promises.push(promise);}return promise;}let _client;function getSnapshotClient(){if(!_client){_client=new SnapshotClient({isEqual:(received,expected)=>{return equals(received,expected,[iterableEquality,subsetEquality]);}});}return _client;}function getError(expected,promise){if(typeof expected!=="function"){if(!promise)throw new Error(\`expected must be a function, received \${typeof expected}\`);return expected;}try{expected();}catch(e){return e;}throw new Error("snapshot function didn't throw");}const SnapshotPlugin=(chai,utils)=>{const getTestNames=test=>{var _a;if(!test)return{};return{filepath:(_a=test.file)==null?void 0:_a.filepath,name:getNames(test).slice(1).join(" > ")};};for(const key of["matchSnapshot","toMatchSnapshot"]){utils.addMethod(chai.Assertion.prototype,key,function(properties,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error(\`\${key} cannot be used with "not"\`);const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");if(typeof properties==="string"&&typeof message==="undefined"){message=properties;properties=void 0;}const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:false,properties,errorMessage},getTestNames(test)));});}utils.addMethod(chai.Assertion.prototype,"toMatchFileSnapshot",function(file,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchFileSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const errorMessage=utils.flag(this,"message");const promise=getSnapshotClient().assertRaw(_objectSpread({received:expected,message,isInline:false,rawSnapshot:{file},errorMessage},getTestNames(test)));return recordAsyncExpect(test,promise);});utils.addMethod(chai.Assertion.prototype,"toMatchInlineSnapshot",function __INLINE_SNAPSHOT__(properties,inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");if(typeof properties==="string"){message=inlineSnapshot;inlineSnapshot=properties;properties=void 0;}if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:true,properties,inlineSnapshot,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function __INLINE_SNAPSHOT__(inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,inlineSnapshot,isInline:true,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.expect,"addSnapshotSerializer",addSerializer);};use(JestExtend);use(JestChaiExpect);use(Subset);use(SnapshotPlugin);use(JestAsymmetricMatchers);function createExpect(test){const expect$1=(value,message)=>{const _getState=getState(expect$1),assertionCalls=_getState.assertionCalls;setState({assertionCalls:assertionCalls+1,soft:false},expect$1);const assert2=expect(value,message);return assert2;};Object.assign(expect$1,expect);Object.assign(expect$1,globalThis[ASYMMETRIC_MATCHERS_OBJECT$1]);expect$1.getState=()=>getState(expect$1);expect$1.setState=state=>setState(state,expect$1);const globalState=getState(globalThis[GLOBAL_EXPECT$1])||{};setState(_objectSpread(_objectSpread({},globalState),{},{assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:getCurrentEnvironment(),testPath:globalState.testPath,currentTestName:globalState.currentTestName}),expect$1);expect$1.extend=matchers=>expect.extend(expect$1,matchers);expect$1.addEqualityTesters=customTesters=>addCustomEqualityTesters(customTesters);expect$1.soft=(...args)=>{const assert2=expect$1(...args);expect$1.setState({soft:true});return assert2;};expect$1.unreachable=message=>{assert.fail(\`expected\${message?\` "\${message}" \`:" "}not to be reached\`);};function assertions(expected){const errorGen=()=>new Error(\`expected number of assertions to be \${expected}, but got \${expect$1.getState().assertionCalls}\`);if(Error.captureStackTrace)Error.captureStackTrace(errorGen(),assertions);expect$1.setState({expectedAssertionsNumber:expected,expectedAssertionsNumberErrorGen:errorGen});}function hasAssertions(){const error=new Error("expected any number of assertion, but got none");if(Error.captureStackTrace)Error.captureStackTrace(error,hasAssertions);expect$1.setState({isExpectingAssertions:true,isExpectingAssertionsError:error});}util.addMethod(expect$1,"assertions",assertions);util.addMethod(expect$1,"hasAssertions",hasAssertions);return expect$1;}const globalExpect=createExpect();Object.defineProperty(globalThis,GLOBAL_EXPECT$1,{value:globalExpect,writable:true,configurable:true});/** * A reference to the global object * * @type {object} globalObject @@ -11010,7 +11010,7 @@ exports.EXAMPLE = EXAMPLE; exports[`Outputs (swc) > artifacts > builds all the artifacts with rollup > lib/test.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -'use strict';const _excluded=["maxLength"],_excluded2=["value"];function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};var sourceKeys=Object.keys(source);var key,i;for(i=0;i=0)continue;target[key]=source[key];}return target;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);icollector.add(key);Object.getOwnPropertyNames(obj).forEach(collect);Object.getOwnPropertySymbols(obj).forEach(collect);}function getOwnProperties(obj){const ownProps=/* @__PURE__ */new Set();if(isFinalObj(obj))return[];collectOwnProperties(obj,ownProps);return Array.from(ownProps);}const defaultCloneOptions={forceWritable:false};function deepClone(val,options=defaultCloneOptions){const seen=/* @__PURE__ */new WeakMap();return clone(val,seen,options);}function clone(val,seen,options=defaultCloneOptions){let k,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){out=Array(k=val.length);seen.set(val,out);while(k--)out[k]=clone(val[k],seen,options);return out;}if(Object.prototype.toString.call(val)==="[object Object]"){out=Object.create(Object.getPrototypeOf(val));seen.set(val,out);const props=getOwnProperties(val);for(const k2 of props){const descriptor=Object.getOwnPropertyDescriptor(val,k2);if(!descriptor)continue;const cloned=clone(val[k2],seen,options);if(options.forceWritable){Object.defineProperty(out,k2,{enumerable:descriptor.enumerable,configurable:true,writable:true,value:cloned});}else if("get"in descriptor){Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{get(){return cloned;}}));}else{Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{value:cloned}));}}return out;}return val;}function objectAttr(source,path,defaultValue=void 0){const paths=path.replace(/\\[(\\d+)\\]/g,".$1").split(".");let result=source;for(const p of paths){result=Object(result)[p];if(result===void 0)return defaultValue;}return result;}function createDefer(){let resolve=null;let reject=null;const p=new Promise((_resolve,_reject)=>{resolve=_resolve;reject=_reject;});p.resolve=resolve;p.reject=reject;return p;}var commonjsGlobal$1=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};function getDefaultExportFromCjs$2(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,'default')?x['default']:x;}function getAugmentedNamespace(n){if(n.__esModule)return n;var f=n.default;if(typeof f=="function"){var a=function a(){if(this instanceof a){return Reflect.construct(f,arguments,this.constructor);}return f.apply(this,arguments);};a.prototype=f.prototype;}else a={};Object.defineProperty(a,'__esModule',{value:true});Object.keys(n).forEach(function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:true,get:function(){return n[k];}});});return a;}var build$1={};var ansiStyles={exports:{}};ansiStyles.exports;(function(module){const ANSI_BACKGROUND_OFFSET=10;const wrapAnsi256=(offset=0)=>code=>\`\\u001B[\${38+offset};5;\${code}m\`;const wrapAnsi16m=(offset=0)=>(red,green,blue)=>\`\\u001B[\${38+offset};2;\${red};\${green};\${blue}m\`;function assembleStyles(){const codes=new Map();const styles={modifier:{reset:[0,0],// 21 isn't widely supported and 22 does the same thing +'use strict';const _excluded=["maxLength"],_excluded2=["value"];function _objectWithoutProperties(source,excluded){if(source==null)return{};var target=_objectWithoutPropertiesLoose(source,excluded);var key,i;if(Object.getOwnPropertySymbols){var sourceSymbolKeys=Object.getOwnPropertySymbols(source);for(i=0;i=0)continue;if(!Object.prototype.propertyIsEnumerable.call(source,key))continue;target[key]=source[key];}}return target;}function _objectWithoutPropertiesLoose(source,excluded){if(source==null)return{};var target={};for(var key in source){if(Object.prototype.hasOwnProperty.call(source,key)){if(excluded.indexOf(key)>=0)continue;target[key]=source[key];}}return target;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);icollector.add(key);Object.getOwnPropertyNames(obj).forEach(collect);Object.getOwnPropertySymbols(obj).forEach(collect);}function getOwnProperties(obj){const ownProps=/* @__PURE__ */new Set();if(isFinalObj(obj))return[];collectOwnProperties(obj,ownProps);return Array.from(ownProps);}const defaultCloneOptions={forceWritable:false};function deepClone(val,options=defaultCloneOptions){const seen=/* @__PURE__ */new WeakMap();return clone(val,seen,options);}function clone(val,seen,options=defaultCloneOptions){let k,out;if(seen.has(val))return seen.get(val);if(Array.isArray(val)){out=Array(k=val.length);seen.set(val,out);while(k--)out[k]=clone(val[k],seen,options);return out;}if(Object.prototype.toString.call(val)==="[object Object]"){out=Object.create(Object.getPrototypeOf(val));seen.set(val,out);const props=getOwnProperties(val);for(const k2 of props){const descriptor=Object.getOwnPropertyDescriptor(val,k2);if(!descriptor)continue;const cloned=clone(val[k2],seen,options);if(options.forceWritable){Object.defineProperty(out,k2,{enumerable:descriptor.enumerable,configurable:true,writable:true,value:cloned});}else if("get"in descriptor){Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{get(){return cloned;}}));}else{Object.defineProperty(out,k2,_objectSpread(_objectSpread({},descriptor),{},{value:cloned}));}}return out;}return val;}function objectAttr(source,path,defaultValue=void 0){const paths=path.replace(/\\[(\\d+)\\]/g,".$1").split(".");let result=source;for(const p of paths){result=Object(result)[p];if(result===void 0)return defaultValue;}return result;}function createDefer(){let resolve=null;let reject=null;const p=new Promise((_resolve,_reject)=>{resolve=_resolve;reject=_reject;});p.resolve=resolve;p.reject=reject;return p;}var commonjsGlobal$1=typeof globalThis!=='undefined'?globalThis:typeof window!=='undefined'?window:typeof global!=='undefined'?global:typeof self!=='undefined'?self:{};function getDefaultExportFromCjs$2(x){return x&&x.__esModule&&Object.prototype.hasOwnProperty.call(x,'default')?x['default']:x;}function getAugmentedNamespace(n){if(n.__esModule)return n;var f=n.default;if(typeof f=="function"){var a=function a(){if(this instanceof a){return Reflect.construct(f,arguments,this.constructor);}return f.apply(this,arguments);};a.prototype=f.prototype;}else a={};Object.defineProperty(a,'__esModule',{value:true});Object.keys(n).forEach(function(k){var d=Object.getOwnPropertyDescriptor(n,k);Object.defineProperty(a,k,d.get?d:{enumerable:true,get:function(){return n[k];}});});return a;}var build$1={};var ansiStyles={exports:{}};ansiStyles.exports;(function(module){const ANSI_BACKGROUND_OFFSET=10;const wrapAnsi256=(offset=0)=>code=>\`\\u001B[\${38+offset};5;\${code}m\`;const wrapAnsi16m=(offset=0)=>(red,green,blue)=>\`\\u001B[\${38+offset};2;\${red};\${green};\${blue}m\`;function assembleStyles(){const codes=new Map();const styles={modifier:{reset:[0,0],// 21 isn't widely supported and 22 does the same thing bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],// Bright color blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],// Bright color bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};// Alias bright black as gray (and grey) @@ -11126,7 +11126,7 @@ if(type===REACT_FRAGMENT_TYPE||type===REACT_PROFILER_TYPE||enableDebugTracing||t type.$$typeof===REACT_MODULE_REFERENCE||type.getModuleId!==undefined){return true;}}return false;}function typeOf(object){if(typeof object==='object'&&object!==null){var $$typeof=object.$$typeof;switch($$typeof){case REACT_ELEMENT_TYPE:var type=object.type;switch(type){case REACT_FRAGMENT_TYPE:case REACT_PROFILER_TYPE:case REACT_STRICT_MODE_TYPE:case REACT_SUSPENSE_TYPE:case REACT_SUSPENSE_LIST_TYPE:return type;default:var $$typeofType=type&&type.$$typeof;switch($$typeofType){case REACT_SERVER_CONTEXT_TYPE:case REACT_CONTEXT_TYPE:case REACT_FORWARD_REF_TYPE:case REACT_LAZY_TYPE:case REACT_MEMO_TYPE:case REACT_PROVIDER_TYPE:return $$typeofType;default:return $$typeof;}}case REACT_PORTAL_TYPE:return $$typeof;}}return undefined;}var ContextConsumer=REACT_CONTEXT_TYPE;var ContextProvider=REACT_PROVIDER_TYPE;var Element=REACT_ELEMENT_TYPE;var ForwardRef=REACT_FORWARD_REF_TYPE;var Fragment=REACT_FRAGMENT_TYPE;var Lazy=REACT_LAZY_TYPE;var Memo=REACT_MEMO_TYPE;var Portal=REACT_PORTAL_TYPE;var Profiler=REACT_PROFILER_TYPE;var StrictMode=REACT_STRICT_MODE_TYPE;var Suspense=REACT_SUSPENSE_TYPE;var SuspenseList=REACT_SUSPENSE_LIST_TYPE;var hasWarnedAboutDeprecatedIsAsyncMode=false;var hasWarnedAboutDeprecatedIsConcurrentMode=false;// AsyncMode should be deprecated function isAsyncMode(object){{if(!hasWarnedAboutDeprecatedIsAsyncMode){hasWarnedAboutDeprecatedIsAsyncMode=true;// Using console['warn'] to evade Babel and ESLint console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, '+'and will be removed in React 18+.');}}return false;}function isConcurrentMode(object){{if(!hasWarnedAboutDeprecatedIsConcurrentMode){hasWarnedAboutDeprecatedIsConcurrentMode=true;// Using console['warn'] to evade Babel and ESLint -console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, '+'and will be removed in React 18+.');}}return false;}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE;}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE;}function isElement(object){return typeof object==='object'&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE;}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE;}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE;}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE;}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE;}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE;}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE;}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE;}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE;}function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE;}reactIs_development.ContextConsumer=ContextConsumer;reactIs_development.ContextProvider=ContextProvider;reactIs_development.Element=Element;reactIs_development.ForwardRef=ForwardRef;reactIs_development.Fragment=Fragment;reactIs_development.Lazy=Lazy;reactIs_development.Memo=Memo;reactIs_development.Portal=Portal;reactIs_development.Profiler=Profiler;reactIs_development.StrictMode=StrictMode;reactIs_development.Suspense=Suspense;reactIs_development.SuspenseList=SuspenseList;reactIs_development.isAsyncMode=isAsyncMode;reactIs_development.isConcurrentMode=isConcurrentMode;reactIs_development.isContextConsumer=isContextConsumer;reactIs_development.isContextProvider=isContextProvider;reactIs_development.isElement=isElement;reactIs_development.isForwardRef=isForwardRef;reactIs_development.isFragment=isFragment;reactIs_development.isLazy=isLazy;reactIs_development.isMemo=isMemo;reactIs_development.isPortal=isPortal;reactIs_development.isProfiler=isProfiler;reactIs_development.isStrictMode=isStrictMode;reactIs_development.isSuspense=isSuspense;reactIs_development.isSuspenseList=isSuspenseList;reactIs_development.isValidElementType=isValidElementType;reactIs_development.typeOf=typeOf;})();}return reactIs_development;}if(process.env.NODE_ENV==='production'){reactIs.exports=requireReactIs_production_min();}else{reactIs.exports=requireReactIs_development();}var reactIsExports=reactIs.exports;Object.defineProperty(ReactElement$3,'__esModule',{value:true});ReactElement$3.test=ReactElement$3.serialize=ReactElement$3.default=void 0;var ReactIs=_interopRequireWildcard(reactIsExports);var _markup$1=markup;function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=='function')return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(!nodeInterop&&obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=='object'&&typeof obj!=='function'){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=='default'&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}/** +console['warn']('The ReactIs.isConcurrentMode() alias has been deprecated, '+'and will be removed in React 18+.');}}return false;}function isContextConsumer(object){return typeOf(object)===REACT_CONTEXT_TYPE;}function isContextProvider(object){return typeOf(object)===REACT_PROVIDER_TYPE;}function isElement(object){return typeof object==='object'&&object!==null&&object.$$typeof===REACT_ELEMENT_TYPE;}function isForwardRef(object){return typeOf(object)===REACT_FORWARD_REF_TYPE;}function isFragment(object){return typeOf(object)===REACT_FRAGMENT_TYPE;}function isLazy(object){return typeOf(object)===REACT_LAZY_TYPE;}function isMemo(object){return typeOf(object)===REACT_MEMO_TYPE;}function isPortal(object){return typeOf(object)===REACT_PORTAL_TYPE;}function isProfiler(object){return typeOf(object)===REACT_PROFILER_TYPE;}function isStrictMode(object){return typeOf(object)===REACT_STRICT_MODE_TYPE;}function isSuspense(object){return typeOf(object)===REACT_SUSPENSE_TYPE;}function isSuspenseList(object){return typeOf(object)===REACT_SUSPENSE_LIST_TYPE;}reactIs_development.ContextConsumer=ContextConsumer;reactIs_development.ContextProvider=ContextProvider;reactIs_development.Element=Element;reactIs_development.ForwardRef=ForwardRef;reactIs_development.Fragment=Fragment;reactIs_development.Lazy=Lazy;reactIs_development.Memo=Memo;reactIs_development.Portal=Portal;reactIs_development.Profiler=Profiler;reactIs_development.StrictMode=StrictMode;reactIs_development.Suspense=Suspense;reactIs_development.SuspenseList=SuspenseList;reactIs_development.isAsyncMode=isAsyncMode;reactIs_development.isConcurrentMode=isConcurrentMode;reactIs_development.isContextConsumer=isContextConsumer;reactIs_development.isContextProvider=isContextProvider;reactIs_development.isElement=isElement;reactIs_development.isForwardRef=isForwardRef;reactIs_development.isFragment=isFragment;reactIs_development.isLazy=isLazy;reactIs_development.isMemo=isMemo;reactIs_development.isPortal=isPortal;reactIs_development.isProfiler=isProfiler;reactIs_development.isStrictMode=isStrictMode;reactIs_development.isSuspense=isSuspense;reactIs_development.isSuspenseList=isSuspenseList;reactIs_development.isValidElementType=isValidElementType;reactIs_development.typeOf=typeOf;})();}return reactIs_development;}if(process.env.NODE_ENV==='production'){reactIs.exports=requireReactIs_production_min();}else{reactIs.exports=requireReactIs_development();}var reactIsExports=reactIs.exports;Object.defineProperty(ReactElement$3,'__esModule',{value:true});ReactElement$3.test=ReactElement$3.serialize=ReactElement$3.default=void 0;var ReactIs=_interopRequireWildcard(reactIsExports);var _markup$1=markup;function _getRequireWildcardCache(nodeInterop){if(typeof WeakMap!=='function')return null;var cacheBabelInterop=new WeakMap();var cacheNodeInterop=new WeakMap();return(_getRequireWildcardCache=function(nodeInterop){return nodeInterop?cacheNodeInterop:cacheBabelInterop;})(nodeInterop);}function _interopRequireWildcard(obj,nodeInterop){if(obj&&obj.__esModule){return obj;}if(obj===null||typeof obj!=='object'&&typeof obj!=='function'){return{default:obj};}var cache=_getRequireWildcardCache(nodeInterop);if(cache&&cache.has(obj)){return cache.get(obj);}var newObj={};var hasPropertyDescriptor=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var key in obj){if(key!=='default'&&Object.prototype.hasOwnProperty.call(obj,key)){var desc=hasPropertyDescriptor?Object.getOwnPropertyDescriptor(obj,key):null;if(desc&&(desc.get||desc.set)){Object.defineProperty(newObj,key,desc);}else{newObj[key]=obj[key];}}}newObj.default=obj;if(cache){cache.set(obj,newObj);}return newObj;}/** * Copyright (c) Meta Platforms, Inc. and affiliates. * * This source code is licensed under the MIT license found in the @@ -11492,7 +11492,7 @@ findSubsequences(nChange,aStart,aEnd,bStart,bEnd,transposed,callbacks,aIndexesF, Inner error message: \${err==null?void 0:err.message}\`));}}function isAsymmetricMatcher(data){const type=getType$2(data);return type==="Object"&&typeof data.asymmetricMatch==="function";}function isReplaceable(obj1,obj2){const obj1Type=getType$2(obj1);const obj2Type=getType$2(obj2);return obj1Type===obj2Type&&(obj1Type==="Object"||obj1Type==="Array");}function replaceAsymmetricMatcher(actual,expected,actualReplaced=/* @__PURE__ */new WeakSet(),expectedReplaced=/* @__PURE__ */new WeakSet()){if(!isReplaceable(actual,expected))return{replacedActual:actual,replacedExpected:expected};if(actualReplaced.has(actual)||expectedReplaced.has(expected))return{replacedActual:actual,replacedExpected:expected};actualReplaced.add(actual);expectedReplaced.add(expected);getOwnProperties(expected).forEach(key=>{const expectedValue=expected[key];const actualValue=actual[key];if(isAsymmetricMatcher(expectedValue)){if(expectedValue.asymmetricMatch(actualValue))actual[key]=expectedValue;}else if(isAsymmetricMatcher(actualValue)){if(actualValue.asymmetricMatch(expectedValue))expected[key]=actualValue;}else if(isReplaceable(actualValue,expectedValue)){const replaced=replaceAsymmetricMatcher(actualValue,expectedValue,actualReplaced,expectedReplaced);actual[key]=replaced.replacedActual;expected[key]=replaced.replacedExpected;}});return{replacedActual:actual,replacedExpected:expected};}function createChainable(keys,fn){function create(context){const chain2=function(...args){return fn.apply(context,args);};Object.assign(chain2,fn);chain2.withContext=()=>chain2.bind(context);chain2.setContext=(key,value)=>{context[key]=value;};chain2.mergeContext=ctx=>{Object.assign(context,ctx);};for(const key of keys){Object.defineProperty(chain2,key,{get(){return create(_objectSpread(_objectSpread({},context),{},{[key]:true}));}});}return chain2;}const chain=create({});chain.fn=fn;return chain;}function getNames(task){const names=[task.name];let current=task;while((current==null?void 0:current.suite)||(current==null?void 0:current.file)){current=current.suite||current.file;if(current==null?void 0:current.name)names.unshift(current.name);}return names;}const _DRIVE_LETTER_START_RE=/^[A-Za-z]:\\//;function normalizeWindowsPath$1(input=""){if(!input){return input;}return input.replace(/\\\\/g,"/").replace(_DRIVE_LETTER_START_RE,r=>r.toUpperCase());}const _IS_ABSOLUTE_RE$1=/^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;function cwd$1(){if(typeof process!=="undefined"&&typeof process.cwd==="function"){return process.cwd().replace(/\\\\/g,"/");}return"/";}const resolve$3=function(...arguments_){arguments_=arguments_.map(argument=>normalizeWindowsPath$1(argument));let resolvedPath="";let resolvedAbsolute=false;for(let index=arguments_.length-1;index>=-1&&!resolvedAbsolute;index--){const path=index>=0?arguments_[index]:cwd$1();if(!path||path.length===0){continue;}resolvedPath=\`\${path}/\${resolvedPath}\`;resolvedAbsolute=isAbsolute$1(path);}resolvedPath=normalizeString$1(resolvedPath,!resolvedAbsolute);if(resolvedAbsolute&&!isAbsolute$1(resolvedPath)){return\`/\${resolvedPath}\`;}return resolvedPath.length>0?resolvedPath:".";};function normalizeString$1(path,allowAboveRoot){let res="";let lastSegmentLength=0;let lastSlash=-1;let dots=0;let char=null;for(let index=0;index<=path.length;++index){if(index2){const lastSlashIndex=res.lastIndexOf("/");if(lastSlashIndex===-1){res="";lastSegmentLength=0;}else{res=res.slice(0,lastSlashIndex);lastSegmentLength=res.length-1-res.lastIndexOf("/");}lastSlash=index;dots=0;continue;}else if(res.length>0){res="";lastSegmentLength=0;lastSlash=index;dots=0;continue;}}if(allowAboveRoot){res+=res.length>0?"/..":"..";lastSegmentLength=2;}}else{if(res.length>0){res+=\`/\${path.slice(lastSlash+1,index)}\`;}else{res=path.slice(lastSlash+1,index);}lastSegmentLength=index-lastSlash-1;}lastSlash=index;dots=0;}else if(char==="."&&dots!==-1){++dots;}else{dots=-1;}}return res;}const isAbsolute$1=function(p){return _IS_ABSOLUTE_RE$1.test(p);};function normalizeWindowsPath(input=""){if(!input||!input.includes("\\\\")){return input;}return input.replace(/\\\\/g,"/");}const _IS_ABSOLUTE_RE=/^[/\\\\](?![/\\\\])|^[/\\\\]{2}(?!\\.)|^[A-Za-z]:[/\\\\]/;function cwd(){if(typeof process!=="undefined"){return process.cwd().replace(/\\\\/g,"/");}return"/";}const resolve$2=function(...arguments_){arguments_=arguments_.map(argument=>normalizeWindowsPath(argument));let resolvedPath="";let resolvedAbsolute=false;for(let index=arguments_.length-1;index>=-1&&!resolvedAbsolute;index--){const path=index>=0?arguments_[index]:cwd();if(!path||path.length===0){continue;}resolvedPath=\`\${path}/\${resolvedPath}\`;resolvedAbsolute=isAbsolute(path);}resolvedPath=normalizeString(resolvedPath,!resolvedAbsolute);if(resolvedAbsolute&&!isAbsolute(resolvedPath)){return\`/\${resolvedPath}\`;}return resolvedPath.length>0?resolvedPath:".";};function normalizeString(path,allowAboveRoot){let res="";let lastSegmentLength=0;let lastSlash=-1;let dots=0;let char=null;for(let index=0;index<=path.length;++index){if(index2){const lastSlashIndex=res.lastIndexOf("/");if(lastSlashIndex===-1){res="";lastSegmentLength=0;}else{res=res.slice(0,lastSlashIndex);lastSegmentLength=res.length-1-res.lastIndexOf("/");}lastSlash=index;dots=0;continue;}else if(res.length>0){res="";lastSegmentLength=0;lastSlash=index;dots=0;continue;}}if(allowAboveRoot){res+=res.length>0?"/..":"..";lastSegmentLength=2;}}else{if(res.length>0){res+=\`/\${path.slice(lastSlash+1,index)}\`;}else{res=path.slice(lastSlash+1,index);}lastSegmentLength=index-lastSlash-1;}lastSlash=index;dots=0;}else if(char==="."&&dots!==-1){++dots;}else{dots=-1;}}return res;}const isAbsolute=function(p){return _IS_ABSOLUTE_RE.test(p);};const chars$1='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';const intToChar$1=new Uint8Array(64);// 64 possible chars. const charToInt$1=new Uint8Array(128);// z is 122 in ASCII for(let i=0;i eval"))line=line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,":$1");if(!line.includes("@")&&!line.includes(":"))return null;const functionNameRegex=/((.*".+"[^@]*)?[^@]*)(?:@)/;const matches=line.match(functionNameRegex);const functionName=matches&&matches[1]?matches[1]:void 0;const _extractLocation$=extractLocation$1(line.replace(functionNameRegex,"")),_extractLocation$2=_slicedToArray(_extractLocation$,3),url=_extractLocation$2[0],lineNumber=_extractLocation$2[1],columnNumber=_extractLocation$2[2];if(!url||!lineNumber||!columnNumber)return null;return{file:url,method:functionName||"",line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}function parseSingleStack(raw){const line=raw.trim();if(!CHROME_IE_STACK_REGEXP$1.test(line))return parseSingleFFOrSafariStack$1(line);return parseSingleV8Stack$1(line);}function parseSingleV8Stack$1(raw){let line=raw.trim();if(!CHROME_IE_STACK_REGEXP$1.test(line))return null;if(line.includes("(eval "))line=line.replace(/eval code/g,"eval").replace(/(\\(eval at [^()]*)|(,.*$)/g,"");let sanitizedLine=line.replace(/^\\s+/,"").replace(/\\(eval code/g,"(").replace(/^.*?\\s+/,"");const location=sanitizedLine.match(/ (\\(.+\\)$)/);sanitizedLine=location?sanitizedLine.replace(location[0],""):sanitizedLine;const _extractLocation$3=extractLocation$1(location?location[1]:sanitizedLine),_extractLocation$4=_slicedToArray(_extractLocation$3,3),url=_extractLocation$4[0],lineNumber=_extractLocation$4[1],columnNumber=_extractLocation$4[2];let method=location&&sanitizedLine||"";let file=url&&["eval",""].includes(url)?void 0:url;if(!file||!lineNumber||!columnNumber)return null;if(method.startsWith("async "))method=method.slice(6);if(file.startsWith("file://"))file=file.slice(7);file=resolve$2(file);if(method)method=method.replace(/__vite_ssr_import_\\d+__\\./g,"");return{method,file,line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}const fnMap=/* @__PURE__ */new WeakMap();const fixtureMap=/* @__PURE__ */new WeakMap();const hooksMap=/* @__PURE__ */new WeakMap();function setFn(key,fn){fnMap.set(key,fn);}function setFixture(key,fixture){fixtureMap.set(key,fixture);}function getFixture(key){return fixtureMap.get(key);}function setHooks(key,hooks){hooksMap.set(key,hooks);}function getHooks(key){return hooksMap.get(key);}class PendingError extends Error{constructor(message,task){super(message);this.message=message;this.taskId=task.id;}code="VITEST_PENDING";taskId;}const collectorContext={tasks:[],currentSuite:null};function collectTask(task){var _a;(_a=collectorContext.currentSuite)==null?void 0:_a.tasks.push(task);}async function runWithSuite(suite,fn){const prev=collectorContext.currentSuite;collectorContext.currentSuite=suite;await fn();collectorContext.currentSuite=prev;}function withTimeout(fn,timeout,isHook=false){if(timeout<=0||timeout===Number.POSITIVE_INFINITY)return fn;const _getSafeTimers=getSafeTimers(),setTimeout=_getSafeTimers.setTimeout,clearTimeout=_getSafeTimers.clearTimeout;return(...args)=>{return Promise.race([fn(...args),new Promise((resolve,reject)=>{var _a;const timer=setTimeout(()=>{clearTimeout(timer);reject(new Error(makeTimeoutMsg(isHook,timeout)));},timeout);(_a=timer.unref)==null?void 0:_a.call(timer);})]);};}function createTestContext(test,runner){var _a;const context=function(){throw new Error("done() callback is deprecated, use promise instead");};context.task=test;context.skip=()=>{test.pending=true;throw new PendingError("test is skipped; abort execution",test);};context.onTestFailed=fn=>{test.onFailed||(test.onFailed=[]);test.onFailed.push(fn);};context.onTestFinished=fn=>{test.onFinished||(test.onFinished=[]);test.onFinished.push(fn);};return((_a=runner.extendTaskContext)==null?void 0:_a.call(runner,context))||context;}function makeTimeoutMsg(isHook,timeout){return\`\${isHook?"Hook":"Test"} timed out in \${timeout}ms. -If this is a long-running \${isHook?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "\${isHook?"hookTimeout":"testTimeout"}".\`;}function mergeContextFixtures(fixtures,context={}){const fixtureOptionKeys=["auto"];const fixtureArray=Object.entries(fixtures).map(([prop,value])=>{const fixtureItem={value};if(Array.isArray(value)&&value.length>=2&&isObject$1(value[1])&&Object.keys(value[1]).some(key=>fixtureOptionKeys.includes(key))){Object.assign(fixtureItem,value[1]);fixtureItem.value=value[0];}fixtureItem.prop=prop;fixtureItem.isFn=typeof fixtureItem.value==="function";return fixtureItem;});if(Array.isArray(context.fixtures))context.fixtures=context.fixtures.concat(fixtureArray);else context.fixtures=fixtureArray;fixtureArray.forEach(fixture=>{if(fixture.isFn){const usedProps=getUsedProps(fixture.value);if(usedProps.length)fixture.deps=context.fixtures.filter(({prop})=>prop!==fixture.prop&&usedProps.includes(prop));}});return context;}const fixtureValueMaps=/* @__PURE__ */new Map();const cleanupFnArrayMap=/* @__PURE__ */new Map();function withFixtures(fn,testContext){return hookContext=>{const context=hookContext||testContext;if(!context)return fn({});const fixtures=getFixture(context);if(!(fixtures==null?void 0:fixtures.length))return fn(context);const usedProps=getUsedProps(fn);const hasAutoFixture=fixtures.some(({auto})=>auto);if(!usedProps.length&&!hasAutoFixture)return fn(context);if(!fixtureValueMaps.get(context))fixtureValueMaps.set(context,/* @__PURE__ */new Map());const fixtureValueMap=fixtureValueMaps.get(context);if(!cleanupFnArrayMap.has(context))cleanupFnArrayMap.set(context,[]);const cleanupFnArray=cleanupFnArrayMap.get(context);const usedFixtures=fixtures.filter(({prop,auto})=>auto||usedProps.includes(prop));const pendingFixtures=resolveDeps(usedFixtures);if(!pendingFixtures.length)return fn(context);async function resolveFixtures(){for(const fixture of pendingFixtures){if(fixtureValueMap.has(fixture))continue;const resolvedValue=fixture.isFn?await resolveFixtureFunction(fixture.value,context,cleanupFnArray):fixture.value;context[fixture.prop]=resolvedValue;fixtureValueMap.set(fixture,resolvedValue);cleanupFnArray.unshift(()=>{fixtureValueMap.delete(fixture);});}}return resolveFixtures().then(()=>fn(context));};}async function resolveFixtureFunction(fixtureFn,context,cleanupFnArray){const useFnArgPromise=createDefer();let isUseFnArgResolved=false;const fixtureReturn=fixtureFn(context,async useFnArg=>{isUseFnArgResolved=true;useFnArgPromise.resolve(useFnArg);const useReturnPromise=createDefer();cleanupFnArray.push(async()=>{useReturnPromise.resolve();await fixtureReturn;});await useReturnPromise;}).catch(e=>{if(!isUseFnArgResolved){useFnArgPromise.reject(e);return;}throw e;});return useFnArgPromise;}function resolveDeps(fixtures,depSet=/* @__PURE__ */new Set(),pendingFixtures=[]){fixtures.forEach(fixture=>{if(pendingFixtures.includes(fixture))return;if(!fixture.isFn||!fixture.deps){pendingFixtures.push(fixture);return;}if(depSet.has(fixture))throw new Error(\`Circular fixture dependency detected: \${fixture.prop} <- \${[...depSet].reverse().map(d=>d.prop).join(" <- ")}\`);depSet.add(fixture);resolveDeps(fixture.deps,depSet,pendingFixtures);pendingFixtures.push(fixture);depSet.clear();});return pendingFixtures;}function getUsedProps(fn){const match=fn.toString().match(/[^(]*\\(([^)]*)/);if(!match)return[];const args=splitByComma(match[1]);if(!args.length)return[];const first=args[0];if(!(first.startsWith("{")&&first.endsWith("}")))throw new Error(\`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "\${first}".\`);const _first=first.slice(1,-1).replace(/\\s/g,"");const props=splitByComma(_first).map(prop=>{return prop.replace(/\\:.*|\\=.*/g,"");});const last=props.at(-1);if(last&&last.startsWith("..."))throw new Error(\`Rest parameters are not supported in fixtures, received "\${last}".\`);return props;}function splitByComma(s){const result=[];const stack=[];let start=0;for(let i=0;i{};if(typeof optionsOrTest==="object"){if(typeof optionsOrFn==="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");options=optionsOrTest;}else if(typeof optionsOrTest==="number"){options={timeout:optionsOrTest};}else if(typeof optionsOrFn==="object"){options=optionsOrFn;}if(typeof optionsOrFn==="function"){if(typeof optionsOrTest==="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");fn=optionsOrFn;}else if(typeof optionsOrTest==="function"){fn=optionsOrTest;}return{options,handler:fn};}function createSuiteCollector(name,factory=()=>{},mode,shuffle,each,suiteOptions){const tasks=[];const factoryQueue=[];let suite2;initSuite();const task=function(name2="",options={}){const task2={id:"",name:name2,suite:void 0,each:options.each,fails:options.fails,context:void 0,type:"custom",retry:options.retry??runner.config.retry,repeats:options.repeats,mode:options.only?"only":options.skip?"skip":options.todo?"todo":"run",meta:options.meta??/* @__PURE__ */Object.create(null)};const handler=options.handler;if(options.concurrent||!options.sequential&&runner.config.sequence.concurrent)task2.concurrent=true;if(shuffle)task2.shuffle=true;const context=createTestContext(task2,runner);Object.defineProperty(task2,"context",{value:context,enumerable:false});setFixture(context,options.fixtures);if(handler){setFn(task2,withTimeout(withFixtures(handler,context),(options==null?void 0:options.timeout)??runner.config.testTimeout));}if(runner.config.includeTaskLocation);tasks.push(task2);return task2;};const test2=createTest(function(name2,optionsOrFn,optionsOrTest){let _parseArguments=parseArguments(optionsOrFn,optionsOrTest),options=_parseArguments.options,handler=_parseArguments.handler;if(typeof suiteOptions==="object")options=Object.assign({},suiteOptions,options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);const test3=task(formatName(name2),_objectSpread(_objectSpread(_objectSpread({},this),options),{},{handler}));test3.type="test";});const collector={type:"collector",name,mode,options:suiteOptions,test:test2,tasks,collect,task,clear,on:addHook};function addHook(name2,...fn){getHooks(suite2)[name2].push(...fn);}function initSuite(includeLocation){if(typeof suiteOptions==="number")suiteOptions={timeout:suiteOptions};suite2={id:"",type:"suite",name,mode,each,shuffle,tasks:[],meta:/* @__PURE__ */Object.create(null),projectName:""};setHooks(suite2,createSuiteHooks());}function clear(){tasks.length=0;factoryQueue.length=0;initSuite();}async function collect(file){factoryQueue.length=0;if(factory)await runWithSuite(collector,()=>factory(test2));const allChildren=[];for(const i of[...factoryQueue,...tasks])allChildren.push(i.type==="collector"?await i.collect(file):i);suite2.file=file;suite2.tasks=allChildren;allChildren.forEach(task2=>{task2.suite=suite2;if(file)task2.file=file;});return suite2;}collectTask(collector);return collector;}function createSuite(){function suiteFn(name,factoryOrOptions,optionsOrFactory={}){const mode=this.only?"only":this.skip?"skip":this.todo?"todo":"run";const currentSuite=getCurrentSuite();let _parseArguments2=parseArguments(factoryOrOptions,optionsOrFactory),options=_parseArguments2.options,factory=_parseArguments2.handler;if(currentSuite==null?void 0:currentSuite.options)options=_objectSpread(_objectSpread({},currentSuite.options),options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);return createSuiteCollector(formatName(name),factory,mode,this.shuffle,this.each,options);}suiteFn.each=function(cases,...args){const suite2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments3=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments3.options,handler=_parseArguments3.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?suite2(formatTitle(_name,items,idx),()=>handler(...items),options):suite2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?suite2(formatTitle(_name,items,idx),options,()=>handler(...items)):suite2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};suiteFn.skipIf=condition=>condition?suite.skip:suite;suiteFn.runIf=condition=>condition?suite:suite.skip;return createChainable(["concurrent","sequential","shuffle","skip","only","todo"],suiteFn);}function createTaskCollector(fn,context){const taskFn=fn;taskFn.each=function(cases,...args){const test2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments4=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments4.options,handler=_parseArguments4.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?test2(formatTitle(_name,items,idx),()=>handler(...items),options):test2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?test2(formatTitle(_name,items,idx),options,()=>handler(...items)):test2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};taskFn.skipIf=function(condition){return condition?this.skip:this;};taskFn.runIf=function(condition){return condition?this:this.skip;};taskFn.extend=function(fixtures){const _context=mergeContextFixtures(fixtures,context);return createTest(function fn2(name,optionsOrFn,optionsOrTest){getCurrentSuite().test.fn.call(this,formatName(name),optionsOrFn,optionsOrTest);},_context);};const _test=createChainable(["concurrent","sequential","skip","only","todo","fails"],taskFn);if(context)_test.mergeContext(context);return _test;}function createTest(fn,context){return createTaskCollector(fn,context);}function formatName(name){return typeof name==="string"?name:name instanceof Function?name.name||"":String(name);}function formatTitle(template,items,idx){if(template.includes("%#")){template=template.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,\`\${idx}\`).replace(/__vitest_escaped_%__/g,"%%");}const count=template.split("%").length-1;let formatted=format(template,...items.slice(0,count));if(isObject$1(items[0])){formatted=formatted.replace(/\\$([$\\w_.]+)/g,// https://github.com/chaijs/chai/pull/1490 +If this is a long-running \${isHook?"hook":"test"}, pass a timeout value as the last argument or configure it globally with "\${isHook?"hookTimeout":"testTimeout"}".\`;}function mergeContextFixtures(fixtures,context={}){const fixtureOptionKeys=["auto"];const fixtureArray=Object.entries(fixtures).map(([prop,value])=>{const fixtureItem={value};if(Array.isArray(value)&&value.length>=2&&isObject$1(value[1])&&Object.keys(value[1]).some(key=>fixtureOptionKeys.includes(key))){Object.assign(fixtureItem,value[1]);fixtureItem.value=value[0];}fixtureItem.prop=prop;fixtureItem.isFn=typeof fixtureItem.value==="function";return fixtureItem;});if(Array.isArray(context.fixtures))context.fixtures=context.fixtures.concat(fixtureArray);else context.fixtures=fixtureArray;fixtureArray.forEach(fixture=>{if(fixture.isFn){const usedProps=getUsedProps(fixture.value);if(usedProps.length)fixture.deps=context.fixtures.filter(({prop})=>prop!==fixture.prop&&usedProps.includes(prop));}});return context;}const fixtureValueMaps=/* @__PURE__ */new Map();const cleanupFnArrayMap=/* @__PURE__ */new Map();function withFixtures(fn,testContext){return hookContext=>{const context=hookContext||testContext;if(!context)return fn({});const fixtures=getFixture(context);if(!(fixtures==null?void 0:fixtures.length))return fn(context);const usedProps=getUsedProps(fn);const hasAutoFixture=fixtures.some(({auto})=>auto);if(!usedProps.length&&!hasAutoFixture)return fn(context);if(!fixtureValueMaps.get(context))fixtureValueMaps.set(context,/* @__PURE__ */new Map());const fixtureValueMap=fixtureValueMaps.get(context);if(!cleanupFnArrayMap.has(context))cleanupFnArrayMap.set(context,[]);const cleanupFnArray=cleanupFnArrayMap.get(context);const usedFixtures=fixtures.filter(({prop,auto})=>auto||usedProps.includes(prop));const pendingFixtures=resolveDeps(usedFixtures);if(!pendingFixtures.length)return fn(context);async function resolveFixtures(){for(const fixture of pendingFixtures){if(fixtureValueMap.has(fixture))continue;const resolvedValue=fixture.isFn?await resolveFixtureFunction(fixture.value,context,cleanupFnArray):fixture.value;context[fixture.prop]=resolvedValue;fixtureValueMap.set(fixture,resolvedValue);cleanupFnArray.unshift(()=>{fixtureValueMap.delete(fixture);});}}return resolveFixtures().then(()=>fn(context));};}async function resolveFixtureFunction(fixtureFn,context,cleanupFnArray){const useFnArgPromise=createDefer();let isUseFnArgResolved=false;const fixtureReturn=fixtureFn(context,async useFnArg=>{isUseFnArgResolved=true;useFnArgPromise.resolve(useFnArg);const useReturnPromise=createDefer();cleanupFnArray.push(async()=>{useReturnPromise.resolve();await fixtureReturn;});await useReturnPromise;}).catch(e=>{if(!isUseFnArgResolved){useFnArgPromise.reject(e);return;}throw e;});return useFnArgPromise;}function resolveDeps(fixtures,depSet=/* @__PURE__ */new Set(),pendingFixtures=[]){fixtures.forEach(fixture=>{if(pendingFixtures.includes(fixture))return;if(!fixture.isFn||!fixture.deps){pendingFixtures.push(fixture);return;}if(depSet.has(fixture))throw new Error(\`Circular fixture dependency detected: \${fixture.prop} <- \${[...depSet].reverse().map(d=>d.prop).join(" <- ")}\`);depSet.add(fixture);resolveDeps(fixture.deps,depSet,pendingFixtures);pendingFixtures.push(fixture);depSet.clear();});return pendingFixtures;}function getUsedProps(fn){const match=fn.toString().match(/[^(]*\\(([^)]*)/);if(!match)return[];const args=splitByComma(match[1]);if(!args.length)return[];const first=args[0];if(!(first.startsWith("{")&&first.endsWith("}")))throw new Error(\`The first argument inside a fixture must use object destructuring pattern, e.g. ({ test } => {}). Instead, received "\${first}".\`);const _first=first.slice(1,-1).replace(/\\s/g,"");const props=splitByComma(_first).map(prop=>{return prop.replace(/\\:.*|\\=.*/g,"");});const last=props.at(-1);if(last&&last.startsWith("..."))throw new Error(\`Rest parameters are not supported in fixtures, received "\${last}".\`);return props;}function splitByComma(s){const result=[];const stack=[];let start=0;for(let i=0;i{};if(typeof optionsOrTest==="object"){if(typeof optionsOrFn==="object")throw new TypeError("Cannot use two objects as arguments. Please provide options and a function callback in that order.");options=optionsOrTest;}else if(typeof optionsOrTest==="number"){options={timeout:optionsOrTest};}else if(typeof optionsOrFn==="object"){options=optionsOrFn;}if(typeof optionsOrFn==="function"){if(typeof optionsOrTest==="function")throw new TypeError("Cannot use two functions as arguments. Please use the second argument for options.");fn=optionsOrFn;}else if(typeof optionsOrTest==="function"){fn=optionsOrTest;}return{options,handler:fn};}function createSuiteCollector(name,factory=()=>{},mode,shuffle,each,suiteOptions){const tasks=[];const factoryQueue=[];let suite2;initSuite();const task=function(name2="",options={}){const task2={id:"",name:name2,suite:void 0,each:options.each,fails:options.fails,context:void 0,type:"custom",retry:options.retry??runner.config.retry,repeats:options.repeats,mode:options.only?"only":options.skip?"skip":options.todo?"todo":"run",meta:options.meta??/* @__PURE__ */Object.create(null)};const handler=options.handler;if(options.concurrent||!options.sequential&&runner.config.sequence.concurrent)task2.concurrent=true;if(shuffle)task2.shuffle=true;const context=createTestContext(task2,runner);Object.defineProperty(task2,"context",{value:context,enumerable:false});setFixture(context,options.fixtures);if(handler){setFn(task2,withTimeout(withFixtures(handler,context),(options==null?void 0:options.timeout)??runner.config.testTimeout));}if(runner.config.includeTaskLocation);tasks.push(task2);return task2;};const test2=createTest(function(name2,optionsOrFn,optionsOrTest){let _parseArguments=parseArguments(optionsOrFn,optionsOrTest),options=_parseArguments.options,handler=_parseArguments.handler;if(typeof suiteOptions==="object")options=Object.assign({},suiteOptions,options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);const test3=task(formatName(name2),_objectSpread(_objectSpread(_objectSpread({},this),options),{},{handler}));test3.type="test";});const collector={type:"collector",name,mode,options:suiteOptions,test:test2,tasks,collect,task,clear,on:addHook};function addHook(name2,...fn){getHooks(suite2)[name2].push(...fn);}function initSuite(includeLocation){if(typeof suiteOptions==="number")suiteOptions={timeout:suiteOptions};suite2={id:"",type:"suite",name,mode,each,shuffle,tasks:[],meta:/* @__PURE__ */Object.create(null),projectName:""};setHooks(suite2,createSuiteHooks());}function clear(){tasks.length=0;factoryQueue.length=0;initSuite();}async function collect(file){factoryQueue.length=0;if(factory)await runWithSuite(collector,()=>factory(test2));const allChildren=[];for(const i of[...factoryQueue,...tasks])allChildren.push(i.type==="collector"?await i.collect(file):i);suite2.file=file;suite2.tasks=allChildren;allChildren.forEach(task2=>{task2.suite=suite2;if(file)task2.file=file;});return suite2;}collectTask(collector);return collector;}function createSuite(){function suiteFn(name,factoryOrOptions,optionsOrFactory={}){const mode=this.only?"only":this.skip?"skip":this.todo?"todo":"run";const currentSuite=getCurrentSuite();let _parseArguments2=parseArguments(factoryOrOptions,optionsOrFactory),options=_parseArguments2.options,factory=_parseArguments2.handler;if(currentSuite==null?void 0:currentSuite.options)options=_objectSpread(_objectSpread({},currentSuite.options),options);options.concurrent=this.concurrent||!this.sequential&&(options==null?void 0:options.concurrent);options.sequential=this.sequential||!this.concurrent&&(options==null?void 0:options.sequential);return createSuiteCollector(formatName(name),factory,mode,this.shuffle,this.each,options);}suiteFn.each=function(cases,...args){const suite2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments3=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments3.options,handler=_parseArguments3.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?suite2(formatTitle(_name,items,idx),()=>handler(...items),options):suite2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?suite2(formatTitle(_name,items,idx),options,()=>handler(...items)):suite2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};suiteFn.skipIf=condition=>condition?suite.skip:suite;suiteFn.runIf=condition=>condition?suite:suite.skip;return createChainable(["concurrent","sequential","shuffle","skip","only","todo"],suiteFn);}function createTaskCollector(fn,context){const taskFn=fn;taskFn.each=function(cases,...args){const test2=this.withContext();this.setContext("each",true);if(Array.isArray(cases)&&args.length)cases=formatTemplateString(cases,args);return(name,optionsOrFn,fnOrOptions)=>{const _name=formatName(name);const arrayOnlyCases=cases.every(Array.isArray);const _parseArguments4=parseArguments(optionsOrFn,fnOrOptions),options=_parseArguments4.options,handler=_parseArguments4.handler;const fnFirst=typeof optionsOrFn==="function";cases.forEach((i,idx)=>{const items=Array.isArray(i)?i:[i];if(fnFirst){arrayOnlyCases?test2(formatTitle(_name,items,idx),()=>handler(...items),options):test2(formatTitle(_name,items,idx),()=>handler(i),options);}else{arrayOnlyCases?test2(formatTitle(_name,items,idx),options,()=>handler(...items)):test2(formatTitle(_name,items,idx),options,()=>handler(i));}});this.setContext("each",void 0);};};taskFn.skipIf=function(condition){return condition?this.skip:this;};taskFn.runIf=function(condition){return condition?this:this.skip;};taskFn.extend=function(fixtures){const _context=mergeContextFixtures(fixtures,context);return createTest(function fn2(name,optionsOrFn,optionsOrTest){getCurrentSuite().test.fn.call(this,formatName(name),optionsOrFn,optionsOrTest);},_context);};const _test=createChainable(["concurrent","sequential","skip","only","todo","fails"],taskFn);if(context)_test.mergeContext(context);return _test;}function createTest(fn,context){return createTaskCollector(fn,context);}function formatName(name){return typeof name==="string"?name:name instanceof Function?name.name||"":String(name);}function formatTitle(template,items,idx){if(template.includes("%#")){template=template.replace(/%%/g,"__vitest_escaped_%__").replace(/%#/g,\`\${idx}\`).replace(/__vitest_escaped_%__/g,"%%");}const count=template.split("%").length-1;let formatted=format(template,...items.slice(0,count));if(isObject$1(items[0])){formatted=formatted.replace(/\\$([$\\w_.]+)/g,// https://github.com/chaijs/chai/pull/1490 (_,key)=>{var _a,_b;return objDisplay$2(objectAttr(items[0],key),{truncate:(_b=(_a=void 0)==null?void 0:_a.chaiConfig)==null?void 0:_b.truncateThreshold});});}return formatted;}function formatTemplateString(cases,args){const header=cases.join("").trim().replace(/ /g,"").split("\\n").map(i=>i.split("|"))[0];const res=[];for(let i=0;i @@ -17672,11 +17672,11 @@ low=lastIndex===-1?0:lastIndex;}else{high=lastIndex;}}state.lastKey=key;state.la if(line>=decoded.length)return OMapping(null,null,null,null);const segments=decoded[line];const index=traceSegmentInternal(segments,map._decodedMemo,line,column,bias||GREATEST_LOWER_BOUND);if(index===-1)return OMapping(null,null,null,null);const segment=segments[index];if(segment.length===1)return OMapping(null,null,null,null);const names=map.names,resolvedSources=map.resolvedSources;return OMapping(resolvedSources[segment[SOURCES_INDEX]],segment[SOURCE_LINE]+1,segment[SOURCE_COLUMN],segment.length===5?names[segment[NAMES_INDEX]]:null);};})();function OMapping(source,line,column,name){return{source,line,column,name};}function traceSegmentInternal(segments,memo,line,column,bias){let index=memoizedBinarySearch(segments,column,memo,line);if(found){index=(bias===LEAST_UPPER_BOUND?upperBound:lowerBound)(segments,column,index);}else if(bias===LEAST_UPPER_BOUND)index++;if(index===-1||index===segments.length)return-1;return index;}const CHROME_IE_STACK_REGEXP=/^\\s*at .*(\\S+:\\d+|\\(native\\))/m;const SAFARI_NATIVE_CODE_REGEXP=/^(eval@)?(\\[native code])?$/;const stackIgnorePatterns=["node:internal",/\\/packages\\/\\w+\\/dist\\//,/\\/@vitest\\/\\w+\\/dist\\//,"/vitest/dist/","/vitest/src/","/vite-node/dist/","/vite-node/src/","/node_modules/chai/","/node_modules/tinypool/","/node_modules/tinyspy/","/deps/chai.js",/__vitest_browser__/];function extractLocation(urlLike){if(!urlLike.includes(":"))return[urlLike];const regExp=/(.+?)(?::(\\d+))?(?::(\\d+))?$/;const parts=regExp.exec(urlLike.replace(/^\\(|\\)$/g,""));if(!parts)return[urlLike];let url=parts[1];if(url.startsWith("http:")||url.startsWith("https:")){const urlObj=new URL(url);url=urlObj.pathname;}if(url.startsWith("/@fs/")){url=url.slice(typeof process!=="undefined"&&process.platform==="win32"?5:4);}return[url,parts[2]||void 0,parts[3]||void 0];}function parseSingleFFOrSafariStack(raw){let line=raw.trim();if(SAFARI_NATIVE_CODE_REGEXP.test(line))return null;if(line.includes(" > eval"))line=line.replace(/ line (\\d+)(?: > eval line \\d+)* > eval:\\d+:\\d+/g,":$1");if(!line.includes("@")&&!line.includes(":"))return null;const functionNameRegex=/((.*".+"[^@]*)?[^@]*)(?:@)/;const matches=line.match(functionNameRegex);const functionName=matches&&matches[1]?matches[1]:void 0;const _extractLocation=extractLocation(line.replace(functionNameRegex,"")),_extractLocation2=_slicedToArray(_extractLocation,3),url=_extractLocation2[0],lineNumber=_extractLocation2[1],columnNumber=_extractLocation2[2];if(!url||!lineNumber||!columnNumber)return null;return{file:url,method:functionName||"",line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}function parseSingleV8Stack(raw){let line=raw.trim();if(!CHROME_IE_STACK_REGEXP.test(line))return null;if(line.includes("(eval "))line=line.replace(/eval code/g,"eval").replace(/(\\(eval at [^()]*)|(,.*$)/g,"");let sanitizedLine=line.replace(/^\\s+/,"").replace(/\\(eval code/g,"(").replace(/^.*?\\s+/,"");const location=sanitizedLine.match(/ (\\(.+\\)$)/);sanitizedLine=location?sanitizedLine.replace(location[0],""):sanitizedLine;const _extractLocation3=extractLocation(location?location[1]:sanitizedLine),_extractLocation4=_slicedToArray(_extractLocation3,3),url=_extractLocation4[0],lineNumber=_extractLocation4[1],columnNumber=_extractLocation4[2];let method=location&&sanitizedLine||"";let file=url&&["eval",""].includes(url)?void 0:url;if(!file||!lineNumber||!columnNumber)return null;if(method.startsWith("async "))method=method.slice(6);if(file.startsWith("file://"))file=file.slice(7);file=resolve$3(file);if(method)method=method.replace(/__vite_ssr_import_\\d+__\\./g,"");return{method,file,line:Number.parseInt(lineNumber),column:Number.parseInt(columnNumber)};}function parseStacktrace(stack,options={}){const _options$ignoreStackE=options.ignoreStackEntries,ignoreStackEntries=_options$ignoreStackE===void 0?stackIgnorePatterns:_options$ignoreStackE;let stacks=!CHROME_IE_STACK_REGEXP.test(stack)?parseFFOrSafariStackTrace(stack):parseV8Stacktrace(stack);if(ignoreStackEntries.length)stacks=stacks.filter(stack2=>!ignoreStackEntries.some(p=>stack2.file.match(p)));return stacks.map(stack2=>{var _a;const map=(_a=options.getSourceMap)==null?void 0:_a.call(options,stack2.file);if(!map||typeof map!=="object"||!map.version)return stack2;const traceMap=new TraceMap(map);const _originalPositionFor=originalPositionFor(traceMap,stack2),line=_originalPositionFor.line,column=_originalPositionFor.column;if(line!=null&&column!=null)return _objectSpread(_objectSpread({},stack2),{},{line,column});return stack2;});}function parseFFOrSafariStackTrace(stack){return stack.split("\\n").map(line=>parseSingleFFOrSafariStack(line)).filter(notNullish);}function parseV8Stacktrace(stack){return stack.split("\\n").map(line=>parseSingleV8Stack(line)).filter(notNullish);}function parseErrorStacktrace(e,options={}){if(!e||isPrimitive(e))return[];if(e.stacks)return e.stacks;const stackStr=e.stack||e.stackStr||"";let stackFrames=parseStacktrace(stackStr,options);if(options.frameFilter)stackFrames=stackFrames.filter(f=>options.frameFilter(e,f)!==false);e.stacks=stackFrames;return stackFrames;}async function saveInlineSnapshots(environment,snapshots){const MagicString=(await import('./bundle-D7lcxiVj.js')).default;const files=new Set(snapshots.map(i=>i.file));await Promise.all(Array.from(files).map(async file=>{const snaps=snapshots.filter(i=>i.file===file);const code=await environment.readSnapshotFile(file);const s=new MagicString(code);for(const snap of snaps){const index=positionToOffset(code,snap.line,snap.column);replaceInlineSnap(code,s,index,snap.snapshot);}const transformed=s.toString();if(transformed!==code)await environment.saveSnapshotFile(file,transformed);}));}const startObjectRegex=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*({)/m;function replaceObjectSnap(code,s,index,newSnap){let _code=code.slice(index);const startMatch=startObjectRegex.exec(_code);if(!startMatch)return false;_code=_code.slice(startMatch.index);let callEnd=getCallLastIndex(_code);if(callEnd===null)return false;callEnd+=index+startMatch.index;const shapeStart=index+startMatch.index+startMatch[0].length;const shapeEnd=getObjectShapeEndIndex(code,shapeStart);const snap=\`, \${prepareSnapString(newSnap,code,index)}\`;if(shapeEnd===callEnd){s.appendLeft(callEnd,snap);}else{s.overwrite(shapeEnd,callEnd,snap);}return true;}function getObjectShapeEndIndex(code,index){let startBraces=1;let endBraces=0;while(startBraces!==endBraces&&indexi?indentNext+i:"").join("\\n").replace(/\`/g,"\\\\\`").replace(/\\\${/g,"\\\\\${")} \${indent}\${quote}\`;}const startRegex=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\\s*\\(\\s*(?:\\/\\*[\\S\\s]*\\*\\/\\s*|\\/\\/.*\\s+)*\\s*[\\w_$]*(['"\`\\)])/m;function replaceInlineSnap(code,s,index,newSnap){const codeStartingAtIndex=code.slice(index);const startMatch=startRegex.exec(codeStartingAtIndex);const firstKeywordMatch=/toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot/.exec(codeStartingAtIndex);if(!startMatch||startMatch.index!==(firstKeywordMatch==null?void 0:firstKeywordMatch.index))return replaceObjectSnap(code,s,index,newSnap);const quote=startMatch[1];const startIndex=index+startMatch.index+startMatch[0].length;const snapString=prepareSnapString(newSnap,code,index);if(quote===")"){s.appendRight(startIndex-1,snapString);return true;}const quoteEndRE=new RegExp(\`(?:^|[^\\\\\\\\])\${quote}\`);const endMatch=quoteEndRE.exec(code.slice(startIndex));if(!endMatch)return false;const endIndex=startIndex+endMatch.index+endMatch[0].length;s.overwrite(startIndex-1,endIndex,snapString);return true;}const INDENTATION_REGEX=/^([^\\S\\n]*)\\S/m;function stripSnapshotIndentation(inlineSnapshot){const match=inlineSnapshot.match(INDENTATION_REGEX);if(!match||!match[1]){return inlineSnapshot;}const indentation=match[1];const lines=inlineSnapshot.split(/\\n/g);if(lines.length<=2){return inlineSnapshot;}if(lines[0].trim()!==""||lines[lines.length-1].trim()!==""){return inlineSnapshot;}for(let i=1;i{if(!snap.readonly)await environment.saveSnapshotFile(snap.file,snap.snapshot);}));}class SnapshotState{constructor(testFilePath,snapshotPath,snapshotContent,options){this.testFilePath=testFilePath;this.snapshotPath=snapshotPath;const _getSnapshotData=getSnapshotData(snapshotContent,options),data=_getSnapshotData.data,dirty=_getSnapshotData.dirty;this._fileExists=snapshotContent!=null;this._initialData=data;this._snapshotData=data;this._dirty=dirty;this._inlineSnapshots=[];this._rawSnapshots=[];this._uncheckedKeys=new Set(Object.keys(this._snapshotData));this._counters=/* @__PURE__ */new Map();this.expand=options.expand||false;this.added=0;this.matched=0;this.unmatched=0;this._updateSnapshot=options.updateSnapshot;this.updated=0;this._snapshotFormat=_objectSpread({printBasicPrototype:false,escapeString:false},options.snapshotFormat);this._environment=options.snapshotEnvironment;}_counters;_dirty;_updateSnapshot;_snapshotData;_initialData;_inlineSnapshots;_rawSnapshots;_uncheckedKeys;_snapshotFormat;_environment;_fileExists;added;expand;matched;unmatched;updated;static async create(testFilePath,options){const snapshotPath=await options.snapshotEnvironment.resolvePath(testFilePath);const content=await options.snapshotEnvironment.readSnapshotFile(snapshotPath);return new SnapshotState(testFilePath,snapshotPath,content,options);}get environment(){return this._environment;}markSnapshotsAsCheckedForTest(testName){this._uncheckedKeys.forEach(uncheckedKey=>{if(keyToTestName(uncheckedKey)===testName)this._uncheckedKeys.delete(uncheckedKey);});}_inferInlineSnapshotStack(stacks){const promiseIndex=stacks.findIndex(i=>i.method.match(/__VITEST_(RESOLVES|REJECTS)__/));if(promiseIndex!==-1)return stacks[promiseIndex+3];const stackIndex=stacks.findIndex(i=>i.method.includes("__INLINE_SNAPSHOT__"));return stackIndex!==-1?stacks[stackIndex+2]:null;}_addSnapshot(key,receivedSerialized,options){this._dirty=true;if(options.isInline){const stacks=parseErrorStacktrace(options.error||new Error("snapshot"),{ignoreStackEntries:[]});const stack=this._inferInlineSnapshotStack(stacks);if(!stack){throw new Error(\`@vitest/snapshot: Couldn't infer stack frame for inline snapshot. -\${JSON.stringify(stacks)}\`);}stack.column--;this._inlineSnapshots.push(_objectSpread({snapshot:receivedSerialized},stack));}else if(options.rawSnapshot){this._rawSnapshots.push(_objectSpread(_objectSpread({},options.rawSnapshot),{},{snapshot:receivedSerialized}));}else{this._snapshotData[key]=receivedSerialized;}}clear(){this._snapshotData=this._initialData;this._counters=/* @__PURE__ */new Map();this.added=0;this.matched=0;this.unmatched=0;this.updated=0;this._dirty=false;}async save(){const hasExternalSnapshots=Object.keys(this._snapshotData).length;const hasInlineSnapshots=this._inlineSnapshots.length;const hasRawSnapshots=this._rawSnapshots.length;const isEmpty=!hasExternalSnapshots&&!hasInlineSnapshots&&!hasRawSnapshots;const status={deleted:false,saved:false};if((this._dirty||this._uncheckedKeys.size)&&!isEmpty){if(hasExternalSnapshots){await saveSnapshotFile(this._environment,this._snapshotData,this.snapshotPath);this._fileExists=true;}if(hasInlineSnapshots)await saveInlineSnapshots(this._environment,this._inlineSnapshots);if(hasRawSnapshots)await saveRawSnapshots(this._environment,this._rawSnapshots);status.saved=true;}else if(!hasExternalSnapshots&&this._fileExists){if(this._updateSnapshot==="all"){await this._environment.removeSnapshotFile(this.snapshotPath);this._fileExists=false;}status.deleted=true;}return status;}getUncheckedCount(){return this._uncheckedKeys.size||0;}getUncheckedKeys(){return Array.from(this._uncheckedKeys);}removeUncheckedKeys(){if(this._updateSnapshot==="all"&&this._uncheckedKeys.size){this._dirty=true;this._uncheckedKeys.forEach(key=>delete this._snapshotData[key]);this._uncheckedKeys.clear();}}match({testName,received,key,inlineSnapshot,isInline,error,rawSnapshot}){this._counters.set(testName,(this._counters.get(testName)||0)+1);const count=Number(this._counters.get(testName));if(!key)key=testNameToKey(testName,count);if(!(isInline&&this._snapshotData[key]!==void 0))this._uncheckedKeys.delete(key);let receivedSerialized=rawSnapshot&&typeof received==="string"?received:serialize(received,void 0,this._snapshotFormat);if(!rawSnapshot)receivedSerialized=addExtraLineBreaks(receivedSerialized);if(rawSnapshot){if(rawSnapshot.content&&rawSnapshot.content.match(/\\r\\n/)&&!receivedSerialized.match(/\\r\\n/))rawSnapshot.content=normalizeNewlines(rawSnapshot.content);}const expected=isInline?inlineSnapshot:rawSnapshot?rawSnapshot.content:this._snapshotData[key];const expectedTrimmed=prepareExpected(expected);const pass=expectedTrimmed===prepareExpected(receivedSerialized);const hasSnapshot=expected!==void 0;const snapshotIsPersisted=isInline||this._fileExists||rawSnapshot&&rawSnapshot.content!=null;if(pass&&!isInline&&!rawSnapshot){this._snapshotData[key]=receivedSerialized;}if(hasSnapshot&&this._updateSnapshot==="all"||(!hasSnapshot||!snapshotIsPersisted)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")){if(this._updateSnapshot==="all"){if(!pass){if(hasSnapshot)this.updated++;else this.added++;this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});}else{this.matched++;}}else{this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});this.added++;}return{actual:"",count,expected:"",key,pass:true};}else{if(!pass){this.unmatched++;return{actual:removeExtraLineBreaks(receivedSerialized),count,expected:expectedTrimmed!==void 0?removeExtraLineBreaks(expectedTrimmed):void 0,key,pass:false};}else{this.matched++;return{actual:"",count,expected:"",key,pass:true};}}}async pack(){const snapshot={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0};const uncheckedCount=this.getUncheckedCount();const uncheckedKeys=this.getUncheckedKeys();if(uncheckedCount)this.removeUncheckedKeys();const status=await this.save();snapshot.fileDeleted=status.deleted;snapshot.added=this.added;snapshot.matched=this.matched;snapshot.unmatched=this.unmatched;snapshot.updated=this.updated;snapshot.unchecked=!status.deleted?uncheckedCount:0;snapshot.uncheckedKeys=Array.from(uncheckedKeys);return snapshot;}}function createMismatchError(message,expand,actual,expected){const error=new Error(message);Object.defineProperty(error,"actual",{value:actual,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"expected",{value:expected,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"diffOptions",{value:{expand}});return error;}class SnapshotClient{constructor(options={}){this.options=options;}filepath;name;snapshotState;snapshotStateMap=/* @__PURE__ */new Map();async startCurrentRun(filepath,name,options){var _a;this.filepath=filepath;this.name=name;if(((_a=this.snapshotState)==null?void 0:_a.testFilePath)!==filepath){await this.finishCurrentRun();if(!this.getSnapshotState(filepath)){this.snapshotStateMap.set(filepath,await SnapshotState.create(filepath,options));}this.snapshotState=this.getSnapshotState(filepath);}}getSnapshotState(filepath){return this.snapshotStateMap.get(filepath);}clearTest(){this.filepath=void 0;this.name=void 0;}skipTestSnapshots(name){var _a;(_a=this.snapshotState)==null?void 0:_a.markSnapshotsAsCheckedForTest(name);}assert(options){var _a,_b,_c,_d;const _options$filepath=options.filepath,filepath=_options$filepath===void 0?this.filepath:_options$filepath,_options$name=options.name,name=_options$name===void 0?this.name:_options$name,message=options.message,_options$isInline=options.isInline,isInline=_options$isInline===void 0?false:_options$isInline,properties=options.properties,inlineSnapshot=options.inlineSnapshot,error=options.error,errorMessage=options.errorMessage,rawSnapshot=options.rawSnapshot;let received=options.received;if(!filepath)throw new Error("Snapshot cannot be used outside of test");if(typeof properties==="object"){if(typeof received!=="object"||!received)throw new Error("Received value must be an object when the matcher has properties");try{const pass2=((_b=(_a=this.options).isEqual)==null?void 0:_b.call(_a,received,properties))??false;if(!pass2)throw createMismatchError("Snapshot properties mismatched",(_c=this.snapshotState)==null?void 0:_c.expand,received,properties);else received=deepMergeSnapshot(received,properties);}catch(err){err.message=errorMessage||"Snapshot mismatched";throw err;}}const testName=[name,...(message?[message]:[])].join(" > ");const snapshotState=this.getSnapshotState(filepath);const _snapshotState$match=snapshotState.match({testName,received,isInline,error,inlineSnapshot,rawSnapshot}),actual=_snapshotState$match.actual,expected=_snapshotState$match.expected,key=_snapshotState$match.key,pass=_snapshotState$match.pass;if(!pass)throw createMismatchError(\`Snapshot \\\`\${key||"unknown"}\\\` mismatched\`,(_d=this.snapshotState)==null?void 0:_d.expand,actual==null?void 0:actual.trim(),expected==null?void 0:expected.trim());}async assertRaw(options){if(!options.rawSnapshot)throw new Error("Raw snapshot is required");const _options$filepath2=options.filepath,filepath=_options$filepath2===void 0?this.filepath:_options$filepath2,rawSnapshot=options.rawSnapshot;if(rawSnapshot.content==null){if(!filepath)throw new Error("Snapshot cannot be used outside of test");const snapshotState=this.getSnapshotState(filepath);options.filepath||(options.filepath=filepath);rawSnapshot.file=await snapshotState.environment.resolveRawPath(filepath,rawSnapshot.file);rawSnapshot.content=(await snapshotState.environment.readSnapshotFile(rawSnapshot.file))||void 0;}return this.assert(options);}async finishCurrentRun(){if(!this.snapshotState)return null;const result=await this.snapshotState.pack();this.snapshotState=void 0;return result;}clear(){this.snapshotStateMap.clear();}}function getFullName(task,separator=" > "){return getNames(task).join(separator);}function isChildProcess(){return typeof process!=="undefined"&&!!process.send;}const RealDate=Date;let now=null;class MockDate extends RealDate{constructor(y,m,d,h,M,s,ms){super();let date;switch(arguments.length){case 0:if(now!==null)date=new RealDate(now.valueOf());else date=new RealDate();break;case 1:date=new RealDate(y);break;default:d=typeof d==="undefined"?1:d;h=h||0;M=M||0;s=s||0;ms=ms||0;date=new RealDate(y,m,d,h,M,s,ms);break;}Object.setPrototypeOf(date,MockDate.prototype);return date;}}MockDate.UTC=RealDate.UTC;MockDate.now=function(){return new MockDate().valueOf();};MockDate.parse=function(dateString){return RealDate.parse(dateString);};MockDate.toString=function(){return RealDate.toString();};function mockDate(date){const dateObj=new RealDate(date.valueOf());if(Number.isNaN(dateObj.getTime()))throw new TypeError(\`mockdate: The time set is an invalid date: \${date}\`);globalThis.Date=MockDate;now=dateObj.valueOf();}function resetDate(){globalThis.Date=RealDate;}function resetModules(modules,resetMocks=false){const skipPaths=[// Vitest +\${JSON.stringify(stacks)}\`);}stack.column--;this._inlineSnapshots.push(_objectSpread({snapshot:receivedSerialized},stack));}else if(options.rawSnapshot){this._rawSnapshots.push(_objectSpread(_objectSpread({},options.rawSnapshot),{},{snapshot:receivedSerialized}));}else{this._snapshotData[key]=receivedSerialized;}}clear(){this._snapshotData=this._initialData;this._counters=/* @__PURE__ */new Map();this.added=0;this.matched=0;this.unmatched=0;this.updated=0;this._dirty=false;}async save(){const hasExternalSnapshots=Object.keys(this._snapshotData).length;const hasInlineSnapshots=this._inlineSnapshots.length;const hasRawSnapshots=this._rawSnapshots.length;const isEmpty=!hasExternalSnapshots&&!hasInlineSnapshots&&!hasRawSnapshots;const status={deleted:false,saved:false};if((this._dirty||this._uncheckedKeys.size)&&!isEmpty){if(hasExternalSnapshots){await saveSnapshotFile(this._environment,this._snapshotData,this.snapshotPath);this._fileExists=true;}if(hasInlineSnapshots)await saveInlineSnapshots(this._environment,this._inlineSnapshots);if(hasRawSnapshots)await saveRawSnapshots(this._environment,this._rawSnapshots);status.saved=true;}else if(!hasExternalSnapshots&&this._fileExists){if(this._updateSnapshot==="all"){await this._environment.removeSnapshotFile(this.snapshotPath);this._fileExists=false;}status.deleted=true;}return status;}getUncheckedCount(){return this._uncheckedKeys.size||0;}getUncheckedKeys(){return Array.from(this._uncheckedKeys);}removeUncheckedKeys(){if(this._updateSnapshot==="all"&&this._uncheckedKeys.size){this._dirty=true;this._uncheckedKeys.forEach(key=>delete this._snapshotData[key]);this._uncheckedKeys.clear();}}match({testName,received,key,inlineSnapshot,isInline,error,rawSnapshot}){this._counters.set(testName,(this._counters.get(testName)||0)+1);const count=Number(this._counters.get(testName));if(!key)key=testNameToKey(testName,count);if(!(isInline&&this._snapshotData[key]!==void 0))this._uncheckedKeys.delete(key);let receivedSerialized=rawSnapshot&&typeof received==="string"?received:serialize(received,void 0,this._snapshotFormat);if(!rawSnapshot)receivedSerialized=addExtraLineBreaks(receivedSerialized);if(rawSnapshot){if(rawSnapshot.content&&rawSnapshot.content.match(/\\r\\n/)&&!receivedSerialized.match(/\\r\\n/))rawSnapshot.content=normalizeNewlines(rawSnapshot.content);}const expected=isInline?inlineSnapshot:rawSnapshot?rawSnapshot.content:this._snapshotData[key];const expectedTrimmed=prepareExpected(expected);const pass=expectedTrimmed===prepareExpected(receivedSerialized);const hasSnapshot=expected!==void 0;const snapshotIsPersisted=isInline||this._fileExists||rawSnapshot&&rawSnapshot.content!=null;if(pass&&!isInline&&!rawSnapshot){this._snapshotData[key]=receivedSerialized;}if(hasSnapshot&&this._updateSnapshot==="all"||(!hasSnapshot||!snapshotIsPersisted)&&(this._updateSnapshot==="new"||this._updateSnapshot==="all")){if(this._updateSnapshot==="all"){if(!pass){if(hasSnapshot)this.updated++;else this.added++;this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});}else{this.matched++;}}else{this._addSnapshot(key,receivedSerialized,{error,isInline,rawSnapshot});this.added++;}return{actual:"",count,expected:"",key,pass:true};}else{if(!pass){this.unmatched++;return{actual:removeExtraLineBreaks(receivedSerialized),count,expected:expectedTrimmed!==void 0?removeExtraLineBreaks(expectedTrimmed):void 0,key,pass:false};}else{this.matched++;return{actual:"",count,expected:"",key,pass:true};}}}async pack(){const snapshot={filepath:this.testFilePath,added:0,fileDeleted:false,matched:0,unchecked:0,uncheckedKeys:[],unmatched:0,updated:0};const uncheckedCount=this.getUncheckedCount();const uncheckedKeys=this.getUncheckedKeys();if(uncheckedCount)this.removeUncheckedKeys();const status=await this.save();snapshot.fileDeleted=status.deleted;snapshot.added=this.added;snapshot.matched=this.matched;snapshot.unmatched=this.unmatched;snapshot.updated=this.updated;snapshot.unchecked=!status.deleted?uncheckedCount:0;snapshot.uncheckedKeys=Array.from(uncheckedKeys);return snapshot;}}function createMismatchError(message,expand,actual,expected){const error=new Error(message);Object.defineProperty(error,"actual",{value:actual,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"expected",{value:expected,enumerable:true,configurable:true,writable:true});Object.defineProperty(error,"diffOptions",{value:{expand}});return error;}class SnapshotClient{constructor(options={}){this.options=options;}filepath;name;snapshotState;snapshotStateMap=/* @__PURE__ */new Map();async startCurrentRun(filepath,name,options){var _a;this.filepath=filepath;this.name=name;if(((_a=this.snapshotState)==null?void 0:_a.testFilePath)!==filepath){await this.finishCurrentRun();if(!this.getSnapshotState(filepath)){this.snapshotStateMap.set(filepath,await SnapshotState.create(filepath,options));}this.snapshotState=this.getSnapshotState(filepath);}}getSnapshotState(filepath){return this.snapshotStateMap.get(filepath);}clearTest(){this.filepath=void 0;this.name=void 0;}skipTestSnapshots(name){var _a;(_a=this.snapshotState)==null?void 0:_a.markSnapshotsAsCheckedForTest(name);}assert(options){var _a,_b,_c,_d;const _options$filepath=options.filepath,filepath=_options$filepath===void 0?this.filepath:_options$filepath,_options$name=options.name,name=_options$name===void 0?this.name:_options$name,message=options.message,_options$isInline=options.isInline,isInline=_options$isInline===void 0?false:_options$isInline,properties=options.properties,inlineSnapshot=options.inlineSnapshot,error=options.error,errorMessage=options.errorMessage,rawSnapshot=options.rawSnapshot;let received=options.received;if(!filepath)throw new Error("Snapshot cannot be used outside of test");if(typeof properties==="object"){if(typeof received!=="object"||!received)throw new Error("Received value must be an object when the matcher has properties");try{const pass2=((_b=(_a=this.options).isEqual)==null?void 0:_b.call(_a,received,properties))??false;if(!pass2)throw createMismatchError("Snapshot properties mismatched",(_c=this.snapshotState)==null?void 0:_c.expand,received,properties);else received=deepMergeSnapshot(received,properties);}catch(err){err.message=errorMessage||"Snapshot mismatched";throw err;}}const testName=[name,...(message?[message]:[])].join(" > ");const snapshotState=this.getSnapshotState(filepath);const _snapshotState$match=snapshotState.match({testName,received,isInline,error,inlineSnapshot,rawSnapshot}),actual=_snapshotState$match.actual,expected=_snapshotState$match.expected,key=_snapshotState$match.key,pass=_snapshotState$match.pass;if(!pass)throw createMismatchError(\`Snapshot \\\`\${key||"unknown"}\\\` mismatched\`,(_d=this.snapshotState)==null?void 0:_d.expand,actual==null?void 0:actual.trim(),expected==null?void 0:expected.trim());}async assertRaw(options){if(!options.rawSnapshot)throw new Error("Raw snapshot is required");const _options$filepath2=options.filepath,filepath=_options$filepath2===void 0?this.filepath:_options$filepath2,rawSnapshot=options.rawSnapshot;if(rawSnapshot.content==null){if(!filepath)throw new Error("Snapshot cannot be used outside of test");const snapshotState=this.getSnapshotState(filepath);options.filepath||(options.filepath=filepath);rawSnapshot.file=await snapshotState.environment.resolveRawPath(filepath,rawSnapshot.file);rawSnapshot.content=(await snapshotState.environment.readSnapshotFile(rawSnapshot.file))||void 0;}return this.assert(options);}async finishCurrentRun(){if(!this.snapshotState)return null;const result=await this.snapshotState.pack();this.snapshotState=void 0;return result;}clear(){this.snapshotStateMap.clear();}}function isChildProcess(){return typeof process!=="undefined"&&!!process.send;}const RealDate=Date;let now=null;class MockDate extends RealDate{constructor(y,m,d,h,M,s,ms){super();let date;switch(arguments.length){case 0:if(now!==null)date=new RealDate(now.valueOf());else date=new RealDate();break;case 1:date=new RealDate(y);break;default:d=typeof d==="undefined"?1:d;h=h||0;M=M||0;s=s||0;ms=ms||0;date=new RealDate(y,m,d,h,M,s,ms);break;}Object.setPrototypeOf(date,MockDate.prototype);return date;}}MockDate.UTC=RealDate.UTC;MockDate.now=function(){return new MockDate().valueOf();};MockDate.parse=function(dateString){return RealDate.parse(dateString);};MockDate.toString=function(){return RealDate.toString();};function mockDate(date){const dateObj=new RealDate(date.valueOf());if(Number.isNaN(dateObj.getTime()))throw new TypeError(\`mockdate: The time set is an invalid date: \${date}\`);globalThis.Date=MockDate;now=dateObj.valueOf();}function resetDate(){globalThis.Date=RealDate;}function resetModules(modules,resetMocks=false){const skipPaths=[// Vitest /\\/vitest\\/dist\\//,/\\/vite-node\\/dist\\//,// yarn's .store folder /vitest-virtual-\\w+\\/dist/,// cnpm /@vitest\\/dist/,// don't clear mocks -...(!resetMocks?[/^mock:/]:[])];modules.forEach((mod,path)=>{if(skipPaths.some(re=>re.test(path)))return;modules.invalidateModule(mod);});}function waitNextTick(){const _getSafeTimers2=getSafeTimers(),setTimeout=_getSafeTimers2.setTimeout;return new Promise(resolve=>setTimeout(resolve,0));}async function waitForImportsToResolve(){await waitNextTick();const state=getWorkerState();const promises=[];let resolvingCount=0;for(const mod of state.moduleCache.values()){if(mod.promise&&!mod.evaluated)promises.push(mod.promise);if(mod.resolving)resolvingCount++;}if(!promises.length&&!resolvingCount)return;await Promise.allSettled(promises);await waitForImportsToResolve();}function commonjsRequire(path){throw new Error('Could not dynamically require "'+path+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}var chaiSubset={exports:{}};(function(module,exports){(function(){(function(chaiSubset){if(typeof commonjsRequire==='function'&&'object'==='object'&&'object'==='object'){return module.exports=chaiSubset;}else{return chai.use(chaiSubset);}})(function(chai,utils){var Assertion=chai.Assertion;var assertionPrototype=Assertion.prototype;Assertion.addMethod('containSubset',function(expected){var actual=utils.flag(this,'object');var showDiff=chai.config.showDiff;assertionPrototype.assert.call(this,compare(expected,actual),'expected #{act} to contain subset #{exp}','expected #{act} to not contain subset #{exp}',expected,actual,showDiff);});chai.assert.containSubset=function(val,exp,msg){new chai.Assertion(val,msg).to.be.containSubset(exp);};function compare(expected,actual){if(expected===actual){return true;}if(typeof actual!==typeof expected){return false;}if(typeof expected!=='object'||expected===null){return expected===actual;}if(!!expected&&!actual){return false;}if(Array.isArray(expected)){if(typeof actual.length!=='number'){return false;}var aa=Array.prototype.slice.call(actual);return expected.every(function(exp){return aa.some(function(act){return compare(exp,act);});});}if(expected instanceof Date){if(actual instanceof Date){return expected.getTime()===actual.getTime();}else{return false;}}return Object.keys(expected).every(function(key){var eo=expected[key];var ao=actual[key];if(typeof eo==='object'&&eo!==null&&ao!==null){return compare(eo,ao);}if(typeof eo==='function'){return eo(ao);}return ao===eo;});}});}).call(commonjsGlobal);})(chaiSubset);var chaiSubsetExports=chaiSubset.exports;var Subset=/*@__PURE__*/getDefaultExportFromCjs$1(chaiSubsetExports);const MATCHERS_OBJECT=Symbol.for("matchers-object");const JEST_MATCHERS_OBJECT=Symbol.for("$$jest-matchers-object");const GLOBAL_EXPECT=Symbol.for("expect-global");const ASYMMETRIC_MATCHERS_OBJECT=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,MATCHERS_OBJECT)){const globalState=/* @__PURE__ */new WeakMap();const matchers=/* @__PURE__ */Object.create(null);const customEqualityTesters=[];const assymetricMatchers=/* @__PURE__ */Object.create(null);Object.defineProperty(globalThis,MATCHERS_OBJECT,{get:()=>globalState});Object.defineProperty(globalThis,JEST_MATCHERS_OBJECT,{configurable:true,get:()=>({state:globalState.get(globalThis[GLOBAL_EXPECT]),matchers,customEqualityTesters})});Object.defineProperty(globalThis,ASYMMETRIC_MATCHERS_OBJECT,{get:()=>assymetricMatchers});}function recordAsyncExpect(test,promise){if(test&&promise instanceof Promise){promise=promise.finally(()=>{const index=test.promises.indexOf(promise);if(index!==-1)test.promises.splice(index,1);});if(!test.promises)test.promises=[];test.promises.push(promise);}return promise;}let _client;function getSnapshotClient(){if(!_client){_client=new SnapshotClient({isEqual:(received,expected)=>{return equals(received,expected,[iterableEquality,subsetEquality]);}});}return _client;}function getError(expected,promise){if(typeof expected!=="function"){if(!promise)throw new Error(\`expected must be a function, received \${typeof expected}\`);return expected;}try{expected();}catch(e){return e;}throw new Error("snapshot function didn't throw");}const SnapshotPlugin=(chai,utils)=>{const getTestNames=test=>{var _a;if(!test)return{};return{filepath:(_a=test.file)==null?void 0:_a.filepath,name:getNames(test).slice(1).join(" > ")};};for(const key of["matchSnapshot","toMatchSnapshot"]){utils.addMethod(chai.Assertion.prototype,key,function(properties,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error(\`\${key} cannot be used with "not"\`);const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");if(typeof properties==="string"&&typeof message==="undefined"){message=properties;properties=void 0;}const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:false,properties,errorMessage},getTestNames(test)));});}utils.addMethod(chai.Assertion.prototype,"toMatchFileSnapshot",function(file,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchFileSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const errorMessage=utils.flag(this,"message");const promise=getSnapshotClient().assertRaw(_objectSpread({received:expected,message,isInline:false,rawSnapshot:{file},errorMessage},getTestNames(test)));return recordAsyncExpect(test,promise);});utils.addMethod(chai.Assertion.prototype,"toMatchInlineSnapshot",function __INLINE_SNAPSHOT__(properties,inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");if(typeof properties==="string"){message=inlineSnapshot;inlineSnapshot=properties;properties=void 0;}if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:true,properties,inlineSnapshot,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function __INLINE_SNAPSHOT__(inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,inlineSnapshot,isInline:true,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.expect,"addSnapshotSerializer",addSerializer);};use(JestExtend);use(JestChaiExpect);use(Subset);use(SnapshotPlugin);use(JestAsymmetricMatchers);function createExpect(test){var _a;const expect$1=(value,message)=>{const _getState=getState(expect$1),assertionCalls=_getState.assertionCalls;setState({assertionCalls:assertionCalls+1,soft:false},expect$1);const assert2=expect(value,message);const _test=test||getCurrentTest();if(_test)return assert2.withTest(_test);else return assert2;};Object.assign(expect$1,expect);Object.assign(expect$1,globalThis[ASYMMETRIC_MATCHERS_OBJECT$1]);expect$1.getState=()=>getState(expect$1);expect$1.setState=state=>setState(state,expect$1);const globalState=getState(globalThis[GLOBAL_EXPECT$1])||{};setState(_objectSpread(_objectSpread({},globalState),{},{assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:getCurrentEnvironment(),testPath:test?(_a=test.suite.file)==null?void 0:_a.filepath:globalState.testPath,currentTestName:test?getFullName(test):globalState.currentTestName}),expect$1);expect$1.extend=matchers=>expect.extend(expect$1,matchers);expect$1.addEqualityTesters=customTesters=>addCustomEqualityTesters(customTesters);expect$1.soft=(...args)=>{const assert2=expect$1(...args);expect$1.setState({soft:true});return assert2;};expect$1.unreachable=message=>{assert.fail(\`expected\${message?\` "\${message}" \`:" "}not to be reached\`);};function assertions(expected){const errorGen=()=>new Error(\`expected number of assertions to be \${expected}, but got \${expect$1.getState().assertionCalls}\`);if(Error.captureStackTrace)Error.captureStackTrace(errorGen(),assertions);expect$1.setState({expectedAssertionsNumber:expected,expectedAssertionsNumberErrorGen:errorGen});}function hasAssertions(){const error=new Error("expected any number of assertion, but got none");if(Error.captureStackTrace)Error.captureStackTrace(error,hasAssertions);expect$1.setState({isExpectingAssertions:true,isExpectingAssertionsError:error});}util.addMethod(expect$1,"assertions",assertions);util.addMethod(expect$1,"hasAssertions",hasAssertions);return expect$1;}const globalExpect=createExpect();Object.defineProperty(globalThis,GLOBAL_EXPECT$1,{value:globalExpect,writable:true,configurable:true});/** +...(!resetMocks?[/^mock:/]:[])];modules.forEach((mod,path)=>{if(skipPaths.some(re=>re.test(path)))return;modules.invalidateModule(mod);});}function waitNextTick(){const _getSafeTimers2=getSafeTimers(),setTimeout=_getSafeTimers2.setTimeout;return new Promise(resolve=>setTimeout(resolve,0));}async function waitForImportsToResolve(){await waitNextTick();const state=getWorkerState();const promises=[];let resolvingCount=0;for(const mod of state.moduleCache.values()){if(mod.promise&&!mod.evaluated)promises.push(mod.promise);if(mod.resolving)resolvingCount++;}if(!promises.length&&!resolvingCount)return;await Promise.allSettled(promises);await waitForImportsToResolve();}function commonjsRequire(path){throw new Error('Could not dynamically require "'+path+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');}var chaiSubset={exports:{}};(function(module,exports){(function(){(function(chaiSubset){if(typeof commonjsRequire==='function'&&'object'==='object'&&'object'==='object'){return module.exports=chaiSubset;}else{return chai.use(chaiSubset);}})(function(chai,utils){var Assertion=chai.Assertion;var assertionPrototype=Assertion.prototype;Assertion.addMethod('containSubset',function(expected){var actual=utils.flag(this,'object');var showDiff=chai.config.showDiff;assertionPrototype.assert.call(this,compare(expected,actual),'expected #{act} to contain subset #{exp}','expected #{act} to not contain subset #{exp}',expected,actual,showDiff);});chai.assert.containSubset=function(val,exp,msg){new chai.Assertion(val,msg).to.be.containSubset(exp);};function compare(expected,actual){if(expected===actual){return true;}if(typeof actual!==typeof expected){return false;}if(typeof expected!=='object'||expected===null){return expected===actual;}if(!!expected&&!actual){return false;}if(Array.isArray(expected)){if(typeof actual.length!=='number'){return false;}var aa=Array.prototype.slice.call(actual);return expected.every(function(exp){return aa.some(function(act){return compare(exp,act);});});}if(expected instanceof Date){if(actual instanceof Date){return expected.getTime()===actual.getTime();}else{return false;}}return Object.keys(expected).every(function(key){var eo=expected[key];var ao=actual[key];if(typeof eo==='object'&&eo!==null&&ao!==null){return compare(eo,ao);}if(typeof eo==='function'){return eo(ao);}return ao===eo;});}});}).call(commonjsGlobal);})(chaiSubset);var chaiSubsetExports=chaiSubset.exports;var Subset=/*@__PURE__*/getDefaultExportFromCjs$1(chaiSubsetExports);const MATCHERS_OBJECT=Symbol.for("matchers-object");const JEST_MATCHERS_OBJECT=Symbol.for("$$jest-matchers-object");const GLOBAL_EXPECT=Symbol.for("expect-global");const ASYMMETRIC_MATCHERS_OBJECT=Symbol.for("asymmetric-matchers-object");if(!Object.prototype.hasOwnProperty.call(globalThis,MATCHERS_OBJECT)){const globalState=/* @__PURE__ */new WeakMap();const matchers=/* @__PURE__ */Object.create(null);const customEqualityTesters=[];const assymetricMatchers=/* @__PURE__ */Object.create(null);Object.defineProperty(globalThis,MATCHERS_OBJECT,{get:()=>globalState});Object.defineProperty(globalThis,JEST_MATCHERS_OBJECT,{configurable:true,get:()=>({state:globalState.get(globalThis[GLOBAL_EXPECT]),matchers,customEqualityTesters})});Object.defineProperty(globalThis,ASYMMETRIC_MATCHERS_OBJECT,{get:()=>assymetricMatchers});}function recordAsyncExpect(test,promise){if(test&&promise instanceof Promise){promise=promise.finally(()=>{const index=test.promises.indexOf(promise);if(index!==-1)test.promises.splice(index,1);});if(!test.promises)test.promises=[];test.promises.push(promise);}return promise;}let _client;function getSnapshotClient(){if(!_client){_client=new SnapshotClient({isEqual:(received,expected)=>{return equals(received,expected,[iterableEquality,subsetEquality]);}});}return _client;}function getError(expected,promise){if(typeof expected!=="function"){if(!promise)throw new Error(\`expected must be a function, received \${typeof expected}\`);return expected;}try{expected();}catch(e){return e;}throw new Error("snapshot function didn't throw");}const SnapshotPlugin=(chai,utils)=>{const getTestNames=test=>{var _a;if(!test)return{};return{filepath:(_a=test.file)==null?void 0:_a.filepath,name:getNames(test).slice(1).join(" > ")};};for(const key of["matchSnapshot","toMatchSnapshot"]){utils.addMethod(chai.Assertion.prototype,key,function(properties,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error(\`\${key} cannot be used with "not"\`);const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");if(typeof properties==="string"&&typeof message==="undefined"){message=properties;properties=void 0;}const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:false,properties,errorMessage},getTestNames(test)));});}utils.addMethod(chai.Assertion.prototype,"toMatchFileSnapshot",function(file,message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchFileSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const errorMessage=utils.flag(this,"message");const promise=getSnapshotClient().assertRaw(_objectSpread({received:expected,message,isInline:false,rawSnapshot:{file},errorMessage},getTestNames(test)));return recordAsyncExpect(test,promise);});utils.addMethod(chai.Assertion.prototype,"toMatchInlineSnapshot",function __INLINE_SNAPSHOT__(properties,inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toMatchInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");if(typeof properties==="string"){message=inlineSnapshot;inlineSnapshot=properties;properties=void 0;}if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:expected,message,isInline:true,properties,inlineSnapshot,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingSnapshot",function(message){const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingSnapshot cannot be used with "not"');const expected=utils.flag(this,"object");const test=utils.flag(this,"vitest-test");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,errorMessage},getTestNames(test)));});utils.addMethod(chai.Assertion.prototype,"toThrowErrorMatchingInlineSnapshot",function __INLINE_SNAPSHOT__(inlineSnapshot,message){var _a;const isNot=utils.flag(this,"negate");if(isNot)throw new Error('toThrowErrorMatchingInlineSnapshot cannot be used with "not"');const test=utils.flag(this,"vitest-test");const isInsideEach=test&&(test.each||((_a=test.suite)==null?void 0:_a.each));if(isInsideEach)throw new Error("InlineSnapshot cannot be used inside of test.each or describe.each");const expected=utils.flag(this,"object");const error=utils.flag(this,"error");const promise=utils.flag(this,"promise");const errorMessage=utils.flag(this,"message");if(inlineSnapshot)inlineSnapshot=stripSnapshotIndentation(inlineSnapshot);getSnapshotClient().assert(_objectSpread({received:getError(expected,promise),message,inlineSnapshot,isInline:true,error,errorMessage},getTestNames(test)));});utils.addMethod(chai.expect,"addSnapshotSerializer",addSerializer);};use(JestExtend);use(JestChaiExpect);use(Subset);use(SnapshotPlugin);use(JestAsymmetricMatchers);function createExpect(test){const expect$1=(value,message)=>{const _getState=getState(expect$1),assertionCalls=_getState.assertionCalls;setState({assertionCalls:assertionCalls+1,soft:false},expect$1);const assert2=expect(value,message);return assert2;};Object.assign(expect$1,expect);Object.assign(expect$1,globalThis[ASYMMETRIC_MATCHERS_OBJECT$1]);expect$1.getState=()=>getState(expect$1);expect$1.setState=state=>setState(state,expect$1);const globalState=getState(globalThis[GLOBAL_EXPECT$1])||{};setState(_objectSpread(_objectSpread({},globalState),{},{assertionCalls:0,isExpectingAssertions:false,isExpectingAssertionsError:null,expectedAssertionsNumber:null,expectedAssertionsNumberErrorGen:null,environment:getCurrentEnvironment(),testPath:globalState.testPath,currentTestName:globalState.currentTestName}),expect$1);expect$1.extend=matchers=>expect.extend(expect$1,matchers);expect$1.addEqualityTesters=customTesters=>addCustomEqualityTesters(customTesters);expect$1.soft=(...args)=>{const assert2=expect$1(...args);expect$1.setState({soft:true});return assert2;};expect$1.unreachable=message=>{assert.fail(\`expected\${message?\` "\${message}" \`:" "}not to be reached\`);};function assertions(expected){const errorGen=()=>new Error(\`expected number of assertions to be \${expected}, but got \${expect$1.getState().assertionCalls}\`);if(Error.captureStackTrace)Error.captureStackTrace(errorGen(),assertions);expect$1.setState({expectedAssertionsNumber:expected,expectedAssertionsNumberErrorGen:errorGen});}function hasAssertions(){const error=new Error("expected any number of assertion, but got none");if(Error.captureStackTrace)Error.captureStackTrace(error,hasAssertions);expect$1.setState({isExpectingAssertions:true,isExpectingAssertionsError:error});}util.addMethod(expect$1,"assertions",assertions);util.addMethod(expect$1,"hasAssertions",hasAssertions);return expect$1;}const globalExpect=createExpect();Object.defineProperty(globalThis,GLOBAL_EXPECT$1,{value:globalExpect,writable:true,configurable:true});/** * A reference to the global object * * @type {object} globalObject diff --git a/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap index 80232393..5371d00a 100644 --- a/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/assetImports.test.ts.snap @@ -1169,9 +1169,9 @@ exports[`Assets > swc > transforms example test case: browser-current-esm > ../a exports[`Assets > swc > transforms example test case: browser-current-esm > esm/index-browser-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1198,10 +1198,10 @@ exports[`Assets > swc > transforms example test case: browser-current-lib > ../a exports[`Assets > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1267,9 +1267,9 @@ exports[`Assets > swc > transforms example test case: browser-experimental-esm > exports[`Assets > swc > transforms example test case: browser-experimental-esm > esm/index-browser-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1296,10 +1296,10 @@ exports[`Assets > swc > transforms example test case: browser-experimental-lib > exports[`Assets > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1365,9 +1365,9 @@ exports[`Assets > swc > transforms example test case: browser-legacy-esm > ../as exports[`Assets > swc > transforms example test case: browser-legacy-esm > esm/index-browser-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; var json = { list: [ "foo", @@ -1394,10 +1394,10 @@ exports[`Assets > swc > transforms example test case: browser-legacy-lib > ../as exports[`Assets > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); var json = { list: [ "foo", @@ -1463,9 +1463,9 @@ exports[`Assets > swc > transforms example test case: browser-stable-esm > ../as exports[`Assets > swc > transforms example test case: browser-stable-esm > esm/index-browser-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1492,10 +1492,10 @@ exports[`Assets > swc > transforms example test case: browser-stable-lib > ../as exports[`Assets > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1561,9 +1561,9 @@ exports[`Assets > swc > transforms example test case: electron-current-esm > ../ exports[`Assets > swc > transforms example test case: electron-current-esm > esm/index-electron-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1590,10 +1590,10 @@ exports[`Assets > swc > transforms example test case: electron-current-lib > ../ exports[`Assets > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1620,9 +1620,9 @@ exports[`Assets > swc > transforms example test case: electron-experimental-esm exports[`Assets > swc > transforms example test case: electron-experimental-esm > esm/index-electron-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1649,10 +1649,10 @@ exports[`Assets > swc > transforms example test case: electron-experimental-lib exports[`Assets > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1679,9 +1679,9 @@ exports[`Assets > swc > transforms example test case: electron-legacy-esm > ../a exports[`Assets > swc > transforms example test case: electron-legacy-esm > esm/index-electron-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1708,10 +1708,10 @@ exports[`Assets > swc > transforms example test case: electron-legacy-lib > ../a exports[`Assets > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1738,9 +1738,9 @@ exports[`Assets > swc > transforms example test case: electron-stable-esm > ../a exports[`Assets > swc > transforms example test case: electron-stable-esm > esm/index-electron-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1767,10 +1767,10 @@ exports[`Assets > swc > transforms example test case: electron-stable-lib > ../a exports[`Assets > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1797,9 +1797,9 @@ exports[`Assets > swc > transforms example test case: native-current-esm > ../as exports[`Assets > swc > transforms example test case: native-current-esm > esm/index-native-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1826,10 +1826,10 @@ exports[`Assets > swc > transforms example test case: native-current-lib > ../as exports[`Assets > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1856,9 +1856,9 @@ exports[`Assets > swc > transforms example test case: native-experimental-esm > exports[`Assets > swc > transforms example test case: native-experimental-esm > esm/index-native-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1885,10 +1885,10 @@ exports[`Assets > swc > transforms example test case: native-experimental-lib > exports[`Assets > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1915,9 +1915,9 @@ exports[`Assets > swc > transforms example test case: native-legacy-esm > ../ass exports[`Assets > swc > transforms example test case: native-legacy-esm > esm/index-native-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -1944,10 +1944,10 @@ exports[`Assets > swc > transforms example test case: native-legacy-lib > ../ass exports[`Assets > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -1974,9 +1974,9 @@ exports[`Assets > swc > transforms example test case: native-stable-esm > ../ass exports[`Assets > swc > transforms example test case: native-stable-esm > esm/index-native-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: esm -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -2003,10 +2003,10 @@ exports[`Assets > swc > transforms example test case: native-stable-lib > ../ass exports[`Assets > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2033,10 +2033,10 @@ exports[`Assets > swc > transforms example test case: node-current-cjs > ../asse exports[`Assets > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2070,10 +2070,10 @@ exports[`Assets > swc > transforms example test case: node-current-lib > ../asse exports[`Assets > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2100,9 +2100,9 @@ exports[`Assets > swc > transforms example test case: node-current-mjs > ../asse exports[`Assets > swc > transforms example test case: node-current-mjs > mjs/index-node-current-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: mjs -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -2129,10 +2129,10 @@ exports[`Assets > swc > transforms example test case: node-experimental-cjs > .. exports[`Assets > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2166,10 +2166,10 @@ exports[`Assets > swc > transforms example test case: node-experimental-lib > .. exports[`Assets > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2196,9 +2196,9 @@ exports[`Assets > swc > transforms example test case: node-experimental-mjs > .. exports[`Assets > swc > transforms example test case: node-experimental-mjs > mjs/index-node-experimental-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: mjs -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -2225,10 +2225,10 @@ exports[`Assets > swc > transforms example test case: node-legacy-cjs > ../asset exports[`Assets > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2262,10 +2262,10 @@ exports[`Assets > swc > transforms example test case: node-legacy-lib > ../asset exports[`Assets > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2292,9 +2292,9 @@ exports[`Assets > swc > transforms example test case: node-legacy-mjs > ../asset exports[`Assets > swc > transforms example test case: node-legacy-mjs > mjs/index-node-legacy-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: mjs -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", @@ -2321,10 +2321,10 @@ exports[`Assets > swc > transforms example test case: node-stable-cjs > ../asset exports[`Assets > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2358,10 +2358,10 @@ exports[`Assets > swc > transforms example test case: node-stable-lib > ../asset exports[`Assets > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; -require("../assets/styles-17df299b.css"); -require("../assets/logo-c21f559f.svg"); -require("bootstrap/dist/css/bootstrap.css"); +'use strict'; +require('../assets/styles-17df299b.css'); +require('../assets/logo-c21f559f.svg'); +require('bootstrap/dist/css/bootstrap.css'); const json = { list: [ "foo", @@ -2388,9 +2388,9 @@ exports[`Assets > swc > transforms example test case: node-stable-mjs > ../asset exports[`Assets > swc > transforms example test case: node-stable-mjs > mjs/index-node-stable-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: mjs -import "../assets/styles-17df299b.css"; -import "../assets/logo-c21f559f.svg"; -import "bootstrap/dist/css/bootstrap.css"; +import '../assets/styles-17df299b.css'; +import '../assets/logo-c21f559f.svg'; +import 'bootstrap/dist/css/bootstrap.css'; const json = { list: [ "foo", diff --git a/packages/packemon/tests/examples/__snapshots__/asyncAwait.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/asyncAwait.test.ts.snap index 4cee9448..81ca6cad 100644 --- a/packages/packemon/tests/examples/__snapshots__/asyncAwait.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/asyncAwait.test.ts.snap @@ -1037,7 +1037,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -1048,7 +1048,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -1058,7 +1058,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -1102,7 +1102,7 @@ exports[`Async/await > swc > transforms example test case: browser-current-umd > try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } }); @@ -1122,7 +1122,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -1133,7 +1133,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -1143,7 +1143,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -1187,7 +1187,7 @@ exports[`Async/await > swc > transforms example test case: browser-experimental- try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } }); @@ -1365,7 +1365,7 @@ function _run() { ]; case 2: e = _state.sent(); - throw new Error("Fail"); + throw new Error('Fail'); case 3: return [ 2 @@ -1383,7 +1383,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; +'use strict'; function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); @@ -1551,7 +1551,7 @@ function _run() { ]; case 2: e = _state.sent(); - throw new Error("Fail"); + throw new Error('Fail'); case 3: return [ 2 @@ -1760,7 +1760,7 @@ exports[`Async/await > swc > transforms example test case: browser-legacy-umd > ]; case 2: e = _state.sent(); - throw new Error("Fail"); + throw new Error('Fail'); case 3: return [ 2 @@ -1787,7 +1787,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -1798,7 +1798,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -1808,7 +1808,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -1852,7 +1852,7 @@ exports[`Async/await > swc > transforms example test case: browser-stable-umd > try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } }); @@ -1872,7 +1872,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -1883,7 +1883,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -1893,7 +1893,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -1914,7 +1914,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -1925,7 +1925,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -1935,7 +1935,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -1956,7 +1956,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -1967,7 +1967,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -1977,7 +1977,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -1998,7 +1998,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2009,7 +2009,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2019,7 +2019,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2040,7 +2040,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2051,7 +2051,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2061,7 +2061,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2082,7 +2082,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2093,7 +2093,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2103,7 +2103,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2124,7 +2124,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2135,7 +2135,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2145,7 +2145,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2166,7 +2166,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2177,7 +2177,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2187,7 +2187,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2199,7 +2199,7 @@ exports.wait = wait; exports[`Async/await > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2209,7 +2209,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2230,7 +2230,7 @@ export const { run, wait } = data;" exports[`Async/await > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2240,7 +2240,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2261,7 +2261,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2272,7 +2272,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2282,7 +2282,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2303,7 +2303,7 @@ export const { run, wait } = data;" exports[`Async/await > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2313,7 +2313,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2334,7 +2334,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2345,7 +2345,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2355,7 +2355,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2376,7 +2376,7 @@ export const { run, wait } = data;" exports[`Async/await > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2386,7 +2386,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2407,7 +2407,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; @@ -2418,7 +2418,7 @@ export { run, wait }; exports[`Async/await > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2428,7 +2428,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2449,7 +2449,7 @@ export const { run, wait } = data;" exports[`Async/await > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; +'use strict'; async function wait() { return new Promise((resolve)=>{ setTimeout(resolve, 100); @@ -2459,7 +2459,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } exports.run = run; @@ -2480,7 +2480,7 @@ async function run() { try { await wait(); } catch { - throw new Error("Fail"); + throw new Error('Fail'); } } export { run, wait }; diff --git a/packages/packemon/tests/examples/__snapshots__/cjsMjsWrapper.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/cjsMjsWrapper.test.ts.snap index 0b26ca08..9144608e 100644 --- a/packages/packemon/tests/examples/__snapshots__/cjsMjsWrapper.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/cjsMjsWrapper.test.ts.snap @@ -1518,11 +1518,11 @@ export { useState } from 'react'; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-current-esm > esm/index-browser-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-browser-current-esm.js.map " `; @@ -1530,15 +1530,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -1565,7 +1565,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -1671,11 +1671,11 @@ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: br exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-experimental-esm > esm/index-browser-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-browser-experimental-esm.js.map " `; @@ -1683,15 +1683,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -1718,7 +1718,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -1824,11 +1824,11 @@ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: br exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-legacy-esm > esm/index-browser-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-browser-legacy-esm.js.map " `; @@ -1836,15 +1836,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; -var optimal = require("optimal"); -var react = require("react"); +'use strict'; +var optimal = require('optimal'); +var react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; var n = Object.create(null); if (e) { var _loop = function(k) { - if (k !== "default") { + if (k !== 'default') { var d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -1880,7 +1880,7 @@ Object.defineProperty(exports, "useState", { } }); Object.keys(optimal).forEach(function(k) { - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: function() { return optimal[k]; @@ -1988,11 +1988,11 @@ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: br exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-stable-esm > esm/index-browser-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-browser-stable-esm.js.map " `; @@ -2000,15 +2000,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2035,7 +2035,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2141,11 +2141,11 @@ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: br exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-current-esm > esm/index-electron-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-electron-current-esm.js.map " `; @@ -2153,15 +2153,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2188,7 +2188,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2200,11 +2200,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-experimental-esm > esm/index-electron-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-electron-experimental-esm.js.map " `; @@ -2212,15 +2212,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2247,7 +2247,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2259,11 +2259,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-legacy-esm > esm/index-electron-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-electron-legacy-esm.js.map " `; @@ -2271,15 +2271,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2306,7 +2306,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2318,11 +2318,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-stable-esm > esm/index-electron-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-electron-stable-esm.js.map " `; @@ -2330,15 +2330,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2365,7 +2365,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2377,11 +2377,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-current-esm > esm/index-native-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-native-current-esm.js.map " `; @@ -2389,15 +2389,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2424,7 +2424,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2436,11 +2436,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-experimental-esm > esm/index-native-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-native-experimental-esm.js.map " `; @@ -2448,15 +2448,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2483,7 +2483,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2495,11 +2495,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-legacy-esm > esm/index-native-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-native-legacy-esm.js.map " `; @@ -2507,15 +2507,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2542,7 +2542,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2554,11 +2554,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-stable-esm > esm/index-native-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: esm -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-native-stable-esm.js.map " `; @@ -2566,15 +2566,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2601,7 +2601,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2613,15 +2613,15 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2648,7 +2648,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2672,15 +2672,15 @@ export { useState } from 'react';" exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2707,7 +2707,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2719,11 +2719,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-current-mjs > mjs/index-node-current-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: mjs -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-node-current-mjs.mjs.map " `; @@ -2731,15 +2731,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2766,7 +2766,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2790,15 +2790,15 @@ export { useState } from 'react';" exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2825,7 +2825,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2837,11 +2837,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-experimental-mjs > mjs/index-node-experimental-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: mjs -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-node-experimental-mjs.mjs.map " `; @@ -2849,15 +2849,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2884,7 +2884,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2908,15 +2908,15 @@ export { useState } from 'react';" exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -2943,7 +2943,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -2955,11 +2955,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-legacy-mjs > mjs/index-node-legacy-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: mjs -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-node-legacy-mjs.mjs.map " `; @@ -2967,15 +2967,15 @@ export { useState } from "react"; exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -3002,7 +3002,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -3026,15 +3026,15 @@ export { useState } from 'react';" exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; -const optimal = require("optimal"); -const react = require("react"); +'use strict'; +const optimal = require('optimal'); +const react = require('react'); function _interopNamespace(e) { if (e && e.__esModule) return e; const n = Object.create(null); if (e) { for(const k in e){ - if (k !== "default") { + if (k !== 'default') { const d = Object.getOwnPropertyDescriptor(e, k); Object.defineProperty(n, k, d.get ? d : { enumerable: true, @@ -3061,7 +3061,7 @@ Object.defineProperty(exports, "useState", { get: ()=>react.useState }); Object.keys(optimal).forEach((k)=>{ - if (k !== "default" && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { + if (k !== 'default' && !Object.prototype.hasOwnProperty.call(exports, k)) Object.defineProperty(exports, k, { enumerable: true, get: ()=>optimal[k] }); @@ -3073,11 +3073,11 @@ Object.keys(optimal).forEach((k)=>{ exports[`CJS -> MJS wrapper (externals) > swc > transforms example test case: node-stable-mjs > mjs/index-node-stable-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: mjs -export * from "optimal"; -import * as optimal from "optimal"; +export * from 'optimal'; +import * as optimal from 'optimal'; export { optimal }; -export { func, string } from "optimal"; -export { useState } from "react"; +export { func, string } from 'optimal'; +export { useState } from 'react'; //# sourceMappingURL=index-node-stable-mjs.mjs.map " `; @@ -5036,9 +5036,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5046,7 +5046,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5063,8 +5063,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -5074,7 +5074,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5082,7 +5082,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5191,7 +5191,7 @@ exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-curren bar, foo }); - let a = "abc"; + let a = 'abc'; const b = 123; const { c } = { c: true @@ -5199,7 +5199,7 @@ exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-curren const [d] = [ {} ]; - const e = 456, f = "xyz"; + const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5222,9 +5222,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5232,7 +5232,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5249,8 +5249,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -5260,7 +5260,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5268,7 +5268,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5377,7 +5377,7 @@ exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-experi bar, foo }); - let a = "abc"; + let a = 'abc'; const b = 123; const { c } = { c: true @@ -5385,7 +5385,7 @@ exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-experi const [d] = [ {} ]; - const e = 456, f = "xyz"; + const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5413,15 +5413,15 @@ var helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty({ bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -var a = "abc"; +var a = 'abc'; var b = 123; var c = { c: true }.c; var d = {}; -var e = 456, f = "xyz"; +var e = 456, f = 'xyz'; var ClassName = function ClassName() { "use strict"; _class_call_check(this, ClassName); @@ -5442,13 +5442,13 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; +'use strict'; function _class_call_check(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } -Object.defineProperty(exports, "__esModule", { +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -5458,13 +5458,13 @@ var helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -var a = "abc"; +var a = 'abc'; var b = 123; var c = { c: true }.c; var d = {}; -var e = 456, f = "xyz"; +var e = 456, f = 'xyz'; var ClassName = function ClassName() { _class_call_check(this, ClassName); }; @@ -5580,13 +5580,13 @@ exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-legacy bar, foo }); - var a = "abc"; + var a = 'abc'; var b = 123; var c = { c: true }.c; var d = {}; - var e = 456, f = "xyz"; + var e = 456, f = 'xyz'; var ClassName = function ClassName() { "use strict"; _class_call_check(this, ClassName); @@ -5613,9 +5613,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5623,7 +5623,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5640,8 +5640,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -5651,7 +5651,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5659,7 +5659,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5768,7 +5768,7 @@ exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-stable bar, foo }); - let a = "abc"; + let a = 'abc'; const b = 123; const { c } = { c: true @@ -5776,7 +5776,7 @@ exports[`CJS -> MJS wrapper > swc > transforms example test case: browser-stable const [d] = [ {} ]; - const e = 456, f = "xyz"; + const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5799,9 +5799,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5809,7 +5809,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5826,8 +5826,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -5837,7 +5837,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5845,7 +5845,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5885,9 +5885,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5895,7 +5895,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5912,8 +5912,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -5923,7 +5923,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5931,7 +5931,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5971,9 +5971,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -5981,7 +5981,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -5998,8 +5998,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6009,7 +6009,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6017,7 +6017,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6057,9 +6057,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6067,7 +6067,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6084,8 +6084,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6095,7 +6095,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6103,7 +6103,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6143,9 +6143,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6153,7 +6153,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6170,8 +6170,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6181,7 +6181,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6189,7 +6189,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6229,9 +6229,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6239,7 +6239,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6256,8 +6256,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6267,7 +6267,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6275,7 +6275,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6315,9 +6315,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6325,7 +6325,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6342,8 +6342,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6353,7 +6353,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6361,7 +6361,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6401,9 +6401,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6411,7 +6411,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6428,8 +6428,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6439,7 +6439,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6447,7 +6447,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6480,8 +6480,8 @@ exports.ns3 = helpers; exports[`CJS -> MJS wrapper > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6491,7 +6491,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6499,7 +6499,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6542,8 +6542,8 @@ export default data.default;" exports[`CJS -> MJS wrapper > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6553,7 +6553,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6561,7 +6561,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6601,9 +6601,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6611,7 +6611,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6628,8 +6628,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6639,7 +6639,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6647,7 +6647,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6690,8 +6690,8 @@ export default data.default;" exports[`CJS -> MJS wrapper > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6701,7 +6701,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6709,7 +6709,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6749,9 +6749,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6759,7 +6759,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6776,8 +6776,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6787,7 +6787,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6795,7 +6795,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6838,8 +6838,8 @@ export default data.default;" exports[`CJS -> MJS wrapper > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6849,7 +6849,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6857,7 +6857,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6897,9 +6897,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6907,7 +6907,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6924,8 +6924,8 @@ export { CONST, ClassName, a, arrowFunc, b, bar, c, d, DefaultClass as default, exports[`CJS -> MJS wrapper > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6935,7 +6935,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -6943,7 +6943,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -6986,8 +6986,8 @@ export default data.default;" exports[`CJS -> MJS wrapper > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function foo() {} @@ -6997,7 +6997,7 @@ const helpers = /*#__PURE__*/ Object.freeze({ bar, foo }); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -7005,7 +7005,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} @@ -7045,9 +7045,9 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); -let a = "abc"; +let a = 'abc'; const b = 123; const { c } = { c: true @@ -7055,7 +7055,7 @@ const { c } = { const [d] = [ {} ]; -const e = 456, f = "xyz"; +const e = 456, f = 'xyz'; let ClassName = class ClassName { }; function func() {} diff --git a/packages/packemon/tests/examples/__snapshots__/dynamicImports.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/dynamicImports.test.ts.snap index 6dd64899..41286de5 100644 --- a/packages/packemon/tests/examples/__snapshots__/dynamicImports.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/dynamicImports.test.ts.snap @@ -1310,36 +1310,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: browser-current-esm > esm/index-browser-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: esm -import("./bundle-o54aPLkM.js").then((result)=>{ +import('./bundle-o54aPLkM.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-o54aPLkM.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-o54aPLkM.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-browser-current-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: browser-current-lib > lib/bundle-CbH5Q1Da.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: browser-current-lib > lib/bundle-CW8zVdan.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-CbH5Q1Da.js.map +//# sourceMappingURL=bundle-CW8zVdan.js.map " `; exports[`Dynamic imports > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; -import("./bundle-CbH5Q1Da.js").then((result)=>{ +'use strict'; +import('./bundle-CW8zVdan.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-CbH5Q1Da.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-CW8zVdan.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-browser-current-lib.js.map @@ -1427,10 +1427,10 @@ exports[`Dynamic imports > swc > transforms example test case: browser-current-u } return newObj; } - import("./bundle-BPR4J9Lg.js").then((result)=>{ + import('./bundle-BPR4J9Lg.js').then((result)=>{ result.foo(); }); - import(/* webpackChunkName: "helpers" */ "./bundle-BPR4J9Lg.js").then(({ bar })=>{ + import(/* webpackChunkName: "helpers" */ './bundle-BPR4J9Lg.js').then(({ bar })=>{ bar(); }); }); @@ -1451,36 +1451,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: browser-experimental-esm > esm/index-browser-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: esm -import("./bundle-D4BY6a5Q.js").then((result)=>{ +import('./bundle-D4BY6a5Q.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-D4BY6a5Q.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-D4BY6a5Q.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-browser-experimental-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: browser-experimental-lib > lib/bundle-t0bSGfze.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: browser-experimental-lib > lib/bundle-D10yhi0X.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-t0bSGfze.js.map +//# sourceMappingURL=bundle-D10yhi0X.js.map " `; exports[`Dynamic imports > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; -import("./bundle-t0bSGfze.js").then((result)=>{ +'use strict'; +import('./bundle-D10yhi0X.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-t0bSGfze.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-D10yhi0X.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-browser-experimental-lib.js.map @@ -1568,10 +1568,10 @@ exports[`Dynamic imports > swc > transforms example test case: browser-experimen } return newObj; } - import("./bundle-BPR4J9Lg.js").then((result)=>{ + import('./bundle-BPR4J9Lg.js').then((result)=>{ result.foo(); }); - import(/* webpackChunkName: "helpers" */ "./bundle-BPR4J9Lg.js").then(({ bar })=>{ + import(/* webpackChunkName: "helpers" */ './bundle-BPR4J9Lg.js').then(({ bar })=>{ bar(); }); }); @@ -1592,10 +1592,10 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: browser-legacy-esm > esm/index-browser-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: esm -import("./bundle-CZ6Dz33i.js").then(function(result) { +import('./bundle-CZ6Dz33i.js').then(function(result) { result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-CZ6Dz33i.js").then(function(param) { +import(/* webpackChunkName: "helpers" */ './bundle-CZ6Dz33i.js').then(function(param) { var bar = param.bar; bar(); }); @@ -1603,26 +1603,26 @@ import(/* webpackChunkName: "helpers" */ "./bundle-CZ6Dz33i.js").then(function(p " `; -exports[`Dynamic imports > swc > transforms example test case: browser-legacy-lib > lib/bundle-DnfbdYNi.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: browser-legacy-lib > lib/bundle-D1ovl8sQ.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-DnfbdYNi.js.map +//# sourceMappingURL=bundle-D1ovl8sQ.js.map " `; exports[`Dynamic imports > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; -import("./bundle-DnfbdYNi.js").then(function(result) { +'use strict'; +import('./bundle-D1ovl8sQ.js').then(function(result) { result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DnfbdYNi.js").then(function(param) { +import(/* webpackChunkName: "helpers" */ './bundle-D1ovl8sQ.js').then(function(param) { var bar = param.bar; bar(); }); @@ -1711,10 +1711,10 @@ exports[`Dynamic imports > swc > transforms example test case: browser-legacy-um } return newObj; } - import("./bundle-BPR4J9Lg.js").then(function(result) { + import('./bundle-BPR4J9Lg.js').then(function(result) { result.foo(); }); - import(/* webpackChunkName: "helpers" */ "./bundle-BPR4J9Lg.js").then(function(param) { + import(/* webpackChunkName: "helpers" */ './bundle-BPR4J9Lg.js').then(function(param) { var bar = param.bar; bar(); }); @@ -1736,36 +1736,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: browser-stable-esm > esm/index-browser-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: esm -import("./bundle-B1xFAPmz.js").then((result)=>{ +import('./bundle-B1xFAPmz.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-B1xFAPmz.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-B1xFAPmz.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-browser-stable-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: browser-stable-lib > lib/bundle-DBuGLYux.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: browser-stable-lib > lib/bundle-BqRtymkt.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-DBuGLYux.js.map +//# sourceMappingURL=bundle-BqRtymkt.js.map " `; exports[`Dynamic imports > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; -import("./bundle-DBuGLYux.js").then((result)=>{ +'use strict'; +import('./bundle-BqRtymkt.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DBuGLYux.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-BqRtymkt.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-browser-stable-lib.js.map @@ -1853,10 +1853,10 @@ exports[`Dynamic imports > swc > transforms example test case: browser-stable-um } return newObj; } - import("./bundle-BPR4J9Lg.js").then((result)=>{ + import('./bundle-BPR4J9Lg.js').then((result)=>{ result.foo(); }); - import(/* webpackChunkName: "helpers" */ "./bundle-BPR4J9Lg.js").then(({ bar })=>{ + import(/* webpackChunkName: "helpers" */ './bundle-BPR4J9Lg.js').then(({ bar })=>{ bar(); }); }); @@ -1877,36 +1877,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: electron-current-esm > esm/index-electron-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: esm -import("./bundle-CVb_MZbN.js").then((result)=>{ +import('./bundle-CVb_MZbN.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-CVb_MZbN.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-CVb_MZbN.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-current-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: electron-current-lib > lib/bundle-BhqIOCDu.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: electron-current-lib > lib/bundle-BgKksy3y.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-BhqIOCDu.js.map +//# sourceMappingURL=bundle-BgKksy3y.js.map " `; exports[`Dynamic imports > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; -import("./bundle-BhqIOCDu.js").then((result)=>{ +'use strict'; +import('./bundle-BgKksy3y.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-BhqIOCDu.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-BgKksy3y.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-current-lib.js.map @@ -1926,36 +1926,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: electron-experimental-esm > esm/index-electron-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: esm -import("./bundle-DVyqJdvC.js").then((result)=>{ +import('./bundle-DVyqJdvC.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DVyqJdvC.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-DVyqJdvC.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-experimental-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: electron-experimental-lib > lib/bundle-BUmA5s26.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: electron-experimental-lib > lib/bundle-CM57GYzk.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-BUmA5s26.js.map +//# sourceMappingURL=bundle-CM57GYzk.js.map " `; exports[`Dynamic imports > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; -import("./bundle-BUmA5s26.js").then((result)=>{ +'use strict'; +import('./bundle-CM57GYzk.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-BUmA5s26.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-CM57GYzk.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-experimental-lib.js.map @@ -1975,36 +1975,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: electron-legacy-esm > esm/index-electron-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: esm -import("./bundle-p1JZMNkU.js").then((result)=>{ +import('./bundle-p1JZMNkU.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-p1JZMNkU.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-p1JZMNkU.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-legacy-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: electron-legacy-lib > lib/bundle-BZTin_ms.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: electron-legacy-lib > lib/bundle-La6PuSK-.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-BZTin_ms.js.map +//# sourceMappingURL=bundle-La6PuSK-.js.map " `; exports[`Dynamic imports > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; -import("./bundle-BZTin_ms.js").then((result)=>{ +'use strict'; +import('./bundle-La6PuSK-.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-BZTin_ms.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-La6PuSK-.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-legacy-lib.js.map @@ -2024,36 +2024,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: electron-stable-esm > esm/index-electron-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: esm -import("./bundle-CfPM3Zpt.js").then((result)=>{ +import('./bundle-CfPM3Zpt.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-CfPM3Zpt.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-CfPM3Zpt.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-stable-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: electron-stable-lib > lib/bundle-B3xprYb3.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: electron-stable-lib > lib/bundle-DyJKaxAr.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-B3xprYb3.js.map +//# sourceMappingURL=bundle-DyJKaxAr.js.map " `; exports[`Dynamic imports > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; -import("./bundle-B3xprYb3.js").then((result)=>{ +'use strict'; +import('./bundle-DyJKaxAr.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-B3xprYb3.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-DyJKaxAr.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-electron-stable-lib.js.map @@ -2073,36 +2073,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: native-current-esm > esm/index-native-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: esm -import("./bundle-C_lRfQSX.js").then((result)=>{ +import('./bundle-C_lRfQSX.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-C_lRfQSX.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-C_lRfQSX.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-current-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: native-current-lib > lib/bundle-BXj11lN-.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: native-current-lib > lib/bundle-C7b88r3G.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-BXj11lN-.js.map +//# sourceMappingURL=bundle-C7b88r3G.js.map " `; exports[`Dynamic imports > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; -import("./bundle-BXj11lN-.js").then((result)=>{ +'use strict'; +import('./bundle-C7b88r3G.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-BXj11lN-.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-C7b88r3G.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-current-lib.js.map @@ -2122,36 +2122,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: native-experimental-esm > esm/index-native-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: esm -import("./bundle-DUgQ5Qhf.js").then((result)=>{ +import('./bundle-DUgQ5Qhf.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DUgQ5Qhf.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-DUgQ5Qhf.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-experimental-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: native-experimental-lib > lib/bundle-DVPehTl7.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: native-experimental-lib > lib/bundle-C12ODTOB.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-DVPehTl7.js.map +//# sourceMappingURL=bundle-C12ODTOB.js.map " `; exports[`Dynamic imports > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; -import("./bundle-DVPehTl7.js").then((result)=>{ +'use strict'; +import('./bundle-C12ODTOB.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DVPehTl7.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-C12ODTOB.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-experimental-lib.js.map @@ -2171,36 +2171,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: native-legacy-esm > esm/index-native-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: esm -import("./bundle-IT4omLOu.js").then((result)=>{ +import('./bundle-IT4omLOu.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-IT4omLOu.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-IT4omLOu.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-legacy-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: native-legacy-lib > lib/bundle-Jyfwccl9.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: native-legacy-lib > lib/bundle-BTP0QaN8.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-Jyfwccl9.js.map +//# sourceMappingURL=bundle-BTP0QaN8.js.map " `; exports[`Dynamic imports > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; -import("./bundle-Jyfwccl9.js").then((result)=>{ +'use strict'; +import('./bundle-BTP0QaN8.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-Jyfwccl9.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-BTP0QaN8.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-legacy-lib.js.map @@ -2220,62 +2220,62 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: native-stable-esm > esm/index-native-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: esm -import("./bundle-B6CPteDF.js").then((result)=>{ +import('./bundle-B6CPteDF.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-B6CPteDF.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-B6CPteDF.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-stable-esm.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: native-stable-lib > lib/bundle-BNTxmZik.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: native-stable-lib > lib/bundle-JNa9d9wG.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-BNTxmZik.js.map +//# sourceMappingURL=bundle-JNa9d9wG.js.map " `; exports[`Dynamic imports > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; -import("./bundle-BNTxmZik.js").then((result)=>{ +'use strict'; +import('./bundle-JNa9d9wG.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-BNTxmZik.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-JNa9d9wG.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-native-stable-lib.js.map " `; -exports[`Dynamic imports > swc > transforms example test case: node-current-cjs > cjs/bundle-gI5M1aQx.cjs 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-current-cjs > cjs/bundle-BKzbCmVj.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-gI5M1aQx.cjs.map +//# sourceMappingURL=bundle-BKzbCmVj.cjs.map " `; exports[`Dynamic imports > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; -import("./bundle-gI5M1aQx.cjs").then((result)=>{ +'use strict'; +import('./bundle-BKzbCmVj.cjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-gI5M1aQx.cjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-BKzbCmVj.cjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-current-cjs.cjs.map @@ -2289,26 +2289,26 @@ exports[`Dynamic imports > swc > transforms example test case: node-current-cjs import './index-node-current-cjs.cjs';" `; -exports[`Dynamic imports > swc > transforms example test case: node-current-lib > lib/bundle-DJ0Xm18J.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-current-lib > lib/bundle-BdDEy4Gt.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-DJ0Xm18J.js.map +//# sourceMappingURL=bundle-BdDEy4Gt.js.map " `; exports[`Dynamic imports > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; -import("./bundle-DJ0Xm18J.js").then((result)=>{ +'use strict'; +import('./bundle-BdDEy4Gt.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DJ0Xm18J.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-BdDEy4Gt.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-current-lib.js.map @@ -2328,36 +2328,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: node-current-mjs > mjs/index-node-current-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: mjs -import("./bundle-RyM8VMjz.mjs").then((result)=>{ +import('./bundle-RyM8VMjz.mjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-RyM8VMjz.mjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-RyM8VMjz.mjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-current-mjs.mjs.map " `; -exports[`Dynamic imports > swc > transforms example test case: node-experimental-cjs > cjs/bundle-NuhcfCu9.cjs 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-experimental-cjs > cjs/bundle-BRN1f36b.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-NuhcfCu9.cjs.map +//# sourceMappingURL=bundle-BRN1f36b.cjs.map " `; exports[`Dynamic imports > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; -import("./bundle-NuhcfCu9.cjs").then((result)=>{ +'use strict'; +import('./bundle-BRN1f36b.cjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-NuhcfCu9.cjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-BRN1f36b.cjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-experimental-cjs.cjs.map @@ -2371,26 +2371,26 @@ exports[`Dynamic imports > swc > transforms example test case: node-experimental import './index-node-experimental-cjs.cjs';" `; -exports[`Dynamic imports > swc > transforms example test case: node-experimental-lib > lib/bundle-fJYlrW-1.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-experimental-lib > lib/bundle-Dnc1QRuq.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-fJYlrW-1.js.map +//# sourceMappingURL=bundle-Dnc1QRuq.js.map " `; exports[`Dynamic imports > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; -import("./bundle-fJYlrW-1.js").then((result)=>{ +'use strict'; +import('./bundle-Dnc1QRuq.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-fJYlrW-1.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-Dnc1QRuq.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-experimental-lib.js.map @@ -2410,36 +2410,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: node-experimental-mjs > mjs/index-node-experimental-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: mjs -import("./bundle-Ccj2_zcH.mjs").then((result)=>{ +import('./bundle-Ccj2_zcH.mjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-Ccj2_zcH.mjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-Ccj2_zcH.mjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-experimental-mjs.mjs.map " `; -exports[`Dynamic imports > swc > transforms example test case: node-legacy-cjs > cjs/bundle-BvGhA_1D.cjs 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-legacy-cjs > cjs/bundle-DzeygFNh.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-BvGhA_1D.cjs.map +//# sourceMappingURL=bundle-DzeygFNh.cjs.map " `; exports[`Dynamic imports > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; -import("./bundle-BvGhA_1D.cjs").then((result)=>{ +'use strict'; +import('./bundle-DzeygFNh.cjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-BvGhA_1D.cjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-DzeygFNh.cjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-legacy-cjs.cjs.map @@ -2453,26 +2453,26 @@ exports[`Dynamic imports > swc > transforms example test case: node-legacy-cjs > import './index-node-legacy-cjs.cjs';" `; -exports[`Dynamic imports > swc > transforms example test case: node-legacy-lib > lib/bundle-DUwQN6Nk.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-legacy-lib > lib/bundle-D6HILdDf.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-DUwQN6Nk.js.map +//# sourceMappingURL=bundle-D6HILdDf.js.map " `; exports[`Dynamic imports > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; -import("./bundle-DUwQN6Nk.js").then((result)=>{ +'use strict'; +import('./bundle-D6HILdDf.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DUwQN6Nk.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-D6HILdDf.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-legacy-lib.js.map @@ -2492,36 +2492,36 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: node-legacy-mjs > mjs/index-node-legacy-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: mjs -import("./bundle-Bmjk9_Ju.mjs").then((result)=>{ +import('./bundle-Bmjk9_Ju.mjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-Bmjk9_Ju.mjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-Bmjk9_Ju.mjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-legacy-mjs.mjs.map " `; -exports[`Dynamic imports > swc > transforms example test case: node-stable-cjs > cjs/bundle-DV1W6Szd.cjs 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-stable-cjs > cjs/bundle-DPzzU3Bg.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-DV1W6Szd.cjs.map +//# sourceMappingURL=bundle-DPzzU3Bg.cjs.map " `; exports[`Dynamic imports > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; -import("./bundle-DV1W6Szd.cjs").then((result)=>{ +'use strict'; +import('./bundle-DPzzU3Bg.cjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-DV1W6Szd.cjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-DPzzU3Bg.cjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-stable-cjs.cjs.map @@ -2535,26 +2535,26 @@ exports[`Dynamic imports > swc > transforms example test case: node-stable-cjs > import './index-node-stable-cjs.cjs';" `; -exports[`Dynamic imports > swc > transforms example test case: node-stable-lib > lib/bundle-HxAg5un9.js 1`] = ` +exports[`Dynamic imports > swc > transforms example test case: node-stable-lib > lib/bundle-kZtTRhg3.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} exports.bar = bar; exports.foo = foo; -//# sourceMappingURL=bundle-HxAg5un9.js.map +//# sourceMappingURL=bundle-kZtTRhg3.js.map " `; exports[`Dynamic imports > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; -import("./bundle-HxAg5un9.js").then((result)=>{ +'use strict'; +import('./bundle-kZtTRhg3.js').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-HxAg5un9.js").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-kZtTRhg3.js').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-stable-lib.js.map @@ -2574,10 +2574,10 @@ export { bar, foo }; exports[`Dynamic imports > swc > transforms example test case: node-stable-mjs > mjs/index-node-stable-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: mjs -import("./bundle-BbpcT7zq.mjs").then((result)=>{ +import('./bundle-BbpcT7zq.mjs').then((result)=>{ result.foo(); }); -import(/* webpackChunkName: "helpers" */ "./bundle-BbpcT7zq.mjs").then(({ bar })=>{ +import(/* webpackChunkName: "helpers" */ './bundle-BbpcT7zq.mjs').then(({ bar })=>{ bar(); }); //# sourceMappingURL=index-node-stable-mjs.mjs.map diff --git a/packages/packemon/tests/examples/__snapshots__/generators.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/generators.test.ts.snap index 01fe1280..88274ef2 100644 --- a/packages/packemon/tests/examples/__snapshots__/generators.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/generators.test.ts.snap @@ -829,7 +829,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -896,7 +896,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1081,7 +1081,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; +'use strict'; function _ts_generator(thisArg, body) { var f, y, t, g, _ = { label: 0, @@ -1384,7 +1384,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1451,7 +1451,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1481,7 +1481,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1511,7 +1511,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1541,7 +1541,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1571,7 +1571,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1601,7 +1601,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1631,7 +1631,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1661,7 +1661,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1677,7 +1677,7 @@ exports.runGen = runGen; exports[`Generators > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1702,7 +1702,7 @@ export const { gen, runGen } = data;" exports[`Generators > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1732,7 +1732,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1757,7 +1757,7 @@ export const { gen, runGen } = data;" exports[`Generators > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1787,7 +1787,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1812,7 +1812,7 @@ export const { gen, runGen } = data;" exports[`Generators > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1842,7 +1842,7 @@ export { gen, runGen }; exports[`Generators > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ @@ -1867,7 +1867,7 @@ export const { gen, runGen } = data;" exports[`Generators > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; +'use strict'; function* gen() {} function runGen() { for (const iterator of gen()){ diff --git a/packages/packemon/tests/examples/__snapshots__/jsonImports.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/jsonImports.test.ts.snap index a6566e7e..a94286da 100644 --- a/packages/packemon/tests/examples/__snapshots__/jsonImports.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/jsonImports.test.ts.snap @@ -977,7 +977,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1059,7 +1059,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1141,7 +1141,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; +'use strict'; var data = { list: [ "foo", @@ -1223,7 +1223,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1305,7 +1305,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1350,7 +1350,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1395,7 +1395,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1440,7 +1440,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1485,7 +1485,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1530,7 +1530,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1575,7 +1575,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1620,7 +1620,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1643,7 +1643,7 @@ exports.keys = keys; exports[`JSON imports > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1675,7 +1675,7 @@ export const { keys } = data;" exports[`JSON imports > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1720,7 +1720,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1752,7 +1752,7 @@ export const { keys } = data;" exports[`JSON imports > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1797,7 +1797,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1829,7 +1829,7 @@ export const { keys } = data;" exports[`JSON imports > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1874,7 +1874,7 @@ export { keys }; exports[`JSON imports > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; +'use strict'; const data = { list: [ "foo", @@ -1906,7 +1906,7 @@ export const { keys } = data;" exports[`JSON imports > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; +'use strict'; const data = { list: [ "foo", diff --git a/packages/packemon/tests/examples/__snapshots__/namespaces.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/namespaces.test.ts.snap index cb0d6677..95dd4fc4 100644 --- a/packages/packemon/tests/examples/__snapshots__/namespaces.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/namespaces.test.ts.snap @@ -854,7 +854,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-browser-current-esm.js.map @@ -864,7 +864,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -926,7 +926,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-browser-experimental-esm.js.map @@ -936,7 +936,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -998,7 +998,7 @@ var helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty({ bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-browser-legacy-esm.js.map @@ -1008,7 +1008,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} var helpers = /*#__PURE__*/ Object.freeze({ @@ -1070,7 +1070,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-browser-stable-esm.js.map @@ -1080,7 +1080,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1142,7 +1142,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-electron-current-esm.js.map @@ -1152,7 +1152,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1176,7 +1176,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-electron-experimental-esm.js.map @@ -1186,7 +1186,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1210,7 +1210,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-electron-legacy-esm.js.map @@ -1220,7 +1220,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1244,7 +1244,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-electron-stable-esm.js.map @@ -1254,7 +1254,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1278,7 +1278,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-native-current-esm.js.map @@ -1288,7 +1288,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1312,7 +1312,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-native-experimental-esm.js.map @@ -1322,7 +1322,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1346,7 +1346,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-native-legacy-esm.js.map @@ -1356,7 +1356,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1380,7 +1380,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-native-stable-esm.js.map @@ -1390,7 +1390,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1407,7 +1407,7 @@ exports.ns2 = helpers; exports[`Namespaces > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1433,7 +1433,7 @@ export const { ns1, ns2 } = data;" exports[`Namespaces > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1457,7 +1457,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-node-current-mjs.mjs.map @@ -1467,7 +1467,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1493,7 +1493,7 @@ export const { ns1, ns2 } = data;" exports[`Namespaces > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1517,7 +1517,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-node-experimental-mjs.mjs.map @@ -1527,7 +1527,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1553,7 +1553,7 @@ export const { ns1, ns2 } = data;" exports[`Namespaces > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1577,7 +1577,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-node-legacy-mjs.mjs.map @@ -1587,7 +1587,7 @@ export { helpers as ns1, helpers as ns2 }; exports[`Namespaces > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1613,7 +1613,7 @@ export const { ns1, ns2 } = data;" exports[`Namespaces > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; +'use strict'; function foo() {} function bar() {} const helpers = /*#__PURE__*/ Object.freeze({ @@ -1637,7 +1637,7 @@ const helpers = /*#__PURE__*/ Object.freeze(/*#__PURE__*/ Object.defineProperty( bar, foo }, Symbol.toStringTag, { - value: "Module" + value: 'Module' })); export { helpers as ns1, helpers as ns2 }; //# sourceMappingURL=index-node-stable-mjs.mjs.map diff --git a/packages/packemon/tests/examples/__snapshots__/newSyntax.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/newSyntax.test.ts.snap index c7b4d8d8..4af6f48a 100644 --- a/packages/packemon/tests/examples/__snapshots__/newSyntax.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/newSyntax.test.ts.snap @@ -764,8 +764,8 @@ exports[`New syntax > swc > transforms example test case: browser-current-esm > const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-browser-current-esm.js.map " @@ -774,12 +774,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -819,8 +819,8 @@ exports[`New syntax > swc > transforms example test case: browser-current-umd > const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; - foo.bar ??= "bar"; - foo.baz ||= "baz"; + foo.bar ??= 'bar'; + foo.baz ||= 'baz'; }); //# sourceMappingURL=index-browser-current-umd.js.map " @@ -832,8 +832,8 @@ exports[`New syntax > swc > transforms example test case: browser-experimental-e const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-browser-experimental-esm.js.map " @@ -842,12 +842,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -887,8 +887,8 @@ exports[`New syntax > swc > transforms example test case: browser-experimental-u const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; - foo.bar ??= "bar"; - foo.baz ||= "baz"; + foo.bar ??= 'bar'; + foo.baz ||= 'baz'; }); //# sourceMappingURL=index-browser-experimental-umd.js.map " @@ -902,8 +902,8 @@ var foo = {}; var optionalChain = foo === null || foo === void 0 ? void 0 : foo.bar; var nullCoalesc = foo !== null && foo !== void 0 ? foo : 0; var _bar; -(_bar = (_foo = foo).bar) !== null && _bar !== void 0 ? _bar : _foo.bar = "bar"; -(_foo1 = foo).baz || (_foo1.baz = "baz"); +(_bar = (_foo = foo).bar) !== null && _bar !== void 0 ? _bar : _foo.bar = 'bar'; +(_foo1 = foo).baz || (_foo1.baz = 'baz'); export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-browser-legacy-esm.js.map " @@ -912,14 +912,14 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; +'use strict'; var _foo, _foo1; var foo = {}; var optionalChain = foo === null || foo === void 0 ? void 0 : foo.bar; var nullCoalesc = foo !== null && foo !== void 0 ? foo : 0; var _bar; -(_bar = (_foo = foo).bar) !== null && _bar !== void 0 ? _bar : _foo.bar = "bar"; -(_foo1 = foo).baz || (_foo1.baz = "baz"); +(_bar = (_foo = foo).bar) !== null && _bar !== void 0 ? _bar : _foo.bar = 'bar'; +(_foo1 = foo).baz || (_foo1.baz = 'baz'); exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -961,8 +961,8 @@ exports[`New syntax > swc > transforms example test case: browser-legacy-umd > u var optionalChain = foo === null || foo === void 0 ? void 0 : foo.bar; var nullCoalesc = foo !== null && foo !== void 0 ? foo : 0; var _bar; - (_bar = (_foo = foo).bar) !== null && _bar !== void 0 ? _bar : _foo.bar = "bar"; - (_foo1 = foo).baz || (_foo1.baz = "baz"); + (_bar = (_foo = foo).bar) !== null && _bar !== void 0 ? _bar : _foo.bar = 'bar'; + (_foo1 = foo).baz || (_foo1.baz = 'baz'); }); //# sourceMappingURL=index-browser-legacy-umd.js.map " @@ -974,8 +974,8 @@ exports[`New syntax > swc > transforms example test case: browser-stable-esm > e const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-browser-stable-esm.js.map " @@ -984,12 +984,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1029,8 +1029,8 @@ exports[`New syntax > swc > transforms example test case: browser-stable-umd > u const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; - foo.bar ??= "bar"; - foo.baz ||= "baz"; + foo.bar ??= 'bar'; + foo.baz ||= 'baz'; }); //# sourceMappingURL=index-browser-stable-umd.js.map " @@ -1042,8 +1042,8 @@ exports[`New syntax > swc > transforms example test case: electron-current-esm > const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-electron-current-esm.js.map " @@ -1052,12 +1052,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1071,8 +1071,8 @@ exports[`New syntax > swc > transforms example test case: electron-experimental- const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-electron-experimental-esm.js.map " @@ -1081,12 +1081,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1100,8 +1100,8 @@ exports[`New syntax > swc > transforms example test case: electron-legacy-esm > const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-electron-legacy-esm.js.map " @@ -1110,12 +1110,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1129,8 +1129,8 @@ exports[`New syntax > swc > transforms example test case: electron-stable-esm > const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-electron-stable-esm.js.map " @@ -1139,12 +1139,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1158,8 +1158,8 @@ exports[`New syntax > swc > transforms example test case: native-current-esm > e const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-native-current-esm.js.map " @@ -1168,12 +1168,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1187,8 +1187,8 @@ exports[`New syntax > swc > transforms example test case: native-experimental-es const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-native-experimental-esm.js.map " @@ -1197,12 +1197,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1216,8 +1216,8 @@ exports[`New syntax > swc > transforms example test case: native-legacy-esm > es const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-native-legacy-esm.js.map " @@ -1226,12 +1226,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1245,8 +1245,8 @@ exports[`New syntax > swc > transforms example test case: native-stable-esm > es const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-native-stable-esm.js.map " @@ -1255,12 +1255,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1271,12 +1271,12 @@ exports.optionalChain = optionalChain; exports[`New syntax > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1296,12 +1296,12 @@ export const { foo, nullCoalesc, optionalChain } = data;" exports[`New syntax > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1315,8 +1315,8 @@ exports[`New syntax > swc > transforms example test case: node-current-mjs > mjs const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-node-current-mjs.mjs.map " @@ -1325,12 +1325,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1350,12 +1350,12 @@ export const { foo, nullCoalesc, optionalChain } = data;" exports[`New syntax > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1369,8 +1369,8 @@ exports[`New syntax > swc > transforms example test case: node-experimental-mjs const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-node-experimental-mjs.mjs.map " @@ -1379,12 +1379,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1404,12 +1404,12 @@ export const { foo, nullCoalesc, optionalChain } = data;" exports[`New syntax > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1423,8 +1423,8 @@ exports[`New syntax > swc > transforms example test case: node-legacy-mjs > mjs/ const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-node-legacy-mjs.mjs.map " @@ -1433,12 +1433,12 @@ export { foo, nullCoalesc, optionalChain }; exports[`New syntax > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1458,12 +1458,12 @@ export const { foo, nullCoalesc, optionalChain } = data;" exports[`New syntax > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; +'use strict'; const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; exports.foo = foo; exports.nullCoalesc = nullCoalesc; exports.optionalChain = optionalChain; @@ -1477,8 +1477,8 @@ exports[`New syntax > swc > transforms example test case: node-stable-mjs > mjs/ const foo = {}; const optionalChain = foo?.bar; const nullCoalesc = foo ?? 0; -foo.bar ??= "bar"; -foo.baz ||= "baz"; +foo.bar ??= 'bar'; +foo.baz ||= 'baz'; export { foo, nullCoalesc, optionalChain }; //# sourceMappingURL=index-node-stable-mjs.mjs.map " diff --git a/packages/packemon/tests/examples/__snapshots__/react.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/react.test.ts.snap index 0ec819dd..640a3eed 100644 --- a/packages/packemon/tests/examples/__snapshots__/react.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/react.test.ts.snap @@ -671,7 +671,7 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: browser-current-esm > esm/index-browser-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -683,8 +683,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -723,7 +723,7 @@ exports[`React/JSX > swc > transforms example test case: browser-current-umd > u exports[`React/JSX > swc > transforms example test case: browser-experimental-esm > esm/index-browser-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -735,8 +735,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -775,7 +775,7 @@ exports[`React/JSX > swc > transforms example test case: browser-experimental-um exports[`React/JSX > swc > transforms example test case: browser-legacy-esm > esm/index-browser-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -787,8 +787,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; -var jsxRuntime = require("react/jsx-runtime"); +'use strict'; +var jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -827,7 +827,7 @@ exports[`React/JSX > swc > transforms example test case: browser-legacy-umd > um exports[`React/JSX > swc > transforms example test case: browser-stable-esm > esm/index-browser-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -839,8 +839,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -879,7 +879,7 @@ exports[`React/JSX > swc > transforms example test case: browser-stable-umd > um exports[`React/JSX > swc > transforms example test case: electron-current-esm > esm/index-electron-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -891,8 +891,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -904,7 +904,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: electron-experimental-esm > esm/index-electron-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -916,8 +916,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -929,7 +929,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: electron-legacy-esm > esm/index-electron-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -941,8 +941,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -954,7 +954,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: electron-stable-esm > esm/index-electron-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -966,8 +966,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -979,7 +979,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: native-current-esm > esm/index-native-current-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -991,8 +991,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1004,7 +1004,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: native-experimental-esm > esm/index-native-experimental-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -1016,8 +1016,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1029,7 +1029,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: native-legacy-esm > esm/index-native-legacy-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -1041,8 +1041,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1054,7 +1054,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: native-stable-esm > esm/index-native-stable-esm.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: esm -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -1066,8 +1066,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1079,8 +1079,8 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1101,8 +1101,8 @@ export default data;" exports[`React/JSX > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1114,7 +1114,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: node-current-mjs > mjs/index-node-current-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: mjs -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -1126,8 +1126,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1148,8 +1148,8 @@ export default data;" exports[`React/JSX > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1161,7 +1161,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: node-experimental-mjs > mjs/index-node-experimental-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: mjs -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -1173,8 +1173,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1195,8 +1195,8 @@ export default data;" exports[`React/JSX > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1208,7 +1208,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: node-legacy-mjs > mjs/index-node-legacy-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: mjs -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } @@ -1220,8 +1220,8 @@ export { Button as default }; exports[`React/JSX > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1242,8 +1242,8 @@ export default data;" exports[`React/JSX > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; -const jsxRuntime = require("react/jsx-runtime"); +'use strict'; +const jsxRuntime = require('react/jsx-runtime'); function Button() { return /*#__PURE__*/ jsxRuntime.jsx("button", {}); } @@ -1255,7 +1255,7 @@ module.exports = Button; exports[`React/JSX > swc > transforms example test case: node-stable-mjs > mjs/index-node-stable-mjs.mjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: mjs -import { jsx } from "react/jsx-runtime"; +import { jsx } from 'react/jsx-runtime'; function Button() { return /*#__PURE__*/ jsx("button", {}); } diff --git a/packages/packemon/tests/examples/__snapshots__/solid.test.ts.snap b/packages/packemon/tests/examples/__snapshots__/solid.test.ts.snap index bf07d7b2..63ccb728 100644 --- a/packages/packemon/tests/examples/__snapshots__/solid.test.ts.snap +++ b/packages/packemon/tests/examples/__snapshots__/solid.test.ts.snap @@ -933,8 +933,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: browser-current-lib > lib/index-browser-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1003,8 +1003,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: browser-experimental-lib > lib/index-browser-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1073,8 +1073,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: browser-legacy-lib > lib/index-browser-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: legacy, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1143,8 +1143,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: browser-stable-lib > lib/index-browser-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: browser, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1213,8 +1213,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: electron-current-lib > lib/index-electron-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1246,8 +1246,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: electron-experimental-lib > lib/index-electron-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1279,8 +1279,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: electron-legacy-lib > lib/index-electron-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: legacy, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1312,8 +1312,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: electron-stable-lib > lib/index-electron-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: electron, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1345,8 +1345,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: native-current-lib > lib/index-native-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1378,8 +1378,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: native-experimental-lib > lib/index-native-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1411,8 +1411,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: native-legacy-lib > lib/index-native-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: legacy, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1444,8 +1444,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: native-stable-lib > lib/index-native-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: native, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1463,8 +1463,8 @@ exports.default = Element; exports[`Solid/JSX > swc > transforms example test case: node-current-cjs > cjs/index-node-current-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1492,8 +1492,8 @@ export default data.default;" exports[`Solid/JSX > swc > transforms example test case: node-current-lib > lib/index-node-current-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: current, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1525,8 +1525,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: node-experimental-cjs > cjs/index-node-experimental-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1554,8 +1554,8 @@ export default data.default;" exports[`Solid/JSX > swc > transforms example test case: node-experimental-lib > lib/index-node-experimental-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: experimental, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1587,8 +1587,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: node-legacy-cjs > cjs/index-node-legacy-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1616,8 +1616,8 @@ export default data.default;" exports[`Solid/JSX > swc > transforms example test case: node-legacy-lib > lib/index-node-legacy-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: legacy, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1649,8 +1649,8 @@ export { Button, Element as default }; exports[`Solid/JSX > swc > transforms example test case: node-stable-cjs > cjs/index-node-stable-cjs.cjs 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: cjs -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() { @@ -1678,8 +1678,8 @@ export default data.default;" exports[`Solid/JSX > swc > transforms example test case: node-stable-lib > lib/index-node-stable-lib.js 1`] = ` "// Bundled with Packemon: https://packemon.dev // Platform: node, Support: stable, Format: lib -"use strict"; -Object.defineProperty(exports, "__esModule", { +'use strict'; +Object.defineProperty(exports, '__esModule', { value: true }); function Button() {