@cyberskill/shared 1.217.0 → 2.1.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 +331 -223
- 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/index.cjs +1 -1
- package/dist/node/mongo/index.js +11 -15
- package/dist/node/mongo/mongo.constant.d.ts +5 -0
- package/dist/node/mongo/mongo.type.d.ts +30 -10
- package/dist/node/mongo/mongo.util.cjs +5 -5
- package/dist/node/mongo/mongo.util.d.ts +355 -12
- package/dist/node/mongo/mongo.util.js +686 -190
- 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 +12 -10
- /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.1.0_@vitest_browser@3.2.4_jiti@2.5.0_js_54cc41e7146dfcdf3e05180c4f422c31}/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.1.0_@vitest_browser@3.2.4_jiti@2.5.0_js_54cc41e7146dfcdf3e05180c4f422c31}/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": "1.
|
|
4
|
+
"version": "2.1.0",
|
|
5
5
|
"description": "CyberSkill Shared",
|
|
6
6
|
"author": "Stephen Cheng",
|
|
7
7
|
"license": "MIT",
|
|
@@ -202,16 +202,17 @@
|
|
|
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
|
},
|
|
208
209
|
"dependencies": {
|
|
209
|
-
"@antfu/eslint-config": "4.
|
|
210
|
+
"@antfu/eslint-config": "4.19.0",
|
|
210
211
|
"@apollo/client": "3.13.8",
|
|
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.3",
|
|
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",
|
|
@@ -247,7 +248,7 @@
|
|
|
247
248
|
"localforage": "1.10.0",
|
|
248
249
|
"lodash-es": "4.17.21",
|
|
249
250
|
"migrate-mongo": "12.1.3",
|
|
250
|
-
"mongodb": "6.
|
|
251
|
+
"mongodb": "6.18.0",
|
|
251
252
|
"mongoose": "8.16.4",
|
|
252
253
|
"mongoose-aggregate-paginate-v2": "1.1.4",
|
|
253
254
|
"mongoose-paginate-v2": "1.9.1",
|
|
@@ -258,11 +259,11 @@
|
|
|
258
259
|
"react": "19.1.0",
|
|
259
260
|
"react-dom": "19.1.0",
|
|
260
261
|
"react-hot-toast": "2.5.2",
|
|
261
|
-
"react-i18next": "15.6.
|
|
262
|
+
"react-i18next": "15.6.1",
|
|
262
263
|
"slugify": "1.6.6",
|
|
263
264
|
"unorm": "1.6.0",
|
|
264
265
|
"uuid": "11.1.0",
|
|
265
|
-
"vite": "7.0.
|
|
266
|
+
"vite": "7.0.6",
|
|
266
267
|
"ws": "8.18.3",
|
|
267
268
|
"yargs": "18.0.0"
|
|
268
269
|
},
|
|
@@ -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.3",
|
|
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.1.0",
|
|
290
291
|
"@types/node-persist": "3.1.8",
|
|
291
292
|
"@types/react": "19.1.8",
|
|
292
293
|
"@types/react-dom": "19.1.6",
|
|
@@ -296,15 +297,16 @@
|
|
|
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.3",
|
|
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",
|
|
306
308
|
"typescript": "5.8.3",
|
|
307
|
-
"vite": "7.0.
|
|
309
|
+
"vite": "7.0.6",
|
|
308
310
|
"vite-plugin-dts": "4.5.4",
|
|
309
311
|
"vitest": "3.2.4"
|
|
310
312
|
},
|