@cyberskill/shared 1.199.0 → 1.201.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 +2 -0
- package/dist/config-B7WSlzSh.js +8 -0
- package/dist/config-DDQ9k8fw.cjs +1 -0
- package/dist/favicon/android-icon-144x144.png +0 -0
- package/dist/favicon/android-icon-192x192.png +0 -0
- package/dist/favicon/android-icon-36x36.png +0 -0
- package/dist/favicon/android-icon-48x48.png +0 -0
- package/dist/favicon/android-icon-72x72.png +0 -0
- package/dist/favicon/android-icon-96x96.png +0 -0
- package/dist/favicon/apple-icon-114x114.png +0 -0
- package/dist/favicon/apple-icon-120x120.png +0 -0
- package/dist/favicon/apple-icon-144x144.png +0 -0
- package/dist/favicon/apple-icon-152x152.png +0 -0
- package/dist/favicon/apple-icon-180x180.png +0 -0
- package/dist/favicon/apple-icon-57x57.png +0 -0
- package/dist/favicon/apple-icon-60x60.png +0 -0
- package/dist/favicon/apple-icon-72x72.png +0 -0
- package/dist/favicon/apple-icon-76x76.png +0 -0
- package/dist/favicon/apple-icon-precomposed.png +0 -0
- package/dist/favicon/apple-icon.png +0 -0
- package/dist/favicon/browserconfig.xml +2 -0
- package/dist/favicon/favicon-16x16.png +0 -0
- package/dist/favicon/favicon-32x32.png +0 -0
- package/dist/favicon/favicon-96x96.png +0 -0
- package/dist/favicon/favicon.ico +0 -0
- package/dist/favicon/manifest.json +41 -0
- package/dist/favicon/ms-icon-144x144.png +0 -0
- package/dist/favicon/ms-icon-150x150.png +0 -0
- package/dist/favicon/ms-icon-310x310.png +0 -0
- package/dist/favicon/ms-icon-70x70.png +0 -0
- package/dist/magic-string.es-CyLHbrL2.js +871 -0
- package/dist/magic-string.es-hjygV5wN.cjs +10 -0
- package/dist/path.constant-CFKXX6cG.js +682 -0
- package/dist/path.constant-Y6ImOuVK.cjs +2 -0
- package/dist/src/config/commitlint/index.cjs +1 -0
- package/dist/src/config/commitlint/index.d.ts +5 -0
- package/dist/src/config/commitlint/index.js +9 -0
- package/dist/src/config/config.type.cjs +1 -0
- package/dist/src/config/config.type.d.ts +10 -0
- package/dist/src/config/config.type.js +4 -0
- package/dist/src/config/config.util.cjs +1 -0
- package/dist/src/config/config.util.d.ts +3 -0
- package/dist/src/config/config.util.js +60 -0
- package/dist/src/config/env/env.constant.cjs +1 -0
- package/dist/src/config/env/env.constant.d.ts +1 -0
- package/dist/src/config/env/env.constant.js +4 -0
- package/dist/src/config/env/env.d.cjs +1 -0
- package/dist/src/config/env/env.d.js +1 -0
- package/dist/src/config/env/env.type.cjs +1 -0
- package/dist/src/config/env/env.type.d.ts +5 -0
- package/dist/src/config/env/env.type.js +1 -0
- package/dist/src/config/env/env.util.cjs +1 -0
- package/dist/src/config/env/env.util.d.ts +3 -0
- package/dist/src/config/env/env.util.js +28 -0
- package/dist/src/config/env/index.cjs +1 -0
- package/dist/src/config/env/index.d.ts +3 -0
- package/dist/src/config/env/index.js +7 -0
- package/dist/src/config/eslint/index.cjs +1 -0
- package/dist/src/config/eslint/index.d.ts +1172 -0
- package/dist/src/config/eslint/index.js +29 -0
- package/dist/src/config/graphql-codegen/graphql-codegen.type.cjs +1 -0
- package/dist/src/config/graphql-codegen/graphql-codegen.type.d.ts +6 -0
- package/dist/src/config/graphql-codegen/graphql-codegen.type.js +1 -0
- package/dist/src/config/graphql-codegen/graphql-codegen.util.cjs +1 -0
- package/dist/src/config/graphql-codegen/graphql-codegen.util.d.ts +3 -0
- package/dist/src/config/graphql-codegen/graphql-codegen.util.js +46 -0
- package/dist/src/config/graphql-codegen/index.cjs +1 -0
- package/dist/src/config/graphql-codegen/index.d.ts +2 -0
- package/dist/src/config/graphql-codegen/index.js +4 -0
- package/dist/src/config/index.cjs +1 -0
- package/dist/src/config/index.d.ts +2 -0
- package/dist/src/config/index.js +6 -0
- package/dist/src/config/lint-staged/index.cjs +1 -0
- package/dist/src/config/lint-staged/index.d.ts +5 -0
- package/dist/src/config/lint-staged/index.js +7 -0
- package/dist/src/config/vitest/index.cjs +1 -0
- package/dist/src/config/vitest/index.d.ts +2 -0
- package/dist/src/config/vitest/index.js +6 -0
- package/dist/src/config/vitest/vitest.e2e.cjs +1 -0
- package/dist/src/config/vitest/vitest.e2e.d.ts +2 -0
- package/dist/src/config/vitest/vitest.e2e.js +33 -0
- package/dist/src/config/vitest/vitest.unit.cjs +1 -0
- package/dist/src/config/vitest/vitest.unit.d.ts +2 -0
- package/dist/src/config/vitest/vitest.unit.js +30 -0
- package/dist/src/config/vitest/vitest.unit.setup.cjs +508 -0
- package/dist/src/config/vitest/vitest.unit.setup.js +31519 -0
- package/dist/src/constant/common.cjs +1 -0
- package/dist/src/constant/common.d.ts +1 -0
- package/dist/src/constant/common.js +4 -0
- package/dist/src/constant/index.cjs +1 -0
- package/dist/src/constant/index.d.ts +2 -0
- package/dist/src/constant/index.js +6 -0
- package/dist/src/constant/response-status.cjs +1 -0
- package/dist/src/constant/response-status.d.ts +250 -0
- package/dist/src/constant/response-status.js +253 -0
- package/dist/src/node/apollo-server/apollo-server.type.cjs +1 -0
- package/dist/src/node/apollo-server/apollo-server.type.d.ts +8 -0
- package/dist/src/node/apollo-server/apollo-server.type.js +1 -0
- package/dist/src/node/apollo-server/apollo-server.util.cjs +1 -0
- package/dist/src/node/apollo-server/apollo-server.util.d.ts +5 -0
- package/dist/src/node/apollo-server/apollo-server.util.js +62 -0
- package/dist/src/node/apollo-server/index.cjs +1 -0
- package/dist/src/node/apollo-server/index.d.ts +2 -0
- package/dist/src/node/apollo-server/index.js +6 -0
- package/dist/src/node/cli/cli.util.cjs +6 -0
- package/dist/src/node/cli/cli.util.d.ts +2 -0
- package/dist/src/node/cli/cli.util.js +171 -0
- package/dist/src/node/cli/index.cjs +1 -0
- package/dist/src/node/cli/index.d.ts +1 -0
- package/dist/src/node/cli/index.js +1 -0
- package/dist/src/node/command/command.type.cjs +1 -0
- package/dist/src/node/command/command.type.d.ts +26 -0
- package/dist/src/node/command/command.type.js +4 -0
- package/dist/src/node/command/command.util.cjs +1 -0
- package/dist/src/node/command/command.util.d.ts +13 -0
- package/dist/src/node/command/command.util.js +17 -0
- package/dist/src/node/command/index.cjs +1 -0
- package/dist/src/node/command/index.d.ts +2 -0
- package/dist/src/node/command/index.js +11 -0
- package/dist/src/node/express/express.type.cjs +1 -0
- package/dist/src/node/express/express.type.d.ts +24 -0
- package/dist/src/node/express/express.type.js +4 -0
- package/dist/src/node/express/express.util.cjs +1 -0
- package/dist/src/node/express/express.util.d.ts +19 -0
- package/dist/src/node/express/express.util.js +87 -0
- package/dist/src/node/express/index.cjs +1 -0
- package/dist/src/node/express/index.d.ts +2 -0
- package/dist/src/node/express/index.js +13 -0
- package/dist/src/node/fs/fs.type.cjs +1 -0
- package/dist/src/node/fs/fs.type.d.ts +4 -0
- package/dist/src/node/fs/fs.type.js +1 -0
- package/dist/src/node/fs/fs.util.cjs +1 -0
- package/dist/src/node/fs/fs.util.d.ts +10 -0
- package/dist/src/node/fs/fs.util.js +67 -0
- package/dist/src/node/fs/index.cjs +1 -0
- package/dist/src/node/fs/index.d.ts +2 -0
- package/dist/src/node/fs/index.js +17 -0
- package/dist/src/node/log/index.cjs +1 -0
- package/dist/src/node/log/index.d.ts +2 -0
- package/dist/src/node/log/index.js +8 -0
- package/dist/src/node/log/log.type.cjs +1 -0
- package/dist/src/node/log/log.type.d.ts +28 -0
- package/dist/src/node/log/log.type.js +4 -0
- package/dist/src/node/log/log.util.cjs +1 -0
- package/dist/src/node/log/log.util.d.ts +8 -0
- package/dist/src/node/log/log.util.js +60 -0
- package/dist/src/node/mongo/index.cjs +1 -0
- package/dist/src/node/mongo/index.d.ts +3 -0
- package/dist/src/node/mongo/index.js +17 -0
- package/dist/src/node/mongo/mongo.constant.cjs +1 -0
- package/dist/src/node/mongo/mongo.constant.d.ts +1 -0
- package/dist/src/node/mongo/mongo.constant.js +4 -0
- package/dist/src/node/mongo/mongo.type.cjs +1 -0
- package/dist/src/node/mongo/mongo.type.d.ts +156 -0
- package/dist/src/node/mongo/mongo.type.js +16 -0
- package/dist/src/node/mongo/mongo.util.cjs +5 -0
- package/dist/src/node/mongo/mongo.util.d.ts +236 -0
- package/dist/src/node/mongo/mongo.util.js +571 -0
- package/dist/src/node/package/index.cjs +1 -0
- package/dist/src/node/package/index.d.ts +2 -0
- package/dist/src/node/package/index.js +10 -0
- package/dist/src/node/package/package.type.cjs +1 -0
- package/dist/src/node/package/package.type.d.ts +30 -0
- package/dist/src/node/package/package.type.js +4 -0
- package/dist/src/node/package/package.util.cjs +1 -0
- package/dist/src/node/package/package.util.d.ts +11 -0
- package/dist/src/node/package/package.util.js +14 -0
- package/dist/src/node/path/index.cjs +1 -0
- package/dist/src/node/path/index.d.ts +2 -0
- package/dist/src/node/path/index.js +53 -0
- package/dist/src/node/path/path.constant.cjs +1 -0
- package/dist/src/node/path/path.constant.d.ts +92 -0
- package/dist/src/node/path/path.constant.js +52 -0
- package/dist/src/node/path/path.util.cjs +1 -0
- package/dist/src/node/path/path.util.d.ts +6 -0
- package/dist/src/node/path/path.util.js +19 -0
- package/dist/src/node/storage/index.cjs +1 -0
- package/dist/src/node/storage/index.d.ts +1 -0
- package/dist/src/node/storage/index.js +4 -0
- package/dist/src/node/storage/storage.util.cjs +1 -0
- package/dist/src/node/storage/storage.util.d.ts +7 -0
- package/dist/src/node/storage/storage.util.js +81 -0
- package/dist/src/node/upload/index.cjs +1 -0
- package/dist/src/node/upload/index.d.ts +2 -0
- package/dist/src/node/upload/index.js +7 -0
- package/dist/src/node/upload/upload.type.cjs +1 -0
- package/dist/src/node/upload/upload.type.d.ts +36 -0
- package/dist/src/node/upload/upload.type.js +4 -0
- package/dist/src/node/upload/upload.util.cjs +1 -0
- package/dist/src/node/upload/upload.util.d.ts +3 -0
- package/dist/src/node/upload/upload.util.js +159 -0
- package/dist/src/node/ws/index.cjs +1 -0
- package/dist/src/node/ws/index.d.ts +2 -0
- package/dist/src/node/ws/index.js +5 -0
- package/dist/src/node/ws/ts.util.cjs +1 -0
- package/dist/src/node/ws/ts.util.d.ts +4 -0
- package/dist/src/node/ws/ts.util.js +15 -0
- package/dist/src/node/ws/ws.type.cjs +1 -0
- package/dist/src/node/ws/ws.type.d.ts +11 -0
- package/dist/src/node/ws/ws.type.js +1 -0
- package/dist/src/react/apollo-client/apollo-client.component.cjs +1 -0
- package/dist/src/react/apollo-client/apollo-client.component.d.ts +3 -0
- package/dist/src/react/apollo-client/apollo-client.component.js +21 -0
- package/dist/src/react/apollo-client/apollo-client.constant.cjs +1 -0
- package/dist/src/react/apollo-client/apollo-client.constant.d.ts +1 -0
- package/dist/src/react/apollo-client/apollo-client.constant.js +4 -0
- package/dist/src/react/apollo-client/apollo-client.context.cjs +1 -0
- package/dist/src/react/apollo-client/apollo-client.context.d.ts +8 -0
- package/dist/src/react/apollo-client/apollo-client.context.js +12 -0
- package/dist/src/react/apollo-client/apollo-client.hook.cjs +1 -0
- package/dist/src/react/apollo-client/apollo-client.hook.d.ts +2 -0
- package/dist/src/react/apollo-client/apollo-client.hook.js +11 -0
- package/dist/src/react/apollo-client/apollo-client.type.cjs +1 -0
- package/dist/src/react/apollo-client/apollo-client.type.d.ts +12 -0
- package/dist/src/react/apollo-client/apollo-client.type.js +1 -0
- package/dist/src/react/apollo-client/apollo-client.util.cjs +1 -0
- package/dist/src/react/apollo-client/apollo-client.util.d.ts +11 -0
- package/dist/src/react/apollo-client/apollo-client.util.js +113 -0
- package/dist/src/react/apollo-client/index.cjs +1 -0
- package/dist/src/react/apollo-client/index.d.ts +8 -0
- package/dist/src/react/apollo-client/index.js +30 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client.component.cjs +1 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client.component.d.ts +3 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client.component.js +33 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client.util.cjs +1 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client.util.d.ts +3 -0
- package/dist/src/react/apollo-client-nextjs/apollo-client.util.js +31 -0
- package/dist/src/react/apollo-client-nextjs/index.cjs +1 -0
- package/dist/src/react/apollo-client-nextjs/index.d.ts +2 -0
- package/dist/src/react/apollo-client-nextjs/index.js +6 -0
- package/dist/src/react/apollo-error/apollo-error.component.cjs +1 -0
- package/dist/src/react/apollo-error/apollo-error.component.d.ts +2 -0
- package/dist/src/react/apollo-error/apollo-error.component.js +36 -0
- package/dist/src/react/apollo-error/apollo-error.context.cjs +1 -0
- package/dist/src/react/apollo-error/apollo-error.context.d.ts +2 -0
- package/dist/src/react/apollo-error/apollo-error.context.js +5 -0
- package/dist/src/react/apollo-error/apollo-error.hook.cjs +1 -0
- package/dist/src/react/apollo-error/apollo-error.hook.d.ts +1 -0
- package/dist/src/react/apollo-error/apollo-error.hook.js +11 -0
- package/dist/src/react/apollo-error/apollo-error.provider.cjs +1 -0
- package/dist/src/react/apollo-error/apollo-error.provider.d.ts +4 -0
- package/dist/src/react/apollo-error/apollo-error.provider.js +18 -0
- package/dist/src/react/apollo-error/apollo-error.type.cjs +1 -0
- package/dist/src/react/apollo-error/apollo-error.type.d.ts +7 -0
- package/dist/src/react/apollo-error/apollo-error.type.js +1 -0
- package/dist/src/react/apollo-error/apollo-error.util.cjs +1 -0
- package/dist/src/react/apollo-error/apollo-error.util.d.ts +3 -0
- package/dist/src/react/apollo-error/apollo-error.util.js +11 -0
- package/dist/src/react/apollo-error/index.cjs +1 -0
- package/dist/src/react/apollo-error/index.d.ts +6 -0
- package/dist/src/react/apollo-error/index.js +13 -0
- package/dist/src/react/i18next/i18next.hook.cjs +1 -0
- package/dist/src/react/i18next/i18next.hook.d.ts +2 -0
- package/dist/src/react/i18next/i18next.hook.js +5 -0
- package/dist/src/react/i18next/i18next.util.cjs +1 -0
- package/dist/src/react/i18next/i18next.util.d.ts +2 -0
- package/dist/src/react/i18next/i18next.util.js +8 -0
- package/dist/src/react/i18next/index.cjs +1 -0
- package/dist/src/react/i18next/index.d.ts +2 -0
- package/dist/src/react/i18next/index.js +6 -0
- package/dist/src/react/loading/index.cjs +1 -0
- package/dist/src/react/loading/index.d.ts +5 -0
- package/dist/src/react/loading/index.js +10 -0
- package/dist/src/react/loading/loading.component.cjs +6 -0
- package/dist/src/react/loading/loading.component.d.ts +3 -0
- package/dist/src/react/loading/loading.component.js +61 -0
- package/dist/src/react/loading/loading.context.cjs +1 -0
- package/dist/src/react/loading/loading.context.d.ts +2 -0
- package/dist/src/react/loading/loading.context.js +5 -0
- package/dist/src/react/loading/loading.hook.cjs +1 -0
- package/dist/src/react/loading/loading.hook.d.ts +1 -0
- package/dist/src/react/loading/loading.hook.js +11 -0
- package/dist/src/react/loading/loading.provider.cjs +1 -0
- package/dist/src/react/loading/loading.provider.d.ts +3 -0
- package/dist/src/react/loading/loading.provider.js +17 -0
- package/dist/src/react/loading/loading.type.cjs +1 -0
- package/dist/src/react/loading/loading.type.d.ts +12 -0
- package/dist/src/react/loading/loading.type.js +1 -0
- package/dist/src/react/log/index.cjs +1 -0
- package/dist/src/react/log/index.d.ts +2 -0
- package/dist/src/react/log/index.js +5 -0
- package/dist/src/react/log/log.type.cjs +1 -0
- package/dist/src/react/log/log.type.d.ts +5 -0
- package/dist/src/react/log/log.type.js +1 -0
- package/dist/src/react/log/log.util.cjs +1 -0
- package/dist/src/react/log/log.util.d.ts +7 -0
- package/dist/src/react/log/log.util.js +30 -0
- package/dist/src/react/next-intl/index.cjs +1 -0
- package/dist/src/react/next-intl/index.d.ts +6 -0
- package/dist/src/react/next-intl/index.js +13 -0
- package/dist/src/react/next-intl/next-intl.constant.cjs +1 -0
- package/dist/src/react/next-intl/next-intl.constant.d.ts +12 -0
- package/dist/src/react/next-intl/next-intl.constant.js +16 -0
- package/dist/src/react/next-intl/next-intl.context.cjs +1 -0
- package/dist/src/react/next-intl/next-intl.context.d.ts +2 -0
- package/dist/src/react/next-intl/next-intl.context.js +5 -0
- package/dist/src/react/next-intl/next-intl.hoc.cjs +1 -0
- package/dist/src/react/next-intl/next-intl.hoc.d.ts +10 -0
- package/dist/src/react/next-intl/next-intl.hoc.js +35 -0
- package/dist/src/react/next-intl/next-intl.hook.cjs +1 -0
- package/dist/src/react/next-intl/next-intl.hook.d.ts +4 -0
- package/dist/src/react/next-intl/next-intl.hook.js +14 -0
- package/dist/src/react/next-intl/next-intl.provider.cjs +1 -0
- package/dist/src/react/next-intl/next-intl.provider.d.ts +3 -0
- package/dist/src/react/next-intl/next-intl.provider.js +25 -0
- package/dist/src/react/next-intl/next-intl.type.cjs +1 -0
- package/dist/src/react/next-intl/next-intl.type.d.ts +25 -0
- package/dist/src/react/next-intl/next-intl.type.js +1 -0
- package/dist/src/react/storage/index.cjs +1 -0
- package/dist/src/react/storage/index.d.ts +2 -0
- package/dist/src/react/storage/index.js +6 -0
- package/dist/src/react/storage/storage.hook.cjs +1 -0
- package/dist/src/react/storage/storage.hook.d.ts +6 -0
- package/dist/src/react/storage/storage.hook.js +77 -0
- package/dist/src/react/storage/storage.util.cjs +1 -0
- package/dist/src/react/storage/storage.util.d.ts +6 -0
- package/dist/src/react/storage/storage.util.js +60 -0
- package/dist/src/react/toast/index.cjs +1 -0
- package/dist/src/react/toast/index.d.ts +1 -0
- package/dist/src/react/toast/index.js +5 -0
- package/dist/src/react/userback/index.cjs +1 -0
- package/dist/src/react/userback/index.d.ts +2 -0
- package/dist/src/react/userback/index.js +4 -0
- package/dist/src/react/userback/userback.component.cjs +1 -0
- package/dist/src/react/userback/userback.component.d.ts +2 -0
- package/dist/src/react/userback/userback.component.js +54 -0
- package/dist/src/react/userback/userback.type.cjs +1 -0
- package/dist/src/react/userback/userback.type.d.ts +8 -0
- package/dist/src/react/userback/userback.type.js +1 -0
- package/dist/src/typescript/common.cjs +1 -0
- package/dist/src/typescript/common.d.ts +35 -0
- package/dist/src/typescript/common.js +4 -0
- package/dist/src/typescript/index.cjs +1 -0
- package/dist/src/typescript/index.d.ts +2 -0
- package/dist/src/typescript/index.js +4 -0
- package/dist/src/typescript/react.cjs +1 -0
- package/dist/src/typescript/react.d.ts +5 -0
- package/dist/src/typescript/react.js +1 -0
- package/dist/src/typescript/style.d.cjs +1 -0
- package/dist/src/typescript/style.d.js +1 -0
- package/dist/src/util/common/common.type.cjs +1 -0
- package/dist/src/util/common/common.type.d.ts +9 -0
- package/dist/src/util/common/common.type.js +1 -0
- package/dist/src/util/common/common.util.cjs +1 -0
- package/dist/src/util/common/common.util.d.ts +26 -0
- package/dist/src/util/common/common.util.js +59 -0
- package/dist/src/util/common/index.cjs +1 -0
- package/dist/src/util/common/index.d.ts +2 -0
- package/dist/src/util/common/index.js +7 -0
- package/dist/src/util/index.cjs +1 -0
- package/dist/src/util/index.d.ts +5 -0
- package/dist/src/util/index.js +24 -0
- package/dist/src/util/object/index.cjs +1 -0
- package/dist/src/util/object/index.d.ts +1 -0
- package/dist/src/util/object/index.js +9 -0
- package/dist/src/util/object/object.util.cjs +1 -0
- package/dist/src/util/object/object.util.d.ts +46 -0
- package/dist/src/util/object/object.util.js +77 -0
- package/dist/src/util/serializer/index.cjs +1 -0
- package/dist/src/util/serializer/index.d.ts +2 -0
- package/dist/src/util/serializer/index.js +4 -0
- package/dist/src/util/serializer/serializer.type.cjs +1 -0
- package/dist/src/util/serializer/serializer.type.d.ts +16 -0
- package/dist/src/util/serializer/serializer.type.js +1 -0
- package/dist/src/util/serializer/serializer.util.cjs +1 -0
- package/dist/src/util/serializer/serializer.util.d.ts +2 -0
- package/dist/src/util/serializer/serializer.util.js +75 -0
- package/dist/src/util/string/index.cjs +1 -0
- package/dist/src/util/string/index.d.ts +2 -0
- package/dist/src/util/string/index.js +8 -0
- package/dist/src/util/string/string.type.cjs +1 -0
- package/dist/src/util/string/string.type.d.ts +8 -0
- package/dist/src/util/string/string.type.js +1 -0
- package/dist/src/util/string/string.util.cjs +1 -0
- package/dist/src/util/string/string.util.d.ts +39 -0
- package/dist/src/util/string/string.util.js +64 -0
- package/dist/src/util/validate/index.cjs +1 -0
- package/dist/src/util/validate/index.d.ts +1 -0
- package/dist/src/util/validate/index.js +4 -0
- package/dist/src/util/validate/validate.util.cjs +1 -0
- package/dist/src/util/validate/validate.util.d.ts +27 -0
- package/dist/src/util/validate/validate.util.js +37 -0
- package/dist/style.css +1 -0
- package/dist/tsconfig.base.json +37 -0
- package/package.json +108 -144
- package/dist/_tsup-dts-rollup.d.cts +0 -3848
- package/dist/_tsup-dts-rollup.d.ts +0 -3848
- package/dist/config/commitlint/index.cjs +0 -1
- package/dist/config/commitlint/index.d.cts +0 -1
- package/dist/config/commitlint/index.d.ts +0 -1
- package/dist/config/commitlint/index.js +0 -1
- package/dist/config/config.type.cjs +0 -1
- package/dist/config/config.type.d.cts +0 -3
- package/dist/config/config.type.d.ts +0 -3
- package/dist/config/config.type.js +0 -1
- package/dist/config/config.util.cjs +0 -1
- package/dist/config/config.util.d.cts +0 -1
- package/dist/config/config.util.d.ts +0 -1
- package/dist/config/config.util.js +0 -1
- package/dist/config/env/env.constant.cjs +0 -1
- package/dist/config/env/env.constant.d.cts +0 -1
- package/dist/config/env/env.constant.d.ts +0 -1
- package/dist/config/env/env.constant.js +0 -1
- package/dist/config/env/env.d.cjs +0 -1
- package/dist/config/env/env.d.d.cts +0 -1
- package/dist/config/env/env.d.d.ts +0 -1
- package/dist/config/env/env.d.js +0 -0
- package/dist/config/env/env.type.cjs +0 -1
- package/dist/config/env/env.type.d.cts +0 -1
- package/dist/config/env/env.type.d.ts +0 -1
- package/dist/config/env/env.type.js +0 -0
- package/dist/config/env/env.util.cjs +0 -1
- package/dist/config/env/env.util.d.cts +0 -2
- package/dist/config/env/env.util.d.ts +0 -2
- package/dist/config/env/env.util.js +0 -1
- package/dist/config/env/index.cjs +0 -1
- package/dist/config/env/index.d.cts +0 -4
- package/dist/config/env/index.d.ts +0 -4
- package/dist/config/env/index.js +0 -1
- package/dist/config/eslint/index.cjs +0 -1
- package/dist/config/eslint/index.d.cts +0 -1
- package/dist/config/eslint/index.d.ts +0 -1
- package/dist/config/eslint/index.js +0 -1
- package/dist/config/graphql-codegen/graphql-codegen.type.cjs +0 -1
- package/dist/config/graphql-codegen/graphql-codegen.type.d.cts +0 -1
- package/dist/config/graphql-codegen/graphql-codegen.type.d.ts +0 -1
- package/dist/config/graphql-codegen/graphql-codegen.type.js +0 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.cjs +0 -1
- package/dist/config/graphql-codegen/graphql-codegen.util.d.cts +0 -1
- package/dist/config/graphql-codegen/graphql-codegen.util.d.ts +0 -1
- package/dist/config/graphql-codegen/graphql-codegen.util.js +0 -1
- package/dist/config/graphql-codegen/index.cjs +0 -1
- package/dist/config/graphql-codegen/index.d.cts +0 -2
- package/dist/config/graphql-codegen/index.d.ts +0 -2
- package/dist/config/graphql-codegen/index.js +0 -1
- package/dist/config/index.cjs +0 -1
- package/dist/config/index.d.cts +0 -15
- package/dist/config/index.d.ts +0 -15
- package/dist/config/index.js +0 -1
- package/dist/config/lint-staged/index.cjs +0 -1
- package/dist/config/lint-staged/index.d.cts +0 -1
- package/dist/config/lint-staged/index.d.ts +0 -1
- package/dist/config/lint-staged/index.js +0 -1
- package/dist/config/vitest/index.cjs +0 -1
- package/dist/config/vitest/index.d.cts +0 -2
- package/dist/config/vitest/index.d.ts +0 -2
- package/dist/config/vitest/index.js +0 -1
- package/dist/config/vitest/vitest.e2e.cjs +0 -1
- package/dist/config/vitest/vitest.e2e.d.cts +0 -1
- package/dist/config/vitest/vitest.e2e.d.ts +0 -1
- package/dist/config/vitest/vitest.e2e.js +0 -1
- package/dist/config/vitest/vitest.unit.cjs +0 -1
- package/dist/config/vitest/vitest.unit.d.cts +0 -1
- package/dist/config/vitest/vitest.unit.d.ts +0 -1
- package/dist/config/vitest/vitest.unit.js +0 -1
- package/dist/config/vitest/vitest.unit.setup.cjs +0 -1
- package/dist/config/vitest/vitest.unit.setup.d.cts +0 -1
- package/dist/config/vitest/vitest.unit.setup.d.ts +0 -1
- package/dist/config/vitest/vitest.unit.setup.js +0 -1
- package/dist/constant/common.cjs +0 -1
- package/dist/constant/common.d.cts +0 -1
- package/dist/constant/common.d.ts +0 -1
- package/dist/constant/common.js +0 -1
- package/dist/constant/index.cjs +0 -1
- package/dist/constant/index.d.cts +0 -2
- package/dist/constant/index.d.ts +0 -2
- package/dist/constant/index.js +0 -1
- package/dist/constant/response-status.cjs +0 -1
- package/dist/constant/response-status.d.cts +0 -1
- package/dist/constant/response-status.d.ts +0 -1
- package/dist/constant/response-status.js +0 -1
- package/dist/node/apollo-server/apollo-server.type.cjs +0 -1
- package/dist/node/apollo-server/apollo-server.type.d.cts +0 -1
- package/dist/node/apollo-server/apollo-server.type.d.ts +0 -1
- package/dist/node/apollo-server/apollo-server.type.js +0 -0
- package/dist/node/apollo-server/apollo-server.util.cjs +0 -1
- package/dist/node/apollo-server/apollo-server.util.d.cts +0 -2
- package/dist/node/apollo-server/apollo-server.util.d.ts +0 -2
- package/dist/node/apollo-server/apollo-server.util.js +0 -1
- package/dist/node/apollo-server/index.cjs +0 -1
- package/dist/node/apollo-server/index.d.cts +0 -3
- package/dist/node/apollo-server/index.d.ts +0 -3
- package/dist/node/apollo-server/index.js +0 -1
- package/dist/node/cli/cli.util.cjs +0 -2
- package/dist/node/cli/cli.util.d.cts +0 -1
- package/dist/node/cli/cli.util.d.ts +0 -1
- package/dist/node/cli/cli.util.js +0 -2
- package/dist/node/cli/index.cjs +0 -1
- package/dist/node/cli/index.d.cts +0 -1
- package/dist/node/cli/index.d.ts +0 -1
- package/dist/node/cli/index.js +0 -1
- package/dist/node/command/command.type.cjs +0 -1
- package/dist/node/command/command.type.d.cts +0 -8
- package/dist/node/command/command.type.d.ts +0 -8
- package/dist/node/command/command.type.js +0 -1
- package/dist/node/command/command.util.cjs +0 -1
- package/dist/node/command/command.util.d.cts +0 -6
- package/dist/node/command/command.util.d.ts +0 -6
- package/dist/node/command/command.util.js +0 -1
- package/dist/node/command/index.cjs +0 -1
- package/dist/node/command/index.d.cts +0 -14
- package/dist/node/command/index.d.ts +0 -14
- package/dist/node/command/index.js +0 -1
- package/dist/node/express/express.type.cjs +0 -1
- package/dist/node/express/express.type.d.cts +0 -8
- package/dist/node/express/express.type.d.ts +0 -8
- package/dist/node/express/express.type.js +0 -1
- package/dist/node/express/express.util.cjs +0 -1
- package/dist/node/express/express.util.d.cts +0 -7
- package/dist/node/express/express.util.d.ts +0 -7
- package/dist/node/express/express.util.js +0 -1
- package/dist/node/express/index.cjs +0 -1
- package/dist/node/express/index.d.cts +0 -15
- package/dist/node/express/index.d.ts +0 -15
- package/dist/node/express/index.js +0 -1
- package/dist/node/fs/fs.type.cjs +0 -1
- package/dist/node/fs/fs.type.d.cts +0 -1
- package/dist/node/fs/fs.type.d.ts +0 -1
- package/dist/node/fs/fs.type.js +0 -0
- package/dist/node/fs/fs.util.cjs +0 -1
- package/dist/node/fs/fs.util.d.cts +0 -14
- package/dist/node/fs/fs.util.d.ts +0 -14
- package/dist/node/fs/fs.util.js +0 -1
- package/dist/node/fs/index.cjs +0 -1
- package/dist/node/fs/index.d.cts +0 -15
- package/dist/node/fs/index.d.ts +0 -15
- package/dist/node/fs/index.js +0 -1
- package/dist/node/index.cjs +0 -1
- package/dist/node/index.d.cts +0 -192
- package/dist/node/index.d.ts +0 -192
- package/dist/node/index.js +0 -1
- package/dist/node/log/index.cjs +0 -1
- package/dist/node/log/index.d.cts +0 -8
- package/dist/node/log/index.d.ts +0 -8
- package/dist/node/log/index.js +0 -1
- package/dist/node/log/log.type.cjs +0 -1
- package/dist/node/log/log.type.d.cts +0 -5
- package/dist/node/log/log.type.d.ts +0 -5
- package/dist/node/log/log.type.js +0 -1
- package/dist/node/log/log.util.cjs +0 -1
- package/dist/node/log/log.util.d.cts +0 -3
- package/dist/node/log/log.util.d.ts +0 -3
- package/dist/node/log/log.util.js +0 -1
- package/dist/node/mongo/index.cjs +0 -1
- package/dist/node/mongo/index.d.cts +0 -66
- package/dist/node/mongo/index.d.ts +0 -66
- package/dist/node/mongo/index.js +0 -1
- package/dist/node/mongo/mongo.constant.cjs +0 -1
- package/dist/node/mongo/mongo.constant.d.cts +0 -1
- package/dist/node/mongo/mongo.constant.d.ts +0 -1
- package/dist/node/mongo/mongo.constant.js +0 -1
- package/dist/node/mongo/mongo.type.cjs +0 -1
- package/dist/node/mongo/mongo.type.d.cts +0 -60
- package/dist/node/mongo/mongo.type.d.ts +0 -60
- package/dist/node/mongo/mongo.type.js +0 -1
- package/dist/node/mongo/mongo.util.cjs +0 -1
- package/dist/node/mongo/mongo.util.d.cts +0 -5
- package/dist/node/mongo/mongo.util.d.ts +0 -5
- package/dist/node/mongo/mongo.util.js +0 -1
- package/dist/node/package/index.cjs +0 -1
- package/dist/node/package/index.d.cts +0 -9
- package/dist/node/package/index.d.ts +0 -9
- package/dist/node/package/index.js +0 -1
- package/dist/node/package/package.type.cjs +0 -1
- package/dist/node/package/package.type.d.cts +0 -4
- package/dist/node/package/package.type.d.ts +0 -4
- package/dist/node/package/package.type.js +0 -1
- package/dist/node/package/package.util.cjs +0 -1
- package/dist/node/package/package.util.d.cts +0 -5
- package/dist/node/package/package.util.d.ts +0 -5
- package/dist/node/package/package.util.js +0 -1
- package/dist/node/path/index.cjs +0 -1
- package/dist/node/path/index.d.cts +0 -49
- package/dist/node/path/index.d.ts +0 -49
- package/dist/node/path/index.js +0 -1
- package/dist/node/path/path.constant.cjs +0 -1
- package/dist/node/path/path.constant.d.cts +0 -44
- package/dist/node/path/path.constant.d.ts +0 -44
- package/dist/node/path/path.constant.js +0 -1
- package/dist/node/path/path.util.cjs +0 -1
- package/dist/node/path/path.util.d.cts +0 -5
- package/dist/node/path/path.util.d.ts +0 -5
- package/dist/node/path/path.util.js +0 -1
- package/dist/node/storage/index.cjs +0 -1
- package/dist/node/storage/index.d.cts +0 -1
- package/dist/node/storage/index.d.ts +0 -1
- package/dist/node/storage/index.js +0 -1
- package/dist/node/storage/storage.util.cjs +0 -1
- package/dist/node/storage/storage.util.d.cts +0 -1
- package/dist/node/storage/storage.util.d.ts +0 -1
- package/dist/node/storage/storage.util.js +0 -1
- package/dist/node/upload/index.cjs +0 -1
- package/dist/node/upload/index.d.cts +0 -8
- package/dist/node/upload/index.d.ts +0 -8
- package/dist/node/upload/index.js +0 -1
- package/dist/node/upload/upload.type.cjs +0 -1
- package/dist/node/upload/upload.type.d.cts +0 -6
- package/dist/node/upload/upload.type.d.ts +0 -6
- package/dist/node/upload/upload.type.js +0 -1
- package/dist/node/upload/upload.util.cjs +0 -1
- package/dist/node/upload/upload.util.d.cts +0 -2
- package/dist/node/upload/upload.util.d.ts +0 -2
- package/dist/node/upload/upload.util.js +0 -1
- package/dist/node/ws/index.cjs +0 -1
- package/dist/node/ws/index.d.cts +0 -4
- package/dist/node/ws/index.d.ts +0 -4
- package/dist/node/ws/index.js +0 -1
- package/dist/node/ws/ts.util.cjs +0 -1
- package/dist/node/ws/ts.util.d.cts +0 -2
- package/dist/node/ws/ts.util.d.ts +0 -2
- package/dist/node/ws/ts.util.js +0 -1
- package/dist/node/ws/ws.type.cjs +0 -1
- package/dist/node/ws/ws.type.d.cts +0 -2
- package/dist/node/ws/ws.type.d.ts +0 -2
- package/dist/node/ws/ws.type.js +0 -0
- package/dist/react/apollo-client/apollo-client.component.cjs +0 -1
- package/dist/react/apollo-client/apollo-client.component.css +0 -1
- package/dist/react/apollo-client/apollo-client.component.d.cts +0 -1
- package/dist/react/apollo-client/apollo-client.component.d.ts +0 -1
- package/dist/react/apollo-client/apollo-client.component.js +0 -1
- package/dist/react/apollo-client/apollo-client.constant.cjs +0 -1
- package/dist/react/apollo-client/apollo-client.constant.d.cts +0 -1
- package/dist/react/apollo-client/apollo-client.constant.d.ts +0 -1
- package/dist/react/apollo-client/apollo-client.constant.js +0 -1
- package/dist/react/apollo-client/apollo-client.context.cjs +0 -1
- package/dist/react/apollo-client/apollo-client.context.d.cts +0 -2
- package/dist/react/apollo-client/apollo-client.context.d.ts +0 -2
- package/dist/react/apollo-client/apollo-client.context.js +0 -1
- package/dist/react/apollo-client/apollo-client.hook.cjs +0 -1
- package/dist/react/apollo-client/apollo-client.hook.d.cts +0 -1
- package/dist/react/apollo-client/apollo-client.hook.d.ts +0 -1
- package/dist/react/apollo-client/apollo-client.hook.js +0 -1
- package/dist/react/apollo-client/apollo-client.type.cjs +0 -1
- package/dist/react/apollo-client/apollo-client.type.d.cts +0 -6
- package/dist/react/apollo-client/apollo-client.type.d.ts +0 -6
- package/dist/react/apollo-client/apollo-client.type.js +0 -0
- package/dist/react/apollo-client/apollo-client.util.cjs +0 -1
- package/dist/react/apollo-client/apollo-client.util.css +0 -1
- package/dist/react/apollo-client/apollo-client.util.d.cts +0 -3
- package/dist/react/apollo-client/apollo-client.util.d.ts +0 -3
- package/dist/react/apollo-client/apollo-client.util.js +0 -1
- package/dist/react/apollo-client/index.cjs +0 -1
- package/dist/react/apollo-client/index.css +0 -1
- package/dist/react/apollo-client/index.d.cts +0 -26
- package/dist/react/apollo-client/index.d.ts +0 -26
- package/dist/react/apollo-client/index.js +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.component.cjs +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.component.css +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.component.d.cts +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.component.d.ts +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.component.js +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.util.cjs +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.util.css +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.util.d.cts +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.util.d.ts +0 -1
- package/dist/react/apollo-client-nextjs/apollo-client.util.js +0 -1
- package/dist/react/apollo-client-nextjs/index.cjs +0 -1
- package/dist/react/apollo-client-nextjs/index.css +0 -1
- package/dist/react/apollo-client-nextjs/index.d.cts +0 -2
- package/dist/react/apollo-client-nextjs/index.d.ts +0 -2
- package/dist/react/apollo-client-nextjs/index.js +0 -1
- package/dist/react/apollo-error/apollo-error.component.cjs +0 -1
- package/dist/react/apollo-error/apollo-error.component.css +0 -1
- package/dist/react/apollo-error/apollo-error.component.d.cts +0 -1
- package/dist/react/apollo-error/apollo-error.component.d.ts +0 -1
- package/dist/react/apollo-error/apollo-error.component.js +0 -1
- package/dist/react/apollo-error/apollo-error.context.cjs +0 -1
- package/dist/react/apollo-error/apollo-error.context.d.cts +0 -1
- package/dist/react/apollo-error/apollo-error.context.d.ts +0 -1
- package/dist/react/apollo-error/apollo-error.context.js +0 -1
- package/dist/react/apollo-error/apollo-error.hook.cjs +0 -1
- package/dist/react/apollo-error/apollo-error.hook.d.cts +0 -1
- package/dist/react/apollo-error/apollo-error.hook.d.ts +0 -1
- package/dist/react/apollo-error/apollo-error.hook.js +0 -1
- package/dist/react/apollo-error/apollo-error.provider.cjs +0 -1
- package/dist/react/apollo-error/apollo-error.provider.d.cts +0 -1
- package/dist/react/apollo-error/apollo-error.provider.d.ts +0 -1
- package/dist/react/apollo-error/apollo-error.provider.js +0 -1
- package/dist/react/apollo-error/apollo-error.type.cjs +0 -1
- package/dist/react/apollo-error/apollo-error.type.d.cts +0 -2
- package/dist/react/apollo-error/apollo-error.type.d.ts +0 -2
- package/dist/react/apollo-error/apollo-error.type.js +0 -0
- package/dist/react/apollo-error/apollo-error.util.cjs +0 -1
- package/dist/react/apollo-error/apollo-error.util.d.cts +0 -2
- package/dist/react/apollo-error/apollo-error.util.d.ts +0 -2
- package/dist/react/apollo-error/apollo-error.util.js +0 -1
- package/dist/react/apollo-error/index.cjs +0 -1
- package/dist/react/apollo-error/index.css +0 -1
- package/dist/react/apollo-error/index.d.cts +0 -8
- package/dist/react/apollo-error/index.d.ts +0 -8
- package/dist/react/apollo-error/index.js +0 -1
- package/dist/react/i18next/i18next.hook.cjs +0 -1
- package/dist/react/i18next/i18next.hook.d.cts +0 -1
- package/dist/react/i18next/i18next.hook.d.ts +0 -1
- package/dist/react/i18next/i18next.hook.js +0 -1
- package/dist/react/i18next/i18next.util.cjs +0 -1
- package/dist/react/i18next/i18next.util.d.cts +0 -1
- package/dist/react/i18next/i18next.util.d.ts +0 -1
- package/dist/react/i18next/i18next.util.js +0 -1
- package/dist/react/i18next/index.cjs +0 -1
- package/dist/react/i18next/index.d.cts +0 -2
- package/dist/react/i18next/index.d.ts +0 -2
- package/dist/react/i18next/index.js +0 -1
- package/dist/react/index.cjs +0 -1
- package/dist/react/index.css +0 -1
- package/dist/react/index.d.cts +0 -62
- package/dist/react/index.d.ts +0 -62
- package/dist/react/index.js +0 -1
- package/dist/react/loading/index.cjs +0 -1
- package/dist/react/loading/index.css +0 -1
- package/dist/react/loading/index.d.cts +0 -6
- package/dist/react/loading/index.d.ts +0 -6
- package/dist/react/loading/index.js +0 -1
- package/dist/react/loading/loading.component.cjs +0 -1
- package/dist/react/loading/loading.component.css +0 -1
- package/dist/react/loading/loading.component.d.cts +0 -1
- package/dist/react/loading/loading.component.d.ts +0 -1
- package/dist/react/loading/loading.component.js +0 -1
- package/dist/react/loading/loading.context.cjs +0 -1
- package/dist/react/loading/loading.context.d.cts +0 -1
- package/dist/react/loading/loading.context.d.ts +0 -1
- package/dist/react/loading/loading.context.js +0 -1
- package/dist/react/loading/loading.hook.cjs +0 -1
- package/dist/react/loading/loading.hook.d.cts +0 -1
- package/dist/react/loading/loading.hook.d.ts +0 -1
- package/dist/react/loading/loading.hook.js +0 -1
- package/dist/react/loading/loading.provider.cjs +0 -1
- package/dist/react/loading/loading.provider.css +0 -1
- package/dist/react/loading/loading.provider.d.cts +0 -1
- package/dist/react/loading/loading.provider.d.ts +0 -1
- package/dist/react/loading/loading.provider.js +0 -1
- package/dist/react/loading/loading.type.cjs +0 -1
- package/dist/react/loading/loading.type.d.cts +0 -2
- package/dist/react/loading/loading.type.d.ts +0 -2
- package/dist/react/loading/loading.type.js +0 -0
- package/dist/react/log/index.cjs +0 -1
- package/dist/react/log/index.d.cts +0 -3
- package/dist/react/log/index.d.ts +0 -3
- package/dist/react/log/index.js +0 -1
- package/dist/react/log/log.type.cjs +0 -1
- package/dist/react/log/log.type.d.cts +0 -1
- package/dist/react/log/log.type.d.ts +0 -1
- package/dist/react/log/log.type.js +0 -0
- package/dist/react/log/log.util.cjs +0 -1
- package/dist/react/log/log.util.d.cts +0 -2
- package/dist/react/log/log.util.d.ts +0 -2
- package/dist/react/log/log.util.js +0 -1
- package/dist/react/next-intl/index.cjs +0 -1
- package/dist/react/next-intl/index.d.cts +0 -10
- package/dist/react/next-intl/index.d.ts +0 -10
- package/dist/react/next-intl/index.js +0 -1
- package/dist/react/next-intl/next-intl.constant.cjs +0 -1
- package/dist/react/next-intl/next-intl.constant.d.cts +0 -1
- package/dist/react/next-intl/next-intl.constant.d.ts +0 -1
- package/dist/react/next-intl/next-intl.constant.js +0 -1
- package/dist/react/next-intl/next-intl.context.cjs +0 -1
- package/dist/react/next-intl/next-intl.context.d.cts +0 -1
- package/dist/react/next-intl/next-intl.context.d.ts +0 -1
- package/dist/react/next-intl/next-intl.context.js +0 -1
- package/dist/react/next-intl/next-intl.hoc.cjs +0 -1
- package/dist/react/next-intl/next-intl.hoc.d.cts +0 -1
- package/dist/react/next-intl/next-intl.hoc.d.ts +0 -1
- package/dist/react/next-intl/next-intl.hoc.js +0 -1
- package/dist/react/next-intl/next-intl.hook.cjs +0 -1
- package/dist/react/next-intl/next-intl.hook.d.cts +0 -2
- package/dist/react/next-intl/next-intl.hook.d.ts +0 -2
- package/dist/react/next-intl/next-intl.hook.js +0 -1
- package/dist/react/next-intl/next-intl.provider.cjs +0 -1
- package/dist/react/next-intl/next-intl.provider.d.cts +0 -1
- package/dist/react/next-intl/next-intl.provider.d.ts +0 -1
- package/dist/react/next-intl/next-intl.provider.js +0 -1
- package/dist/react/next-intl/next-intl.type.cjs +0 -1
- package/dist/react/next-intl/next-intl.type.d.cts +0 -4
- package/dist/react/next-intl/next-intl.type.d.ts +0 -4
- package/dist/react/next-intl/next-intl.type.js +0 -0
- package/dist/react/storage/index.cjs +0 -1
- package/dist/react/storage/index.d.cts +0 -2
- package/dist/react/storage/index.d.ts +0 -2
- package/dist/react/storage/index.js +0 -1
- package/dist/react/storage/storage.hook.cjs +0 -1
- package/dist/react/storage/storage.hook.d.cts +0 -1
- package/dist/react/storage/storage.hook.d.ts +0 -1
- package/dist/react/storage/storage.hook.js +0 -1
- package/dist/react/storage/storage.util.cjs +0 -1
- package/dist/react/storage/storage.util.d.cts +0 -1
- package/dist/react/storage/storage.util.d.ts +0 -1
- package/dist/react/storage/storage.util.js +0 -1
- package/dist/react/toast/index.cjs +0 -1
- package/dist/react/toast/index.d.cts +0 -2
- package/dist/react/toast/index.d.ts +0 -2
- package/dist/react/toast/index.js +0 -1
- package/dist/react/userback/index.cjs +0 -1
- package/dist/react/userback/index.d.cts +0 -3
- package/dist/react/userback/index.d.ts +0 -3
- package/dist/react/userback/index.js +0 -1
- package/dist/react/userback/userback.component.cjs +0 -1
- package/dist/react/userback/userback.component.d.cts +0 -1
- package/dist/react/userback/userback.component.d.ts +0 -1
- package/dist/react/userback/userback.component.js +0 -1
- package/dist/react/userback/userback.type.cjs +0 -1
- package/dist/react/userback/userback.type.d.cts +0 -2
- package/dist/react/userback/userback.type.d.ts +0 -2
- package/dist/react/userback/userback.type.js +0 -0
- package/dist/typescript/common.cjs +0 -1
- package/dist/typescript/common.d.cts +0 -6
- package/dist/typescript/common.d.ts +0 -6
- package/dist/typescript/common.js +0 -1
- package/dist/typescript/index.cjs +0 -1
- package/dist/typescript/index.d.cts +0 -8
- package/dist/typescript/index.d.ts +0 -8
- package/dist/typescript/index.js +0 -1
- package/dist/typescript/react.cjs +0 -1
- package/dist/typescript/react.d.cts +0 -2
- package/dist/typescript/react.d.ts +0 -2
- package/dist/typescript/react.js +0 -0
- package/dist/typescript/style.d.cjs +0 -1
- package/dist/typescript/style.d.d.cts +0 -1
- package/dist/typescript/style.d.d.ts +0 -1
- package/dist/typescript/style.d.js +0 -0
- package/dist/util/common/common.type.cjs +0 -1
- package/dist/util/common/common.type.d.cts +0 -2
- package/dist/util/common/common.type.d.ts +0 -2
- package/dist/util/common/common.type.js +0 -0
- package/dist/util/common/common.util.cjs +0 -1
- package/dist/util/common/common.util.d.cts +0 -4
- package/dist/util/common/common.util.d.ts +0 -4
- package/dist/util/common/common.util.js +0 -1
- package/dist/util/common/index.cjs +0 -1
- package/dist/util/common/index.d.cts +0 -6
- package/dist/util/common/index.d.ts +0 -6
- package/dist/util/common/index.js +0 -1
- package/dist/util/index.cjs +0 -1
- package/dist/util/index.d.cts +0 -24
- package/dist/util/index.d.ts +0 -24
- package/dist/util/index.js +0 -1
- package/dist/util/object/index.cjs +0 -1
- package/dist/util/object/index.d.cts +0 -6
- package/dist/util/object/index.d.ts +0 -6
- package/dist/util/object/index.js +0 -1
- package/dist/util/object/object.util.cjs +0 -1
- package/dist/util/object/object.util.d.cts +0 -6
- package/dist/util/object/object.util.d.ts +0 -6
- package/dist/util/object/object.util.js +0 -1
- package/dist/util/serializer/index.cjs +0 -1
- package/dist/util/serializer/index.d.cts +0 -5
- package/dist/util/serializer/index.d.ts +0 -5
- package/dist/util/serializer/index.js +0 -1
- package/dist/util/serializer/serializer.type.cjs +0 -1
- package/dist/util/serializer/serializer.type.d.cts +0 -4
- package/dist/util/serializer/serializer.type.d.ts +0 -4
- package/dist/util/serializer/serializer.type.js +0 -0
- package/dist/util/serializer/serializer.util.cjs +0 -1
- package/dist/util/serializer/serializer.util.d.cts +0 -1
- package/dist/util/serializer/serializer.util.d.ts +0 -1
- package/dist/util/serializer/serializer.util.js +0 -1
- package/dist/util/string/index.cjs +0 -1
- package/dist/util/string/index.d.cts +0 -6
- package/dist/util/string/index.d.ts +0 -6
- package/dist/util/string/index.js +0 -1
- package/dist/util/string/string.type.cjs +0 -1
- package/dist/util/string/string.type.d.cts +0 -1
- package/dist/util/string/string.type.d.ts +0 -1
- package/dist/util/string/string.type.js +0 -0
- package/dist/util/string/string.util.cjs +0 -1
- package/dist/util/string/string.util.d.cts +0 -5
- package/dist/util/string/string.util.d.ts +0 -5
- package/dist/util/string/string.util.js +0 -1
- package/dist/util/validate/index.cjs +0 -1
- package/dist/util/validate/index.d.cts +0 -1
- package/dist/util/validate/index.d.ts +0 -1
- package/dist/util/validate/index.js +0 -1
- package/dist/util/validate/validate.util.cjs +0 -1
- package/dist/util/validate/validate.util.d.cts +0 -1
- package/dist/util/validate/validate.util.d.ts +0 -1
- package/dist/util/validate/validate.util.js +0 -1
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";var s=(t,i,n)=>new Promise((d,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?d(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-Y6ImOuVK.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.200.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-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-ws":"6.0.5",i18next:"25.2.1",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/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",playwright:"1.53.1",postcss:"8.5.6","postcss-modules":"6.0.1",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 a(){return s(this,null,function*(){setTimeout(()=>s(null,null,function*(){const t=yield e.getStoredErrorLists(),i=t.filter(d=>d.type===u.E_IssueType.Error),n=t.filter(d=>d.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()),a()})}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()]),a()})}function K(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield Promise.all([y(),f(!0)]),a()})}function U(){return s(this,null,function*(){yield e.clearAllErrorLists(),yield e.runCommand("Validating commit message",yield e.command.commitLint()),a()})}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
|
+
${e.SIMPLE_GIT_HOOK_JSON}
|
|
4
|
+
`;r.pathExistsSync(e.PATH.GIT_IGNORE)?r.readFileSync(e.PATH.GIT_IGNORE,"utf-8").split(`
|
|
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
|
|
6
|
+
`).parse()}catch(t){c.catchError(t),m.exit(1)}});
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
var L = (e, n) => () => (n || e((n = { exports: {} }).exports, n), n.exports);
|
|
3
|
+
var t = (e, n, r) => new Promise((a, y) => {
|
|
4
|
+
var I = (c) => {
|
|
5
|
+
try {
|
|
6
|
+
g(r.next(c));
|
|
7
|
+
} catch (m) {
|
|
8
|
+
y(m);
|
|
9
|
+
}
|
|
10
|
+
}, M = (c) => {
|
|
11
|
+
try {
|
|
12
|
+
g(r.throw(c));
|
|
13
|
+
} catch (m) {
|
|
14
|
+
y(m);
|
|
15
|
+
}
|
|
16
|
+
}, g = (c) => c.done ? a(c.value) : Promise.resolve(c.value).then(I, M);
|
|
17
|
+
g((r = r.apply(e, n)).next());
|
|
18
|
+
});
|
|
19
|
+
import x from "node:process";
|
|
20
|
+
import { hideBin as O } from "yargs/helpers";
|
|
21
|
+
import R from "yargs/yargs";
|
|
22
|
+
import { g as _, Y as l, a0 as s, J as i, O as G, C as f, R as q, H as o, X as T, $ as N, S as j, I as D } from "../../../path.constant-CFKXX6cG.js";
|
|
23
|
+
import { removeSync as v, pathExistsSync as b, writeFileSync as w, readFileSync as P, appendFileSync as B } from "../fs/fs.util.js";
|
|
24
|
+
import { E_IssueType as h } from "../log/log.type.js";
|
|
25
|
+
import { log as d, catchError as A } from "../log/log.util.js";
|
|
26
|
+
import "../path/path.util.js";
|
|
27
|
+
var fe = L((u) => {
|
|
28
|
+
const F = "@cyberskill/shared", H = "module", U = "1.200.0", K = "CyberSkill Shared", J = "Stephen Cheng", Y = "MIT", $ = "https://github.com/cyberskill-world/shared#readme", V = { type: "git", url: "git+https://github.com/cyberskill-world/shared.git" }, W = { 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-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" } }, X = { cyberskill: "dist/src/node/cli/index.js" }, Q = ["dist", "public"], Z = { 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.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-ws": "6.0.5", i18next: "25.2.1", 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" }, te = { "@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/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", playwright: "1.53.1", postcss: "8.5.6", "postcss-modules": "6.0.1", 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
|
+
name: F,
|
|
30
|
+
type: H,
|
|
31
|
+
version: U,
|
|
32
|
+
description: K,
|
|
33
|
+
author: J,
|
|
34
|
+
license: Y,
|
|
35
|
+
homepage: $,
|
|
36
|
+
repository: V,
|
|
37
|
+
bugs: W,
|
|
38
|
+
exports: z,
|
|
39
|
+
bin: X,
|
|
40
|
+
files: Q,
|
|
41
|
+
scripts: Z,
|
|
42
|
+
dependencies: ee,
|
|
43
|
+
devDependencies: te,
|
|
44
|
+
publishConfig: se
|
|
45
|
+
};
|
|
46
|
+
function S() {
|
|
47
|
+
return t(this, null, function* () {
|
|
48
|
+
b(o.TS_CONFIG) ? yield s("Performing TypeScript validation", yield i.typescriptCheck()) : d.warn("No TypeScript configuration found. Skipping type check.");
|
|
49
|
+
});
|
|
50
|
+
}
|
|
51
|
+
function E(e = !1) {
|
|
52
|
+
return t(this, null, function* () {
|
|
53
|
+
e ? yield s("Running ESLint with auto-fix", yield i.eslintFix()) : yield s("Running ESLint check", yield i.eslintCheck());
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
function k(e, n) {
|
|
57
|
+
if (!n.length)
|
|
58
|
+
return;
|
|
59
|
+
const r = e === "Errors" ? "red" : "yellow";
|
|
60
|
+
d.printBoxedLog(e === "Errors" ? "✖ Errors" : "⚠ Warnings", n, r);
|
|
61
|
+
}
|
|
62
|
+
function p() {
|
|
63
|
+
return t(this, null, function* () {
|
|
64
|
+
setTimeout(() => t(null, null, function* () {
|
|
65
|
+
const e = yield T(), n = e.filter((a) => a.type === h.Error), r = e.filter((a) => a.type === h.Warning);
|
|
66
|
+
!n.length && !r.length ? d.printBoxedLog("✔ NO ISSUES FOUND", [], "green") : (k("Warnings", r), k("Errors", n), (n.length > 0 || r.length > 0) && x.exit(1));
|
|
67
|
+
}), 0);
|
|
68
|
+
});
|
|
69
|
+
}
|
|
70
|
+
function ne() {
|
|
71
|
+
return t(this, null, function* () {
|
|
72
|
+
yield l();
|
|
73
|
+
const e = yield G({ name: f });
|
|
74
|
+
if (!e.success) {
|
|
75
|
+
d.error("Failed to retrieve package information. Aborting lint-staged.");
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
e.result.isCurrentProject && (yield s(`Building package: ${f}`, yield i.build())), yield s("Executing lint-staged", yield i.lintStaged()), p();
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
function re() {
|
|
82
|
+
return t(this, null, function* () {
|
|
83
|
+
yield s("Inspecting ESLint configuration", yield i.eslintInspect());
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
function oe() {
|
|
87
|
+
return t(this, null, function* () {
|
|
88
|
+
yield l(), yield Promise.all([S(), E()]), p();
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
function ce() {
|
|
92
|
+
return t(this, null, function* () {
|
|
93
|
+
yield l(), yield Promise.all([S(), E(!0)]), p();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function ae() {
|
|
97
|
+
return t(this, null, function* () {
|
|
98
|
+
yield l(), yield s("Validating commit message", yield i.commitLint()), p();
|
|
99
|
+
});
|
|
100
|
+
}
|
|
101
|
+
function C() {
|
|
102
|
+
return t(this, null, function* () {
|
|
103
|
+
yield s("Configuring Git hooks", yield i.configureGitHook()), v(o.GIT_HOOK);
|
|
104
|
+
const e = yield N(D);
|
|
105
|
+
w(o.SIMPLE_GIT_HOOKS_JSON, JSON.stringify(e, null, 4));
|
|
106
|
+
const n = `
|
|
107
|
+
${j}
|
|
108
|
+
`;
|
|
109
|
+
b(o.GIT_IGNORE) ? P(o.GIT_IGNORE, "utf-8").split(`
|
|
110
|
+
`).includes(j) || B(o.GIT_IGNORE, n) : w(o.GIT_IGNORE, n), yield s("Setting up simple-git-hooks", yield i.simpleGitHooks());
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
function de() {
|
|
114
|
+
return t(this, null, function* () {
|
|
115
|
+
yield q(), yield C();
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
function le() {
|
|
119
|
+
return t(this, null, function* () {
|
|
120
|
+
v(o.NODE_MODULES, o.PNPM_LOCK_YAML), yield s("Pruning pnpm store", yield i.pnpmPruneStore()), yield s("Clearing pnpm cache", yield i.pnpmCleanCache()), yield q(), yield C();
|
|
121
|
+
});
|
|
122
|
+
}
|
|
123
|
+
function pe() {
|
|
124
|
+
return t(this, null, function* () {
|
|
125
|
+
yield s("Inspecting project dependencies", yield i.nodeModulesInspect());
|
|
126
|
+
});
|
|
127
|
+
}
|
|
128
|
+
function ge() {
|
|
129
|
+
return t(this, null, function* () {
|
|
130
|
+
yield s("Running unit tests", yield i.testUnit());
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
function me() {
|
|
134
|
+
return t(this, null, function* () {
|
|
135
|
+
yield s("Running end-to-end tests", yield i.testE2e());
|
|
136
|
+
});
|
|
137
|
+
}
|
|
138
|
+
function xe(e) {
|
|
139
|
+
return t(this, null, function* () {
|
|
140
|
+
yield s("Creating MongoDB migration", yield i.mongoMigrateCreate(e));
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
function ue() {
|
|
144
|
+
return t(this, null, function* () {
|
|
145
|
+
yield s("Running MongoDB migrations", yield i.mongoMigrateUp());
|
|
146
|
+
});
|
|
147
|
+
}
|
|
148
|
+
function ye() {
|
|
149
|
+
return t(this, null, function* () {
|
|
150
|
+
yield s("Rolling back MongoDB migration", yield i.mongoMigrateDown());
|
|
151
|
+
});
|
|
152
|
+
}
|
|
153
|
+
t(null, null, function* () {
|
|
154
|
+
try {
|
|
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
|
+
describe: "Migration name",
|
|
157
|
+
type: "string"
|
|
158
|
+
}), (e) => t(null, null, function* () {
|
|
159
|
+
if (!e.name) {
|
|
160
|
+
d.error("Migration name is required.");
|
|
161
|
+
return;
|
|
162
|
+
}
|
|
163
|
+
yield xe(e.name);
|
|
164
|
+
})).command("mongo:migrate:up", "Apply all MongoDB migrations", ue).command("mongo:migrate:down", "Rollback last MongoDB migration", ye).demandCommand(1, "Please specify a valid command.").strict().help().alias("h", "help").alias("v", "version").version(ie.version).epilog(`💡 Tip: Use "--help" with any command to see options
|
|
165
|
+
`).parse();
|
|
166
|
+
} catch (e) {
|
|
167
|
+
A(e), x.exit(1);
|
|
168
|
+
}
|
|
169
|
+
});
|
|
170
|
+
});
|
|
171
|
+
export default fe();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";require("./cli.util.cjs");
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './cli.util.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./cli.util.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var r=(e=>(e.CLI="CLI",e.STRING="STRING",e.FUNCTION="FUNCTION",e))(r||{});exports.E_CommandType=r;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface I_EslintError {
|
|
2
|
+
filePath: string;
|
|
3
|
+
messages: Array<{
|
|
4
|
+
line: number;
|
|
5
|
+
column: number;
|
|
6
|
+
severity: number;
|
|
7
|
+
message: string;
|
|
8
|
+
ruleId: string;
|
|
9
|
+
}>;
|
|
10
|
+
}
|
|
11
|
+
export interface I_CommandContext {
|
|
12
|
+
isCurrentProject: boolean;
|
|
13
|
+
}
|
|
14
|
+
export interface I_Command {
|
|
15
|
+
raw: boolean;
|
|
16
|
+
cmd: string;
|
|
17
|
+
}
|
|
18
|
+
export type T_CommandFunction = (context?: I_CommandContext) => string;
|
|
19
|
+
export type T_Command = string | I_Command | T_CommandFunction;
|
|
20
|
+
export type T_CommandMap = Record<string, T_Command>;
|
|
21
|
+
export type T_CommandMapInput = T_CommandMap | ((ctx: I_CommandContext) => T_CommandMap);
|
|
22
|
+
export declare enum E_CommandType {
|
|
23
|
+
CLI = "CLI",
|
|
24
|
+
STRING = "STRING",
|
|
25
|
+
FUNCTION = "FUNCTION"
|
|
26
|
+
}
|
|
@@ -0,0 +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("../log/log.type.cjs");require("../log/log.util.cjs");const r=require("../../../path.constant-Y6ImOuVK.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;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { I_IssueEntry } from '../log/index.js';
|
|
2
|
+
import { I_CommandContext, T_Command, T_CommandMapInput } from './command.type.js';
|
|
3
|
+
export declare function getStoredErrorLists(): Promise<I_IssueEntry[]>;
|
|
4
|
+
export declare function clearAllErrorLists(): Promise<void>;
|
|
5
|
+
export declare function rawCommand(cmd: string): {
|
|
6
|
+
raw: boolean;
|
|
7
|
+
cmd: string;
|
|
8
|
+
};
|
|
9
|
+
export declare function formatCommand(command: T_Command, context?: I_CommandContext): string | import('./command.type.js').I_Command;
|
|
10
|
+
export declare function resolveCommands(input: T_CommandMapInput): Promise<{
|
|
11
|
+
[k: string]: string | import('./command.type.js').I_Command;
|
|
12
|
+
} | undefined>;
|
|
13
|
+
export declare function runCommand(label: string, command: string | void): Promise<void>;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import "node:child_process";
|
|
2
|
+
import "node:process";
|
|
3
|
+
import "node:util";
|
|
4
|
+
import "../../config/env/env.util.js";
|
|
5
|
+
import "../log/log.type.js";
|
|
6
|
+
import "../log/log.util.js";
|
|
7
|
+
import { Y as n, _ as l, X as C, Z as f, $ as E, a0 as L } from "../../../path.constant-CFKXX6cG.js";
|
|
8
|
+
import "../path/path.util.js";
|
|
9
|
+
import "../storage/storage.util.js";
|
|
10
|
+
export {
|
|
11
|
+
n as clearAllErrorLists,
|
|
12
|
+
l as formatCommand,
|
|
13
|
+
C as getStoredErrorLists,
|
|
14
|
+
f as rawCommand,
|
|
15
|
+
E as resolveCommands,
|
|
16
|
+
L as runCommand
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./command.type.cjs"),r=require("../../../path.constant-Y6ImOuVK.cjs");exports.E_CommandType=o.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;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { E_CommandType as o } from "./command.type.js";
|
|
2
|
+
import { Y as s, _ as e, X as t, Z as d, $ as n, a0 as C } from "../../../path.constant-CFKXX6cG.js";
|
|
3
|
+
export {
|
|
4
|
+
o as E_CommandType,
|
|
5
|
+
s as clearAllErrorLists,
|
|
6
|
+
e as formatCommand,
|
|
7
|
+
t as getStoredErrorLists,
|
|
8
|
+
d as rawCommand,
|
|
9
|
+
n as resolveCommands,
|
|
10
|
+
C as runCommand
|
|
11
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("express");Object.defineProperty(exports,"Router",{enumerable:!0,get:()=>e.Router});
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ExceptionFilter, Type, ValidationPipe } from '@nestjs/common';
|
|
2
|
+
import { CorsOptions as CorsOptionsNestJS } from '@nestjs/common/interfaces/external/cors-options.interface.js';
|
|
3
|
+
import { CorsOptions, CorsOptionsDelegate, CorsRequest } from 'cors';
|
|
4
|
+
export type { NextFunction, Request, Response } from 'express';
|
|
5
|
+
export { Router } from 'express';
|
|
6
|
+
export interface I_ExpressOptions {
|
|
7
|
+
static?: string | string[];
|
|
8
|
+
}
|
|
9
|
+
export interface I_NestOptions {
|
|
10
|
+
module: Type<object>;
|
|
11
|
+
static?: string | string[];
|
|
12
|
+
filters?: ExceptionFilter[];
|
|
13
|
+
pipes?: ValidationPipe[];
|
|
14
|
+
}
|
|
15
|
+
export type T_CorsType = 'node' | 'nest';
|
|
16
|
+
interface I_BaseCorsOptions {
|
|
17
|
+
isDev?: boolean;
|
|
18
|
+
whiteList?: string[];
|
|
19
|
+
}
|
|
20
|
+
interface I_CorsOptionsNode extends I_BaseCorsOptions, CorsOptions, CorsOptionsDelegate<CorsRequest> {
|
|
21
|
+
}
|
|
22
|
+
interface I_CorsOptionsNest extends I_BaseCorsOptions, CorsOptionsNestJS {
|
|
23
|
+
}
|
|
24
|
+
export type T_CorsOptions<T extends T_CorsType> = T extends 'node' ? I_CorsOptionsNode : I_CorsOptionsNest;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var A=Object.defineProperty;var o=Object.getOwnPropertySymbols;var y=Object.prototype.hasOwnProperty,p=Object.prototype.propertyIsEnumerable;var d=(e,r,t)=>r in e?A(e,r,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[r]=t,q=(e,r)=>{for(var t in r||(r={}))y.call(r,t)&&d(e,t,r[t]);if(o)for(var t of o(r))p.call(r,t)&&d(e,t,r[t]);return e};var x=(e,r)=>{var t={};for(var s in e)y.call(e,s)&&r.indexOf(s)<0&&(t[s]=e[s]);if(e!=null&&o)for(var s of o(e))r.indexOf(s)<0&&p.call(e,s)&&(t[s]=e[s]);return t};var b=(e,r,t)=>new Promise((s,n)=>{var u=c=>{try{l(t.next(c))}catch(f){n(f)}},a=c=>{try{l(t.throw(c))}catch(f){n(f)}},l=c=>c.done?s(c.value):Promise.resolve(c.value).then(u,a);l((t=t.apply(e,r)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const E=require("@nestjs/core"),N=require("body-parser"),O=require("compression"),g=require("cookie-parser"),m=require("cors"),i=require("express"),G=require("express-session"),H=require("express-useragent");function S(s){var n=s,{isDev:e,whiteList:r}=n,t=x(n,["isDev","whiteList"]);return q({origin:(u,a)=>{e||!u||r!=null&&r.includes(u!=null?u:"")?a(null,!0):a(new Error("Not allowed by CORS"),!1)},credentials:!0},t)}function I(e){return m(S(e))}function M(e){return G(e)}function C(e){e.set("trust proxy",1),e.use(g()),e.use(i.urlencoded({extended:!0})),e.use(O()),e.use(H.express())}function P(e,r){r&&(Array.isArray(r)?r:[r]).forEach(s=>{e.use(i.static(s))})}function j(e){const r=i();return C(r),P(r,e==null?void 0:e.static),r}function v(e){return b(this,null,function*(){const r=yield E.NestFactory.create(e.module);return C(r.getHttpAdapter().getInstance()),P(r.getHttpAdapter().getInstance(),e.static),e.filters&&r.useGlobalFilters(...e.filters),e.pipes&&r.useGlobalPipes(...e.pipes),r})}exports.bodyParser=N;exports.express=i;exports.createCors=I;exports.createCorsOptions=S;exports.createExpress=j;exports.createNest=v;exports.createSession=M;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { INestApplication } from '@nestjs/common';
|
|
2
|
+
import { Application, RequestHandler, default as express } from 'express';
|
|
3
|
+
import { SessionOptions } from 'express-session';
|
|
4
|
+
import { default as bodyParser } from 'body-parser';
|
|
5
|
+
import { default as cors } from 'cors';
|
|
6
|
+
import { I_ExpressOptions, I_NestOptions, T_CorsOptions, T_CorsType } from './express.type.js';
|
|
7
|
+
export declare function createCorsOptions<T extends T_CorsType>({ isDev, whiteList, ...rest }: T_CorsOptions<T>): {
|
|
8
|
+
origin: (origin: string | undefined, callback: (err: Error | null, allow?: boolean) => void) => void;
|
|
9
|
+
credentials: boolean;
|
|
10
|
+
} & Omit<T_CorsOptions<T>, "isDev" | "whiteList">;
|
|
11
|
+
export declare function createCors<T extends T_CorsType>(options: T_CorsOptions<T>): (req: cors.CorsRequest, res: {
|
|
12
|
+
statusCode?: number | undefined;
|
|
13
|
+
setHeader(key: string, value: string): any;
|
|
14
|
+
end(): any;
|
|
15
|
+
}, next: (err?: any) => any) => void;
|
|
16
|
+
export declare function createSession(options: SessionOptions): RequestHandler;
|
|
17
|
+
export declare function createExpress(options?: I_ExpressOptions): Application;
|
|
18
|
+
export declare function createNest(options: I_NestOptions): Promise<INestApplication>;
|
|
19
|
+
export { bodyParser, express };
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
var E = Object.defineProperty;
|
|
2
|
+
var o = Object.getOwnPropertySymbols;
|
|
3
|
+
var d = Object.prototype.hasOwnProperty, i = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var p = (e, r, t) => r in e ? E(e, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[r] = t, x = (e, r) => {
|
|
5
|
+
for (var t in r || (r = {}))
|
|
6
|
+
d.call(r, t) && p(e, t, r[t]);
|
|
7
|
+
if (o)
|
|
8
|
+
for (var t of o(r))
|
|
9
|
+
i.call(r, t) && p(e, t, r[t]);
|
|
10
|
+
return e;
|
|
11
|
+
};
|
|
12
|
+
var y = (e, r) => {
|
|
13
|
+
var t = {};
|
|
14
|
+
for (var s in e)
|
|
15
|
+
d.call(e, s) && r.indexOf(s) < 0 && (t[s] = e[s]);
|
|
16
|
+
if (e != null && o)
|
|
17
|
+
for (var s of o(e))
|
|
18
|
+
r.indexOf(s) < 0 && i.call(e, s) && (t[s] = e[s]);
|
|
19
|
+
return t;
|
|
20
|
+
};
|
|
21
|
+
var A = (e, r, t) => new Promise((s, c) => {
|
|
22
|
+
var a = (u) => {
|
|
23
|
+
try {
|
|
24
|
+
n(t.next(u));
|
|
25
|
+
} catch (m) {
|
|
26
|
+
c(m);
|
|
27
|
+
}
|
|
28
|
+
}, f = (u) => {
|
|
29
|
+
try {
|
|
30
|
+
n(t.throw(u));
|
|
31
|
+
} catch (m) {
|
|
32
|
+
c(m);
|
|
33
|
+
}
|
|
34
|
+
}, n = (u) => u.done ? s(u.value) : Promise.resolve(u.value).then(a, f);
|
|
35
|
+
n((t = t.apply(e, r)).next());
|
|
36
|
+
});
|
|
37
|
+
import { NestFactory as N } from "@nestjs/core";
|
|
38
|
+
import { default as Q } from "body-parser";
|
|
39
|
+
import P from "compression";
|
|
40
|
+
import S from "cookie-parser";
|
|
41
|
+
import G from "cors";
|
|
42
|
+
import l from "express";
|
|
43
|
+
import { default as U } from "express";
|
|
44
|
+
import H from "express-session";
|
|
45
|
+
import I from "express-useragent";
|
|
46
|
+
function O(s) {
|
|
47
|
+
var c = s, { isDev: e, whiteList: r } = c, t = y(c, ["isDev", "whiteList"]);
|
|
48
|
+
return x({
|
|
49
|
+
origin: (a, f) => {
|
|
50
|
+
e || !a || r != null && r.includes(a != null ? a : "") ? f(null, !0) : f(new Error("Not allowed by CORS"), !1);
|
|
51
|
+
},
|
|
52
|
+
credentials: !0
|
|
53
|
+
}, t);
|
|
54
|
+
}
|
|
55
|
+
function z(e) {
|
|
56
|
+
return G(O(e));
|
|
57
|
+
}
|
|
58
|
+
function B(e) {
|
|
59
|
+
return H(e);
|
|
60
|
+
}
|
|
61
|
+
function b(e) {
|
|
62
|
+
e.set("trust proxy", 1), e.use(S()), e.use(l.urlencoded({ extended: !0 })), e.use(P()), e.use(I.express());
|
|
63
|
+
}
|
|
64
|
+
function C(e, r) {
|
|
65
|
+
r && (Array.isArray(r) ? r : [r]).forEach((s) => {
|
|
66
|
+
e.use(l.static(s));
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
function D(e) {
|
|
70
|
+
const r = l();
|
|
71
|
+
return b(r), C(r, e == null ? void 0 : e.static), r;
|
|
72
|
+
}
|
|
73
|
+
function F(e) {
|
|
74
|
+
return A(this, null, function* () {
|
|
75
|
+
const r = yield N.create(e.module);
|
|
76
|
+
return b(r.getHttpAdapter().getInstance()), C(r.getHttpAdapter().getInstance(), e.static), e.filters && r.useGlobalFilters(...e.filters), e.pipes && r.useGlobalPipes(...e.pipes), r;
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
export {
|
|
80
|
+
Q as bodyParser,
|
|
81
|
+
z as createCors,
|
|
82
|
+
O as createCorsOptions,
|
|
83
|
+
D as createExpress,
|
|
84
|
+
F as createNest,
|
|
85
|
+
B as createSession,
|
|
86
|
+
U as express
|
|
87
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("express"),e=require("./express.util.cjs"),s=require("body-parser");Object.defineProperty(exports,"Router",{enumerable:!0,get:()=>r.Router});exports.express=r;exports.createCors=e.createCors;exports.createCorsOptions=e.createCorsOptions;exports.createExpress=e.createExpress;exports.createNest=e.createNest;exports.createSession=e.createSession;exports.bodyParser=s;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Router as s, default as t } from "express";
|
|
2
|
+
import { createCors as a, createCorsOptions as p, createExpress as c, createNest as f, createSession as x } from "./express.util.js";
|
|
3
|
+
import { default as m } from "body-parser";
|
|
4
|
+
export {
|
|
5
|
+
s as Router,
|
|
6
|
+
m as bodyParser,
|
|
7
|
+
a as createCors,
|
|
8
|
+
p as createCorsOptions,
|
|
9
|
+
c as createExpress,
|
|
10
|
+
f as createNest,
|
|
11
|
+
x as createSession,
|
|
12
|
+
t as express
|
|
13
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var F=Object.defineProperty;var y=Object.getOwnPropertySymbols;var u=Object.prototype.hasOwnProperty,s=Object.prototype.propertyIsEnumerable;var a=(e,n,c)=>n in e?F(e,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):e[n]=c,d=(e,n)=>{for(var c in n||(n={}))u.call(n,c)&&a(e,c,n[c]);if(y)for(var c of y(n))s.call(n,c)&&a(e,c,n[c]);return e};var l=(e,n)=>{var c={};for(var r in e)u.call(e,r)&&n.indexOf(r)<0&&(c[r]=e[r]);if(e!=null&&y)for(var r of y(e))n.indexOf(r)<0&&s.call(e,r)&&(c[r]=e[r]);return c};Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("fs-extra"),p=require("node:path"),x=t,{lstatSync:v,readdirSync:E,mkdirSync:h,readFileSync:k,unlinkSync:g,statSync:f,createWriteStream:w}=t,J=t.readJsonSync;function b(e,n,c){t.writeFileSync(e,n,c!=null?c:"utf-8")}function q(e,n,c){t.appendFileSync(e,n,c!=null?c:"utf-8")}function o(...e){return e.every(n=>t.pathExistsSync(n))}function W(...e){e.forEach(n=>{o(n)&&t.removeSync(n)})}function j(e,n,c={}){const S=c,{extensions:r}=S,m=l(S,["extensions"]);t.copySync(e,n,d({filter:i=>f(i).isDirectory()||!r||r.length===0?!0:r.includes(p.extname(i))},m))}exports.appendFileSync=q;exports.copySync=j;exports.createWriteStream=w;exports.fs=x;exports.lstatSync=v;exports.mkdirSync=h;exports.pathExistsSync=o;exports.readFileSync=k;exports.readJsonSync=J;exports.readdirSync=E;exports.removeSync=W;exports.statSync=f;exports.unlinkSync=g;exports.writeFileSync=b;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { default as fsExtra } from 'fs-extra';
|
|
2
|
+
import { I_CopySyncOptions } from './fs.type.js';
|
|
3
|
+
export declare const fs: typeof fsExtra;
|
|
4
|
+
export declare const lstatSync: fsExtra.StatSyncFn, readdirSync: typeof fsExtra.readdirSync, mkdirSync: typeof fsExtra.mkdirSync, readFileSync: typeof fsExtra.readFileSync, unlinkSync: typeof fsExtra.unlinkSync, statSync: fsExtra.StatSyncFn, createWriteStream: typeof fsExtra.createWriteStream;
|
|
5
|
+
export declare const readJsonSync: typeof fsExtra.readJsonSync;
|
|
6
|
+
export declare function writeFileSync(file: fsExtra.PathOrFileDescriptor, data: string | NodeJS.ArrayBufferView, options?: fsExtra.WriteFileOptions): void;
|
|
7
|
+
export declare function appendFileSync(path: fsExtra.PathOrFileDescriptor, data: string | Uint8Array, options?: fsExtra.WriteFileOptions): void;
|
|
8
|
+
export declare function pathExistsSync(...paths: string[]): boolean;
|
|
9
|
+
export declare function removeSync(...paths: string[]): void;
|
|
10
|
+
export declare function copySync(src: string, dest: string, options?: I_CopySyncOptions): void;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
var m = Object.defineProperty;
|
|
2
|
+
var y = Object.getOwnPropertySymbols;
|
|
3
|
+
var u = Object.prototype.hasOwnProperty, a = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var f = (n, e, r) => e in n ? m(n, e, { enumerable: !0, configurable: !0, writable: !0, value: r }) : n[e] = r, s = (n, e) => {
|
|
5
|
+
for (var r in e || (e = {}))
|
|
6
|
+
u.call(e, r) && f(n, r, e[r]);
|
|
7
|
+
if (y)
|
|
8
|
+
for (var r of y(e))
|
|
9
|
+
a.call(e, r) && f(n, r, e[r]);
|
|
10
|
+
return n;
|
|
11
|
+
};
|
|
12
|
+
var d = (n, e) => {
|
|
13
|
+
var r = {};
|
|
14
|
+
for (var c in n)
|
|
15
|
+
u.call(n, c) && e.indexOf(c) < 0 && (r[c] = n[c]);
|
|
16
|
+
if (n != null && y)
|
|
17
|
+
for (var c of y(n))
|
|
18
|
+
e.indexOf(c) < 0 && a.call(n, c) && (r[c] = n[c]);
|
|
19
|
+
return r;
|
|
20
|
+
};
|
|
21
|
+
import t from "fs-extra";
|
|
22
|
+
import o from "node:path";
|
|
23
|
+
const v = t, {
|
|
24
|
+
lstatSync: k,
|
|
25
|
+
readdirSync: w,
|
|
26
|
+
mkdirSync: J,
|
|
27
|
+
readFileSync: g,
|
|
28
|
+
unlinkSync: D,
|
|
29
|
+
statSync: x,
|
|
30
|
+
createWriteStream: W
|
|
31
|
+
} = t, b = t.readJsonSync;
|
|
32
|
+
function j(n, e, r) {
|
|
33
|
+
t.writeFileSync(n, e, r != null ? r : "utf-8");
|
|
34
|
+
}
|
|
35
|
+
function q(n, e, r) {
|
|
36
|
+
t.appendFileSync(n, e, r != null ? r : "utf-8");
|
|
37
|
+
}
|
|
38
|
+
function F(...n) {
|
|
39
|
+
return n.every((e) => t.pathExistsSync(e));
|
|
40
|
+
}
|
|
41
|
+
function z(...n) {
|
|
42
|
+
n.forEach((e) => {
|
|
43
|
+
F(e) && t.removeSync(e);
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
function A(n, e, r = {}) {
|
|
47
|
+
const i = r, { extensions: c } = i, l = d(i, ["extensions"]);
|
|
48
|
+
t.copySync(n, e, s({
|
|
49
|
+
filter: (S) => x(S).isDirectory() || !c || c.length === 0 ? !0 : c.includes(o.extname(S))
|
|
50
|
+
}, l));
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
q as appendFileSync,
|
|
54
|
+
A as copySync,
|
|
55
|
+
W as createWriteStream,
|
|
56
|
+
v as fs,
|
|
57
|
+
k as lstatSync,
|
|
58
|
+
J as mkdirSync,
|
|
59
|
+
F as pathExistsSync,
|
|
60
|
+
g as readFileSync,
|
|
61
|
+
b as readJsonSync,
|
|
62
|
+
w as readdirSync,
|
|
63
|
+
z as removeSync,
|
|
64
|
+
x as statSync,
|
|
65
|
+
D as unlinkSync,
|
|
66
|
+
j as writeFileSync
|
|
67
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./fs.util.cjs");exports.appendFileSync=e.appendFileSync;exports.copySync=e.copySync;exports.createWriteStream=e.createWriteStream;exports.fs=e.fs;exports.lstatSync=e.lstatSync;exports.mkdirSync=e.mkdirSync;exports.pathExistsSync=e.pathExistsSync;exports.readFileSync=e.readFileSync;exports.readJsonSync=e.readJsonSync;exports.readdirSync=e.readdirSync;exports.removeSync=e.removeSync;exports.statSync=e.statSync;exports.unlinkSync=e.unlinkSync;exports.writeFileSync=e.writeFileSync;
|