@cyberskill/shared 1.209.0 → 1.211.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/commitlint/index.cjs +1 -0
- package/dist/config/config.type.cjs +1 -0
- package/dist/config/config.type.js +4 -0
- package/dist/config/config.util.cjs +1 -0
- package/dist/config/config.util.js +58 -0
- package/dist/config/env/env.constant.cjs +1 -0
- package/dist/config/env/env.util.cjs +1 -0
- package/dist/config/env/env.util.js +29 -0
- package/dist/config/env/index.cjs +1 -0
- package/dist/config/eslint/index.cjs +1 -0
- package/dist/config/eslint/index.js +26 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.cjs +1 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.js +42 -0
- package/dist/config/graphql-codegen/index.cjs +1 -0
- package/dist/config/index.cjs +1 -0
- package/dist/config/index.js +6 -0
- package/dist/config/lint-staged/index.cjs +1 -0
- package/dist/config/vitest/index.cjs +1 -0
- package/dist/config/vitest/vitest.e2e.cjs +1 -0
- package/dist/config/vitest/vitest.e2e.js +30 -0
- package/dist/config/vitest/vitest.unit.cjs +1 -0
- package/dist/config/vitest/vitest.unit.js +26 -0
- package/dist/constant/common.cjs +1 -0
- package/dist/constant/common.js +4 -0
- package/dist/constant/index.cjs +1 -0
- package/dist/constant/response-status.cjs +1 -0
- package/dist/node/apollo-server/apollo-server.util.cjs +1 -0
- package/dist/node/apollo-server/apollo-server.util.js +56 -0
- package/dist/node/apollo-server/index.cjs +1 -0
- package/dist/node/cli/index.cjs +6 -0
- package/dist/node/cli/index.js +160 -0
- package/dist/node/command/command.type.cjs +1 -0
- package/dist/node/command/command.type.js +4 -0
- package/dist/node/command/command.util.cjs +2 -0
- package/dist/node/command/command.util.js +175 -0
- package/dist/node/command/index.cjs +1 -0
- package/dist/node/command/index.js +11 -0
- package/dist/node/express/express.util.cjs +1 -0
- package/dist/node/express/express.util.js +81 -0
- package/dist/node/express/index.cjs +1 -0
- package/dist/node/fs/fs.util.cjs +1 -0
- package/dist/node/fs/fs.util.js +63 -0
- package/dist/node/fs/index.cjs +1 -0
- package/dist/node/log/index.cjs +1 -0
- package/dist/node/log/index.js +8 -0
- package/dist/node/log/log.type.cjs +1 -0
- package/dist/node/log/log.type.js +4 -0
- package/dist/node/log/log.util.cjs +1 -0
- package/dist/node/log/log.util.js +60 -0
- package/dist/node/mongo/index.cjs +1 -0
- package/dist/node/mongo/index.js +17 -0
- package/dist/node/mongo/mongo.constant.cjs +1 -0
- package/dist/node/mongo/mongo.type.cjs +1 -0
- package/dist/node/mongo/mongo.type.js +16 -0
- package/dist/node/mongo/mongo.util.cjs +5 -0
- package/dist/node/mongo/mongo.util.js +556 -0
- package/dist/node/package/index.cjs +1 -0
- package/dist/node/package/index.js +10 -0
- package/dist/node/package/package.type.cjs +1 -0
- package/dist/node/package/package.type.js +4 -0
- package/dist/node/package/package.util.cjs +1 -0
- package/dist/node/package/package.util.js +254 -0
- package/dist/node/path/index.cjs +1 -0
- package/dist/node/path/index.js +52 -0
- package/dist/node/path/path.constant.cjs +1 -0
- package/dist/node/path/path.constant.js +295 -0
- package/dist/node/path/path.util.cjs +1 -0
- package/dist/node/storage/index.cjs +1 -0
- package/dist/node/storage/storage.util.cjs +1 -0
- package/dist/node/storage/storage.util.js +81 -0
- package/dist/node/upload/index.cjs +1 -0
- package/dist/node/upload/index.js +7 -0
- package/dist/node/upload/upload.type.cjs +1 -0
- package/dist/node/upload/upload.type.js +4 -0
- package/dist/node/upload/upload.util.cjs +1 -0
- package/dist/node/upload/upload.util.js +154 -0
- package/dist/node/ws/index.cjs +1 -0
- package/dist/node/ws/ts.util.cjs +1 -0
- package/dist/node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.13_@vitest_browser@3.2.4_jiti@2.4.2_j_cac3da623d5688a51c0b1a2270e144db/node_modules/vitest/dist/config.cjs +1 -0
- package/dist/{config-CwzVfkkX.js → node_modules/.pnpm/vitest@3.2.4_@types_debug@4.1.12_@types_node@24.0.13_@vitest_browser@3.2.4_jiti@2.4.2_j_cac3da623d5688a51c0b1a2270e144db/node_modules/vitest/dist/config.js} +1 -1
- package/dist/react/apollo-client/apollo-client.component.cjs +1 -0
- package/dist/{src/react → react}/apollo-client/apollo-client.component.js +9 -12
- package/dist/react/apollo-client/apollo-client.constant.cjs +1 -0
- package/dist/react/apollo-client/apollo-client.context.cjs +1 -0
- package/dist/{src/react → react}/apollo-client/apollo-client.context.js +2 -2
- package/dist/react/apollo-client/apollo-client.util.cjs +1 -0
- package/dist/react/apollo-client/apollo-client.util.js +111 -0
- package/dist/react/apollo-client/index.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.cjs +1 -0
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js +21 -0
- package/dist/react/apollo-client-nextjs/index.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.component.cjs +1 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.component.js +5 -12
- package/dist/react/apollo-error/apollo-error.context.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.hook.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.module.scss.cjs +1 -0
- package/dist/react/apollo-error/apollo-error.module.scss.js +11 -0
- package/dist/react/apollo-error/apollo-error.provider.cjs +1 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.provider.js +2 -2
- package/dist/react/apollo-error/apollo-error.util.cjs +1 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.util.js +1 -1
- package/dist/react/apollo-error/index.cjs +1 -0
- package/dist/react/i18next/i18next.hook.cjs +1 -0
- package/dist/react/i18next/i18next.util.cjs +1 -0
- package/dist/react/i18next/index.cjs +1 -0
- package/dist/react/loading/index.cjs +1 -0
- package/dist/react/loading/loading.component.cjs +6 -0
- package/dist/react/loading/loading.component.js +51 -0
- package/dist/react/loading/loading.context.cjs +1 -0
- package/dist/react/loading/loading.hook.cjs +1 -0
- package/dist/react/loading/loading.module.scss.cjs +1 -0
- package/dist/react/loading/loading.module.scss.js +15 -0
- package/dist/react/loading/loading.provider.cjs +1 -0
- package/dist/react/loading/loading.provider.js +17 -0
- package/dist/react/log/index.cjs +1 -0
- package/dist/react/log/log.util.cjs +1 -0
- package/dist/{src/react → react}/log/log.util.js +4 -4
- package/dist/react/next-intl/index.cjs +1 -0
- package/dist/react/next-intl/next-intl.constant.cjs +1 -0
- package/dist/react/next-intl/next-intl.context.cjs +1 -0
- package/dist/react/next-intl/next-intl.hoc.cjs +1 -0
- package/dist/react/next-intl/next-intl.hoc.js +32 -0
- package/dist/react/next-intl/next-intl.hook.cjs +1 -0
- package/dist/react/next-intl/next-intl.provider.cjs +1 -0
- package/dist/react/next-intl/next-intl.provider.js +23 -0
- package/dist/react/storage/index.cjs +1 -0
- package/dist/react/storage/storage.hook.cjs +1 -0
- package/dist/react/storage/storage.hook.js +77 -0
- package/dist/react/storage/storage.util.cjs +1 -0
- package/dist/react/storage/storage.util.js +60 -0
- package/dist/react/toast/index.cjs +1 -0
- package/dist/react/userback/index.cjs +1 -0
- package/dist/react/userback/userback.component.cjs +1 -0
- package/dist/react/userback/userback.component.js +51 -0
- package/dist/style.css +1 -1
- package/dist/typescript/common.type.cjs +1 -0
- package/dist/typescript/index.cjs +1 -0
- package/dist/typescript/index.js +4 -0
- package/dist/util/common/common.util.cjs +1 -0
- package/dist/util/common/common.util.js +56 -0
- package/dist/util/common/index.cjs +1 -0
- package/dist/util/index.cjs +1 -0
- package/dist/util/object/index.cjs +1 -0
- package/dist/util/object/object.util.cjs +1 -0
- package/dist/util/object/object.util.js +73 -0
- package/dist/util/serializer/index.cjs +1 -0
- package/dist/util/serializer/serializer.util.cjs +1 -0
- package/dist/util/string/index.cjs +1 -0
- package/dist/util/string/string.util.cjs +1 -0
- package/dist/util/string/string.util.js +61 -0
- package/dist/util/validate/index.cjs +1 -0
- package/dist/util/validate/validate.util.cjs +1 -0
- package/package.json +103 -69
- package/dist/index-BG1UznTl.js +0 -628
- package/dist/magic-string.es-BQ9KnLz-.js +0 -659
- package/dist/src/config/config.util.js +0 -50
- package/dist/src/config/env/env.util.js +0 -29
- package/dist/src/config/eslint/index.js +0 -18
- package/dist/src/config/graphql-codegen/graphql-codegen.util.js +0 -37
- package/dist/src/config/index.js +0 -5
- package/dist/src/config/vitest/vitest.e2e.js +0 -23
- package/dist/src/config/vitest/vitest.unit.js +0 -19
- package/dist/src/config/vitest/vitest.unit.setup.js +0 -30990
- package/dist/src/constant/common.js +0 -4
- package/dist/src/node/apollo-server/apollo-server.util.js +0 -31
- package/dist/src/node/cli/index.js +0 -108
- package/dist/src/node/command/command.util.js +0 -16
- package/dist/src/node/command/index.js +0 -10
- package/dist/src/node/express/express.util.js +0 -50
- package/dist/src/node/fs/fs.util.js +0 -48
- package/dist/src/node/log/index.js +0 -8
- package/dist/src/node/log/log.util.js +0 -59
- package/dist/src/node/mongo/index.js +0 -26
- package/dist/src/node/mongo/mongo.util.js +0 -488
- package/dist/src/node/package/index.js +0 -9
- package/dist/src/node/package/package.util.js +0 -13
- package/dist/src/node/path/index.js +0 -52
- package/dist/src/node/path/path.constant.js +0 -49
- package/dist/src/node/storage/storage.util.js +0 -51
- package/dist/src/node/upload/index.js +0 -6
- package/dist/src/node/upload/upload.util.js +0 -127
- package/dist/src/react/apollo-client/apollo-client.hook.js +0 -11
- package/dist/src/react/apollo-client/apollo-client.util.js +0 -101
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.js +0 -14
- package/dist/src/react/loading/loading.component.js +0 -40
- package/dist/src/react/loading/loading.provider.js +0 -17
- package/dist/src/react/next-intl/next-intl.hoc.js +0 -23
- package/dist/src/react/next-intl/next-intl.provider.js +0 -24
- package/dist/src/react/storage/storage.hook.js +0 -61
- package/dist/src/react/storage/storage.util.js +0 -35
- package/dist/src/react/userback/userback.component.js +0 -27
- package/dist/src/typescript/style.d.js +0 -1
- package/dist/src/util/common/common.util.js +0 -48
- package/dist/src/util/object/object.util.js +0 -67
- package/dist/src/util/string/string.util.js +0 -51
- /package/dist/{src/config → config}/commitlint/index.d.ts +0 -0
- /package/dist/{src/config → config}/commitlint/index.js +0 -0
- /package/dist/{src/config → config}/config.type.d.ts +0 -0
- /package/dist/{src/config → config}/config.util.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.constant.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.constant.js +0 -0
- /package/dist/{src/config → config}/env/env.type.d.ts +0 -0
- /package/dist/{src/config → config}/env/env.util.d.ts +0 -0
- /package/dist/{src/config → config}/env/index.d.ts +0 -0
- /package/dist/{src/config → config}/env/index.js +0 -0
- /package/dist/{src/config → config}/eslint/index.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.type.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/graphql-codegen.util.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/index.d.ts +0 -0
- /package/dist/{src/config → config}/graphql-codegen/index.js +0 -0
- /package/dist/{src/config → config}/index.d.ts +0 -0
- /package/dist/{src/config → config}/lint-staged/index.d.ts +0 -0
- /package/dist/{src/config → config}/lint-staged/index.js +0 -0
- /package/dist/{src/config → config}/vitest/index.d.ts +0 -0
- /package/dist/{src/config → config}/vitest/index.js +0 -0
- /package/dist/{src/config → config}/vitest/vitest.e2e.d.ts +0 -0
- /package/dist/{src/config → config}/vitest/vitest.unit.d.ts +0 -0
- /package/dist/{src/constant → constant}/common.d.ts +0 -0
- /package/dist/{src/constant → constant}/index.d.ts +0 -0
- /package/dist/{src/constant → constant}/index.js +0 -0
- /package/dist/{src/constant → constant}/response-status.d.ts +0 -0
- /package/dist/{src/constant → constant}/response-status.js +0 -0
- /package/dist/{src/node → node}/apollo-server/apollo-server.type.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/apollo-server.util.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/index.d.ts +0 -0
- /package/dist/{src/node → node}/apollo-server/index.js +0 -0
- /package/dist/{src/node → node}/cli/index.d.ts +0 -0
- /package/dist/{src/node → node}/command/command.type.d.ts +0 -0
- /package/dist/{src/node → node}/command/command.util.d.ts +0 -0
- /package/dist/{src/node → node}/command/index.d.ts +0 -0
- /package/dist/{src/node → node}/express/express.type.d.ts +0 -0
- /package/dist/{src/node → node}/express/express.util.d.ts +0 -0
- /package/dist/{src/node → node}/express/index.d.ts +0 -0
- /package/dist/{src/node → node}/express/index.js +0 -0
- /package/dist/{src/node → node}/fs/fs.type.d.ts +0 -0
- /package/dist/{src/node → node}/fs/fs.util.d.ts +0 -0
- /package/dist/{src/node → node}/fs/index.d.ts +0 -0
- /package/dist/{src/node → node}/fs/index.js +0 -0
- /package/dist/{src/node → node}/log/index.d.ts +0 -0
- /package/dist/{src/node → node}/log/log.type.d.ts +0 -0
- /package/dist/{src/node → node}/log/log.util.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/index.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.constant.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.constant.js +0 -0
- /package/dist/{src/node → node}/mongo/mongo.type.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.util.d.ts +0 -0
- /package/dist/{src/node → node}/package/index.d.ts +0 -0
- /package/dist/{src/node → node}/package/package.type.d.ts +0 -0
- /package/dist/{src/node → node}/package/package.util.d.ts +0 -0
- /package/dist/{src/node → node}/path/index.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.constant.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.util.d.ts +0 -0
- /package/dist/{src/node → node}/path/path.util.js +0 -0
- /package/dist/{src/node → node}/storage/index.d.ts +0 -0
- /package/dist/{src/node → node}/storage/index.js +0 -0
- /package/dist/{src/node → node}/storage/storage.util.d.ts +0 -0
- /package/dist/{src/node → node}/upload/index.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.type.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.util.d.ts +0 -0
- /package/dist/{src/node → node}/ws/index.d.ts +0 -0
- /package/dist/{src/node → node}/ws/index.js +0 -0
- /package/dist/{src/node → node}/ws/ts.util.d.ts +0 -0
- /package/dist/{src/node → node}/ws/ts.util.js +0 -0
- /package/dist/{src/node → node}/ws/ws.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.constant.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.constant.js +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.context.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.hook.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/apollo-client.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/index.js +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.js +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.rsc.js +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client-nextjs/index.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.component.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.context.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.context.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.hook.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.hook.js +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.provider.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.type.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/apollo-error.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/index.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-error/index.js +0 -0
- /package/dist/{src/react → react}/i18next/i18next.hook.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/i18next.hook.js +0 -0
- /package/dist/{src/react → react}/i18next/i18next.util.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/i18next.util.js +0 -0
- /package/dist/{src/react → react}/i18next/index.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/index.js +0 -0
- /package/dist/{src/react → react}/loading/index.d.ts +0 -0
- /package/dist/{src/react → react}/loading/index.js +0 -0
- /package/dist/{src/react → react}/loading/loading.component.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.context.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.context.js +0 -0
- /package/dist/{src/react → react}/loading/loading.hook.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.hook.js +0 -0
- /package/dist/{src/react → react}/loading/loading.provider.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.type.d.ts +0 -0
- /package/dist/{src/react → react}/log/index.d.ts +0 -0
- /package/dist/{src/react → react}/log/index.js +0 -0
- /package/dist/{src/react → react}/log/log.type.d.ts +0 -0
- /package/dist/{src/react → react}/log/log.util.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/index.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/index.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.constant.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.constant.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.context.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.context.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hoc.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hook.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.hook.js +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.provider.d.ts +0 -0
- /package/dist/{src/react → react}/next-intl/next-intl.type.d.ts +0 -0
- /package/dist/{src/react → react}/storage/index.d.ts +0 -0
- /package/dist/{src/react → react}/storage/index.js +0 -0
- /package/dist/{src/react → react}/storage/storage.hook.d.ts +0 -0
- /package/dist/{src/react → react}/storage/storage.util.d.ts +0 -0
- /package/dist/{src/react → react}/toast/index.d.ts +0 -0
- /package/dist/{src/react → react}/toast/index.js +0 -0
- /package/dist/{src/react → react}/userback/index.d.ts +0 -0
- /package/dist/{src/react → react}/userback/index.js +0 -0
- /package/dist/{src/react → react}/userback/userback.component.d.ts +0 -0
- /package/dist/{src/react → react}/userback/userback.type.d.ts +0 -0
- /package/dist/{src/typescript → typescript}/common.type.d.ts +0 -0
- /package/dist/{src/typescript/index.js → typescript/common.type.js} +0 -0
- /package/dist/{src/typescript → typescript}/index.d.ts +0 -0
- /package/dist/{src/typescript → typescript}/react.type.d.ts +0 -0
- /package/dist/{src/util → util}/common/common.type.d.ts +0 -0
- /package/dist/{src/util → util}/common/common.util.d.ts +0 -0
- /package/dist/{src/util → util}/common/index.d.ts +0 -0
- /package/dist/{src/util → util}/common/index.js +0 -0
- /package/dist/{src/util → util}/index.d.ts +0 -0
- /package/dist/{src/util → util}/index.js +0 -0
- /package/dist/{src/util → util}/object/index.d.ts +0 -0
- /package/dist/{src/util → util}/object/index.js +0 -0
- /package/dist/{src/util → util}/object/object.util.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/index.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/index.js +0 -0
- /package/dist/{src/util → util}/serializer/serializer.type.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/serializer.util.d.ts +0 -0
- /package/dist/{src/util → util}/serializer/serializer.util.js +0 -0
- /package/dist/{src/util → util}/string/index.d.ts +0 -0
- /package/dist/{src/util → util}/string/index.js +0 -0
- /package/dist/{src/util → util}/string/string.type.d.ts +0 -0
- /package/dist/{src/util → util}/string/string.util.d.ts +0 -0
- /package/dist/{src/util → util}/validate/index.d.ts +0 -0
- /package/dist/{src/util → util}/validate/index.js +0 -0
- /package/dist/{src/util → util}/validate/validate.util.d.ts +0 -0
- /package/dist/{src/util → util}/validate/validate.util.js +0 -0
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { ApolloServer as e } from "@apollo/server";
|
|
2
|
-
import { expressMiddleware as d } from "@apollo/server/express4";
|
|
3
|
-
import { ApolloServerPluginDrainHttpServer as l } from "@apollo/server/plugin/drainHttpServer";
|
|
4
|
-
import { ApolloServerPluginLandingPageLocalDefault as o, ApolloServerPluginLandingPageProductionDefault as a } from "@apollo/server/plugin/landingPage/default";
|
|
5
|
-
import { log as n } from "../log/log.util.js";
|
|
6
|
-
function c(r) {
|
|
7
|
-
return new e({
|
|
8
|
-
schema: r.schema,
|
|
9
|
-
plugins: [
|
|
10
|
-
r.isDev ? o() : a(),
|
|
11
|
-
l({ httpServer: r.server }),
|
|
12
|
-
...r.drainServer ? [{
|
|
13
|
-
async serverWillStart() {
|
|
14
|
-
return {
|
|
15
|
-
async drainServer() {
|
|
16
|
-
r.drainServer?.(), n.info("Apollo Server drainServer hook called");
|
|
17
|
-
}
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
}] : []
|
|
21
|
-
],
|
|
22
|
-
...r.isDev && {
|
|
23
|
-
introspection: !0,
|
|
24
|
-
includeStacktraceInErrorResponses: !0
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
c as createApolloServer,
|
|
30
|
-
d as expressMiddleware
|
|
31
|
-
};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
import g from "node:process";
|
|
3
|
-
import { hideBin as C } from "yargs/helpers";
|
|
4
|
-
import L from "yargs/yargs";
|
|
5
|
-
import { C as M, c as r, r as t, a as i, g as _, b as l, i as f, P as e, d as O, e as R, S as p, f as G } from "../../../index-BG1UznTl.js";
|
|
6
|
-
import { removeSync as y, readFileSync as E, pathExistsSync as h, writeFileSync as u, appendFileSync as N } from "../fs/fs.util.js";
|
|
7
|
-
import { resolve as P } from "../path/path.util.js";
|
|
8
|
-
import { log as s, catchError as T } from "../log/log.util.js";
|
|
9
|
-
import { E_IssueType as d } from "../log/index.js";
|
|
10
|
-
function D() {
|
|
11
|
-
try {
|
|
12
|
-
return JSON.parse(
|
|
13
|
-
E(P(__dirname, "../../../package.json"), "utf-8")
|
|
14
|
-
).version;
|
|
15
|
-
} catch {
|
|
16
|
-
return "1.0.0";
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
async function S() {
|
|
20
|
-
h(e.TS_CONFIG) ? await t("Performing TypeScript validation", await i.typescriptCheck()) : s.warn("No TypeScript configuration found. Skipping type check.");
|
|
21
|
-
}
|
|
22
|
-
async function k(n = !1) {
|
|
23
|
-
n ? await t("Running ESLint with auto-fix", await i.eslintFix()) : await t("Running ESLint check", await i.eslintCheck());
|
|
24
|
-
}
|
|
25
|
-
function w(n, a) {
|
|
26
|
-
if (!a.length)
|
|
27
|
-
return;
|
|
28
|
-
const o = n === "Errors" ? "red" : "yellow";
|
|
29
|
-
s.printBoxedLog(n === "Errors" ? "✖ Errors" : "⚠ Warnings", a, o);
|
|
30
|
-
}
|
|
31
|
-
async function c() {
|
|
32
|
-
setTimeout(async () => {
|
|
33
|
-
const n = await O(), a = n.filter((m) => m.type === d.Error), o = n.filter((m) => m.type === d.Warning);
|
|
34
|
-
!a.length && !o.length ? s.printBoxedLog("✔ NO ISSUES FOUND", [], "green") : (w("Warnings", o), w("Errors", a), a.length > 0 && g.exit(1));
|
|
35
|
-
}, 0);
|
|
36
|
-
}
|
|
37
|
-
async function v() {
|
|
38
|
-
await r();
|
|
39
|
-
const n = await _({ name: l });
|
|
40
|
-
if (!n.success) {
|
|
41
|
-
s.error("Failed to retrieve package information. Aborting lint-staged.");
|
|
42
|
-
return;
|
|
43
|
-
}
|
|
44
|
-
n.result.isCurrentProject && await t(`Building package: ${l}`, await i.build()), await t("Executing lint-staged", await i.lintStaged()), c();
|
|
45
|
-
}
|
|
46
|
-
async function B() {
|
|
47
|
-
await t("Inspecting ESLint configuration", await i.eslintInspect());
|
|
48
|
-
}
|
|
49
|
-
async function x() {
|
|
50
|
-
await r(), await Promise.all([S(), k()]), c();
|
|
51
|
-
}
|
|
52
|
-
async function A() {
|
|
53
|
-
await r(), await Promise.all([S(), k(!0)]), c();
|
|
54
|
-
}
|
|
55
|
-
async function F() {
|
|
56
|
-
await r(), await t("Validating commit message", await i.commitLint()), c();
|
|
57
|
-
}
|
|
58
|
-
async function I() {
|
|
59
|
-
await t("Configuring Git hooks", await i.configureGitHook()), y(e.GIT_HOOK);
|
|
60
|
-
const n = await R(G);
|
|
61
|
-
u(e.SIMPLE_GIT_HOOKS_JSON, JSON.stringify(n, null, 4));
|
|
62
|
-
const a = `
|
|
63
|
-
${p}
|
|
64
|
-
`;
|
|
65
|
-
h(e.GIT_IGNORE) ? E(e.GIT_IGNORE, "utf-8").split(`
|
|
66
|
-
`).includes(p) || N(e.GIT_IGNORE, a) : u(e.GIT_IGNORE, a), await t("Setting up simple-git-hooks", await i.simpleGitHooks());
|
|
67
|
-
}
|
|
68
|
-
async function H() {
|
|
69
|
-
await f(), await I();
|
|
70
|
-
}
|
|
71
|
-
async function U() {
|
|
72
|
-
y(e.NODE_MODULES, e.PNPM_LOCK_YAML), await t("Pruning pnpm store", await i.pnpmPruneStore()), await t("Clearing pnpm cache", await i.pnpmCleanCache()), await f(), await I();
|
|
73
|
-
}
|
|
74
|
-
async function b() {
|
|
75
|
-
await t("Inspecting project dependencies", await i.nodeModulesInspect());
|
|
76
|
-
}
|
|
77
|
-
async function K() {
|
|
78
|
-
await t("Running unit tests", await i.testUnit());
|
|
79
|
-
}
|
|
80
|
-
async function j() {
|
|
81
|
-
await t("Running end-to-end tests", await i.testE2e());
|
|
82
|
-
}
|
|
83
|
-
async function J(n) {
|
|
84
|
-
await t("Creating MongoDB migration", await i.mongoMigrateCreate(n));
|
|
85
|
-
}
|
|
86
|
-
async function V() {
|
|
87
|
-
await t("Running MongoDB migrations", await i.mongoMigrateUp());
|
|
88
|
-
}
|
|
89
|
-
async function W() {
|
|
90
|
-
await t("Rolling back MongoDB migration", await i.mongoMigrateDown());
|
|
91
|
-
}
|
|
92
|
-
(async () => {
|
|
93
|
-
try {
|
|
94
|
-
await L(C(g.argv)).scriptName(M).usage("$0 <command> [options]").command("lint", "Check code for linting issues", x).command("lint:fix", "Fix linting issues automatically", A).command("lint:inspect", "View active ESLint configuration", B).command("lint-staged", "Run lint checks on staged files", v).command("commitlint", "Validate commit message format", F).command("ready", "Initialize project and dependencies", H).command("reset", "Reset the project and reinstall dependencies", U).command("inspect", "Analyze installed project dependencies", b).command("test:unit", "Run unit test suite", K).command("test:e2e", "Run end-to-end test suite", j).command("mongo:migrate:create <name>", "Create a MongoDB migration", (n) => n.positional("name", {
|
|
95
|
-
describe: "Migration name",
|
|
96
|
-
type: "string"
|
|
97
|
-
}), async (n) => {
|
|
98
|
-
if (!n.name) {
|
|
99
|
-
s.error("Migration name is required.");
|
|
100
|
-
return;
|
|
101
|
-
}
|
|
102
|
-
await J(n.name);
|
|
103
|
-
}).command("mongo:migrate:up", "Apply all MongoDB migrations", V).command("mongo:migrate:down", "Rollback last MongoDB migration", W).demandCommand(1, "Please specify a valid command.").strict().help().alias("h", "help").alias("v", "version").version(D()).epilog(`💡 Tip: Use "--help" with any command to see options
|
|
104
|
-
`).parse();
|
|
105
|
-
} catch (n) {
|
|
106
|
-
T(n), g.exit(1);
|
|
107
|
-
}
|
|
108
|
-
})();
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import "node:child_process";
|
|
2
|
-
import "node:process";
|
|
3
|
-
import "node:util";
|
|
4
|
-
import { c as d, k as n, d as l, j as C, e as c, r as f } from "../../../index-BG1UznTl.js";
|
|
5
|
-
import "../log/index.js";
|
|
6
|
-
import "../storage/storage.util.js";
|
|
7
|
-
import "../../config/env/env.util.js";
|
|
8
|
-
import "../log/log.util.js";
|
|
9
|
-
export {
|
|
10
|
-
d as clearAllErrorLists,
|
|
11
|
-
n as formatCommand,
|
|
12
|
-
l as getStoredErrorLists,
|
|
13
|
-
C as rawCommand,
|
|
14
|
-
c as resolveCommands,
|
|
15
|
-
f as runCommand
|
|
16
|
-
};
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { l as s, c as m, k as o, d as e, j as d, e as n, r as t } from "../../../index-BG1UznTl.js";
|
|
2
|
-
export {
|
|
3
|
-
s as E_CommandType,
|
|
4
|
-
m as clearAllErrorLists,
|
|
5
|
-
o as formatCommand,
|
|
6
|
-
e as getStoredErrorLists,
|
|
7
|
-
d as rawCommand,
|
|
8
|
-
n as resolveCommands,
|
|
9
|
-
t as runCommand
|
|
10
|
-
};
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import { NestFactory as a } from "@nestjs/core";
|
|
2
|
-
import { default as O } from "body-parser";
|
|
3
|
-
import c from "compression";
|
|
4
|
-
import f from "cookie-parser";
|
|
5
|
-
import p from "cors";
|
|
6
|
-
import s from "express";
|
|
7
|
-
import { default as M } from "express";
|
|
8
|
-
import m from "express-session";
|
|
9
|
-
import l from "express-useragent";
|
|
10
|
-
import d from "graphql-upload/graphqlUploadExpress.mjs";
|
|
11
|
-
function x({ isDev: e, whiteList: r, ...o }) {
|
|
12
|
-
return {
|
|
13
|
-
origin: (t, i) => {
|
|
14
|
-
e || !t || r?.includes(t ?? "") ? i(null, !0) : i(new Error("Not allowed by CORS"), !1);
|
|
15
|
-
},
|
|
16
|
-
credentials: !0,
|
|
17
|
-
...o
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
function P(e) {
|
|
21
|
-
return p(x(e));
|
|
22
|
-
}
|
|
23
|
-
function S(e) {
|
|
24
|
-
return m(e);
|
|
25
|
-
}
|
|
26
|
-
function n(e) {
|
|
27
|
-
e.set("trust proxy", 1), e.use(f()), e.use(s.urlencoded({ extended: !0 })), e.use(c()), e.use(l.express());
|
|
28
|
-
}
|
|
29
|
-
function u(e, r) {
|
|
30
|
-
r && (Array.isArray(r) ? r : [r]).forEach((t) => {
|
|
31
|
-
e.use(s.static(t));
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
function h(e) {
|
|
35
|
-
const r = s();
|
|
36
|
-
return n(r), u(r, e?.static), r.use(d()), r;
|
|
37
|
-
}
|
|
38
|
-
async function G(e) {
|
|
39
|
-
const r = await a.create(e.module);
|
|
40
|
-
return n(r.getHttpAdapter().getInstance()), u(r.getHttpAdapter().getInstance(), e.static), e.filters && r.useGlobalFilters(...e.filters), e.pipes && r.useGlobalPipes(...e.pipes), r;
|
|
41
|
-
}
|
|
42
|
-
export {
|
|
43
|
-
O as bodyParser,
|
|
44
|
-
P as createCors,
|
|
45
|
-
x as createCorsOptions,
|
|
46
|
-
h as createExpress,
|
|
47
|
-
G as createNest,
|
|
48
|
-
S as createSession,
|
|
49
|
-
M as express
|
|
50
|
-
};
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import e from "fs-extra";
|
|
2
|
-
import y from "node:path";
|
|
3
|
-
const a = e, {
|
|
4
|
-
lstatSync: p,
|
|
5
|
-
readdirSync: d,
|
|
6
|
-
mkdirSync: l,
|
|
7
|
-
readFileSync: m,
|
|
8
|
-
unlinkSync: x,
|
|
9
|
-
statSync: S,
|
|
10
|
-
createWriteStream: F
|
|
11
|
-
} = e, E = e.readJsonSync;
|
|
12
|
-
function h(t, n, r) {
|
|
13
|
-
e.writeFileSync(t, n, r ?? "utf-8");
|
|
14
|
-
}
|
|
15
|
-
function v(t, n, r) {
|
|
16
|
-
e.appendFileSync(t, n, r ?? "utf-8");
|
|
17
|
-
}
|
|
18
|
-
function s(...t) {
|
|
19
|
-
return t.every((n) => e.pathExistsSync(n));
|
|
20
|
-
}
|
|
21
|
-
function k(...t) {
|
|
22
|
-
t.forEach((n) => {
|
|
23
|
-
s(n) && e.removeSync(n);
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
function w(t, n, r = {}) {
|
|
27
|
-
const { extensions: c, ...o } = r;
|
|
28
|
-
e.copySync(t, n, {
|
|
29
|
-
filter: (i) => S(i).isDirectory() || !c || c.length === 0 ? !0 : c.includes(y.extname(i)),
|
|
30
|
-
...o
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
v as appendFileSync,
|
|
35
|
-
w as copySync,
|
|
36
|
-
F as createWriteStream,
|
|
37
|
-
a as fs,
|
|
38
|
-
p as lstatSync,
|
|
39
|
-
l as mkdirSync,
|
|
40
|
-
s as pathExistsSync,
|
|
41
|
-
m as readFileSync,
|
|
42
|
-
E as readJsonSync,
|
|
43
|
-
d as readdirSync,
|
|
44
|
-
k as removeSync,
|
|
45
|
-
S as statSync,
|
|
46
|
-
x as unlinkSync,
|
|
47
|
-
h as writeFileSync
|
|
48
|
-
};
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
import l from "chalk";
|
|
2
|
-
import r from "consola";
|
|
3
|
-
import { GraphQLError as E } from "graphql";
|
|
4
|
-
import { RESPONSE_STATUS as f } from "../../constant/response-status.js";
|
|
5
|
-
import { getEnv as i } from "../../config/env/env.util.js";
|
|
6
|
-
const h = i();
|
|
7
|
-
function d({
|
|
8
|
-
message: e,
|
|
9
|
-
status: o = f.INTERNAL_SERVER_ERROR,
|
|
10
|
-
type: n = "graphql"
|
|
11
|
-
}) {
|
|
12
|
-
const t = e ?? o.MESSAGE ?? "Internal server error";
|
|
13
|
-
throw n === "graphql" ? new E(t, {
|
|
14
|
-
extensions: { code: o.CODE }
|
|
15
|
-
}) : new Error(t);
|
|
16
|
-
}
|
|
17
|
-
h.DEBUG || (r.level = 4);
|
|
18
|
-
function c(e) {
|
|
19
|
-
const o = l[e];
|
|
20
|
-
return typeof o == "function" ? o : l.green;
|
|
21
|
-
}
|
|
22
|
-
const R = {
|
|
23
|
-
silent: r.silent,
|
|
24
|
-
level: r.level,
|
|
25
|
-
fatal: r.fatal,
|
|
26
|
-
error: r.error,
|
|
27
|
-
warn: r.warn,
|
|
28
|
-
log: r.log,
|
|
29
|
-
info: r.info,
|
|
30
|
-
success: r.success,
|
|
31
|
-
ready: r.ready,
|
|
32
|
-
start: r.start,
|
|
33
|
-
box: r.box,
|
|
34
|
-
debug: r.debug,
|
|
35
|
-
trace: r.trace,
|
|
36
|
-
verbose: r.verbose,
|
|
37
|
-
printBoxedLog(e, o, n = "red") {
|
|
38
|
-
if (!o?.length) {
|
|
39
|
-
r.box(l.green(e));
|
|
40
|
-
return;
|
|
41
|
-
}
|
|
42
|
-
o.forEach(({ file: t, position: a, rule: s, message: g }) => {
|
|
43
|
-
r.log(`${l.gray("File:")} ${l.blue(`${t}${a ? `:${a}` : ""}`)}`), s && r.log(` ${c(n)("Rule:")} ${s}`), r.log(` ${c(n)("Message:")} ${g}`);
|
|
44
|
-
}), r.box(c(n)(`${e} : ${o.length}`)), r.log(l.gray("─".repeat(40)));
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
function w(e, o) {
|
|
48
|
-
const { shouldLog: n = !0, returnValue: t, callback: a } = o ?? {}, s = e instanceof Error ? e : new Error(typeof e == "string" ? e : "Unknown error");
|
|
49
|
-
return n && R.error(s.message), a && typeof a == "function" && a(s), t || {
|
|
50
|
-
success: !1,
|
|
51
|
-
message: s.message,
|
|
52
|
-
code: f.INTERNAL_SERVER_ERROR.CODE
|
|
53
|
-
};
|
|
54
|
-
}
|
|
55
|
-
export {
|
|
56
|
-
w as catchError,
|
|
57
|
-
R as log,
|
|
58
|
-
d as throwError
|
|
59
|
-
};
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { MONGO_MIGRATE_OPTIONS as f } from "./mongo.constant.js";
|
|
2
|
-
import { Db as e, Collection as t } from "mongodb";
|
|
3
|
-
import { Document as r, Model as l } from "mongoose";
|
|
4
|
-
import { MongoController as p, MongooseController as i, mongo as M } from "./mongo.util.js";
|
|
5
|
-
import { default as u } from "mongoose-aggregate-paginate-v2";
|
|
6
|
-
import { default as O } from "mongoose-paginate-v2";
|
|
7
|
-
class a extends e {
|
|
8
|
-
}
|
|
9
|
-
class m extends r {
|
|
10
|
-
}
|
|
11
|
-
class g extends l {
|
|
12
|
-
}
|
|
13
|
-
class x extends t {
|
|
14
|
-
}
|
|
15
|
-
export {
|
|
16
|
-
x as C_Collection,
|
|
17
|
-
a as C_Db,
|
|
18
|
-
m as C_Document,
|
|
19
|
-
g as C_Model,
|
|
20
|
-
f as MONGO_MIGRATE_OPTIONS,
|
|
21
|
-
p as MongoController,
|
|
22
|
-
i as MongooseController,
|
|
23
|
-
u as aggregatePaginate,
|
|
24
|
-
M as mongo,
|
|
25
|
-
O as mongoosePaginate
|
|
26
|
-
};
|