@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var u=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var T=(e,n)=>{var t={};for(var r in e)g.call(e,r)&&n.indexOf(r)<0&&(t[r]=e[r]);if(e!=null&&u)for(var r of u(e))n.indexOf(r)<0&&E.call(e,r)&&(t[r]=e[r]);return t};const l=require("@antfu/eslint-config"),I=require("./src/config/vitest/vitest.e2e.cjs"),d=require("./src/config/vitest/vitest.unit.cjs"),o=require("./src/util/object/object.util.cjs"),m=require("./src/config/eslint/index.cjs");var s=(e=>(e.ESLINT="eslint",e.COMMITLINT="commitlint",e.LINT_STAGED="lint-staged",e.VITEST_REACT_E2E="vitest-react-e2e",e.VITEST_REACT_UNIT="vitest-react-unit",e))(s||{});const f=(...e)=>{const _=o.deepMerge(m,...e.map(i=>i)),{ignores:t}=_,r=T(_,["ignores"]),c=Array.isArray(t)&&t.every(i=>typeof i=="string")?{ignores:t}:void 0,a=[r,...c?[c]:[]];return l({stylistic:{semi:!0,indent:4,quotes:"single"},formatters:{css:!0,html:!0,markdown:"prettier"},yaml:!1,react:!0},...a)},v={[s.ESLINT]:e=>f(e),[s.COMMITLINT]:e=>o.deepMerge(e),[s.LINT_STAGED]:e=>o.deepMerge(e),[s.VITEST_REACT_UNIT]:e=>d.vitestUnit(e),[s.VITEST_REACT_E2E]:e=>I.vitestE2E(e)};function A(e,...n){const t=v[e];if(!n||n.length===0)return t({});if(!t)throw new Error(`Unknown config type: ${e}`);return t(...n)}exports.E_ConfigType=s;exports.mergeConfigs=A;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
var T = Object.getOwnPropertySymbols;
|
|
2
|
+
var I = Object.prototype.hasOwnProperty, l = Object.prototype.propertyIsEnumerable;
|
|
3
|
+
var E = (t, n) => {
|
|
4
|
+
var r = {};
|
|
5
|
+
for (var e in t)
|
|
6
|
+
I.call(t, e) && n.indexOf(e) < 0 && (r[e] = t[e]);
|
|
7
|
+
if (t != null && T)
|
|
8
|
+
for (var e of T(t))
|
|
9
|
+
n.indexOf(e) < 0 && l.call(t, e) && (r[e] = t[e]);
|
|
10
|
+
return r;
|
|
11
|
+
};
|
|
12
|
+
import f from "@antfu/eslint-config";
|
|
13
|
+
import { vitestE2E as u } from "./src/config/vitest/vitest.e2e.js";
|
|
14
|
+
import { vitestUnit as d } from "./src/config/vitest/vitest.unit.js";
|
|
15
|
+
import { deepMerge as o } from "./src/util/object/object.util.js";
|
|
16
|
+
import g from "./src/config/eslint/index.js";
|
|
17
|
+
var s = /* @__PURE__ */ ((t) => (t.ESLINT = "eslint", t.COMMITLINT = "commitlint", t.LINT_STAGED = "lint-staged", t.VITEST_REACT_E2E = "vitest-react-e2e", t.VITEST_REACT_UNIT = "vitest-react-unit", t))(s || {});
|
|
18
|
+
const A = (...t) => {
|
|
19
|
+
const a = o(
|
|
20
|
+
g,
|
|
21
|
+
...t.map((i) => i)
|
|
22
|
+
), { ignores: r } = a, e = E(a, ["ignores"]), m = Array.isArray(r) && r.every((i) => typeof i == "string") ? { ignores: r } : void 0, c = [
|
|
23
|
+
e,
|
|
24
|
+
...m ? [m] : []
|
|
25
|
+
];
|
|
26
|
+
return f(
|
|
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
|
+
...c
|
|
42
|
+
);
|
|
43
|
+
}, S = {
|
|
44
|
+
[s.ESLINT]: (t) => A(t),
|
|
45
|
+
[s.COMMITLINT]: (t) => o(t),
|
|
46
|
+
[s.LINT_STAGED]: (t) => o(t),
|
|
47
|
+
[s.VITEST_REACT_UNIT]: (t) => d(t),
|
|
48
|
+
[s.VITEST_REACT_E2E]: (t) => u(t)
|
|
49
|
+
};
|
|
50
|
+
function h(t, ...n) {
|
|
51
|
+
const r = S[t];
|
|
52
|
+
if (!n || n.length === 0)
|
|
53
|
+
return r({});
|
|
54
|
+
if (!r)
|
|
55
|
+
throw new Error(`Unknown config type: ${t}`);
|
|
56
|
+
return r(...n);
|
|
57
|
+
}
|
|
58
|
+
export {
|
|
59
|
+
s as E,
|
|
60
|
+
h as m
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var n=(r=>(r.Error="error",r.Warning="warning",r))(n||{});exports.E_IssueType=n;
|