@cyberskill/shared 1.217.0 → 2.0.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/README.md +330 -222
- package/dist/config/config.util.d.ts +17 -0
- package/dist/config/env/env.util.d.ts +26 -0
- package/dist/config/eslint/index.d.ts +4 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.d.ts +23 -0
- package/dist/config/vitest/vitest.e2e.cjs +1 -1
- package/dist/config/vitest/vitest.e2e.d.ts +16 -0
- package/dist/config/vitest/vitest.e2e.js +1 -1
- package/dist/config/vitest/vitest.unit.cjs +1 -1
- package/dist/config/vitest/vitest.unit.d.ts +18 -0
- package/dist/config/vitest/vitest.unit.js +1 -1
- package/dist/constant/common.d.ts +4 -0
- package/dist/constant/index.d.ts +3 -0
- package/dist/node/apollo-server/apollo-server.util.d.ts +14 -0
- package/dist/node/command/command.type.d.ts +26 -6
- package/dist/node/command/command.util.d.ts +50 -0
- package/dist/node/express/express.util.d.ts +47 -0
- package/dist/node/fs/fs.type.d.ts +6 -0
- package/dist/node/fs/fs.util.d.ts +48 -1
- package/dist/node/log/log.type.d.ts +6 -1
- package/dist/node/log/log.util.cjs +1 -1
- package/dist/node/log/log.util.d.ts +30 -2
- package/dist/node/log/log.util.js +33 -20
- package/dist/node/mongo/mongo.constant.d.ts +5 -0
- package/dist/node/mongo/mongo.type.d.ts +4 -4
- package/dist/node/mongo/mongo.util.cjs +5 -5
- package/dist/node/mongo/mongo.util.d.ts +337 -3
- package/dist/node/mongo/mongo.util.js +406 -79
- package/dist/node/package/package.type.d.ts +2 -2
- package/dist/node/package/package.util.cjs +1 -1
- package/dist/node/package/package.util.d.ts +52 -1
- package/dist/node/package/package.util.js +97 -92
- package/dist/node/path/path.constant.d.ts +9 -0
- package/dist/node/path/path.util.d.ts +24 -0
- package/dist/node/storage/storage.util.d.ts +44 -0
- package/dist/node/storage/storage.util.js +39 -0
- package/dist/node/upload/upload.util.d.ts +21 -0
- package/dist/node/ws/ts.util.d.ts +16 -0
- package/dist/react/apollo-client/apollo-client.component.d.ts +19 -1
- package/dist/react/apollo-client/apollo-client.component.js +1 -4
- package/dist/react/apollo-client/apollo-client.constant.d.ts +5 -0
- package/dist/react/apollo-client/apollo-client.context.d.ts +15 -0
- package/dist/react/apollo-client/apollo-client.hook.d.ts +12 -0
- package/dist/react/apollo-client/apollo-client.util.d.ts +48 -0
- package/dist/react/apollo-client/apollo-client.util.js +9 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +19 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.js +1 -4
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +10 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.d.ts +10 -0
- package/dist/react/apollo-error/apollo-error.component.cjs +1 -1
- package/dist/react/apollo-error/apollo-error.component.d.ts +17 -0
- package/dist/react/apollo-error/apollo-error.component.js +10 -10
- package/dist/react/apollo-error/apollo-error.hook.d.ts +12 -0
- package/dist/react/apollo-error/apollo-error.provider.d.ts +15 -0
- package/dist/react/apollo-error/apollo-error.util.d.ts +17 -0
- package/dist/react/i18next/i18next.hook.d.ts +9 -0
- package/dist/react/i18next/i18next.util.d.ts +10 -0
- package/dist/react/loading/loading.component.d.ts +21 -0
- package/dist/react/loading/loading.hook.d.ts +12 -0
- package/dist/react/loading/loading.provider.d.ts +15 -0
- package/dist/react/log/log.util.d.ts +17 -0
- package/dist/react/next-intl/next-intl.constant.d.ts +9 -0
- package/dist/react/next-intl/next-intl.hoc.d.ts +16 -0
- package/dist/react/next-intl/next-intl.hook.d.ts +21 -0
- package/dist/react/next-intl/next-intl.provider.d.ts +21 -0
- package/dist/react/storage/storage.hook.d.ts +19 -0
- package/dist/react/storage/storage.hook.js +28 -30
- package/dist/react/storage/storage.util.d.ts +39 -0
- package/dist/react/storage/storage.util.js +33 -0
- package/dist/react/userback/userback.component.d.ts +18 -0
- package/dist/typescript/common.type.d.ts +6 -0
- package/dist/typescript/index.d.ts +3 -0
- package/dist/util/common/common.util.d.ts +19 -7
- package/dist/util/common/index.d.ts +3 -0
- package/dist/util/index.d.ts +3 -0
- package/dist/util/object/object.util.d.ts +25 -12
- package/dist/util/serializer/serializer.type.d.ts +1 -1
- package/dist/util/serializer/serializer.util.d.ts +8 -0
- package/dist/util/serializer/serializer.util.js +4 -4
- package/dist/util/string/string.util.cjs +1 -1
- package/dist/util/string/string.util.d.ts +30 -17
- package/dist/util/string/string.util.js +14 -16
- package/dist/util/validate/validate.util.d.ts +9 -3
- package/dist/util/validate/validate.util.js +5 -3
- package/package.json +7 -5
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.14_@vitest_browser@3.2.4_jiti@2.4.2_j_5b4f3b6d03b5e1745ce439b75ce4a42f → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.15_@vitest_browser@3.2.4_jiti@2.4.2_j_e4a333d8aa4b05d17db10875e249d94f}/node_modules/vitest/dist/config.cjs +0 -0
- /package/dist/node_modules/.pnpm/{vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.14_@vitest_browser@3.2.4_jiti@2.4.2_j_5b4f3b6d03b5e1745ce439b75ce4a42f → vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.15_@vitest_browser@3.2.4_jiti@2.4.2_j_e4a333d8aa4b05d17db10875e249d94f}/node_modules/vitest/dist/config.js +0 -0
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberskill/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "2.0.0",
|
|
5
5
|
"description": "CyberSkill Shared",
|
|
6
6
|
"author": "Stephen Cheng",
|
|
7
7
|
"license": "MIT",
|
|
@@ -202,6 +202,7 @@
|
|
|
202
202
|
"lint:inspect": "tsx src/node/cli/index.ts lint:inspect",
|
|
203
203
|
"ready": "tsx src/node/cli/index.ts ready",
|
|
204
204
|
"reset": "tsx src/node/cli/index.ts reset",
|
|
205
|
+
"test": "run-s test:unit test:e2e",
|
|
205
206
|
"test:e2e": "tsx src/node/cli/index.ts test:e2e",
|
|
206
207
|
"test:unit": "tsx src/node/cli/index.ts test:unit"
|
|
207
208
|
},
|
|
@@ -211,7 +212,7 @@
|
|
|
211
212
|
"@apollo/client-integration-nextjs": "0.12.2",
|
|
212
213
|
"@apollo/server": "5.0.0",
|
|
213
214
|
"@as-integrations/express5": "1.1.2",
|
|
214
|
-
"@dotenvx/dotenvx": "1.48.
|
|
215
|
+
"@dotenvx/dotenvx": "1.48.2",
|
|
215
216
|
"@eddeee888/gcg-typescript-resolver-files": "0.12.1",
|
|
216
217
|
"@eslint-react/eslint-plugin": "1.52.3",
|
|
217
218
|
"@graphql-codegen/cli": "5.0.7",
|
|
@@ -270,7 +271,7 @@
|
|
|
270
271
|
"@commitlint/cli": "19.8.1",
|
|
271
272
|
"@commitlint/config-conventional": "19.8.1",
|
|
272
273
|
"@eslint/config-inspector": "1.1.0",
|
|
273
|
-
"@next/eslint-plugin-next": "15.4.
|
|
274
|
+
"@next/eslint-plugin-next": "15.4.2",
|
|
274
275
|
"@testing-library/jest-dom": "6.6.3",
|
|
275
276
|
"@testing-library/react": "16.3.0",
|
|
276
277
|
"@types/apollo-upload-client": "18.0.0",
|
|
@@ -286,7 +287,7 @@
|
|
|
286
287
|
"@types/graphql-upload": "17.0.0",
|
|
287
288
|
"@types/lodash-es": "4.17.12",
|
|
288
289
|
"@types/migrate-mongo": "10.0.5",
|
|
289
|
-
"@types/node": "24.0.
|
|
290
|
+
"@types/node": "24.0.15",
|
|
290
291
|
"@types/node-persist": "3.1.8",
|
|
291
292
|
"@types/react": "19.1.8",
|
|
292
293
|
"@types/react-dom": "19.1.6",
|
|
@@ -296,10 +297,11 @@
|
|
|
296
297
|
"@types/yargs": "17.0.33",
|
|
297
298
|
"@vitest/browser": "3.2.4",
|
|
298
299
|
"eslint": "9.31.0",
|
|
299
|
-
"eslint-config-next": "15.4.
|
|
300
|
+
"eslint-config-next": "15.4.2",
|
|
300
301
|
"glob": "11.0.3",
|
|
301
302
|
"lint-staged": "16.1.2",
|
|
302
303
|
"node-modules-inspector": "1.0.0",
|
|
304
|
+
"npm-run-all2": "8.0.4",
|
|
303
305
|
"sass": "1.89.2",
|
|
304
306
|
"simple-git-hooks": "2.13.0",
|
|
305
307
|
"tsx": "4.20.3",
|