@cyberskill/shared 1.203.0 → 1.205.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config.util-Ci2CZDut.cjs +1 -0
- package/dist/config.util-DKBwEBKR.js +61 -0
- package/dist/log.type-CMvG6Box.cjs +1 -0
- package/dist/{src/node/log/log.type.js → log.type-DTOvZHyz.js} +1 -1
- package/dist/magic-string.es-C6Zk6wMx.js +671 -0
- package/dist/magic-string.es-CjWtD8Pa.cjs +10 -0
- package/dist/path.constant-CWtb99gS.cjs +2 -0
- package/dist/{path.constant-DJq0jtD0.js → path.constant-CvSr0Rrx.js} +186 -185
- package/dist/src/config/config.util.cjs +1 -1
- package/dist/src/config/config.util.js +7 -58
- package/dist/src/config/eslint/index.d.ts +8 -0
- package/dist/src/config/index.cjs +1 -1
- package/dist/src/config/index.js +2 -3
- package/dist/src/config/vitest/vitest.unit.cjs +1 -1
- package/dist/src/config/vitest/vitest.unit.js +1 -1
- package/dist/src/config/vitest/vitest.unit.setup.cjs +1 -1
- package/dist/src/config/vitest/vitest.unit.setup.js +1 -1
- package/dist/src/node/cli/cli.util.cjs +1 -1
- package/dist/src/node/cli/cli.util.js +15 -15
- package/dist/src/node/command/command.util.cjs +1 -1
- package/dist/src/node/command/command.util.js +2 -2
- package/dist/src/node/command/index.cjs +1 -1
- package/dist/src/node/command/index.js +6 -7
- package/dist/src/node/log/index.cjs +1 -1
- package/dist/src/node/log/index.js +5 -5
- package/dist/src/node/mongo/index.cjs +1 -1
- package/dist/src/node/mongo/index.js +24 -15
- package/dist/src/node/mongo/mongo.util.cjs +5 -5
- package/dist/src/node/mongo/mongo.util.d.ts +1 -4
- package/dist/src/node/mongo/mongo.util.js +47 -54
- package/dist/src/node/package/index.cjs +1 -1
- package/dist/src/node/package/index.js +5 -6
- package/dist/src/node/package/package.util.cjs +1 -1
- package/dist/src/node/package/package.util.js +5 -6
- package/dist/src/node/path/index.cjs +1 -1
- package/dist/src/node/path/index.js +1 -1
- package/dist/src/node/path/path.constant.cjs +1 -1
- package/dist/src/node/path/path.constant.js +43 -45
- package/dist/src/node/upload/index.cjs +1 -1
- package/dist/src/node/upload/index.js +3 -4
- package/dist/src/node/upload/upload.util.cjs +1 -1
- package/dist/src/node/upload/upload.util.js +6 -157
- package/dist/upload.util-CE3MjBdh.cjs +1 -0
- package/dist/upload.util-D4aUdmPo.js +160 -0
- package/package.json +11 -11
- package/dist/magic-string.es-D_iPNVbJ.cjs +0 -10
- package/dist/magic-string.es-cELbkQ5L.js +0 -901
- package/dist/path.constant-CPGOAxEp.cjs +0 -2
- package/dist/src/config/config.type.cjs +0 -1
- package/dist/src/config/config.type.js +0 -4
- package/dist/src/config/env/env.type.cjs +0 -1
- package/dist/src/config/env/env.type.js +0 -1
- package/dist/src/config/graphql-codegen/graphql-codegen.type.cjs +0 -1
- package/dist/src/config/graphql-codegen/graphql-codegen.type.js +0 -1
- package/dist/src/node/apollo-server/apollo-server.type.cjs +0 -1
- package/dist/src/node/apollo-server/apollo-server.type.js +0 -1
- package/dist/src/node/command/command.type.cjs +0 -1
- package/dist/src/node/command/command.type.js +0 -4
- package/dist/src/node/express/express.type.cjs +0 -1
- package/dist/src/node/express/express.type.js +0 -4
- package/dist/src/node/fs/fs.type.cjs +0 -1
- package/dist/src/node/fs/fs.type.js +0 -1
- package/dist/src/node/log/log.type.cjs +0 -1
- package/dist/src/node/mongo/mongo.type.cjs +0 -1
- package/dist/src/node/mongo/mongo.type.js +0 -16
- package/dist/src/node/package/package.type.cjs +0 -1
- package/dist/src/node/package/package.type.js +0 -4
- package/dist/src/node/upload/upload.type.cjs +0 -1
- package/dist/src/node/upload/upload.type.js +0 -4
- package/dist/src/node/ws/ws.type.cjs +0 -1
- package/dist/src/node/ws/ws.type.js +0 -1
- package/dist/src/react/apollo-client/apollo-client.type.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.type.js +0 -1
- package/dist/src/react/apollo-error/apollo-error.type.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.type.js +0 -1
- package/dist/src/react/loading/loading.type.cjs +0 -1
- package/dist/src/react/loading/loading.type.js +0 -1
- package/dist/src/react/log/log.type.cjs +0 -1
- package/dist/src/react/log/log.type.js +0 -1
- package/dist/src/react/next-intl/next-intl.type.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.type.js +0 -1
- package/dist/src/react/userback/userback.type.cjs +0 -1
- package/dist/src/react/userback/userback.type.js +0 -1
- package/dist/src/util/common/common.type.cjs +0 -1
- package/dist/src/util/common/common.type.js +0 -1
- package/dist/src/util/serializer/serializer.type.cjs +0 -1
- package/dist/src/util/serializer/serializer.type.js +0 -1
- package/dist/src/util/string/string.type.cjs +0 -1
- package/dist/src/util/string/string.type.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@antfu/eslint-config");require("./vitest/vitest.e2e.cjs");require("./vitest/vitest.unit.cjs");require("../util/object/object.util.cjs");const e=require("../../config.util-Ci2CZDut.cjs");require("./eslint/index.cjs");exports.mergeConfigs=e.mergeConfigs;
|
|
@@ -1,60 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
if (r != null && a)
|
|
8
|
-
for (var e of a(r))
|
|
9
|
-
n.indexOf(e) < 0 && c.call(r, e) && (t[e] = r[e]);
|
|
10
|
-
return t;
|
|
11
|
-
};
|
|
12
|
-
import p from "@antfu/eslint-config";
|
|
13
|
-
import { vitestE2E as l } from "./vitest/vitest.e2e.js";
|
|
14
|
-
import { vitestUnit as d } from "./vitest/vitest.unit.js";
|
|
15
|
-
import { deepMerge as s } from "../util/object/object.util.js";
|
|
16
|
-
import { E_ConfigType as o } from "./config.type.js";
|
|
17
|
-
import u from "./eslint/index.js";
|
|
18
|
-
const y = (...r) => {
|
|
19
|
-
const f = s(
|
|
20
|
-
u,
|
|
21
|
-
...r.map((i) => i)
|
|
22
|
-
), { ignores: t } = f, e = g(f, ["ignores"]), m = Array.isArray(t) && t.every((i) => typeof i == "string") ? { ignores: t } : void 0, E = [
|
|
23
|
-
e,
|
|
24
|
-
...m ? [m] : []
|
|
25
|
-
];
|
|
26
|
-
return p(
|
|
27
|
-
{
|
|
28
|
-
stylistic: {
|
|
29
|
-
semi: !0,
|
|
30
|
-
indent: 4,
|
|
31
|
-
quotes: "single"
|
|
32
|
-
},
|
|
33
|
-
formatters: {
|
|
34
|
-
css: !0,
|
|
35
|
-
html: !0,
|
|
36
|
-
markdown: "prettier"
|
|
37
|
-
},
|
|
38
|
-
yaml: !1,
|
|
39
|
-
react: !0
|
|
40
|
-
},
|
|
41
|
-
...E
|
|
42
|
-
);
|
|
43
|
-
}, C = {
|
|
44
|
-
[o.ESLINT]: (r) => y(r),
|
|
45
|
-
[o.COMMITLINT]: (r) => s(r),
|
|
46
|
-
[o.LINT_STAGED]: (r) => s(r),
|
|
47
|
-
[o.VITEST_REACT_UNIT]: (r) => d(r),
|
|
48
|
-
[o.VITEST_REACT_E2E]: (r) => l(r)
|
|
49
|
-
};
|
|
50
|
-
function L(r, ...n) {
|
|
51
|
-
const t = C[r];
|
|
52
|
-
if (!n || n.length === 0)
|
|
53
|
-
return t({});
|
|
54
|
-
if (!t)
|
|
55
|
-
throw new Error(`Unknown config type: ${r}`);
|
|
56
|
-
return t(...n);
|
|
57
|
-
}
|
|
1
|
+
import "@antfu/eslint-config";
|
|
2
|
+
import "./vitest/vitest.e2e.js";
|
|
3
|
+
import "./vitest/vitest.unit.js";
|
|
4
|
+
import "../util/object/object.util.js";
|
|
5
|
+
import { m as f } from "../../config.util-DKBwEBKR.js";
|
|
6
|
+
import "./eslint/index.js";
|
|
58
7
|
export {
|
|
59
|
-
|
|
8
|
+
f as mergeConfigs
|
|
60
9
|
};
|
|
@@ -89,6 +89,7 @@ declare const _default: {
|
|
|
89
89
|
clearTimeout: false;
|
|
90
90
|
clientInformation: false;
|
|
91
91
|
Clipboard: false;
|
|
92
|
+
ClipboardChangeEvent: false;
|
|
92
93
|
ClipboardEvent: false;
|
|
93
94
|
ClipboardItem: false;
|
|
94
95
|
close: false;
|
|
@@ -111,6 +112,7 @@ declare const _default: {
|
|
|
111
112
|
CookieStoreManager: false;
|
|
112
113
|
CountQueuingStrategy: false;
|
|
113
114
|
createImageBitmap: false;
|
|
115
|
+
CreateMonitor: false;
|
|
114
116
|
Credential: false;
|
|
115
117
|
credentialless: false;
|
|
116
118
|
CredentialsContainer: false;
|
|
@@ -449,6 +451,7 @@ declare const _default: {
|
|
|
449
451
|
InputDeviceCapabilities: false;
|
|
450
452
|
InputDeviceInfo: false;
|
|
451
453
|
InputEvent: false;
|
|
454
|
+
IntegrityViolationReportBody: false;
|
|
452
455
|
IntersectionObserver: false;
|
|
453
456
|
IntersectionObserverEntry: false;
|
|
454
457
|
isSecureContext: false;
|
|
@@ -764,6 +767,7 @@ declare const _default: {
|
|
|
764
767
|
PushSubscriptionOptions: false;
|
|
765
768
|
queryLocalFonts: false;
|
|
766
769
|
queueMicrotask: false;
|
|
770
|
+
QuotaExceededError: false;
|
|
767
771
|
RadioNodeList: false;
|
|
768
772
|
Range: false;
|
|
769
773
|
ReadableByteStreamController: false;
|
|
@@ -887,6 +891,7 @@ declare const _default: {
|
|
|
887
891
|
SubmitEvent: false;
|
|
888
892
|
Subscriber: false;
|
|
889
893
|
SubtleCrypto: false;
|
|
894
|
+
Summarizer: false;
|
|
890
895
|
SuppressedError: false;
|
|
891
896
|
SVGAElement: false;
|
|
892
897
|
SVGAngle: false;
|
|
@@ -1017,6 +1022,7 @@ declare const _default: {
|
|
|
1017
1022
|
TransformStream: false;
|
|
1018
1023
|
TransformStreamDefaultController: false;
|
|
1019
1024
|
TransitionEvent: false;
|
|
1025
|
+
Translator: false;
|
|
1020
1026
|
TreeWalker: false;
|
|
1021
1027
|
TrustedHTML: false;
|
|
1022
1028
|
TrustedScript: false;
|
|
@@ -1048,6 +1054,8 @@ declare const _default: {
|
|
|
1048
1054
|
VideoEncoder: false;
|
|
1049
1055
|
VideoFrame: false;
|
|
1050
1056
|
VideoPlaybackQuality: false;
|
|
1057
|
+
viewport: false;
|
|
1058
|
+
Viewport: false;
|
|
1051
1059
|
ViewTimeline: false;
|
|
1052
1060
|
ViewTransition: false;
|
|
1053
1061
|
ViewTransitionTypeSet: false;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../config.util-Ci2CZDut.cjs");exports.E_ConfigType=e.E_ConfigType;exports.mergeConfigs=e.mergeConfigs;
|
package/dist/src/config/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var r=(i,e,t)=>e in i?o(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,s=(i,e)=>{for(var t in e||(e={}))u.call(e,t)&&r(i,t,e[t]);if(n)for(var t of n(e))c.call(e,t)&&r(i,t,e[t]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vitejs/plugin-react-swc"),a=require("../../../config-DDQ9k8fw.cjs"),g=require("../../../path.constant-
|
|
1
|
+
"use strict";var o=Object.defineProperty;var n=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,c=Object.prototype.propertyIsEnumerable;var r=(i,e,t)=>e in i?o(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,s=(i,e)=>{for(var t in e||(e={}))u.call(e,t)&&r(i,t,e[t]);if(n)for(var t of n(e))c.call(e,t)&&r(i,t,e[t]);return i};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const l=require("@vitejs/plugin-react-swc"),a=require("../../../config-DDQ9k8fw.cjs"),g=require("../../../path.constant-CWtb99gS.cjs");require("../../node/path/path.util.cjs");function d(i){return a.defineConfig(s({plugins:[l()],test:{globals:!0,environment:"jsdom",pool:"vmThreads",include:["**/*.test.unit.?(c|m)[jt]s?(x)"],setupFiles:[g.PATH.VITEST_UNIT_SETUP_CONFIG]}},i))}exports.vitestUnit=d;
|
|
@@ -11,7 +11,7 @@ var r = (o, t, e) => t in o ? s(o, t, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
import u from "@vitejs/plugin-react-swc";
|
|
13
13
|
import { d as f } from "../../../config-B7WSlzSh.js";
|
|
14
|
-
import { F as l } from "../../../path.constant-
|
|
14
|
+
import { F as l } from "../../../path.constant-CvSr0Rrx.js";
|
|
15
15
|
import "../../node/path/path.util.js";
|
|
16
16
|
function v(o) {
|
|
17
17
|
return f(n({
|
|
@@ -471,7 +471,7 @@ One of the following is possible:
|
|
|
471
471
|
- Otherwise, it might be a Vitest bug. Please report it to https://github.com/vitest-dev/vitest/issues
|
|
472
472
|
`;throw new Error(t)}return e}function f3(){const e=eu();return e==null?void 0:e.environment.name}function PT(){return typeof process!="undefined"&&!!process.send}function p3(e,t=!1){const r=[/\/vitest\/dist\//,/\/vite-node\/dist\//,/vitest-virtual-\w+\/dist/,/@vitest\/dist/,...t?[]:[/^mock:/]];e.forEach((n,a)=>{r.some(o=>o.test(a))||e.invalidateModule(n)})}function m3(){const{setTimeout:e}=Fr();return new Promise(t=>e(t,0))}function xT(){return me(this,null,function*(){yield m3();const e=eu(),t=[];let r=0;for(const n of e.moduleCache.values())n.promise&&!n.evaluated&&t.push(n.promise),n.resolving&&r++;!t.length&&!r||(yield Promise.allSettled(t),yield xT())})}var Xp=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function h3(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}const b3=44,nE="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",v3=new Uint8Array(64),TT=new Uint8Array(128);for(let e=0;e<nE.length;e++){const t=nE.charCodeAt(e);v3[e]=t,TT[t]=e}function wl(e,t){let r=0,n=0,a=0;do{const i=e.next();a=TT[i],r|=(a&31)<<n,n+=5}while(a&32);const o=r&1;return r>>>=1,o&&(r=-2147483648|-r),t+r}function aE(e,t){return e.pos>=t?!1:e.peek()!==b3}class y3{constructor(t){this.pos=0,this.buffer=t}next(){return this.buffer.charCodeAt(this.pos++)}peek(){return this.buffer.charCodeAt(this.pos)}indexOf(t){const{buffer:r,pos:n}=this,a=r.indexOf(t,n);return a===-1?r.length:a}}function g3(e){const{length:t}=e,r=new y3(e),n=[];let a=0,o=0,i=0,s=0,u=0;do{const l=r.indexOf(";"),c=[];let f=!0,d=0;for(a=0;r.pos<l;){let m;a=wl(r,a),a<d&&(f=!1),d=a,aE(r,l)?(o=wl(r,o),i=wl(r,i),s=wl(r,s),aE(r,l)?(u=wl(r,u),m=[a,o,i,s,u]):m=[a,o,i,s]):m=[a],c.push(m),r.pos++}f||R3(c),n.push(c),r.pos=l+1}while(r.pos<=t);return n}function R3(e){e.sort(w3)}function w3(e,t){return e[0]-t[0]}const _3=/^[\w+.-]+:\/\//,q3=/^([\w+.-]+:)\/\/([^@/#?]*@)?([^:/#?]*)(:\d+)?(\/[^#?]*)?(\?[^#]*)?(#.*)?/,C3=/^file:(?:\/\/((?![a-z]:)[^/#?]*)?)?(\/?[^#?]*)(\?[^#]*)?(#.*)?/i;var Le;(function(e){e[e.Empty=1]="Empty",e[e.Hash=2]="Hash",e[e.Query=3]="Query",e[e.RelativePath=4]="RelativePath",e[e.AbsolutePath=5]="AbsolutePath",e[e.SchemeRelative=6]="SchemeRelative",e[e.Absolute=7]="Absolute"})(Le||(Le={}));function E3(e){return _3.test(e)}function P3(e){return e.startsWith("//")}function ST(e){return e.startsWith("/")}function x3(e){return e.startsWith("file:")}function oE(e){return/^[.?#]/.test(e)}function hu(e){const t=q3.exec(e);return $T(t[1],t[2]||"",t[3],t[4]||"",t[5]||"/",t[6]||"",t[7]||"")}function T3(e){const t=C3.exec(e),r=t[2];return $T("file:","",t[1]||"","",ST(r)?r:"/"+r,t[3]||"",t[4]||"")}function $T(e,t,r,n,a,o,i){return{scheme:e,user:t,host:r,port:n,path:a,query:o,hash:i,type:Le.Absolute}}function iE(e){if(P3(e)){const r=hu("http:"+e);return r.scheme="",r.type=Le.SchemeRelative,r}if(ST(e)){const r=hu("http://foo.com"+e);return r.scheme="",r.host="",r.type=Le.AbsolutePath,r}if(x3(e))return T3(e);if(E3(e))return hu(e);const t=hu("http://foo.com/"+e);return t.scheme="",t.host="",t.type=e?e.startsWith("?")?Le.Query:e.startsWith("#")?Le.Hash:Le.RelativePath:Le.Empty,t}function S3(e){if(e.endsWith("/.."))return e;const t=e.lastIndexOf("/");return e.slice(0,t+1)}function $3(e,t){OT(t,t.type),e.path==="/"?e.path=t.path:e.path=S3(t.path)+e.path}function OT(e,t){const r=t<=Le.RelativePath,n=e.path.split("/");let a=1,o=0,i=!1;for(let u=1;u<n.length;u++){const l=n[u];if(!l){i=!0;continue}if(i=!1,l!=="."){if(l===".."){o?(i=!0,o--,a--):r&&(n[a++]=l);continue}n[a++]=l,o++}}let s="";for(let u=1;u<a;u++)s+="/"+n[u];(!s||i&&!s.endsWith("/.."))&&(s+="/"),e.path=s}function O3(e,t){if(!e&&!t)return"";const r=iE(e);let n=r.type;if(t&&n!==Le.Absolute){const o=iE(t),i=o.type;switch(n){case Le.Empty:r.hash=o.hash;case Le.Hash:r.query=o.query;case Le.Query:case Le.RelativePath:$3(r,o);case Le.AbsolutePath:r.user=o.user,r.host=o.host,r.port=o.port;case Le.SchemeRelative:r.scheme=o.scheme}i>n&&(n=i)}OT(r,n);const a=r.query+r.hash;switch(n){case Le.Hash:case Le.Query:return a;case Le.RelativePath:{const o=r.path.slice(1);return o?oE(t||e)&&!oE(o)?"./"+o+a:o+a:a||"."}case Le.AbsolutePath:return r.path+a;default:return r.scheme+"//"+r.user+r.host+r.port+r.path+a}}function sE(e,t){return t&&!t.endsWith("/")&&(t+="/"),O3(e,t)}function M3(e){if(!e)return"";const t=e.lastIndexOf("/");return e.slice(0,t+1)}const tr=0,A3=1,I3=2,N3=3,k3=4;function j3(e,t){const r=lE(e,0);if(r===e.length)return e;t||(e=e.slice());for(let n=r;n<e.length;n=lE(e,n+1))e[n]=L3(e[n],t);return e}function lE(e,t){for(let r=t;r<e.length;r++)if(!D3(e[r]))return r;return e.length}function D3(e){for(let t=1;t<e.length;t++)if(e[t][tr]<e[t-1][tr])return!1;return!0}function L3(e,t){return t||(e=e.slice()),e.sort(F3)}function F3(e,t){return e[tr]-t[tr]}let Ju=!1;function B3(e,t,r,n){for(;r<=n;){const a=r+(n-r>>1),o=e[a][tr]-t;if(o===0)return Ju=!0,a;o<0?r=a+1:n=a-1}return Ju=!1,r-1}function H3(e,t,r){for(let n=r+1;n<e.length&&e[n][tr]===t;r=n++);return r}function U3(e,t,r){for(let n=r-1;n>=0&&e[n][tr]===t;r=n--);return r}function V3(){return{lastKey:-1,lastNeedle:-1,lastIndex:-1}}function z3(e,t,r,n){const{lastKey:a,lastNeedle:o,lastIndex:i}=r;let s=0,u=e.length-1;if(n===a){if(t===o)return Ju=i!==-1&&e[i][tr]===t,i;t>=o?s=i===-1?0:i:u=i}return r.lastKey=n,r.lastNeedle=t,r.lastIndex=B3(e,t,s,u)}const W3="`line` must be greater than 0 (lines start at line 1)",G3="`column` must be greater than or equal to 0 (columns start at column 0)",uE=-1,J3=1;class K3{constructor(t,r){const n=typeof t=="string";if(!n&&t._decodedMemo)return t;const a=n?JSON.parse(t):t,{version:o,file:i,names:s,sourceRoot:u,sources:l,sourcesContent:c}=a;this.version=o,this.file=i,this.names=s||[],this.sourceRoot=u,this.sources=l,this.sourcesContent=c,this.ignoreList=a.ignoreList||a.x_google_ignoreList||void 0;const f=sE(u||"",M3(r));this.resolvedSources=l.map(m=>sE(m||"",f));const{mappings:d}=a;typeof d=="string"?(this._encoded=d,this._decoded=void 0):(this._encoded=void 0,this._decoded=j3(d,n)),this._decodedMemo=V3(),this._bySources=void 0,this._bySourceMemos=void 0}}function X3(e){var t;return(t=e)._decoded||(t._decoded=g3(e._encoded))}function Y3(e,t){let{line:r,column:n,bias:a}=t;if(r--,r<0)throw new Error(W3);if(n<0)throw new Error(G3);const o=X3(e);if(r>=o.length)return bu(null,null,null,null);const i=o[r],s=Q3(i,e._decodedMemo,r,n,a||J3);if(s===-1)return bu(null,null,null,null);const u=i[s];if(u.length===1)return bu(null,null,null,null);const{names:l,resolvedSources:c}=e;return bu(c[u[A3]],u[I3]+1,u[N3],u.length===5?l[u[k3]]:null)}function bu(e,t,r,n){return{source:e,line:t,column:r,name:n}}function Q3(e,t,r,n,a){let o=z3(e,n,t,r);return Ju?o=(a===uE?H3:U3)(e,n,o):a===uE&&o++,o===-1||o===e.length?-1:o}function MT(e){return e!=null}function Z3(e){return e===null||typeof e!="function"&&typeof e!="object"}function Pu(e){return e!=null&&typeof e=="object"&&!Array.isArray(e)}function eV(e){let t=-1,r=null,n=0,a=0,o=null;for(;t<=e.length;){o=e[t],t++;const i=e[t];if((i==='"'||i==="'"||i==="`")&&o!=="\\"&&(r===i?r=null:r||(r=i)),r||(i==="("&&n++,i===")"&&a++),n&&a&&n===a)return t}return null}const AT=/^\s*at .*(?:\S:\d+|\(native\))/m,tV=/^(?:eval@)?(?:\[native code\])?$/,rV=["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/chunk-","/deps/@vitest","/deps/loupe","/deps/chai",/node:\w+/,/__vitest_test__/,/__vitest_browser__/,/\/deps\/vitest_/];function IT(e){if(!e.includes(":"))return[e];const r=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/^\(|\)$/g,""));if(!r)return[e];let n=r[1];if(n.startsWith("async ")&&(n=n.slice(6)),n.startsWith("http:")||n.startsWith("https:")){const a=new URL(n);a.searchParams.delete("import"),a.searchParams.delete("browserv"),n=a.pathname+a.hash+a.search}if(n.startsWith("/@fs/")){const a=/^\/@fs\/[a-zA-Z]:\//.test(n);n=n.slice(a?5:4)}return[n,r[2]||void 0,r[3]||void 0]}function nV(e){let t=e.trim();if(tV.test(t)||(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":")))return null;const r=/((.*".+"[^@]*)?[^@]*)(@)/,n=t.match(r),a=n&&n[1]?n[1]:void 0,[o,i,s]=IT(t.replace(r,""));return!o||!i||!s?null:{file:o,method:a||"",line:Number.parseInt(i),column:Number.parseInt(s)}}function aV(e){let t=e.trim();if(!AT.test(t))return null;t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;const[a,o,i]=IT(n?n[1]:r);let s=n&&r||"",u=a&&["eval","<anonymous>"].includes(a)?void 0:a;return!u||!o||!i?null:(s.startsWith("async ")&&(s=s.slice(6)),u.startsWith("file://")&&(u=u.slice(7)),u=u.startsWith("node:")||u.startsWith("internal:")?u:AU(u),s&&(s=s.replace(/__vite_ssr_import_\d+__\./g,"")),{method:s,file:u,line:Number.parseInt(o),column:Number.parseInt(i)})}function Df(e,t={}){const{ignoreStackEntries:r=rV}=t;return(AT.test(e)?iV(e):oV(e)).map(a=>{var o;t.getUrlId&&(a.file=t.getUrlId(a.file));const i=(o=t.getSourceMap)===null||o===void 0?void 0:o.call(t,a.file);if(!i||typeof i!="object"||!i.version)return cE(r,a.file)?null:a;const s=new K3(i),{line:u,column:l,source:c,name:f}=Y3(s,a);let d=a.file;if(c){const m=a.file.startsWith("file://")?a.file:`file://${a.file}`,b=i.sourceRoot?new URL(i.sourceRoot,m):m;d=new URL(c,b).pathname,d.match(/\/\w:\//)&&(d=d.slice(1))}return cE(r,d)?null:u!=null&&l!=null?{line:u,column:l,file:d,method:f||a.method}:a}).filter(a=>a!=null)}function cE(e,t){return e.some(r=>t.match(r))}function oV(e){return e.split(`
|
|
473
473
|
`).map(t=>nV(t)).filter(MT)}function iV(e){return e.split(`
|
|
474
|
-
`).map(t=>aV(t)).filter(MT)}function sV(e,t={}){if(!e||Z3(e))return[];if(e.stacks)return e.stacks;const r=e.stack||"";let n=typeof r=="string"?Df(r,t):[];if(!n.length){const a=e;a.fileName!=null&&a.lineNumber!=null&&a.columnNumber!=null&&(n=Df(`${a.fileName}:${a.lineNumber}:${a.columnNumber}`,t)),a.sourceURL!=null&&a.line!=null&&a._column!=null&&(n=Df(`${a.sourceURL}:${a.line}:${a.column}`,t))}return t.frameFilter&&(n=n.filter(a=>t.frameFilter(e,a)!==!1)),e.stacks=n,n}let lV=()=>"Promise{…}";try{const{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(lV=(n,a)=>{const[o,i]=e(n);return o===t?"Promise{<pending>}":`Promise${o===r?"!":""}{${a.inspect(i,a)}}`})}catch(e){}function uV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lf,dE;function cV(){if(dE)return Lf;dE=1;var e,t,r,n,a,o,i,s,u,l,c,f,d,m,b,h,v,p,R;return d=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,b=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,c=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,h=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,R=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,u=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,m=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,a=/[^<>{}]+/y,p=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,i=/^(?:return|throw|yield)$/,l=RegExp(s.source),Lf=function*(C,{jsx:q=!1}={}){var w,y,g,_,E,O,P,$,N,L,W,F,B,J;for({length:O}=C,_=0,E="",J=[{tag:"JS"}],w=[],W=0,F=!1;_<O;){switch($=J[J.length-1],$.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(C[_]==="/"&&(p.test(E)||o.test(E))&&(d.lastIndex=_,P=d.exec(C))){_=d.lastIndex,E=P[0],F=!0,yield{type:"RegularExpressionLiteral",value:P[0],closed:P[1]!==void 0&&P[1]!=="\\"};continue}if(f.lastIndex=_,P=f.exec(C)){switch(B=P[0],N=f.lastIndex,L=B,B){case"(":E==="?NonExpressionParenKeyword"&&J.push({tag:"JSNonExpressionParen",nesting:W}),W++,F=!1;break;case")":W--,F=!0,$.tag==="JSNonExpressionParen"&&W===$.nesting&&(J.pop(),L="?NonExpressionParenEnd",F=!1);break;case"{":f.lastIndex=0,g=!v.test(E)&&(p.test(E)||o.test(E)),w.push(g),F=!1;break;case"}":switch($.tag){case"InterpolationInTemplate":if(w.length===$.nesting){h.lastIndex=_,P=h.exec(C),_=h.lastIndex,E=P[0],P[1]==="${"?(E="?InterpolationInTemplate",F=!1,yield{type:"TemplateMiddle",value:P[0]}):(J.pop(),F=!0,yield{type:"TemplateTail",value:P[0],closed:P[1]==="`"});continue}break;case"InterpolationInJSX":if(w.length===$.nesting){J.pop(),_+=1,E="}",yield{type:"JSXPunctuator",value:"}"};continue}}F=w.pop(),L=F?"?ExpressionBraceEnd":"}";break;case"]":F=!0;break;case"++":case"--":L=F?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(q&&(p.test(E)||o.test(E))){J.push({tag:"JSXTag"}),_+=1,E="<",yield{type:"JSXPunctuator",value:B};continue}F=!1;break;default:F=!1}_=N,E=L,yield{type:"Punctuator",value:B};continue}if(e.lastIndex=_,P=e.exec(C)){switch(_=e.lastIndex,L=P[0],P[0]){case"for":case"if":case"while":case"with":E!=="."&&E!=="?."&&(L="?NonExpressionParenKeyword")}E=L,F=!o.test(P[0]),yield{type:P[1]==="#"?"PrivateIdentifier":"IdentifierName",value:P[0]};continue}if(b.lastIndex=_,P=b.exec(C)){_=b.lastIndex,E=P[0],F=!0,yield{type:"StringLiteral",value:P[0],closed:P[2]!==void 0};continue}if(c.lastIndex=_,P=c.exec(C)){_=c.lastIndex,E=P[0],F=!0,yield{type:"NumericLiteral",value:P[0]};continue}if(h.lastIndex=_,P=h.exec(C)){_=h.lastIndex,E=P[0],P[1]==="${"?(E="?InterpolationInTemplate",J.push({tag:"InterpolationInTemplate",nesting:w.length}),F=!1,yield{type:"TemplateHead",value:P[0]}):(F=!0,yield{type:"NoSubstitutionTemplate",value:P[0],closed:P[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=_,P=r.exec(C)){switch(_=r.lastIndex,L=P[0],P[0]){case"<":J.push({tag:"JSXTag"});break;case">":J.pop(),E==="/"||$.tag==="JSXTagEnd"?(L="?JSX",F=!0):J.push({tag:"JSXChildren"});break;case"{":J.push({tag:"InterpolationInJSX",nesting:w.length}),L="?InterpolationInJSX",F=!1;break;case"/":E==="<"&&(J.pop(),J[J.length-1].tag==="JSXChildren"&&J.pop(),J.push({tag:"JSXTagEnd"}))}E=L,yield{type:"JSXPunctuator",value:P[0]};continue}if(t.lastIndex=_,P=t.exec(C)){_=t.lastIndex,E=P[0],yield{type:"JSXIdentifier",value:P[0]};continue}if(n.lastIndex=_,P=n.exec(C)){_=n.lastIndex,E=P[0],yield{type:"JSXString",value:P[0],closed:P[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=_,P=a.exec(C)){_=a.lastIndex,E=P[0],yield{type:"JSXText",value:P[0]};continue}switch(C[_]){case"<":J.push({tag:"JSXTag"}),_++,E="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":J.push({tag:"InterpolationInJSX",nesting:w.length}),_++,E="?InterpolationInJSX",F=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(R.lastIndex=_,P=R.exec(C)){_=R.lastIndex,yield{type:"WhiteSpace",value:P[0]};continue}if(s.lastIndex=_,P=s.exec(C)){_=s.lastIndex,F=!1,i.test(E)&&(E="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:P[0]};continue}if(u.lastIndex=_,P=u.exec(C)){_=u.lastIndex,l.test(P[0])&&(F=!1,i.test(E)&&(E="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:P[0],closed:P[1]!==void 0};continue}if(m.lastIndex=_,P=m.exec(C)){_=m.lastIndex,F=!1,yield{type:"SingleLineComment",value:P[0]};continue}y=String.fromCodePoint(C.codePointAt(_)),_+=y.length,E=y,F=!1,yield{type:$.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:y}}},Lf}cV();var NT={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(NT.keyword);new Set(NT.strict);var dV={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},fV=Object.entries(dV);function vh(e){return String(e)}vh.open="";vh.close="";function pV(e=!1){let t=typeof process!="undefined"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window!="undefined"&&!!window.chrome}function mV(e=!1){let t=pV(e),r=(i,s,u,l)=>{let c="",f=0;do c+=i.substring(f,l)+u,f=l+s.length,l=i.indexOf(s,f);while(~l);return c+i.substring(f)},n=(i,s,u=i)=>{let l=c=>{let f=String(c),d=f.indexOf(s,i.length);return~d?i+r(f,s,u,d)+s:i+f+s};return l.open=i,l.close=s,l},a={isColorSupported:t},o=i=>`\x1B[${i}m`;for(let[i,s]of fV)a[i]=t?n(o(s[0]),o(s[1]),s[2]):vh;return a}mV();const yh=/\r?\n/;function hV(e,t,r){const n=e.split(yh),a=/\r\n/.test(e)?2:1;let o=0;if(t>n.length)return e.length;for(let i=0;i<t-1;i++)o+=n[i].length+a;return o+r}function bV(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);const r=e.split(yh),n=/\r\n/.test(e)?2:1;let a=0,o=0;for(;o<r.length;o++){const i=r[o].length+n;if(a+i>=t)break;a+=i}return o+1}function vV(e,t){return me(this,null,function*(){const r=(yield Promise.resolve().then(()=>require("../../../magic-string.es-
|
|
474
|
+
`).map(t=>aV(t)).filter(MT)}function sV(e,t={}){if(!e||Z3(e))return[];if(e.stacks)return e.stacks;const r=e.stack||"";let n=typeof r=="string"?Df(r,t):[];if(!n.length){const a=e;a.fileName!=null&&a.lineNumber!=null&&a.columnNumber!=null&&(n=Df(`${a.fileName}:${a.lineNumber}:${a.columnNumber}`,t)),a.sourceURL!=null&&a.line!=null&&a._column!=null&&(n=Df(`${a.sourceURL}:${a.line}:${a.column}`,t))}return t.frameFilter&&(n=n.filter(a=>t.frameFilter(e,a)!==!1)),e.stacks=n,n}let lV=()=>"Promise{…}";try{const{getPromiseDetails:e,kPending:t,kRejected:r}=process.binding("util");Array.isArray(e(Promise.resolve()))&&(lV=(n,a)=>{const[o,i]=e(n);return o===t?"Promise{<pending>}":`Promise${o===r?"!":""}{${a.inspect(i,a)}}`})}catch(e){}function uV(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Lf,dE;function cV(){if(dE)return Lf;dE=1;var e,t,r,n,a,o,i,s,u,l,c,f,d,m,b,h,v,p,R;return d=/\/(?![*\/])(?:\[(?:(?![\]\\]).|\\.)*\]|(?![\/\\]).|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,f=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,e=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,b=/(['"])(?:(?!\1)[^\\\n\r]|\\(?:\r\n|[^]))*(\1)?/y,c=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,h=/[`}](?:[^`\\$]|\\[^]|\$(?!\{))*(`|\$\{)?/y,R=/[\t\v\f\ufeff\p{Zs}]+/yu,s=/\r?\n|[\r\u2028\u2029]/y,u=/\/\*(?:[^*]|\*(?!\/))*(\*\/)?/y,m=/\/\/.*/y,r=/[<>.:={}]|\/(?![\/*])/y,t=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,n=/(['"])(?:(?!\1)[^])*(\1)?/y,a=/[^<>{}]+/y,p=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,v=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,o=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,i=/^(?:return|throw|yield)$/,l=RegExp(s.source),Lf=function*(C,{jsx:q=!1}={}){var w,y,g,_,E,O,P,$,N,L,W,F,B,J;for({length:O}=C,_=0,E="",J=[{tag:"JS"}],w=[],W=0,F=!1;_<O;){switch($=J[J.length-1],$.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(C[_]==="/"&&(p.test(E)||o.test(E))&&(d.lastIndex=_,P=d.exec(C))){_=d.lastIndex,E=P[0],F=!0,yield{type:"RegularExpressionLiteral",value:P[0],closed:P[1]!==void 0&&P[1]!=="\\"};continue}if(f.lastIndex=_,P=f.exec(C)){switch(B=P[0],N=f.lastIndex,L=B,B){case"(":E==="?NonExpressionParenKeyword"&&J.push({tag:"JSNonExpressionParen",nesting:W}),W++,F=!1;break;case")":W--,F=!0,$.tag==="JSNonExpressionParen"&&W===$.nesting&&(J.pop(),L="?NonExpressionParenEnd",F=!1);break;case"{":f.lastIndex=0,g=!v.test(E)&&(p.test(E)||o.test(E)),w.push(g),F=!1;break;case"}":switch($.tag){case"InterpolationInTemplate":if(w.length===$.nesting){h.lastIndex=_,P=h.exec(C),_=h.lastIndex,E=P[0],P[1]==="${"?(E="?InterpolationInTemplate",F=!1,yield{type:"TemplateMiddle",value:P[0]}):(J.pop(),F=!0,yield{type:"TemplateTail",value:P[0],closed:P[1]==="`"});continue}break;case"InterpolationInJSX":if(w.length===$.nesting){J.pop(),_+=1,E="}",yield{type:"JSXPunctuator",value:"}"};continue}}F=w.pop(),L=F?"?ExpressionBraceEnd":"}";break;case"]":F=!0;break;case"++":case"--":L=F?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(q&&(p.test(E)||o.test(E))){J.push({tag:"JSXTag"}),_+=1,E="<",yield{type:"JSXPunctuator",value:B};continue}F=!1;break;default:F=!1}_=N,E=L,yield{type:"Punctuator",value:B};continue}if(e.lastIndex=_,P=e.exec(C)){switch(_=e.lastIndex,L=P[0],P[0]){case"for":case"if":case"while":case"with":E!=="."&&E!=="?."&&(L="?NonExpressionParenKeyword")}E=L,F=!o.test(P[0]),yield{type:P[1]==="#"?"PrivateIdentifier":"IdentifierName",value:P[0]};continue}if(b.lastIndex=_,P=b.exec(C)){_=b.lastIndex,E=P[0],F=!0,yield{type:"StringLiteral",value:P[0],closed:P[2]!==void 0};continue}if(c.lastIndex=_,P=c.exec(C)){_=c.lastIndex,E=P[0],F=!0,yield{type:"NumericLiteral",value:P[0]};continue}if(h.lastIndex=_,P=h.exec(C)){_=h.lastIndex,E=P[0],P[1]==="${"?(E="?InterpolationInTemplate",J.push({tag:"InterpolationInTemplate",nesting:w.length}),F=!1,yield{type:"TemplateHead",value:P[0]}):(F=!0,yield{type:"NoSubstitutionTemplate",value:P[0],closed:P[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(r.lastIndex=_,P=r.exec(C)){switch(_=r.lastIndex,L=P[0],P[0]){case"<":J.push({tag:"JSXTag"});break;case">":J.pop(),E==="/"||$.tag==="JSXTagEnd"?(L="?JSX",F=!0):J.push({tag:"JSXChildren"});break;case"{":J.push({tag:"InterpolationInJSX",nesting:w.length}),L="?InterpolationInJSX",F=!1;break;case"/":E==="<"&&(J.pop(),J[J.length-1].tag==="JSXChildren"&&J.pop(),J.push({tag:"JSXTagEnd"}))}E=L,yield{type:"JSXPunctuator",value:P[0]};continue}if(t.lastIndex=_,P=t.exec(C)){_=t.lastIndex,E=P[0],yield{type:"JSXIdentifier",value:P[0]};continue}if(n.lastIndex=_,P=n.exec(C)){_=n.lastIndex,E=P[0],yield{type:"JSXString",value:P[0],closed:P[2]!==void 0};continue}break;case"JSXChildren":if(a.lastIndex=_,P=a.exec(C)){_=a.lastIndex,E=P[0],yield{type:"JSXText",value:P[0]};continue}switch(C[_]){case"<":J.push({tag:"JSXTag"}),_++,E="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":J.push({tag:"InterpolationInJSX",nesting:w.length}),_++,E="?InterpolationInJSX",F=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(R.lastIndex=_,P=R.exec(C)){_=R.lastIndex,yield{type:"WhiteSpace",value:P[0]};continue}if(s.lastIndex=_,P=s.exec(C)){_=s.lastIndex,F=!1,i.test(E)&&(E="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:P[0]};continue}if(u.lastIndex=_,P=u.exec(C)){_=u.lastIndex,l.test(P[0])&&(F=!1,i.test(E)&&(E="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:P[0],closed:P[1]!==void 0};continue}if(m.lastIndex=_,P=m.exec(C)){_=m.lastIndex,F=!1,yield{type:"SingleLineComment",value:P[0]};continue}y=String.fromCodePoint(C.codePointAt(_)),_+=y.length,E=y,F=!1,yield{type:$.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:y}}},Lf}cV();var NT={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"]};new Set(NT.keyword);new Set(NT.strict);var dV={reset:[0,0],bold:[1,22,"\x1B[22m\x1B[1m"],dim:[2,22,"\x1B[22m\x1B[2m"],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29],black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],blackBright:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]},fV=Object.entries(dV);function vh(e){return String(e)}vh.open="";vh.close="";function pV(e=!1){let t=typeof process!="undefined"?process:void 0,r=(t==null?void 0:t.env)||{},n=(t==null?void 0:t.argv)||[];return!("NO_COLOR"in r||n.includes("--no-color"))&&("FORCE_COLOR"in r||n.includes("--color")||(t==null?void 0:t.platform)==="win32"||e&&r.TERM!=="dumb"||"CI"in r)||typeof window!="undefined"&&!!window.chrome}function mV(e=!1){let t=pV(e),r=(i,s,u,l)=>{let c="",f=0;do c+=i.substring(f,l)+u,f=l+s.length,l=i.indexOf(s,f);while(~l);return c+i.substring(f)},n=(i,s,u=i)=>{let l=c=>{let f=String(c),d=f.indexOf(s,i.length);return~d?i+r(f,s,u,d)+s:i+f+s};return l.open=i,l.close=s,l},a={isColorSupported:t},o=i=>`\x1B[${i}m`;for(let[i,s]of fV)a[i]=t?n(o(s[0]),o(s[1]),s[2]):vh;return a}mV();const yh=/\r?\n/;function hV(e,t,r){const n=e.split(yh),a=/\r\n/.test(e)?2:1;let o=0;if(t>n.length)return e.length;for(let i=0;i<t-1;i++)o+=n[i].length+a;return o+r}function bV(e,t){if(t>e.length)throw new Error(`offset is longer than source length! offset ${t} > length ${e.length}`);const r=e.split(yh),n=/\r\n/.test(e)?2:1;let a=0,o=0;for(;o<r.length;o++){const i=r[o].length+n;if(a+i>=t)break;a+=i}return o+1}function vV(e,t){return me(this,null,function*(){const r=(yield Promise.resolve().then(()=>require("../../../magic-string.es-CjWtD8Pa.cjs"))).default,n=new Set(t.map(a=>a.file));yield Promise.all(Array.from(n).map(a=>me(null,null,function*(){const o=t.filter(l=>l.file===a),i=yield e.readSnapshotFile(a),s=new r(i);for(const l of o){const c=hV(i,l.line,l.column);qV(i,s,c,l.snapshot)}const u=s.toString();u!==i&&(yield e.saveSnapshotFile(a,u))})))})}const yV=/(?:toMatchInlineSnapshot|toThrowErrorMatchingInlineSnapshot)\s*\(\s*(?:\/\*[\s\S]*\*\/\s*|\/\/.*(?:[\n\r\u2028\u2029]\s*|[\t\v\f \xA0\u1680\u2000-\u200A\u202F\u205F\u3000\uFEFF]))*\{/;function gV(e,t,r,n){let a=e.slice(r);const o=yV.exec(a);if(!o)return!1;a=a.slice(o.index);let i=eV(a);if(i===null)return!1;i+=r+o.index;const s=r+o.index+o[0].length,u=RV(e,s),l=`, ${kT(n,e,r)}`;return u===i?t.appendLeft(i,l):t.overwrite(u,i,l),!0}function RV(e,t){let r=1,n=0;for(;r!==n&&t<e.length;){const a=e[t++];a==="{"?r++:a==="}"&&n++}return t}function kT(e,t,r){const n=bV(t,r),o=t.split(yh)[n-1].match(/^\s*/)[0]||"",i=o.includes(" ")?`${o} `:`${o} `,s=e.trim().replace(/\\/g,"\\\\").split(/\n/g),u=s.length<=1,l="`";return u?`${l}${s.join(`
|
|
475
475
|
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}${l}`:`${l}
|
|
476
476
|
${s.map(c=>c?i+c:"").join(`
|
|
477
477
|
`).replace(/`/g,"\\`").replace(/\$\{/g,"\\${")}
|
|
@@ -29146,7 +29146,7 @@ One of the following is possible:
|
|
|
29146
29146
|
}
|
|
29147
29147
|
function vV(e, t) {
|
|
29148
29148
|
return me(this, null, function* () {
|
|
29149
|
-
const r = (yield import("../../../magic-string.es-
|
|
29149
|
+
const r = (yield import("../../../magic-string.es-C6Zk6wMx.js")).default, n = new Set(t.map((o) => o.file));
|
|
29150
29150
|
yield Promise.all(Array.from(n).map((o) => me(null, null, function* () {
|
|
29151
29151
|
const a = t.filter((l) => l.file === o), i = yield e.readSnapshotFile(o), s = new r(i);
|
|
29152
29152
|
for (const l of a) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
"use strict";var s=(t,i,n)=>new Promise((a,g)=>{var w=o=>{try{l(n.next(o))}catch(p){g(p)}},h=o=>{try{l(n.throw(o))}catch(p){g(p)}},l=o=>o.done?a(o.value):Promise.resolve(o.value).then(w,h);l((n=n.apply(t,i)).next())});const m=require("node:process"),q=require("yargs/helpers"),k=require("yargs/yargs"),e=require("../../../path.constant-CPGOAxEp.cjs"),r=require("../fs/fs.util.cjs"),u=require("../log/log.type.cjs"),c=require("../log/log.util.cjs");require("../path/path.util.cjs");const C="@cyberskill/shared",v="module",E="1.202.0",_="CyberSkill Shared",S="Stephen Cheng",b="MIT",I="https://github.com/cyberskill-world/shared#readme",L={type:"git",url:"git+https://github.com/cyberskill-world/shared.git"},T={url:"https://github.com/cyberskill-world/shared/issues"},M={"./config":{types:"./dist/src/config/index.d.ts",import:"./dist/src/config/index.js",require:"./dist/src/config/index.cjs"},"./config/commitlint":{types:"./dist/src/config/commitlint/index.d.ts",import:"./dist/src/config/commitlint/index.js",require:"./dist/src/config/commitlint/index.cjs"},"./config/env":{types:"./dist/src/config/env/index.d.ts",import:"./dist/src/config/env/index.js",require:"./dist/src/config/env/index.cjs"},"./config/eslint":{types:"./dist/src/config/eslint/index.d.ts",import:"./dist/src/config/eslint/index.js",require:"./dist/src/config/eslint/index.cjs"},"./config/graphql-codegen":{types:"./dist/src/config/graphql-codegen/index.d.ts",import:"./dist/src/config/graphql-codegen/index.js",require:"./dist/src/config/graphql-codegen/index.cjs"},"./config/lint-staged":{types:"./dist/src/config/lint-staged/index.d.ts",import:"./dist/src/config/lint-staged/index.js",require:"./dist/src/config/lint-staged/index.cjs"},"./config/vitest":{types:"./dist/src/config/vitest/index.d.ts",import:"./dist/src/config/vitest/index.js",require:"./dist/src/config/vitest/index.cjs"},"./constant":{types:"./dist/src/constant/index.d.ts",import:"./dist/src/constant/index.js",require:"./dist/src/constant/index.cjs"},"./node/apollo-server":{types:"./dist/src/node/apollo-server/index.d.ts",import:"./dist/src/node/apollo-server/index.js",require:"./dist/src/node/apollo-server/index.cjs"},"./node/cli":{types:"./dist/src/node/cli/index.d.ts",import:"./dist/src/node/cli/index.js",require:"./dist/src/node/cli/index.cjs"},"./node/command":{types:"./dist/src/node/command/index.d.ts",import:"./dist/src/node/command/index.js",require:"./dist/src/node/command/index.cjs"},"./node/express":{types:"./dist/src/node/express/index.d.ts",import:"./dist/src/node/express/index.js",require:"./dist/src/node/express/index.cjs"},"./node/fs":{types:"./dist/src/node/fs/index.d.ts",import:"./dist/src/node/fs/index.js",require:"./dist/src/node/fs/index.cjs"},"./node/log":{types:"./dist/src/node/log/index.d.ts",import:"./dist/src/node/log/index.js",require:"./dist/src/node/log/index.cjs"},"./node/mongo":{types:"./dist/src/node/mongo/index.d.ts",import:"./dist/src/node/mongo/index.js",require:"./dist/src/node/mongo/index.cjs"},"./node/package":{types:"./dist/src/node/package/index.d.ts",import:"./dist/src/node/package/index.js",require:"./dist/src/node/package/index.cjs"},"./node/path":{types:"./dist/src/node/path/index.d.ts",import:"./dist/src/node/path/index.js",require:"./dist/src/node/path/index.cjs"},"./node/storage":{types:"./dist/src/node/storage/index.d.ts",import:"./dist/src/node/storage/index.js",require:"./dist/src/node/storage/index.cjs"},"./node/upload":{types:"./dist/src/node/upload/index.d.ts",import:"./dist/src/node/upload/index.js",require:"./dist/src/node/upload/index.cjs"},"./node/ws":{types:"./dist/src/node/ws/index.d.ts",import:"./dist/src/node/ws/index.js",require:"./dist/src/node/ws/index.cjs"},"./react/apollo-client":{types:"./dist/src/react/apollo-client/index.d.ts",import:"./dist/src/react/apollo-client/index.js",require:"./dist/src/react/apollo-client/index.cjs"},"./react/apollo-client-nextjs":{types:"./dist/src/react/apollo-client-nextjs/index.d.ts",import:"./dist/src/react/apollo-client-nextjs/index.js",require:"./dist/src/react/apollo-client-nextjs/index.cjs"},"./react/apollo-client-nextjs/rsc":{types:"./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts",import:"./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js",require:"./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs"},"./react/apollo-error":{types:"./dist/src/react/apollo-error/index.d.ts",import:"./dist/src/react/apollo-error/index.js",require:"./dist/src/react/apollo-error/index.cjs"},"./react/i18next":{types:"./dist/src/react/i18next/index.d.ts",import:"./dist/src/react/i18next/index.js",require:"./dist/src/react/i18next/index.cjs"},"./react/loading":{types:"./dist/src/react/loading/index.d.ts",import:"./dist/src/react/loading/index.js",require:"./dist/src/react/loading/index.cjs"},"./react/log":{types:"./dist/src/react/log/index.d.ts",import:"./dist/src/react/log/index.js",require:"./dist/src/react/log/index.cjs"},"./react/next-intl":{types:"./dist/src/react/next-intl/index.d.ts",import:"./dist/src/react/next-intl/index.js",require:"./dist/src/react/next-intl/index.cjs"},"./react/storage":{types:"./dist/src/react/storage/index.d.ts",import:"./dist/src/react/storage/index.js",require:"./dist/src/react/storage/index.cjs"},"./react/toast":{types:"./dist/src/react/toast/index.d.ts",import:"./dist/src/react/toast/index.js",require:"./dist/src/react/toast/index.cjs"},"./react/userback":{types:"./dist/src/react/userback/index.d.ts",import:"./dist/src/react/userback/index.js",require:"./dist/src/react/userback/index.cjs"},"./typescript":{types:"./dist/src/typescript/index.d.ts",import:"./dist/src/typescript/index.js",require:"./dist/src/typescript/index.cjs"},"./util":{types:"./dist/src/util/index.d.ts",import:"./dist/src/util/index.js",require:"./dist/src/util/index.cjs"},"./style.css":{import:"./dist/style.css",require:"./dist/style.css"}},P={cyberskill:"dist/src/node/cli/index.js"},A=["dist","public"],O={build:"vite build",commitlint:"tsx src/node/cli/index.ts commitlint",dev:"vite build --watch",inspect:"tsx src/node/cli/index.ts inspect",lint:"tsx src/node/cli/index.ts lint","lint:fix":"tsx src/node/cli/index.ts lint:fix","lint:inspect":"tsx src/node/cli/index.ts lint:inspect",ready:"tsx src/node/cli/index.ts ready",reset:"tsx src/node/cli/index.ts reset","test:e2e":"tsx src/node/cli/index.ts test:e2e","test:unit":"tsx src/node/cli/index.ts test:unit"},G={"@antfu/eslint-config":"4.16.1","@apollo/client":"3.13.8","@apollo/client-integration-nextjs":"0.12.2","@apollo/server":"4.12.2","@dotenvx/dotenvx":"1.45.1","@eddeee888/gcg-typescript-resolver-files":"0.12.1","@graphql-codegen/cli":"5.0.7","@graphql-codegen/client-preset":"4.8.3","@nestjs/common":"11.1.3","@nestjs/core":"11.1.3","@userback/widget":"0.3.11","@vitejs/plugin-react-swc":"3.10.2","body-parser":"2.2.0",chalk:"5.4.1",clsx:"2.1.1",compression:"1.8.0",consola:"3.4.2","cookie-parser":"1.4.7",cors:"2.8.5","crypto-js":"4.2.0","date-fns":"4.1.0",envalid:"8.0.0",express:"4.21.2","express-session":"1.18.1","express-useragent":"1.0.15","fs-extra":"11.3.0",globals:"16.2.0",graphql:"16.11.0","graphql-upload":"17.0.0","graphql-ws":"6.0.5",i18next:"25.3.0",jsdom:"26.1.0",localforage:"1.10.0","migrate-mongo":"12.1.3",mongodb:"6.17.0",mongoose:"8.16.1","mongoose-aggregate-paginate-v2":"1.1.4","mongoose-paginate-v2":"1.9.1","next-intl":"4.3.1","node-fetch":"3.3.2","node-persist":"4.0.4",qs:"6.14.0",react:"19.1.0","react-dom":"19.1.0","react-hot-toast":"2.5.2","react-i18next":"15.5.3",slugify:"1.6.6",unorm:"1.6.0",uuid:"11.1.0",vite:"7.0.0",ws:"8.18.3",yargs:"18.0.0"},R={"@commitlint/cli":"19.8.1","@commitlint/config-conventional":"19.8.1","@eslint-react/eslint-plugin":"1.52.2","@eslint/config-inspector":"1.1.0","@microsoft/api-extractor":"7.52.8","@next/eslint-plugin-next":"15.3.4","@testing-library/jest-dom":"6.6.3","@testing-library/react":"16.3.0","@types/body-parser":"1.19.6","@types/compression":"1.8.1","@types/cookie-parser":"1.4.9","@types/cors":"2.8.19","@types/crypto-js":"4.2.2","@types/express":"4.17.21","@types/express-session":"1.18.2","@types/express-useragent":"1.0.5","@types/fs-extra":"11.0.4","@types/graphql-upload":"17.0.0","@types/migrate-mongo":"10.0.5","@types/node":"24.0.7","@types/node-persist":"3.1.8","@types/react":"19.1.8","@types/react-dom":"19.1.6","@types/unorm":"1.3.31","@types/uuid":"10.0.0","@types/ws":"8.18.1","@types/yargs":"17.0.33","@vitest/browser":"3.2.4",eslint:"9.30.0","eslint-config-next":"15.3.4","eslint-plugin-format":"1.0.1","eslint-plugin-react-hooks":"5.2.0","eslint-plugin-react-refresh":"0.4.20",glob:"11.0.3","lint-staged":"16.1.2","node-modules-inspector":"1.0.0",sass:"1.89.2","simple-git-hooks":"2.13.0",tsx:"4.20.3",typescript:"5.8.3",vite:"7.0.0","vite-plugin-dts":"4.5.4",vitest:"3.2.4"},H={access:"public",registry:"https://registry.npmjs.org/"},N={name:C,type:v,version:E,description:_,author:S,license:b,homepage:I,repository:L,bugs:T,exports:M,bin:P,files:A,scripts:O,dependencies:G,devDependencies:R,publishConfig:H};function y(){return s(this,null,function*(){r.pathExistsSync(e.PATH.TS_CONFIG)?yield e.runCommand("Performing TypeScript validation",yield e.command.typescriptCheck()):c.log.warn("No TypeScript configuration found. Skipping type check.")})}function f(t=!1){return s(this,null,function*(){t?yield e.runCommand("Running ESLint with auto-fix",yield e.command.eslintFix()):yield e.runCommand("Running ESLint check",yield e.command.eslintCheck())})}function x(t,i){if(!i.length)return;const n=t==="Errors"?"red":"yellow";c.log.printBoxedLog(t==="Errors"?"✖ Errors":"⚠ Warnings",i,n)}function d(){return s(this,null,function*(){setTimeout(()=>s(null,null,function*(){const t=yield e.getStoredErrorLists(),i=t.filter(a=>a.type===u.E_IssueType.Error),n=t.filter(a=>a.type===u.E_IssueType.Warning);!i.length&&!n.length?c.log.printBoxedLog("✔ NO ISSUES FOUND",[],"green"):(x("Warnings",n),x("Errors",i),(i.length>0||n.length>0)&&m.exit(1))}),0)})}function D(){return s(this,null,function*(){yield e.clearAllErrorLists();const t=yield e.getPackage({name:e.CYBERSKILL_PACKAGE_NAME});if(!t.success){c.log.error("Failed to retrieve package information. Aborting lint-staged.");return}t.result.isCurrentProject&&(yield e.runCommand(`Building package: ${e.CYBERSKILL_PACKAGE_NAME}`,yield e.command.build())),yield e.runCommand("Executing lint-staged",yield e.command.lintStaged()),d()})}function B(){return s(this,null,function*(){yield e.runCommand("Inspecting ESLint configuration",yield e.command.eslintInspect())})}function F(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield Promise.all([y(),f()]),d()})}function K(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield Promise.all([y(),f(!0)]),d()})}function U(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield e.runCommand("Validating commit message",yield e.command.commitLint()),d()})}function j(){return s(this,null,function*(){yield e.runCommand("Configuring Git hooks",yield e.command.configureGitHook()),r.removeSync(e.PATH.GIT_HOOK);const t=yield e.resolveCommands(e.createGitHooksConfig);r.writeFileSync(e.PATH.SIMPLE_GIT_HOOKS_JSON,JSON.stringify(t,null,4));const i=`
|
|
2
|
+
"use strict";var s=(t,i,n)=>new Promise((a,g)=>{var w=o=>{try{l(n.next(o))}catch(p){g(p)}},h=o=>{try{l(n.throw(o))}catch(p){g(p)}},l=o=>o.done?a(o.value):Promise.resolve(o.value).then(w,h);l((n=n.apply(t,i)).next())});const m=require("node:process"),q=require("yargs/helpers"),k=require("yargs/yargs"),e=require("../../../path.constant-CWtb99gS.cjs"),r=require("../fs/fs.util.cjs"),u=require("../../../log.type-CMvG6Box.cjs"),c=require("../log/log.util.cjs");require("../path/path.util.cjs");const C="@cyberskill/shared",v="module",E="1.204.0",S="CyberSkill Shared",_="Stephen Cheng",b="MIT",I="https://github.com/cyberskill-world/shared#readme",L={type:"git",url:"git+https://github.com/cyberskill-world/shared.git"},T={url:"https://github.com/cyberskill-world/shared/issues"},M={"./config":{types:"./dist/src/config/index.d.ts",import:"./dist/src/config/index.js",require:"./dist/src/config/index.cjs"},"./config/commitlint":{types:"./dist/src/config/commitlint/index.d.ts",import:"./dist/src/config/commitlint/index.js",require:"./dist/src/config/commitlint/index.cjs"},"./config/env":{types:"./dist/src/config/env/index.d.ts",import:"./dist/src/config/env/index.js",require:"./dist/src/config/env/index.cjs"},"./config/eslint":{types:"./dist/src/config/eslint/index.d.ts",import:"./dist/src/config/eslint/index.js",require:"./dist/src/config/eslint/index.cjs"},"./config/graphql-codegen":{types:"./dist/src/config/graphql-codegen/index.d.ts",import:"./dist/src/config/graphql-codegen/index.js",require:"./dist/src/config/graphql-codegen/index.cjs"},"./config/lint-staged":{types:"./dist/src/config/lint-staged/index.d.ts",import:"./dist/src/config/lint-staged/index.js",require:"./dist/src/config/lint-staged/index.cjs"},"./config/vitest":{types:"./dist/src/config/vitest/index.d.ts",import:"./dist/src/config/vitest/index.js",require:"./dist/src/config/vitest/index.cjs"},"./constant":{types:"./dist/src/constant/index.d.ts",import:"./dist/src/constant/index.js",require:"./dist/src/constant/index.cjs"},"./node/apollo-server":{types:"./dist/src/node/apollo-server/index.d.ts",import:"./dist/src/node/apollo-server/index.js",require:"./dist/src/node/apollo-server/index.cjs"},"./node/cli":{types:"./dist/src/node/cli/index.d.ts",import:"./dist/src/node/cli/index.js",require:"./dist/src/node/cli/index.cjs"},"./node/command":{types:"./dist/src/node/command/index.d.ts",import:"./dist/src/node/command/index.js",require:"./dist/src/node/command/index.cjs"},"./node/express":{types:"./dist/src/node/express/index.d.ts",import:"./dist/src/node/express/index.js",require:"./dist/src/node/express/index.cjs"},"./node/fs":{types:"./dist/src/node/fs/index.d.ts",import:"./dist/src/node/fs/index.js",require:"./dist/src/node/fs/index.cjs"},"./node/log":{types:"./dist/src/node/log/index.d.ts",import:"./dist/src/node/log/index.js",require:"./dist/src/node/log/index.cjs"},"./node/mongo":{types:"./dist/src/node/mongo/index.d.ts",import:"./dist/src/node/mongo/index.js",require:"./dist/src/node/mongo/index.cjs"},"./node/package":{types:"./dist/src/node/package/index.d.ts",import:"./dist/src/node/package/index.js",require:"./dist/src/node/package/index.cjs"},"./node/path":{types:"./dist/src/node/path/index.d.ts",import:"./dist/src/node/path/index.js",require:"./dist/src/node/path/index.cjs"},"./node/storage":{types:"./dist/src/node/storage/index.d.ts",import:"./dist/src/node/storage/index.js",require:"./dist/src/node/storage/index.cjs"},"./node/upload":{types:"./dist/src/node/upload/index.d.ts",import:"./dist/src/node/upload/index.js",require:"./dist/src/node/upload/index.cjs"},"./node/ws":{types:"./dist/src/node/ws/index.d.ts",import:"./dist/src/node/ws/index.js",require:"./dist/src/node/ws/index.cjs"},"./react/apollo-client":{types:"./dist/src/react/apollo-client/index.d.ts",import:"./dist/src/react/apollo-client/index.js",require:"./dist/src/react/apollo-client/index.cjs"},"./react/apollo-client-nextjs":{types:"./dist/src/react/apollo-client-nextjs/index.d.ts",import:"./dist/src/react/apollo-client-nextjs/index.js",require:"./dist/src/react/apollo-client-nextjs/index.cjs"},"./react/apollo-client-nextjs/rsc":{types:"./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts",import:"./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js",require:"./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs"},"./react/apollo-error":{types:"./dist/src/react/apollo-error/index.d.ts",import:"./dist/src/react/apollo-error/index.js",require:"./dist/src/react/apollo-error/index.cjs"},"./react/i18next":{types:"./dist/src/react/i18next/index.d.ts",import:"./dist/src/react/i18next/index.js",require:"./dist/src/react/i18next/index.cjs"},"./react/loading":{types:"./dist/src/react/loading/index.d.ts",import:"./dist/src/react/loading/index.js",require:"./dist/src/react/loading/index.cjs"},"./react/log":{types:"./dist/src/react/log/index.d.ts",import:"./dist/src/react/log/index.js",require:"./dist/src/react/log/index.cjs"},"./react/next-intl":{types:"./dist/src/react/next-intl/index.d.ts",import:"./dist/src/react/next-intl/index.js",require:"./dist/src/react/next-intl/index.cjs"},"./react/storage":{types:"./dist/src/react/storage/index.d.ts",import:"./dist/src/react/storage/index.js",require:"./dist/src/react/storage/index.cjs"},"./react/toast":{types:"./dist/src/react/toast/index.d.ts",import:"./dist/src/react/toast/index.js",require:"./dist/src/react/toast/index.cjs"},"./react/userback":{types:"./dist/src/react/userback/index.d.ts",import:"./dist/src/react/userback/index.js",require:"./dist/src/react/userback/index.cjs"},"./typescript":{types:"./dist/src/typescript/index.d.ts",import:"./dist/src/typescript/index.js",require:"./dist/src/typescript/index.cjs"},"./util":{types:"./dist/src/util/index.d.ts",import:"./dist/src/util/index.js",require:"./dist/src/util/index.cjs"},"./style.css":{import:"./dist/style.css",require:"./dist/style.css"}},P={cyberskill:"dist/src/node/cli/index.js"},A=["dist","public"],O={build:"vite build",commitlint:"tsx src/node/cli/index.ts commitlint",dev:"vite build --watch",inspect:"tsx src/node/cli/index.ts inspect",lint:"tsx src/node/cli/index.ts lint","lint:fix":"tsx src/node/cli/index.ts lint:fix","lint:inspect":"tsx src/node/cli/index.ts lint:inspect",ready:"tsx src/node/cli/index.ts ready",reset:"tsx src/node/cli/index.ts reset","test:e2e":"tsx src/node/cli/index.ts test:e2e","test:unit":"tsx src/node/cli/index.ts test:unit"},G={"@antfu/eslint-config":"4.16.2","@apollo/client":"3.13.8","@apollo/client-integration-nextjs":"0.12.2","@apollo/server":"4.12.2","@dotenvx/dotenvx":"1.45.2","@eddeee888/gcg-typescript-resolver-files":"0.12.1","@eslint-react/eslint-plugin":"1.52.2","@graphql-codegen/cli":"5.0.7","@graphql-codegen/client-preset":"4.8.3","@nestjs/common":"11.1.3","@nestjs/core":"11.1.3","@userback/widget":"0.3.11","@vitejs/plugin-react-swc":"3.10.2","body-parser":"2.2.0",chalk:"5.4.1",clsx:"2.1.1",compression:"1.8.0",consola:"3.4.2","cookie-parser":"1.4.7",cors:"2.8.5","crypto-js":"4.2.0","date-fns":"4.1.0",envalid:"8.0.0","eslint-plugin-format":"1.0.1","eslint-plugin-react-hooks":"5.2.0","eslint-plugin-react-refresh":"0.4.20",express:"4.21.2","express-session":"1.18.1","express-useragent":"1.0.15","fs-extra":"11.3.0",globals:"16.3.0",graphql:"16.11.0","graphql-upload":"17.0.0","graphql-ws":"6.0.5",i18next:"25.3.0",jsdom:"26.1.0",localforage:"1.10.0","migrate-mongo":"12.1.3",mongodb:"6.17.0",mongoose:"8.16.1","mongoose-aggregate-paginate-v2":"1.1.4","mongoose-paginate-v2":"1.9.1","next-intl":"4.3.4","node-fetch":"3.3.2","node-persist":"4.0.4",qs:"6.14.0",react:"19.1.0","react-dom":"19.1.0","react-hot-toast":"2.5.2","react-i18next":"15.5.3",slugify:"1.6.6",unorm:"1.6.0",uuid:"11.1.0",vite:"7.0.0",ws:"8.18.3",yargs:"18.0.0"},R={"@commitlint/cli":"19.8.1","@commitlint/config-conventional":"19.8.1","@eslint/config-inspector":"1.1.0","@microsoft/api-extractor":"7.52.8","@next/eslint-plugin-next":"15.3.4","@testing-library/jest-dom":"6.6.3","@testing-library/react":"16.3.0","@types/body-parser":"1.19.6","@types/compression":"1.8.1","@types/cookie-parser":"1.4.9","@types/cors":"2.8.19","@types/crypto-js":"4.2.2","@types/express":"4.17.21","@types/express-session":"1.18.2","@types/express-useragent":"1.0.5","@types/fs-extra":"11.0.4","@types/graphql-upload":"17.0.0","@types/migrate-mongo":"10.0.5","@types/node":"24.0.10","@types/node-persist":"3.1.8","@types/react":"19.1.8","@types/react-dom":"19.1.6","@types/unorm":"1.3.31","@types/uuid":"10.0.0","@types/ws":"8.18.1","@types/yargs":"17.0.33","@vitest/browser":"3.2.4",eslint:"9.30.1","eslint-config-next":"15.3.4",glob:"11.0.3","lint-staged":"16.1.2","node-modules-inspector":"1.0.0",sass:"1.89.2","simple-git-hooks":"2.13.0",tsx:"4.20.3",typescript:"5.8.3",vite:"7.0.0","vite-plugin-dts":"4.5.4",vitest:"3.2.4"},H={access:"public",registry:"https://registry.npmjs.org/"},N={name:C,type:v,version:E,description:S,author:_,license:b,homepage:I,repository:L,bugs:T,exports:M,bin:P,files:A,scripts:O,dependencies:G,devDependencies:R,publishConfig:H};function y(){return s(this,null,function*(){r.pathExistsSync(e.PATH.TS_CONFIG)?yield e.runCommand("Performing TypeScript validation",yield e.command.typescriptCheck()):c.log.warn("No TypeScript configuration found. Skipping type check.")})}function f(t=!1){return s(this,null,function*(){t?yield e.runCommand("Running ESLint with auto-fix",yield e.command.eslintFix()):yield e.runCommand("Running ESLint check",yield e.command.eslintCheck())})}function x(t,i){if(!i.length)return;const n=t==="Errors"?"red":"yellow";c.log.printBoxedLog(t==="Errors"?"✖ Errors":"⚠ Warnings",i,n)}function d(){return s(this,null,function*(){setTimeout(()=>s(null,null,function*(){const t=yield e.getStoredErrorLists(),i=t.filter(a=>a.type===u.E_IssueType.Error),n=t.filter(a=>a.type===u.E_IssueType.Warning);!i.length&&!n.length?c.log.printBoxedLog("✔ NO ISSUES FOUND",[],"green"):(x("Warnings",n),x("Errors",i),(i.length>0||n.length>0)&&m.exit(1))}),0)})}function D(){return s(this,null,function*(){yield e.clearAllErrorLists();const t=yield e.getPackage({name:e.CYBERSKILL_PACKAGE_NAME});if(!t.success){c.log.error("Failed to retrieve package information. Aborting lint-staged.");return}t.result.isCurrentProject&&(yield e.runCommand(`Building package: ${e.CYBERSKILL_PACKAGE_NAME}`,yield e.command.build())),yield e.runCommand("Executing lint-staged",yield e.command.lintStaged()),d()})}function B(){return s(this,null,function*(){yield e.runCommand("Inspecting ESLint configuration",yield e.command.eslintInspect())})}function F(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield Promise.all([y(),f()]),d()})}function K(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield Promise.all([y(),f(!0)]),d()})}function U(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield e.runCommand("Validating commit message",yield e.command.commitLint()),d()})}function j(){return s(this,null,function*(){yield e.runCommand("Configuring Git hooks",yield e.command.configureGitHook()),r.removeSync(e.PATH.GIT_HOOK);const t=yield e.resolveCommands(e.createGitHooksConfig);r.writeFileSync(e.PATH.SIMPLE_GIT_HOOKS_JSON,JSON.stringify(t,null,4));const i=`
|
|
3
3
|
${e.SIMPLE_GIT_HOOK_JSON}
|
|
4
4
|
`;r.pathExistsSync(e.PATH.GIT_IGNORE)?r.readFileSync(e.PATH.GIT_IGNORE,"utf-8").split(`
|
|
5
5
|
`).includes(e.SIMPLE_GIT_HOOK_JSON)||r.appendFileSync(e.PATH.GIT_IGNORE,i):r.writeFileSync(e.PATH.GIT_IGNORE,i),yield e.runCommand("Setting up simple-git-hooks",yield e.command.simpleGitHooks())})}function J(){return s(this,null,function*(){yield e.installDependencies(),yield j()})}function Y(){return s(this,null,function*(){r.removeSync(e.PATH.NODE_MODULES,e.PATH.PNPM_LOCK_YAML),yield e.runCommand("Pruning pnpm store",yield e.command.pnpmPruneStore()),yield e.runCommand("Clearing pnpm cache",yield e.command.pnpmCleanCache()),yield e.installDependencies(),yield j()})}function $(){return s(this,null,function*(){yield e.runCommand("Inspecting project dependencies",yield e.command.nodeModulesInspect())})}function V(){return s(this,null,function*(){yield e.runCommand("Running unit tests",yield e.command.testUnit())})}function W(){return s(this,null,function*(){yield e.runCommand("Running end-to-end tests",yield e.command.testE2e())})}function z(t){return s(this,null,function*(){yield e.runCommand("Creating MongoDB migration",yield e.command.mongoMigrateCreate(t))})}function Q(){return s(this,null,function*(){yield e.runCommand("Running MongoDB migrations",yield e.command.mongoMigrateUp())})}function X(){return s(this,null,function*(){yield e.runCommand("Rolling back MongoDB migration",yield e.command.mongoMigrateDown())})}s(null,null,function*(){try{yield k(q.hideBin(m.argv)).scriptName(e.CYBERSKILL_CLI).usage("$0 <command> [options]").command("lint","Check code for linting issues",F).command("lint:fix","Fix linting issues automatically",K).command("lint:inspect","View active ESLint configuration",B).command("lint-staged","Run lint checks on staged files",D).command("commitlint","Validate commit message format",U).command("ready","Initialize project and dependencies",J).command("reset","Reset the project and reinstall dependencies",Y).command("inspect","Analyze installed project dependencies",$).command("test:unit","Run unit test suite",V).command("test:e2e","Run end-to-end test suite",W).command("mongo:migrate:create <name>","Create a MongoDB migration",t=>t.positional("name",{describe:"Migration name",type:"string"}),t=>s(null,null,function*(){if(!t.name){c.log.error("Migration name is required.");return}yield z(t.name)})).command("mongo:migrate:up","Apply all MongoDB migrations",Q).command("mongo:migrate:down","Rollback last MongoDB migration",X).demandCommand(1,"Please specify a valid command.").strict().help().alias("h","help").alias("v","version").version(N.version).epilog(`💡 Tip: Use "--help" with any command to see options
|
|
@@ -17,38 +17,38 @@ var t = (e, n, r) => new Promise((a, y) => {
|
|
|
17
17
|
g((r = r.apply(e, n)).next());
|
|
18
18
|
});
|
|
19
19
|
import x from "node:process";
|
|
20
|
-
import { hideBin as
|
|
21
|
-
import
|
|
22
|
-
import { g as
|
|
20
|
+
import { hideBin as O } from "yargs/helpers";
|
|
21
|
+
import R from "yargs/yargs";
|
|
22
|
+
import { g as _, Z as l, a1 as s, I as i, O as G, C as f, R as k, F as o, Y as T, a0 as N, S as j, H as D } from "../../../path.constant-CvSr0Rrx.js";
|
|
23
23
|
import { removeSync as v, pathExistsSync as b, writeFileSync as w, readFileSync as P, appendFileSync as B } from "../fs/fs.util.js";
|
|
24
|
-
import {
|
|
24
|
+
import { E as h } from "../../../log.type-DTOvZHyz.js";
|
|
25
25
|
import { log as d, catchError as F } from "../log/log.util.js";
|
|
26
26
|
import "../path/path.util.js";
|
|
27
27
|
var fe = L((u) => {
|
|
28
|
-
const A = "@cyberskill/shared", H = "module", U = "1.
|
|
28
|
+
const A = "@cyberskill/shared", H = "module", U = "1.204.0", K = "CyberSkill Shared", Y = "Stephen Cheng", J = "MIT", V = "https://github.com/cyberskill-world/shared#readme", W = { type: "git", url: "git+https://github.com/cyberskill-world/shared.git" }, $ = { url: "https://github.com/cyberskill-world/shared/issues" }, z = { "./config": { types: "./dist/src/config/index.d.ts", import: "./dist/src/config/index.js", require: "./dist/src/config/index.cjs" }, "./config/commitlint": { types: "./dist/src/config/commitlint/index.d.ts", import: "./dist/src/config/commitlint/index.js", require: "./dist/src/config/commitlint/index.cjs" }, "./config/env": { types: "./dist/src/config/env/index.d.ts", import: "./dist/src/config/env/index.js", require: "./dist/src/config/env/index.cjs" }, "./config/eslint": { types: "./dist/src/config/eslint/index.d.ts", import: "./dist/src/config/eslint/index.js", require: "./dist/src/config/eslint/index.cjs" }, "./config/graphql-codegen": { types: "./dist/src/config/graphql-codegen/index.d.ts", import: "./dist/src/config/graphql-codegen/index.js", require: "./dist/src/config/graphql-codegen/index.cjs" }, "./config/lint-staged": { types: "./dist/src/config/lint-staged/index.d.ts", import: "./dist/src/config/lint-staged/index.js", require: "./dist/src/config/lint-staged/index.cjs" }, "./config/vitest": { types: "./dist/src/config/vitest/index.d.ts", import: "./dist/src/config/vitest/index.js", require: "./dist/src/config/vitest/index.cjs" }, "./constant": { types: "./dist/src/constant/index.d.ts", import: "./dist/src/constant/index.js", require: "./dist/src/constant/index.cjs" }, "./node/apollo-server": { types: "./dist/src/node/apollo-server/index.d.ts", import: "./dist/src/node/apollo-server/index.js", require: "./dist/src/node/apollo-server/index.cjs" }, "./node/cli": { types: "./dist/src/node/cli/index.d.ts", import: "./dist/src/node/cli/index.js", require: "./dist/src/node/cli/index.cjs" }, "./node/command": { types: "./dist/src/node/command/index.d.ts", import: "./dist/src/node/command/index.js", require: "./dist/src/node/command/index.cjs" }, "./node/express": { types: "./dist/src/node/express/index.d.ts", import: "./dist/src/node/express/index.js", require: "./dist/src/node/express/index.cjs" }, "./node/fs": { types: "./dist/src/node/fs/index.d.ts", import: "./dist/src/node/fs/index.js", require: "./dist/src/node/fs/index.cjs" }, "./node/log": { types: "./dist/src/node/log/index.d.ts", import: "./dist/src/node/log/index.js", require: "./dist/src/node/log/index.cjs" }, "./node/mongo": { types: "./dist/src/node/mongo/index.d.ts", import: "./dist/src/node/mongo/index.js", require: "./dist/src/node/mongo/index.cjs" }, "./node/package": { types: "./dist/src/node/package/index.d.ts", import: "./dist/src/node/package/index.js", require: "./dist/src/node/package/index.cjs" }, "./node/path": { types: "./dist/src/node/path/index.d.ts", import: "./dist/src/node/path/index.js", require: "./dist/src/node/path/index.cjs" }, "./node/storage": { types: "./dist/src/node/storage/index.d.ts", import: "./dist/src/node/storage/index.js", require: "./dist/src/node/storage/index.cjs" }, "./node/upload": { types: "./dist/src/node/upload/index.d.ts", import: "./dist/src/node/upload/index.js", require: "./dist/src/node/upload/index.cjs" }, "./node/ws": { types: "./dist/src/node/ws/index.d.ts", import: "./dist/src/node/ws/index.js", require: "./dist/src/node/ws/index.cjs" }, "./react/apollo-client": { types: "./dist/src/react/apollo-client/index.d.ts", import: "./dist/src/react/apollo-client/index.js", require: "./dist/src/react/apollo-client/index.cjs" }, "./react/apollo-client-nextjs": { types: "./dist/src/react/apollo-client-nextjs/index.d.ts", import: "./dist/src/react/apollo-client-nextjs/index.js", require: "./dist/src/react/apollo-client-nextjs/index.cjs" }, "./react/apollo-client-nextjs/rsc": { types: "./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts", import: "./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js", require: "./dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs" }, "./react/apollo-error": { types: "./dist/src/react/apollo-error/index.d.ts", import: "./dist/src/react/apollo-error/index.js", require: "./dist/src/react/apollo-error/index.cjs" }, "./react/i18next": { types: "./dist/src/react/i18next/index.d.ts", import: "./dist/src/react/i18next/index.js", require: "./dist/src/react/i18next/index.cjs" }, "./react/loading": { types: "./dist/src/react/loading/index.d.ts", import: "./dist/src/react/loading/index.js", require: "./dist/src/react/loading/index.cjs" }, "./react/log": { types: "./dist/src/react/log/index.d.ts", import: "./dist/src/react/log/index.js", require: "./dist/src/react/log/index.cjs" }, "./react/next-intl": { types: "./dist/src/react/next-intl/index.d.ts", import: "./dist/src/react/next-intl/index.js", require: "./dist/src/react/next-intl/index.cjs" }, "./react/storage": { types: "./dist/src/react/storage/index.d.ts", import: "./dist/src/react/storage/index.js", require: "./dist/src/react/storage/index.cjs" }, "./react/toast": { types: "./dist/src/react/toast/index.d.ts", import: "./dist/src/react/toast/index.js", require: "./dist/src/react/toast/index.cjs" }, "./react/userback": { types: "./dist/src/react/userback/index.d.ts", import: "./dist/src/react/userback/index.js", require: "./dist/src/react/userback/index.cjs" }, "./typescript": { types: "./dist/src/typescript/index.d.ts", import: "./dist/src/typescript/index.js", require: "./dist/src/typescript/index.cjs" }, "./util": { types: "./dist/src/util/index.d.ts", import: "./dist/src/util/index.js", require: "./dist/src/util/index.cjs" }, "./style.css": { import: "./dist/style.css", require: "./dist/style.css" } }, Z = { cyberskill: "dist/src/node/cli/index.js" }, Q = ["dist", "public"], X = { build: "vite build", commitlint: "tsx src/node/cli/index.ts commitlint", dev: "vite build --watch", inspect: "tsx src/node/cli/index.ts inspect", lint: "tsx src/node/cli/index.ts lint", "lint:fix": "tsx src/node/cli/index.ts lint:fix", "lint:inspect": "tsx src/node/cli/index.ts lint:inspect", ready: "tsx src/node/cli/index.ts ready", reset: "tsx src/node/cli/index.ts reset", "test:e2e": "tsx src/node/cli/index.ts test:e2e", "test:unit": "tsx src/node/cli/index.ts test:unit" }, ee = { "@antfu/eslint-config": "4.16.2", "@apollo/client": "3.13.8", "@apollo/client-integration-nextjs": "0.12.2", "@apollo/server": "4.12.2", "@dotenvx/dotenvx": "1.45.2", "@eddeee888/gcg-typescript-resolver-files": "0.12.1", "@eslint-react/eslint-plugin": "1.52.2", "@graphql-codegen/cli": "5.0.7", "@graphql-codegen/client-preset": "4.8.3", "@nestjs/common": "11.1.3", "@nestjs/core": "11.1.3", "@userback/widget": "0.3.11", "@vitejs/plugin-react-swc": "3.10.2", "body-parser": "2.2.0", chalk: "5.4.1", clsx: "2.1.1", compression: "1.8.0", consola: "3.4.2", "cookie-parser": "1.4.7", cors: "2.8.5", "crypto-js": "4.2.0", "date-fns": "4.1.0", envalid: "8.0.0", "eslint-plugin-format": "1.0.1", "eslint-plugin-react-hooks": "5.2.0", "eslint-plugin-react-refresh": "0.4.20", express: "4.21.2", "express-session": "1.18.1", "express-useragent": "1.0.15", "fs-extra": "11.3.0", globals: "16.3.0", graphql: "16.11.0", "graphql-upload": "17.0.0", "graphql-ws": "6.0.5", i18next: "25.3.0", jsdom: "26.1.0", localforage: "1.10.0", "migrate-mongo": "12.1.3", mongodb: "6.17.0", mongoose: "8.16.1", "mongoose-aggregate-paginate-v2": "1.1.4", "mongoose-paginate-v2": "1.9.1", "next-intl": "4.3.4", "node-fetch": "3.3.2", "node-persist": "4.0.4", qs: "6.14.0", react: "19.1.0", "react-dom": "19.1.0", "react-hot-toast": "2.5.2", "react-i18next": "15.5.3", slugify: "1.6.6", unorm: "1.6.0", uuid: "11.1.0", vite: "7.0.0", ws: "8.18.3", yargs: "18.0.0" }, te = { "@commitlint/cli": "19.8.1", "@commitlint/config-conventional": "19.8.1", "@eslint/config-inspector": "1.1.0", "@microsoft/api-extractor": "7.52.8", "@next/eslint-plugin-next": "15.3.4", "@testing-library/jest-dom": "6.6.3", "@testing-library/react": "16.3.0", "@types/body-parser": "1.19.6", "@types/compression": "1.8.1", "@types/cookie-parser": "1.4.9", "@types/cors": "2.8.19", "@types/crypto-js": "4.2.2", "@types/express": "4.17.21", "@types/express-session": "1.18.2", "@types/express-useragent": "1.0.5", "@types/fs-extra": "11.0.4", "@types/graphql-upload": "17.0.0", "@types/migrate-mongo": "10.0.5", "@types/node": "24.0.10", "@types/node-persist": "3.1.8", "@types/react": "19.1.8", "@types/react-dom": "19.1.6", "@types/unorm": "1.3.31", "@types/uuid": "10.0.0", "@types/ws": "8.18.1", "@types/yargs": "17.0.33", "@vitest/browser": "3.2.4", eslint: "9.30.1", "eslint-config-next": "15.3.4", glob: "11.0.3", "lint-staged": "16.1.2", "node-modules-inspector": "1.0.0", sass: "1.89.2", "simple-git-hooks": "2.13.0", tsx: "4.20.3", typescript: "5.8.3", vite: "7.0.0", "vite-plugin-dts": "4.5.4", vitest: "3.2.4" }, se = { access: "public", registry: "https://registry.npmjs.org/" }, ie = {
|
|
29
29
|
name: A,
|
|
30
30
|
type: H,
|
|
31
31
|
version: U,
|
|
32
32
|
description: K,
|
|
33
|
-
author:
|
|
33
|
+
author: Y,
|
|
34
34
|
license: J,
|
|
35
35
|
homepage: V,
|
|
36
36
|
repository: W,
|
|
37
|
-
bugs:
|
|
37
|
+
bugs: $,
|
|
38
38
|
exports: z,
|
|
39
|
-
bin:
|
|
40
|
-
files:
|
|
41
|
-
scripts:
|
|
39
|
+
bin: Z,
|
|
40
|
+
files: Q,
|
|
41
|
+
scripts: X,
|
|
42
42
|
dependencies: ee,
|
|
43
43
|
devDependencies: te,
|
|
44
44
|
publishConfig: se
|
|
45
45
|
};
|
|
46
|
-
function
|
|
46
|
+
function E() {
|
|
47
47
|
return t(this, null, function* () {
|
|
48
48
|
b(o.TS_CONFIG) ? yield s("Performing TypeScript validation", yield i.typescriptCheck()) : d.warn("No TypeScript configuration found. Skipping type check.");
|
|
49
49
|
});
|
|
50
50
|
}
|
|
51
|
-
function
|
|
51
|
+
function S(e = !1) {
|
|
52
52
|
return t(this, null, function* () {
|
|
53
53
|
e ? yield s("Running ESLint with auto-fix", yield i.eslintFix()) : yield s("Running ESLint check", yield i.eslintCheck());
|
|
54
54
|
});
|
|
@@ -85,12 +85,12 @@ var fe = L((u) => {
|
|
|
85
85
|
}
|
|
86
86
|
function oe() {
|
|
87
87
|
return t(this, null, function* () {
|
|
88
|
-
yield l(), yield Promise.all([
|
|
88
|
+
yield l(), yield Promise.all([E(), S()]), p();
|
|
89
89
|
});
|
|
90
90
|
}
|
|
91
91
|
function ce() {
|
|
92
92
|
return t(this, null, function* () {
|
|
93
|
-
yield l(), yield Promise.all([
|
|
93
|
+
yield l(), yield Promise.all([E(), S(!0)]), p();
|
|
94
94
|
});
|
|
95
95
|
}
|
|
96
96
|
function ae() {
|
|
@@ -152,7 +152,7 @@ ${j}
|
|
|
152
152
|
}
|
|
153
153
|
t(null, null, function* () {
|
|
154
154
|
try {
|
|
155
|
-
yield O(
|
|
155
|
+
yield R(O(x.argv)).scriptName(_).usage("$0 <command> [options]").command("lint", "Check code for linting issues", oe).command("lint:fix", "Fix linting issues automatically", ce).command("lint:inspect", "View active ESLint configuration", re).command("lint-staged", "Run lint checks on staged files", ne).command("commitlint", "Validate commit message format", ae).command("ready", "Initialize project and dependencies", de).command("reset", "Reset the project and reinstall dependencies", le).command("inspect", "Analyze installed project dependencies", pe).command("test:unit", "Run unit test suite", ge).command("test:e2e", "Run end-to-end test suite", me).command("mongo:migrate:create <name>", "Create a MongoDB migration", (e) => e.positional("name", {
|
|
156
156
|
describe: "Migration name",
|
|
157
157
|
type: "string"
|
|
158
158
|
}), (e) => t(null, null, function* () {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("node:child_process");require("node:process");require("node:util");require("../../config/env/env.util.cjs");require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("node:child_process");require("node:process");require("node:util");require("../../config/env/env.util.cjs");require("../../../log.type-CMvG6Box.cjs");require("../log/log.util.cjs");const r=require("../../../path.constant-CWtb99gS.cjs");require("../path/path.util.cjs");require("../storage/storage.util.cjs");exports.clearAllErrorLists=r.clearAllErrorLists;exports.formatCommand=r.formatCommand;exports.getStoredErrorLists=r.getStoredErrorLists;exports.rawCommand=r.rawCommand;exports.resolveCommands=r.resolveCommands;exports.runCommand=r.runCommand;
|
|
@@ -2,9 +2,9 @@ import "node:child_process";
|
|
|
2
2
|
import "node:process";
|
|
3
3
|
import "node:util";
|
|
4
4
|
import "../../config/env/env.util.js";
|
|
5
|
-
import "
|
|
5
|
+
import "../../../log.type-DTOvZHyz.js";
|
|
6
6
|
import "../log/log.util.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Z as n, $ as l, Y as C, _ as f, a0 as E, a1 as L } from "../../../path.constant-CvSr0Rrx.js";
|
|
8
8
|
import "../path/path.util.js";
|
|
9
9
|
import "../storage/storage.util.js";
|
|
10
10
|
export {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../path.constant-CWtb99gS.cjs");exports.E_CommandType=r.E_CommandType;exports.clearAllErrorLists=r.clearAllErrorLists;exports.formatCommand=r.formatCommand;exports.getStoredErrorLists=r.getStoredErrorLists;exports.rawCommand=r.rawCommand;exports.resolveCommands=r.resolveCommands;exports.runCommand=r.runCommand;
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { X as s, Z as e, U as t, Y as d, _ as n, $ as C } from "../../../path.constant-DJq0jtD0.js";
|
|
1
|
+
import { X as s, Z as m, $ as o, Y as e, _ as d, a0 as n, a1 as t } from "../../../path.constant-CvSr0Rrx.js";
|
|
3
2
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
s as E_CommandType,
|
|
4
|
+
m as clearAllErrorLists,
|
|
5
|
+
o as formatCommand,
|
|
6
|
+
e as getStoredErrorLists,
|
|
8
7
|
d as rawCommand,
|
|
9
8
|
n as resolveCommands,
|
|
10
|
-
|
|
9
|
+
t as runCommand
|
|
11
10
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../log.type-CMvG6Box.cjs"),r=require("./log.util.cjs");exports.E_IssueType=o.E_IssueType;exports.catchError=r.catchError;exports.log=r.log;exports.throwError=r.throwError;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { catchError as
|
|
1
|
+
import { E as e } from "../../../log.type-DTOvZHyz.js";
|
|
2
|
+
import { catchError as E, log as p, throwError as s } from "./log.util.js";
|
|
3
3
|
export {
|
|
4
4
|
e as E_IssueType,
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
E as catchError,
|
|
6
|
+
p as log,
|
|
7
|
+
s as throwError
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("./mongo.constant.cjs"),n=require("mongodb"),t=require("mongoose"),e=require("./mongo.util.cjs"),s=require("mongoose-aggregate-paginate-v2"),g=require("mongoose-paginate-v2");class l extends n.Db{}class c extends t.Document{}class _ extends t.Model{}class a extends n.Collection{}exports.MONGO_MIGRATE_OPTIONS=r.MONGO_MIGRATE_OPTIONS;exports.MongoController=e.MongoController;exports.MongooseController=e.MongooseController;exports.mongo=e.mongo;exports.aggregatePaginate=s;exports.mongoosePaginate=g;exports.C_Collection=a;exports.C_Db=l;exports.C_Document=c;exports.C_Model=_;
|