@cyberskill/shared 1.209.0 → 1.211.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/commitlint/index.cjs +1 -0
- package/dist/config/config.type.cjs +1 -0
- package/dist/config/config.type.js +4 -0
- package/dist/config/config.util.cjs +1 -0
- package/dist/config/config.util.js +58 -0
- package/dist/config/env/env.constant.cjs +1 -0
- package/dist/config/env/env.util.cjs +1 -0
- package/dist/config/env/env.util.js +29 -0
- package/dist/config/env/index.cjs +1 -0
- package/dist/config/eslint/index.cjs +1 -0
- package/dist/config/eslint/index.js +26 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.cjs +1 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.js +42 -0
- package/dist/config/graphql-codegen/index.cjs +1 -0
- package/dist/config/index.cjs +1 -0
- package/dist/config/index.js +6 -0
- package/dist/config/lint-staged/index.cjs +1 -0
- package/dist/config/vitest/index.cjs +1 -0
- package/dist/config/vitest/vitest.e2e.cjs +1 -0
- package/dist/config/vitest/vitest.e2e.js +30 -0
- package/dist/config/vitest/vitest.unit.cjs +1 -0
- package/dist/config/vitest/vitest.unit.js +26 -0
- package/dist/constant/common.cjs +1 -0
- package/dist/constant/common.js +4 -0
- package/dist/constant/index.cjs +1 -0
- package/dist/constant/response-status.cjs +1 -0
- package/dist/node/apollo-server/apollo-server.util.cjs +1 -0
- package/dist/node/apollo-server/apollo-server.util.js +56 -0
- package/dist/node/apollo-server/index.cjs +1 -0
- package/dist/node/cli/index.cjs +6 -0
- package/dist/node/cli/index.js +160 -0
- package/dist/node/command/command.type.cjs +1 -0
- package/dist/node/command/command.type.js +4 -0
- package/dist/node/command/command.util.cjs +2 -0
- package/dist/node/command/command.util.js +175 -0
- package/dist/node/command/index.cjs +1 -0
- package/dist/node/command/index.js +11 -0
- package/dist/node/express/express.util.cjs +1 -0
- package/dist/node/express/express.util.js +81 -0
- package/dist/node/express/index.cjs +1 -0
- package/dist/node/fs/fs.util.cjs +1 -0
- package/dist/node/fs/fs.util.js +63 -0
- package/dist/node/fs/index.cjs +1 -0
- package/dist/node/log/index.cjs +1 -0
- package/dist/node/log/index.js +8 -0
- package/dist/node/log/log.type.cjs +1 -0
- package/dist/node/log/log.type.js +4 -0
- package/dist/node/log/log.util.cjs +1 -0
- package/dist/node/log/log.util.js +60 -0
- package/dist/node/mongo/index.cjs +1 -0
- package/dist/node/mongo/index.js +17 -0
- package/dist/node/mongo/mongo.constant.cjs +1 -0
- package/dist/node/mongo/mongo.type.cjs +1 -0
- package/dist/node/mongo/mongo.type.js +16 -0
- package/dist/node/mongo/mongo.util.cjs +5 -0
- package/dist/node/mongo/mongo.util.js +556 -0
- package/dist/node/package/index.cjs +1 -0
- package/dist/node/package/index.js +10 -0
- package/dist/node/package/package.type.cjs +1 -0
- package/dist/node/package/package.type.js +4 -0
- package/dist/node/package/package.util.cjs +1 -0
- package/dist/node/package/package.util.js +254 -0
- package/dist/node/path/index.cjs +1 -0
- package/dist/node/path/index.js +52 -0
- package/dist/node/path/path.constant.cjs +1 -0
- package/dist/node/path/path.constant.js +295 -0
- package/dist/node/path/path.util.cjs +1 -0
- package/dist/node/storage/index.cjs +1 -0
- package/dist/node/storage/storage.util.cjs +1 -0
- package/dist/node/storage/storage.util.js +81 -0
- package/dist/node/upload/index.cjs +1 -0
- package/dist/node/upload/index.js +7 -0
- package/dist/node/upload/upload.type.cjs +1 -0
- package/dist/node/upload/upload.type.js +4 -0
- package/dist/node/upload/upload.util.cjs +1 -0
- package/dist/node/upload/upload.util.js +154 -0
- package/dist/node/ws/index.cjs +1 -0
- package/dist/node/ws/ts.util.cjs +1 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.13_@vitest_browser@3.2.4_jiti@2.4.2_j_cac3da623d5688a51c0b1a2270e144db/node_modules/vitest/dist/config.cjs +1 -0
- package/dist/{config-CwzVfkkX.js → node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.13_@vitest_browser@3.2.4_jiti@2.4.2_j_cac3da623d5688a51c0b1a2270e144db/node_modules/vitest/dist/config.js} +1 -1
- package/dist/react/apollo-client/apollo-client.component.cjs +1 -0
- package/dist/{src/react → react}/apollo-client/apollo-client.component.js +9 -12
- package/dist/react/apollo-client/apollo-client.constant.cjs +1 -0
- package/dist/react/apollo-client/apollo-client.context.cjs +1 -0
- package/dist/{src/react → react}/apollo-client/apollo-client.context.js +2 -2
- package/dist/react/apollo-client/apollo-client.util.cjs +1 -0
- package/dist/react/apollo-client/apollo-client.util.js +111 -0
- package/dist/react/apollo-client/index.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js +21 -0
- package/dist/react/apollo-client-nextjs/index.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.component.cjs +1 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.component.js +5 -12
- package/dist/react/apollo-error/apollo-error.context.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.hook.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.module.scss.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.module.scss.js +11 -0
- package/dist/react/apollo-error/apollo-error.provider.cjs +1 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.provider.js +2 -2
- package/dist/react/apollo-error/apollo-error.util.cjs +1 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.util.js +1 -1
- package/dist/react/apollo-error/index.cjs +1 -0
- package/dist/react/i18next/i18next.hook.cjs +1 -0
- package/dist/react/i18next/i18next.util.cjs +1 -0
- package/dist/react/i18next/index.cjs +1 -0
- package/dist/react/loading/index.cjs +1 -0
- package/dist/react/loading/loading.component.cjs +6 -0
- package/dist/react/loading/loading.component.js +51 -0
- package/dist/react/loading/loading.context.cjs +1 -0
- package/dist/react/loading/loading.hook.cjs +1 -0
- package/dist/react/loading/loading.module.scss.cjs +1 -0
- package/dist/react/loading/loading.module.scss.js +15 -0
- package/dist/react/loading/loading.provider.cjs +1 -0
- package/dist/react/loading/loading.provider.js +17 -0
- package/dist/react/log/index.cjs +1 -0
- package/dist/react/log/log.util.cjs +1 -0
- package/dist/{src/react → react}/log/log.util.js +4 -4
- package/dist/react/next-intl/index.cjs +1 -0
- package/dist/react/next-intl/next-intl.constant.cjs +1 -0
- package/dist/react/next-intl/next-intl.context.cjs +1 -0
- package/dist/react/next-intl/next-intl.hoc.cjs +1 -0
- package/dist/react/next-intl/next-intl.hoc.js +32 -0
- package/dist/react/next-intl/next-intl.hook.cjs +1 -0
- package/dist/react/next-intl/next-intl.provider.cjs +1 -0
- package/dist/react/next-intl/next-intl.provider.js +23 -0
- package/dist/react/storage/index.cjs +1 -0
- package/dist/react/storage/storage.hook.cjs +1 -0
- package/dist/react/storage/storage.hook.js +77 -0
- package/dist/react/storage/storage.util.cjs +1 -0
- package/dist/react/storage/storage.util.js +60 -0
- package/dist/react/toast/index.cjs +1 -0
- package/dist/react/userback/index.cjs +1 -0
- package/dist/react/userback/userback.component.cjs +1 -0
- package/dist/react/userback/userback.component.js +51 -0
- package/dist/style.css +1 -1
- package/dist/typescript/common.type.cjs +1 -0
- package/dist/typescript/index.cjs +1 -0
- package/dist/typescript/index.js +4 -0
- package/dist/util/common/common.util.cjs +1 -0
- package/dist/util/common/common.util.js +56 -0
- package/dist/util/common/index.cjs +1 -0
- package/dist/util/index.cjs +1 -0
- package/dist/util/object/index.cjs +1 -0
- package/dist/util/object/object.util.cjs +1 -0
- package/dist/util/object/object.util.js +73 -0
- package/dist/util/serializer/index.cjs +1 -0
- package/dist/util/serializer/serializer.util.cjs +1 -0
- package/dist/util/string/index.cjs +1 -0
- package/dist/util/string/string.util.cjs +1 -0
- package/dist/util/string/string.util.js +61 -0
- package/dist/util/validate/index.cjs +1 -0
- package/dist/util/validate/validate.util.cjs +1 -0
- package/package.json +103 -69
- package/dist/index-BG1UznTl.js +0 -628
- package/dist/magic-string.es-BQ9KnLz-.js +0 -659
- package/dist/src/config/config.util.js +0 -50
- package/dist/src/config/env/env.util.js +0 -29
- package/dist/src/config/eslint/index.js +0 -18
- package/dist/src/config/graphql-codegen/graphql-codegen.util.js +0 -37
- package/dist/src/config/index.js +0 -5
- package/dist/src/config/vitest/vitest.e2e.js +0 -23
- package/dist/src/config/vitest/vitest.unit.js +0 -19
- package/dist/src/config/vitest/vitest.unit.setup.js +0 -30990
- package/dist/src/constant/common.js +0 -4
- package/dist/src/node/apollo-server/apollo-server.util.js +0 -31
- package/dist/src/node/cli/index.js +0 -108
- package/dist/src/node/command/command.util.js +0 -16
- package/dist/src/node/command/index.js +0 -10
- package/dist/src/node/express/express.util.js +0 -50
- package/dist/src/node/fs/fs.util.js +0 -48
- package/dist/src/node/log/index.js +0 -8
- package/dist/src/node/log/log.util.js +0 -59
- package/dist/src/node/mongo/index.js +0 -26
- package/dist/src/node/mongo/mongo.util.js +0 -488
- package/dist/src/node/package/index.js +0 -9
- package/dist/src/node/package/package.util.js +0 -13
- package/dist/src/node/path/index.js +0 -52
- package/dist/src/node/path/path.constant.js +0 -49
- package/dist/src/node/storage/storage.util.js +0 -51
- package/dist/src/node/upload/index.js +0 -6
- package/dist/src/node/upload/upload.util.js +0 -127
- package/dist/src/react/apollo-client/apollo-client.hook.js +0 -11
- package/dist/src/react/apollo-client/apollo-client.util.js +0 -101
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.js +0 -14
- package/dist/src/react/loading/loading.component.js +0 -40
- package/dist/src/react/loading/loading.provider.js +0 -17
- package/dist/src/react/next-intl/next-intl.hoc.js +0 -23
- package/dist/src/react/next-intl/next-intl.provider.js +0 -24
- package/dist/src/react/storage/storage.hook.js +0 -61
- package/dist/src/react/storage/storage.util.js +0 -35
- package/dist/src/react/userback/userback.component.js +0 -27
- package/dist/src/typescript/style.d.js +0 -1
- package/dist/src/util/common/common.util.js +0 -48
- package/dist/src/util/object/object.util.js +0 -67
- package/dist/src/util/string/string.util.js +0 -51
- /package/dist/{src/config → config}/commitlint/index.d.ts +0 -0
- /package/dist/{src/config → config}/commitlint/index.js +0 -0
- /package/dist/{src/config → config}/config.type.d.ts +0 -0
- /package/dist/{src/config → config}/config.util.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.constant.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.constant.js +0 -0
- /package/dist/{src/config → config}/env/env.type.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.util.d.ts +0 -0
- /package/dist/{src/config → config}/env/index.d.ts +0 -0
- /package/dist/{src/config → config}/env/index.js +0 -0
- /package/dist/{src/config → config}/eslint/index.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.type.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.util.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/index.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/index.js +0 -0
- /package/dist/{src/config → config}/index.d.ts +0 -0
- /package/dist/{src/config → config}/lint-staged/index.d.ts +0 -0
- /package/dist/{src/config → config}/lint-staged/index.js +0 -0
- /package/dist/{src/config → config}/vitest/index.d.ts +0 -0
- /package/dist/{src/config → config}/vitest/index.js +0 -0
- /package/dist/{src/config → config}/vitest/vitest.e2e.d.ts +0 -0
- /package/dist/{src/config → config}/vitest/vitest.unit.d.ts +0 -0
- /package/dist/{src/constant → constant}/common.d.ts +0 -0
- /package/dist/{src/constant → constant}/index.d.ts +0 -0
- /package/dist/{src/constant → constant}/index.js +0 -0
- /package/dist/{src/constant → constant}/response-status.d.ts +0 -0
- /package/dist/{src/constant → constant}/response-status.js +0 -0
- /package/dist/{src/node → node}/apollo-server/apollo-server.type.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/apollo-server.util.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/index.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/index.js +0 -0
- /package/dist/{src/node → node}/cli/index.d.ts +0 -0
- /package/dist/{src/node → node}/command/command.type.d.ts +0 -0
- /package/dist/{src/node → node}/command/command.util.d.ts +0 -0
- /package/dist/{src/node → node}/command/index.d.ts +0 -0
- /package/dist/{src/node → node}/express/express.type.d.ts +0 -0
- /package/dist/{src/node → node}/express/express.util.d.ts +0 -0
- /package/dist/{src/node → node}/express/index.d.ts +0 -0
- /package/dist/{src/node → node}/express/index.js +0 -0
- /package/dist/{src/node → node}/fs/fs.type.d.ts +0 -0
- /package/dist/{src/node → node}/fs/fs.util.d.ts +0 -0
- /package/dist/{src/node → node}/fs/index.d.ts +0 -0
- /package/dist/{src/node → node}/fs/index.js +0 -0
- /package/dist/{src/node → node}/log/index.d.ts +0 -0
- /package/dist/{src/node → node}/log/log.type.d.ts +0 -0
- /package/dist/{src/node → node}/log/log.util.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/index.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.constant.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.constant.js +0 -0
- /package/dist/{src/node → node}/mongo/mongo.type.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.util.d.ts +0 -0
- /package/dist/{src/node → node}/package/index.d.ts +0 -0
- /package/dist/{src/node → node}/package/package.type.d.ts +0 -0
- /package/dist/{src/node → node}/package/package.util.d.ts +0 -0
- /package/dist/{src/node → node}/path/index.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.constant.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.util.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.util.js +0 -0
- /package/dist/{src/node → node}/storage/index.d.ts +0 -0
- /package/dist/{src/node → node}/storage/index.js +0 -0
- /package/dist/{src/node → node}/storage/storage.util.d.ts +0 -0
- /package/dist/{src/node → node}/upload/index.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.type.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.util.d.ts +0 -0
- /package/dist/{src/node → node}/ws/index.d.ts +0 -0
- /package/dist/{src/node → node}/ws/index.js +0 -0
- /package/dist/{src/node → node}/ws/ts.util.d.ts +0 -0
- /package/dist/{src/node → node}/ws/ts.util.js +0 -0
- /package/dist/{src/node → node}/ws/ws.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.constant.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.constant.js +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.context.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.hook.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/index.js +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.js +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.js +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/index.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.context.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.context.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.hook.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.hook.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.provider.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/index.js +0 -0
- /package/dist/{src/react → react}/i18next/i18next.hook.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/i18next.hook.js +0 -0
- /package/dist/{src/react → react}/i18next/i18next.util.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/i18next.util.js +0 -0
- /package/dist/{src/react → react}/i18next/index.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/index.js +0 -0
- /package/dist/{src/react → react}/loading/index.d.ts +0 -0
- /package/dist/{src/react → react}/loading/index.js +0 -0
- /package/dist/{src/react → react}/loading/loading.component.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.context.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.context.js +0 -0
- /package/dist/{src/react → react}/loading/loading.hook.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.hook.js +0 -0
- /package/dist/{src/react → react}/loading/loading.provider.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.type.d.ts +0 -0
- /package/dist/{src/react → react}/log/index.d.ts +0 -0
- /package/dist/{src/react → react}/log/index.js +0 -0
- /package/dist/{src/react → react}/log/log.type.d.ts +0 -0
- /package/dist/{src/react → react}/log/log.util.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/index.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/index.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.constant.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.constant.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.context.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.context.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hoc.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hook.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hook.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.provider.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.type.d.ts +0 -0
- /package/dist/{src/react → react}/storage/index.d.ts +0 -0
- /package/dist/{src/react → react}/storage/index.js +0 -0
- /package/dist/{src/react → react}/storage/storage.hook.d.ts +0 -0
- /package/dist/{src/react → react}/storage/storage.util.d.ts +0 -0
- /package/dist/{src/react → react}/toast/index.d.ts +0 -0
- /package/dist/{src/react → react}/toast/index.js +0 -0
- /package/dist/{src/react → react}/userback/index.d.ts +0 -0
- /package/dist/{src/react → react}/userback/index.js +0 -0
- /package/dist/{src/react → react}/userback/userback.component.d.ts +0 -0
- /package/dist/{src/react → react}/userback/userback.type.d.ts +0 -0
- /package/dist/{src/typescript → typescript}/common.type.d.ts +0 -0
- /package/dist/{src/typescript/index.js → typescript/common.type.js} +0 -0
- /package/dist/{src/typescript → typescript}/index.d.ts +0 -0
- /package/dist/{src/typescript → typescript}/react.type.d.ts +0 -0
- /package/dist/{src/util → util}/common/common.type.d.ts +0 -0
- /package/dist/{src/util → util}/common/common.util.d.ts +0 -0
- /package/dist/{src/util → util}/common/index.d.ts +0 -0
- /package/dist/{src/util → util}/common/index.js +0 -0
- /package/dist/{src/util → util}/index.d.ts +0 -0
- /package/dist/{src/util → util}/index.js +0 -0
- /package/dist/{src/util → util}/object/index.d.ts +0 -0
- /package/dist/{src/util → util}/object/index.js +0 -0
- /package/dist/{src/util → util}/object/object.util.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/index.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/index.js +0 -0
- /package/dist/{src/util → util}/serializer/serializer.type.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/serializer.util.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/serializer.util.js +0 -0
- /package/dist/{src/util → util}/string/index.d.ts +0 -0
- /package/dist/{src/util → util}/string/index.js +0 -0
- /package/dist/{src/util → util}/string/string.type.d.ts +0 -0
- /package/dist/{src/util → util}/string/string.util.d.ts +0 -0
- /package/dist/{src/util → util}/validate/index.d.ts +0 -0
- /package/dist/{src/util → util}/validate/index.js +0 -0
- /package/dist/{src/util → util}/validate/validate.util.d.ts +0 -0
- /package/dist/{src/util → util}/validate/validate.util.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n={Date:{is:e=>e instanceof Date,serialize:e=>({__type:"Date",value:e.toISOString()}),deserialize:e=>new Date(e)},Map:{is:e=>e instanceof Map,serialize:e=>({__type:"Map",value:Array.from(e.entries())}),deserialize:e=>new Map(e)},Set:{is:e=>e instanceof Set,serialize:e=>({__type:"Set",value:Array.from(e)}),deserialize:e=>new Set(e)},RegExp:{is:e=>e instanceof RegExp,serialize:e=>({__type:"RegExp",value:{source:e.source,flags:e.flags}}),deserialize:e=>{const{source:r,flags:i}=e;return new RegExp(r,i)}},BigInt:{is:e=>typeof e=="bigint",serialize:e=>({__type:"BigInt",value:e.toString()}),deserialize:e=>BigInt(e)}},a={serialize(e){return JSON.stringify(e,(r,i)=>{for(const s of Object.keys(n)){const t=n[s];if(t.is(i))return t.serialize(i)}return i})},deserialize(e){return JSON.parse(e,(r,i)=>{if(i&&typeof i=="object"&&"__type"in i&&typeof i.__type=="string"){const s=i.__type,t=n[s];if(t)return t.deserialize(i.value)}return i})}};exports.serializer=a;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./string.util.cjs");exports.generateRandomPassword=e.generateRandomPassword;exports.generateShortId=e.generateShortId;exports.generateSlug=e.generateSlug;exports.getFileName=e.getFileName;exports.substringBetween=e.substringBetween;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("crypto-js"),u=require("slugify"),c=require("../object/object.util.cjs");var f=Object.defineProperty,s=Object.getOwnPropertySymbols,d=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,i=(r,e,t)=>e in r?f(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,O=(r,e)=>{for(var t in e||(e={}))d.call(e,t)&&i(r,t,e[t]);if(s)for(var t of s(e))g.call(e,t)&&i(r,t,e[t]);return r};const m=u.default||u;function _(r,e){const t=n=>{var o,l;return m(n!=null?n:"",O({lower:(o=e==null?void 0:e.lower)!=null?o:!0,locale:(l=e==null?void 0:e.locale)!=null?l:"vi"},e))};if(c.isObject(r)){const n={};for(const[o,l]of Object.entries(r))n[o]=t(l);return n}return t(r)}function w(r,e=4){return a.SHA256(r).toString(a.enc.Hex).slice(0,e)}function y(r=8){const e="abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+[]{}|;:,.<>?";let t="";for(let n=0;n<r;n++){const o=Math.floor(Math.random()*e.length);t+=e.charAt(o)}return t}function p(r="",e=!1){const t=r.split(/[?#]/)[0]||"",n=t.substring(t.lastIndexOf("/")+1);if(e)return n;const o=n.lastIndexOf(".");return o>0?n.slice(0,o):n}function h(r,e,t){const n=r.indexOf(e);if(n===-1)return"";const o=n+e.length,l=r.indexOf(t,o);return l===-1?"":r.slice(o,l)}exports.generateRandomPassword=y;exports.generateShortId=w;exports.generateSlug=_;exports.getFileName=p;exports.substringBetween=h;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import a from "crypto-js";
|
|
2
|
+
import s from "slugify";
|
|
3
|
+
import { isObject as u } from "../object/object.util.js";
|
|
4
|
+
var c = Object.defineProperty, f = Object.getOwnPropertySymbols, d = Object.prototype.hasOwnProperty, m = Object.prototype.propertyIsEnumerable, i = (e, r, t) => r in e ? c(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, g = (e, r) => {
|
|
5
|
+
for (var t in r || (r = {}))
|
|
6
|
+
d.call(r, t) && i(e, t, r[t]);
|
|
7
|
+
if (f)
|
|
8
|
+
for (var t of f(r))
|
|
9
|
+
m.call(r, t) && i(e, t, r[t]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
const p = s.default || s;
|
|
13
|
+
function y(e, r) {
|
|
14
|
+
const t = (n) => {
|
|
15
|
+
var o, l;
|
|
16
|
+
return p(n != null ? n : "", g({
|
|
17
|
+
lower: (o = r == null ? void 0 : r.lower) != null ? o : !0,
|
|
18
|
+
locale: (l = r == null ? void 0 : r.locale) != null ? l : "vi"
|
|
19
|
+
}, r));
|
|
20
|
+
};
|
|
21
|
+
if (u(e)) {
|
|
22
|
+
const n = {};
|
|
23
|
+
for (const [o, l] of Object.entries(e))
|
|
24
|
+
n[o] = t(l);
|
|
25
|
+
return n;
|
|
26
|
+
}
|
|
27
|
+
return t(e);
|
|
28
|
+
}
|
|
29
|
+
function h(e, r = 4) {
|
|
30
|
+
return a.SHA256(e).toString(a.enc.Hex).slice(0, r);
|
|
31
|
+
}
|
|
32
|
+
function v(e = 8) {
|
|
33
|
+
const r = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+[]{}|;:,.<>?";
|
|
34
|
+
let t = "";
|
|
35
|
+
for (let n = 0; n < e; n++) {
|
|
36
|
+
const o = Math.floor(Math.random() * r.length);
|
|
37
|
+
t += r.charAt(o);
|
|
38
|
+
}
|
|
39
|
+
return t;
|
|
40
|
+
}
|
|
41
|
+
function x(e = "", r = !1) {
|
|
42
|
+
const t = e.split(/[?#]/)[0] || "", n = t.substring(t.lastIndexOf("/") + 1);
|
|
43
|
+
if (r)
|
|
44
|
+
return n;
|
|
45
|
+
const o = n.lastIndexOf(".");
|
|
46
|
+
return o > 0 ? n.slice(0, o) : n;
|
|
47
|
+
}
|
|
48
|
+
function P(e, r, t) {
|
|
49
|
+
const n = e.indexOf(r);
|
|
50
|
+
if (n === -1)
|
|
51
|
+
return "";
|
|
52
|
+
const o = n + r.length, l = e.indexOf(t, o);
|
|
53
|
+
return l === -1 ? "" : e.slice(o, l);
|
|
54
|
+
}
|
|
55
|
+
export {
|
|
56
|
+
v as generateRandomPassword,
|
|
57
|
+
h as generateShortId,
|
|
58
|
+
y as generateSlug,
|
|
59
|
+
x as getFileName,
|
|
60
|
+
P as substringBetween
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./validate.util.cjs");exports.validate=e.validate;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i={isEmpty(t){return t==null?!0:typeof t=="string"?t.trim().length===0:Array.isArray(t)?t.length===0:typeof t=="object"?t instanceof Date?!1:t instanceof Map||t instanceof Set?t.size===0:t instanceof WeakMap||t instanceof WeakSet?!0:ArrayBuffer.isView(t)?t.byteLength===0:Object.keys(t).length===0:!1},isValidIP(t){const r=t.split(".");return r.length===4&&r.every(e=>/^\d+$/.test(e)&&Number(e)>=0&&Number(e)<=255)?!0:/^(([a-f\d]{1,4}:){7}[a-f\d]{1,4}|((?:[a-f\d]{1,4}:){1,7}:)|((?:[a-f\d]{1,4}:){1,6}:[a-f\d]{1,4})|::)$/i.test(t)}};exports.validate=i;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cyberskill/shared",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.
|
|
4
|
+
"version": "1.211.0",
|
|
5
5
|
"description": "CyberSkill Shared",
|
|
6
6
|
"author": "Stephen Cheng",
|
|
7
7
|
"license": "MIT",
|
|
@@ -16,143 +16,177 @@
|
|
|
16
16
|
"sideEffects": false,
|
|
17
17
|
"exports": {
|
|
18
18
|
"./config": {
|
|
19
|
-
"types": "./dist/
|
|
20
|
-
"import": "./dist/
|
|
19
|
+
"types": "./dist/config/index.d.ts",
|
|
20
|
+
"import": "./dist/config/index.js",
|
|
21
|
+
"require": "./dist/config/index.cjs"
|
|
21
22
|
},
|
|
22
23
|
"./config/commitlint": {
|
|
23
|
-
"types": "./dist/
|
|
24
|
-
"import": "./dist/
|
|
24
|
+
"types": "./dist/config/commitlint/index.d.ts",
|
|
25
|
+
"import": "./dist/config/commitlint/index.js",
|
|
26
|
+
"require": "./dist/config/commitlint/index.cjs"
|
|
25
27
|
},
|
|
26
28
|
"./config/env": {
|
|
27
|
-
"types": "./dist/
|
|
28
|
-
"import": "./dist/
|
|
29
|
+
"types": "./dist/config/env/index.d.ts",
|
|
30
|
+
"import": "./dist/config/env/index.js",
|
|
31
|
+
"require": "./dist/config/env/index.cjs"
|
|
29
32
|
},
|
|
30
33
|
"./config/eslint": {
|
|
31
|
-
"types": "./dist/
|
|
32
|
-
"import": "./dist/
|
|
34
|
+
"types": "./dist/config/eslint/index.d.ts",
|
|
35
|
+
"import": "./dist/config/eslint/index.js",
|
|
36
|
+
"require": "./dist/config/eslint/index.cjs"
|
|
33
37
|
},
|
|
34
38
|
"./config/graphql-codegen": {
|
|
35
|
-
"types": "./dist/
|
|
36
|
-
"import": "./dist/
|
|
39
|
+
"types": "./dist/config/graphql-codegen/index.d.ts",
|
|
40
|
+
"import": "./dist/config/graphql-codegen/index.js",
|
|
41
|
+
"require": "./dist/config/graphql-codegen/index.cjs"
|
|
37
42
|
},
|
|
38
43
|
"./config/lint-staged": {
|
|
39
|
-
"types": "./dist/
|
|
40
|
-
"import": "./dist/
|
|
44
|
+
"types": "./dist/config/lint-staged/index.d.ts",
|
|
45
|
+
"import": "./dist/config/lint-staged/index.js",
|
|
46
|
+
"require": "./dist/config/lint-staged/index.cjs"
|
|
41
47
|
},
|
|
42
48
|
"./config/vitest": {
|
|
43
|
-
"types": "./dist/
|
|
44
|
-
"import": "./dist/
|
|
49
|
+
"types": "./dist/config/vitest/index.d.ts",
|
|
50
|
+
"import": "./dist/config/vitest/index.js",
|
|
51
|
+
"require": "./dist/config/vitest/index.cjs"
|
|
45
52
|
},
|
|
46
53
|
"./constant": {
|
|
47
|
-
"types": "./dist/
|
|
48
|
-
"import": "./dist/
|
|
54
|
+
"types": "./dist/constant/index.d.ts",
|
|
55
|
+
"import": "./dist/constant/index.js",
|
|
56
|
+
"require": "./dist/constant/index.cjs"
|
|
49
57
|
},
|
|
50
58
|
"./node/apollo-server": {
|
|
51
|
-
"types": "./dist/
|
|
52
|
-
"import": "./dist/
|
|
59
|
+
"types": "./dist/node/apollo-server/index.d.ts",
|
|
60
|
+
"import": "./dist/node/apollo-server/index.js",
|
|
61
|
+
"require": "./dist/node/apollo-server/index.cjs"
|
|
53
62
|
},
|
|
54
63
|
"./node/cli": {
|
|
55
|
-
"types": "./dist/
|
|
56
|
-
"import": "./dist/
|
|
64
|
+
"types": "./dist/node/cli/index.d.ts",
|
|
65
|
+
"import": "./dist/node/cli/index.js",
|
|
66
|
+
"require": "./dist/node/cli/index.cjs"
|
|
57
67
|
},
|
|
58
68
|
"./node/command": {
|
|
59
|
-
"types": "./dist/
|
|
60
|
-
"import": "./dist/
|
|
69
|
+
"types": "./dist/node/command/index.d.ts",
|
|
70
|
+
"import": "./dist/node/command/index.js",
|
|
71
|
+
"require": "./dist/node/command/index.cjs"
|
|
61
72
|
},
|
|
62
73
|
"./node/express": {
|
|
63
|
-
"types": "./dist/
|
|
64
|
-
"import": "./dist/
|
|
74
|
+
"types": "./dist/node/express/index.d.ts",
|
|
75
|
+
"import": "./dist/node/express/index.js",
|
|
76
|
+
"require": "./dist/node/express/index.cjs"
|
|
65
77
|
},
|
|
66
78
|
"./node/fs": {
|
|
67
|
-
"types": "./dist/
|
|
68
|
-
"import": "./dist/
|
|
79
|
+
"types": "./dist/node/fs/index.d.ts",
|
|
80
|
+
"import": "./dist/node/fs/index.js",
|
|
81
|
+
"require": "./dist/node/fs/index.cjs"
|
|
69
82
|
},
|
|
70
83
|
"./node/log": {
|
|
71
|
-
"types": "./dist/
|
|
72
|
-
"import": "./dist/
|
|
84
|
+
"types": "./dist/node/log/index.d.ts",
|
|
85
|
+
"import": "./dist/node/log/index.js",
|
|
86
|
+
"require": "./dist/node/log/index.cjs"
|
|
73
87
|
},
|
|
74
88
|
"./node/mongo": {
|
|
75
|
-
"types": "./dist/
|
|
76
|
-
"import": "./dist/
|
|
89
|
+
"types": "./dist/node/mongo/index.d.ts",
|
|
90
|
+
"import": "./dist/node/mongo/index.js",
|
|
91
|
+
"require": "./dist/node/mongo/index.cjs"
|
|
77
92
|
},
|
|
78
93
|
"./node/package": {
|
|
79
|
-
"types": "./dist/
|
|
80
|
-
"import": "./dist/
|
|
94
|
+
"types": "./dist/node/package/index.d.ts",
|
|
95
|
+
"import": "./dist/node/package/index.js",
|
|
96
|
+
"require": "./dist/node/package/index.cjs"
|
|
81
97
|
},
|
|
82
98
|
"./node/path": {
|
|
83
|
-
"types": "./dist/
|
|
84
|
-
"import": "./dist/
|
|
99
|
+
"types": "./dist/node/path/index.d.ts",
|
|
100
|
+
"import": "./dist/node/path/index.js",
|
|
101
|
+
"require": "./dist/node/path/index.cjs"
|
|
85
102
|
},
|
|
86
103
|
"./node/storage": {
|
|
87
|
-
"types": "./dist/
|
|
88
|
-
"import": "./dist/
|
|
104
|
+
"types": "./dist/node/storage/index.d.ts",
|
|
105
|
+
"import": "./dist/node/storage/index.js",
|
|
106
|
+
"require": "./dist/node/storage/index.cjs"
|
|
89
107
|
},
|
|
90
108
|
"./node/upload": {
|
|
91
|
-
"types": "./dist/
|
|
92
|
-
"import": "./dist/
|
|
109
|
+
"types": "./dist/node/upload/index.d.ts",
|
|
110
|
+
"import": "./dist/node/upload/index.js",
|
|
111
|
+
"require": "./dist/node/upload/index.cjs"
|
|
93
112
|
},
|
|
94
113
|
"./node/ws": {
|
|
95
|
-
"types": "./dist/
|
|
96
|
-
"import": "./dist/
|
|
114
|
+
"types": "./dist/node/ws/index.d.ts",
|
|
115
|
+
"import": "./dist/node/ws/index.js",
|
|
116
|
+
"require": "./dist/node/ws/index.cjs"
|
|
97
117
|
},
|
|
98
118
|
"./react/apollo-client": {
|
|
99
|
-
"types": "./dist/
|
|
100
|
-
"import": "./dist/
|
|
119
|
+
"types": "./dist/react/apollo-client/index.d.ts",
|
|
120
|
+
"import": "./dist/react/apollo-client/index.js",
|
|
121
|
+
"require": "./dist/react/apollo-client/index.cjs"
|
|
101
122
|
},
|
|
102
123
|
"./react/apollo-client-nextjs": {
|
|
103
|
-
"types": "./dist/
|
|
104
|
-
"import": "./dist/
|
|
124
|
+
"types": "./dist/react/apollo-client-nextjs/index.d.ts",
|
|
125
|
+
"import": "./dist/react/apollo-client-nextjs/index.js",
|
|
126
|
+
"require": "./dist/react/apollo-client-nextjs/index.cjs"
|
|
105
127
|
},
|
|
106
128
|
"./react/apollo-client-nextjs/rsc": {
|
|
107
|
-
"types": "./dist/
|
|
108
|
-
"import": "./dist/
|
|
129
|
+
"types": "./dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts",
|
|
130
|
+
"import": "./dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.js",
|
|
131
|
+
"require": "./dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs"
|
|
109
132
|
},
|
|
110
133
|
"./react/apollo-error": {
|
|
111
|
-
"types": "./dist/
|
|
112
|
-
"import": "./dist/
|
|
134
|
+
"types": "./dist/react/apollo-error/index.d.ts",
|
|
135
|
+
"import": "./dist/react/apollo-error/index.js",
|
|
136
|
+
"require": "./dist/react/apollo-error/index.cjs"
|
|
113
137
|
},
|
|
114
138
|
"./react/i18next": {
|
|
115
|
-
"types": "./dist/
|
|
116
|
-
"import": "./dist/
|
|
139
|
+
"types": "./dist/react/i18next/index.d.ts",
|
|
140
|
+
"import": "./dist/react/i18next/index.js",
|
|
141
|
+
"require": "./dist/react/i18next/index.cjs"
|
|
117
142
|
},
|
|
118
143
|
"./react/loading": {
|
|
119
|
-
"types": "./dist/
|
|
120
|
-
"import": "./dist/
|
|
144
|
+
"types": "./dist/react/loading/index.d.ts",
|
|
145
|
+
"import": "./dist/react/loading/index.js",
|
|
146
|
+
"require": "./dist/react/loading/index.cjs"
|
|
121
147
|
},
|
|
122
148
|
"./react/log": {
|
|
123
|
-
"types": "./dist/
|
|
124
|
-
"import": "./dist/
|
|
149
|
+
"types": "./dist/react/log/index.d.ts",
|
|
150
|
+
"import": "./dist/react/log/index.js",
|
|
151
|
+
"require": "./dist/react/log/index.cjs"
|
|
125
152
|
},
|
|
126
153
|
"./react/next-intl": {
|
|
127
|
-
"types": "./dist/
|
|
128
|
-
"import": "./dist/
|
|
154
|
+
"types": "./dist/react/next-intl/index.d.ts",
|
|
155
|
+
"import": "./dist/react/next-intl/index.js",
|
|
156
|
+
"require": "./dist/react/next-intl/index.cjs"
|
|
129
157
|
},
|
|
130
158
|
"./react/storage": {
|
|
131
|
-
"types": "./dist/
|
|
132
|
-
"import": "./dist/
|
|
159
|
+
"types": "./dist/react/storage/index.d.ts",
|
|
160
|
+
"import": "./dist/react/storage/index.js",
|
|
161
|
+
"require": "./dist/react/storage/index.cjs"
|
|
133
162
|
},
|
|
134
163
|
"./react/toast": {
|
|
135
|
-
"types": "./dist/
|
|
136
|
-
"import": "./dist/
|
|
164
|
+
"types": "./dist/react/toast/index.d.ts",
|
|
165
|
+
"import": "./dist/react/toast/index.js",
|
|
166
|
+
"require": "./dist/react/toast/index.cjs"
|
|
137
167
|
},
|
|
138
168
|
"./react/userback": {
|
|
139
|
-
"types": "./dist/
|
|
140
|
-
"import": "./dist/
|
|
169
|
+
"types": "./dist/react/userback/index.d.ts",
|
|
170
|
+
"import": "./dist/react/userback/index.js",
|
|
171
|
+
"require": "./dist/react/userback/index.cjs"
|
|
141
172
|
},
|
|
142
173
|
"./typescript": {
|
|
143
|
-
"types": "./dist/
|
|
144
|
-
"import": "./dist/
|
|
174
|
+
"types": "./dist/typescript/index.d.ts",
|
|
175
|
+
"import": "./dist/typescript/index.js",
|
|
176
|
+
"require": "./dist/typescript/index.cjs"
|
|
145
177
|
},
|
|
146
178
|
"./util": {
|
|
147
|
-
"types": "./dist/
|
|
148
|
-
"import": "./dist/
|
|
179
|
+
"types": "./dist/util/index.d.ts",
|
|
180
|
+
"import": "./dist/util/index.js",
|
|
181
|
+
"require": "./dist/util/index.cjs"
|
|
149
182
|
},
|
|
150
183
|
"./style.css": {
|
|
151
|
-
"import": "./dist/style.css"
|
|
184
|
+
"import": "./dist/style.css",
|
|
185
|
+
"require": "./dist/style.css"
|
|
152
186
|
}
|
|
153
187
|
},
|
|
154
188
|
"bin": {
|
|
155
|
-
"cyberskill": "dist/
|
|
189
|
+
"cyberskill": "dist/node/cli/index.js"
|
|
156
190
|
},
|
|
157
191
|
"files": [
|
|
158
192
|
"dist",
|