@cyberskill/shared 1.208.0 → 1.210.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/{src/config → config}/config.type.d.ts +1 -1
- package/dist/config/config.type.js +4 -0
- package/dist/{src/config → config}/config.util.d.ts +1 -1
- package/dist/config/config.util.js +49 -0
- package/dist/{src/config → config}/env/env.util.js +7 -7
- package/dist/config/eslint/index.js +18 -0
- package/dist/config/graphql-codegen/graphql-codegen.util.js +37 -0
- package/dist/config/index.js +6 -0
- package/dist/config/vitest/vitest.e2e.js +23 -0
- package/dist/config/vitest/vitest.unit.js +19 -0
- package/dist/constant/common.js +4 -0
- package/dist/node/apollo-server/apollo-server.util.js +29 -0
- package/dist/node/cli/index.js +110 -0
- package/dist/node/command/command.type.js +4 -0
- package/dist/node/command/command.util.js +144 -0
- package/dist/node/command/index.js +11 -0
- package/dist/node/express/express.util.js +48 -0
- package/dist/node/express/index.js +13 -0
- package/dist/node/fs/fs.util.js +48 -0
- package/dist/node/log/index.js +8 -0
- package/dist/{log.type-DTOvZHyz.js → node/log/log.type.js} +1 -1
- package/dist/node/log/log.util.js +59 -0
- package/dist/node/mongo/index.js +17 -0
- package/dist/node/mongo/mongo.type.js +16 -0
- package/dist/node/mongo/mongo.util.js +488 -0
- package/dist/node/package/index.js +10 -0
- package/dist/node/package/package.type.js +4 -0
- package/dist/node/package/package.util.js +225 -0
- package/dist/node/path/index.js +52 -0
- package/dist/node/path/path.constant.js +273 -0
- package/dist/node/storage/storage.util.js +51 -0
- package/dist/node/upload/index.js +7 -0
- package/dist/node/upload/upload.type.js +4 -0
- package/dist/node/upload/upload.util.js +126 -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.js +6 -0
- package/dist/react/apollo-client/apollo-client.component.js +20 -0
- package/dist/{src/react → react}/apollo-client/apollo-client.context.js +2 -2
- package/dist/{src/react → react}/apollo-client/apollo-client.type.d.ts +1 -1
- package/dist/react/apollo-client/apollo-client.util.js +101 -0
- package/dist/react/apollo-client/index.js +29 -0
- package/dist/{src/react → react}/apollo-client-nextjs/apollo-client-nextjs.component.js +7 -8
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.util.js +14 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.component.js +8 -15
- package/dist/react/apollo-error/apollo-error.module.scss.js +11 -0
- package/dist/{src/react → react}/apollo-error/apollo-error.provider.js +2 -2
- package/dist/react/apollo-error/apollo-error.util.js +11 -0
- package/dist/react/loading/loading.component.js +34 -0
- package/dist/react/loading/loading.module.scss.js +15 -0
- package/dist/{src/react → react}/loading/loading.provider.d.ts +1 -1
- package/dist/react/loading/loading.provider.js +17 -0
- package/dist/react/log/log.util.js +30 -0
- package/dist/{src/react → react}/next-intl/next-intl.hoc.d.ts +1 -1
- package/dist/react/next-intl/next-intl.hoc.js +23 -0
- package/dist/react/next-intl/next-intl.provider.js +23 -0
- package/dist/{src/react → react}/next-intl/next-intl.type.d.ts +1 -1
- package/dist/react/storage/storage.hook.js +61 -0
- package/dist/react/storage/storage.util.js +35 -0
- package/dist/react/userback/userback.component.js +27 -0
- package/dist/style.css +1 -1
- package/dist/typescript/index.d.ts +2 -0
- package/dist/typescript/index.js +4 -0
- package/dist/{src/util → util}/common/common.util.js +14 -25
- package/dist/{src/util → util}/object/object.util.d.ts +1 -1
- package/dist/util/object/object.util.js +67 -0
- package/dist/util/string/string.util.js +51 -0
- package/package.json +77 -110
- package/dist/config-B7WSlzSh.js +0 -8
- package/dist/config-DDQ9k8fw.cjs +0 -1
- package/dist/config.util-Ci2CZDut.cjs +0 -1
- package/dist/config.util-DKBwEBKR.js +0 -61
- 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 +0 -2
- 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 +0 -41
- 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/log.type-CMvG6Box.cjs +0 -1
- package/dist/magic-string.es-C6Zk6wMx.js +0 -671
- package/dist/magic-string.es-CjWtD8Pa.cjs +0 -10
- package/dist/path.constant-CWtb99gS.cjs +0 -2
- package/dist/path.constant-CvSr0Rrx.js +0 -682
- package/dist/src/config/commitlint/index.cjs +0 -1
- package/dist/src/config/config.util.cjs +0 -1
- package/dist/src/config/config.util.js +0 -9
- package/dist/src/config/env/env.constant.cjs +0 -1
- package/dist/src/config/env/env.d.cjs +0 -1
- package/dist/src/config/env/env.d.js +0 -1
- package/dist/src/config/env/env.util.cjs +0 -1
- package/dist/src/config/env/index.cjs +0 -1
- package/dist/src/config/eslint/index.cjs +0 -1
- package/dist/src/config/eslint/index.js +0 -29
- package/dist/src/config/graphql-codegen/graphql-codegen.util.cjs +0 -1
- package/dist/src/config/graphql-codegen/graphql-codegen.util.js +0 -46
- package/dist/src/config/graphql-codegen/index.cjs +0 -1
- package/dist/src/config/index.cjs +0 -1
- package/dist/src/config/index.js +0 -5
- package/dist/src/config/lint-staged/index.cjs +0 -1
- package/dist/src/config/vitest/index.cjs +0 -1
- package/dist/src/config/vitest/vitest.e2e.cjs +0 -1
- package/dist/src/config/vitest/vitest.e2e.js +0 -33
- package/dist/src/config/vitest/vitest.unit.cjs +0 -1
- package/dist/src/config/vitest/vitest.unit.js +0 -30
- package/dist/src/config/vitest/vitest.unit.setup.cjs +0 -508
- package/dist/src/config/vitest/vitest.unit.setup.js +0 -31519
- package/dist/src/constant/common.cjs +0 -1
- package/dist/src/constant/common.js +0 -4
- package/dist/src/constant/index.cjs +0 -1
- package/dist/src/constant/response-status.cjs +0 -1
- package/dist/src/node/apollo-server/apollo-server.util.cjs +0 -1
- package/dist/src/node/apollo-server/apollo-server.util.js +0 -62
- package/dist/src/node/apollo-server/index.cjs +0 -1
- package/dist/src/node/cli/cli.util.cjs +0 -6
- package/dist/src/node/cli/cli.util.js +0 -171
- package/dist/src/node/cli/index.cjs +0 -1
- package/dist/src/node/cli/index.d.ts +0 -1
- package/dist/src/node/cli/index.js +0 -1
- package/dist/src/node/command/command.util.cjs +0 -1
- package/dist/src/node/command/command.util.js +0 -17
- package/dist/src/node/command/index.cjs +0 -1
- package/dist/src/node/command/index.js +0 -10
- package/dist/src/node/express/express.util.cjs +0 -1
- package/dist/src/node/express/express.util.js +0 -88
- package/dist/src/node/express/index.cjs +0 -1
- package/dist/src/node/express/index.js +0 -13
- package/dist/src/node/fs/fs.util.cjs +0 -1
- package/dist/src/node/fs/fs.util.js +0 -67
- package/dist/src/node/fs/index.cjs +0 -1
- package/dist/src/node/log/index.cjs +0 -1
- package/dist/src/node/log/index.js +0 -8
- package/dist/src/node/log/log.util.cjs +0 -1
- package/dist/src/node/log/log.util.js +0 -60
- package/dist/src/node/mongo/index.cjs +0 -1
- package/dist/src/node/mongo/index.js +0 -26
- package/dist/src/node/mongo/mongo.constant.cjs +0 -1
- package/dist/src/node/mongo/mongo.util.cjs +0 -5
- package/dist/src/node/mongo/mongo.util.js +0 -564
- package/dist/src/node/package/index.cjs +0 -1
- package/dist/src/node/package/index.js +0 -9
- package/dist/src/node/package/package.util.cjs +0 -1
- package/dist/src/node/package/package.util.js +0 -13
- package/dist/src/node/path/index.cjs +0 -1
- package/dist/src/node/path/index.js +0 -52
- package/dist/src/node/path/path.constant.cjs +0 -1
- package/dist/src/node/path/path.constant.js +0 -49
- package/dist/src/node/path/path.util.cjs +0 -1
- package/dist/src/node/storage/index.cjs +0 -1
- package/dist/src/node/storage/storage.util.cjs +0 -1
- package/dist/src/node/storage/storage.util.js +0 -81
- package/dist/src/node/upload/index.cjs +0 -1
- package/dist/src/node/upload/index.js +0 -6
- package/dist/src/node/upload/upload.util.cjs +0 -1
- package/dist/src/node/upload/upload.util.js +0 -8
- package/dist/src/node/ws/index.cjs +0 -1
- package/dist/src/node/ws/ts.util.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.component.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.component.js +0 -21
- package/dist/src/react/apollo-client/apollo-client.constant.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.context.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.hook.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.hook.js +0 -11
- package/dist/src/react/apollo-client/apollo-client.util.cjs +0 -1
- package/dist/src/react/apollo-client/apollo-client.util.js +0 -116
- package/dist/src/react/apollo-client/index.cjs +0 -1
- package/dist/src/react/apollo-client/index.js +0 -30
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.component.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.cjs +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.util.js +0 -24
- package/dist/src/react/apollo-client-nextjs/index.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.component.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.context.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.hook.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.provider.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.util.cjs +0 -1
- package/dist/src/react/apollo-error/apollo-error.util.js +0 -11
- package/dist/src/react/apollo-error/index.cjs +0 -1
- package/dist/src/react/i18next/i18next.hook.cjs +0 -1
- package/dist/src/react/i18next/i18next.util.cjs +0 -1
- package/dist/src/react/i18next/index.cjs +0 -1
- package/dist/src/react/loading/index.cjs +0 -1
- package/dist/src/react/loading/loading.component.cjs +0 -6
- package/dist/src/react/loading/loading.component.js +0 -61
- package/dist/src/react/loading/loading.context.cjs +0 -1
- package/dist/src/react/loading/loading.hook.cjs +0 -1
- package/dist/src/react/loading/loading.provider.cjs +0 -1
- package/dist/src/react/loading/loading.provider.js +0 -17
- package/dist/src/react/log/index.cjs +0 -1
- package/dist/src/react/log/log.util.cjs +0 -1
- package/dist/src/react/log/log.util.js +0 -30
- package/dist/src/react/next-intl/index.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.constant.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.context.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.hoc.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.hoc.js +0 -35
- package/dist/src/react/next-intl/next-intl.hook.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.provider.cjs +0 -1
- package/dist/src/react/next-intl/next-intl.provider.js +0 -25
- package/dist/src/react/storage/index.cjs +0 -1
- package/dist/src/react/storage/storage.hook.cjs +0 -1
- package/dist/src/react/storage/storage.hook.js +0 -77
- package/dist/src/react/storage/storage.util.cjs +0 -1
- package/dist/src/react/storage/storage.util.js +0 -60
- package/dist/src/react/toast/index.cjs +0 -1
- package/dist/src/react/userback/index.cjs +0 -1
- package/dist/src/react/userback/userback.component.cjs +0 -1
- package/dist/src/react/userback/userback.component.js +0 -54
- package/dist/src/typescript/common.cjs +0 -1
- package/dist/src/typescript/index.cjs +0 -1
- package/dist/src/typescript/index.d.ts +0 -2
- package/dist/src/typescript/index.js +0 -4
- package/dist/src/typescript/react.cjs +0 -1
- package/dist/src/typescript/react.js +0 -1
- package/dist/src/typescript/style.d.cjs +0 -1
- package/dist/src/typescript/style.d.js +0 -1
- package/dist/src/util/common/common.util.cjs +0 -1
- package/dist/src/util/common/index.cjs +0 -1
- package/dist/src/util/index.cjs +0 -1
- package/dist/src/util/object/index.cjs +0 -1
- package/dist/src/util/object/object.util.cjs +0 -1
- package/dist/src/util/object/object.util.js +0 -77
- package/dist/src/util/serializer/index.cjs +0 -1
- package/dist/src/util/serializer/serializer.util.cjs +0 -1
- package/dist/src/util/string/index.cjs +0 -1
- package/dist/src/util/string/string.util.cjs +0 -1
- package/dist/src/util/string/string.util.js +0 -64
- package/dist/src/util/validate/index.cjs +0 -1
- package/dist/src/util/validate/validate.util.cjs +0 -1
- package/dist/tsconfig.base.json +0 -37
- package/dist/upload.util-CE3MjBdh.cjs +0 -1
- package/dist/upload.util-D4aUdmPo.js +0 -160
- /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}/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/cli/cli.util.d.ts → 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}/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.util.d.ts +0 -0
- /package/dist/{src/react → react}/apollo-client/index.d.ts +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.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.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.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}/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/common.d.ts → typescript/common.type.d.ts} +0 -0
- /package/dist/{src/typescript/common.js → typescript/common.type.js} +0 -0
- /package/dist/{src/typescript/react.d.ts → 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}/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,682 +0,0 @@
|
|
|
1
|
-
var ue = Object.defineProperty;
|
|
2
|
-
var Q = Object.getOwnPropertySymbols;
|
|
3
|
-
var Ne = Object.prototype.hasOwnProperty, Ce = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var Z = (e, s, t) => s in e ? ue(e, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[s] = t, q = (e, s) => {
|
|
5
|
-
for (var t in s || (s = {}))
|
|
6
|
-
Ne.call(s, t) && Z(e, t, s[t]);
|
|
7
|
-
if (Q)
|
|
8
|
-
for (var t of Q(s))
|
|
9
|
-
Ce.call(s, t) && Z(e, t, s[t]);
|
|
10
|
-
return e;
|
|
11
|
-
};
|
|
12
|
-
var N = (e, s, t) => new Promise((n, a) => {
|
|
13
|
-
var c = (r) => {
|
|
14
|
-
try {
|
|
15
|
-
o(t.next(r));
|
|
16
|
-
} catch (C) {
|
|
17
|
-
a(C);
|
|
18
|
-
}
|
|
19
|
-
}, p = (r) => {
|
|
20
|
-
try {
|
|
21
|
-
o(t.throw(r));
|
|
22
|
-
} catch (C) {
|
|
23
|
-
a(C);
|
|
24
|
-
}
|
|
25
|
-
}, o = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(c, p);
|
|
26
|
-
o((t = t.apply(e, s)).next());
|
|
27
|
-
});
|
|
28
|
-
import Ie from "fs-extra";
|
|
29
|
-
import { getEnv as b } from "./src/config/env/env.util.js";
|
|
30
|
-
import { exec as fe } from "node:child_process";
|
|
31
|
-
import ee from "node:process";
|
|
32
|
-
import * as _e from "node:util";
|
|
33
|
-
import { E as T } from "./log.type-DTOvZHyz.js";
|
|
34
|
-
import { log as _, catchError as d } from "./src/node/log/log.util.js";
|
|
35
|
-
import de from "node-fetch";
|
|
36
|
-
import { pathExistsSync as V, readJsonSync as R, writeFileSync as De } from "./src/node/fs/fs.util.js";
|
|
37
|
-
import { join as U, resolveWorkingPath as u } from "./src/node/path/path.util.js";
|
|
38
|
-
import { storage as K } from "./src/node/storage/storage.util.js";
|
|
39
|
-
var l = /* @__PURE__ */ ((e) => (e.CLI = "CLI", e.STRING = "STRING", e.FUNCTION = "FUNCTION", e))(l || {}), i = /* @__PURE__ */ ((e) => (e.DEPENDENCY = "dependencies", e.DEV_DEPENDENCY = "devDependencies", e.PEER_DEPENDENCY = "peerDependencies", e.BUNDLE_DEPENDENCY = "bundleDependencies", e.OPTIONAL_DEPENDENCY = "optionalDependencies", e))(i || {});
|
|
40
|
-
const Te = b();
|
|
41
|
-
function ye(e) {
|
|
42
|
-
return N(this, null, function* () {
|
|
43
|
-
try {
|
|
44
|
-
const s = yield de(`https://registry.npmjs.org/${e}/latest`);
|
|
45
|
-
if (!s.ok)
|
|
46
|
-
throw new Error(`Failed to fetch latest version: ${s.status} ${s.statusText}`);
|
|
47
|
-
const { version: t } = yield s.json();
|
|
48
|
-
return {
|
|
49
|
-
success: !0,
|
|
50
|
-
result: t
|
|
51
|
-
};
|
|
52
|
-
} catch (s) {
|
|
53
|
-
return d(s);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function H(e) {
|
|
58
|
-
return N(this, null, function* () {
|
|
59
|
-
var s, t;
|
|
60
|
-
try {
|
|
61
|
-
if (!e) {
|
|
62
|
-
if (V(E.PACKAGE_JSON)) {
|
|
63
|
-
const $ = R(E.PACKAGE_JSON), { name: M = "", version: h = "" } = $;
|
|
64
|
-
return {
|
|
65
|
-
success: !0,
|
|
66
|
-
result: {
|
|
67
|
-
name: M,
|
|
68
|
-
currentVersion: h,
|
|
69
|
-
latestVersion: h,
|
|
70
|
-
isCurrentProject: !0,
|
|
71
|
-
isInstalled: !0,
|
|
72
|
-
isUpToDate: !0,
|
|
73
|
-
isDependency: !1,
|
|
74
|
-
isDevDependency: !1,
|
|
75
|
-
installedPath: E.PACKAGE_JSON,
|
|
76
|
-
file: $
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
}
|
|
80
|
-
return {
|
|
81
|
-
success: !0,
|
|
82
|
-
result: {
|
|
83
|
-
name: "",
|
|
84
|
-
currentVersion: "",
|
|
85
|
-
latestVersion: "",
|
|
86
|
-
isCurrentProject: !1,
|
|
87
|
-
isInstalled: !1,
|
|
88
|
-
isUpToDate: !1,
|
|
89
|
-
isDependency: !1,
|
|
90
|
-
isDevDependency: !1,
|
|
91
|
-
installedPath: "",
|
|
92
|
-
file: {}
|
|
93
|
-
}
|
|
94
|
-
};
|
|
95
|
-
}
|
|
96
|
-
if (!V(E.PACKAGE_JSON))
|
|
97
|
-
return {
|
|
98
|
-
success: !0,
|
|
99
|
-
result: {
|
|
100
|
-
name: e.name,
|
|
101
|
-
currentVersion: "",
|
|
102
|
-
latestVersion: "",
|
|
103
|
-
isCurrentProject: !1,
|
|
104
|
-
isInstalled: !1,
|
|
105
|
-
isUpToDate: !1,
|
|
106
|
-
isDependency: e.type === i.DEPENDENCY,
|
|
107
|
-
isDevDependency: e.type === i.DEV_DEPENDENCY,
|
|
108
|
-
installedPath: "",
|
|
109
|
-
file: {}
|
|
110
|
-
}
|
|
111
|
-
};
|
|
112
|
-
const n = R(E.PACKAGE_JSON), { name: a, version: c = "", dependencies: p = {}, devDependencies: o = {} } = n;
|
|
113
|
-
if (e.name === a)
|
|
114
|
-
return {
|
|
115
|
-
success: !0,
|
|
116
|
-
result: {
|
|
117
|
-
name: a,
|
|
118
|
-
currentVersion: c,
|
|
119
|
-
latestVersion: c,
|
|
120
|
-
isCurrentProject: !0,
|
|
121
|
-
isInstalled: !0,
|
|
122
|
-
isUpToDate: !0,
|
|
123
|
-
isDependency: e.type === i.DEPENDENCY,
|
|
124
|
-
isDevDependency: e.type === i.DEV_DEPENDENCY,
|
|
125
|
-
installedPath: E.PACKAGE_JSON,
|
|
126
|
-
file: n
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
const r = e.name in p, C = e.name in o, D = yield ye(e.name);
|
|
130
|
-
if (!D.success)
|
|
131
|
-
return {
|
|
132
|
-
success: !0,
|
|
133
|
-
result: {
|
|
134
|
-
name: e.name,
|
|
135
|
-
currentVersion: "",
|
|
136
|
-
latestVersion: "",
|
|
137
|
-
isCurrentProject: !1,
|
|
138
|
-
isInstalled: !1,
|
|
139
|
-
isUpToDate: !1,
|
|
140
|
-
isDependency: r,
|
|
141
|
-
isDevDependency: C,
|
|
142
|
-
installedPath: "",
|
|
143
|
-
file: {}
|
|
144
|
-
}
|
|
145
|
-
};
|
|
146
|
-
if (!r && !C)
|
|
147
|
-
return {
|
|
148
|
-
success: !0,
|
|
149
|
-
result: {
|
|
150
|
-
name: e.name,
|
|
151
|
-
currentVersion: "",
|
|
152
|
-
latestVersion: D.result,
|
|
153
|
-
isCurrentProject: !1,
|
|
154
|
-
isInstalled: !1,
|
|
155
|
-
isUpToDate: !1,
|
|
156
|
-
isDependency: e.type === i.DEPENDENCY,
|
|
157
|
-
isDevDependency: e.type === i.DEV_DEPENDENCY,
|
|
158
|
-
installedPath: "",
|
|
159
|
-
file: {}
|
|
160
|
-
}
|
|
161
|
-
};
|
|
162
|
-
const y = (t = (s = p[e.name]) != null ? s : o[e.name]) != null ? t : "", g = U(Te.CWD, W, e.name, X);
|
|
163
|
-
if (!V(g))
|
|
164
|
-
return {
|
|
165
|
-
success: !0,
|
|
166
|
-
result: {
|
|
167
|
-
name: e.name,
|
|
168
|
-
currentVersion: "",
|
|
169
|
-
latestVersion: D.result,
|
|
170
|
-
isCurrentProject: !1,
|
|
171
|
-
isInstalled: !1,
|
|
172
|
-
isUpToDate: !1,
|
|
173
|
-
isDependency: r,
|
|
174
|
-
isDevDependency: C,
|
|
175
|
-
installedPath: "",
|
|
176
|
-
file: {}
|
|
177
|
-
}
|
|
178
|
-
};
|
|
179
|
-
const P = R(g), { version: A = "" } = P;
|
|
180
|
-
return y !== A ? {
|
|
181
|
-
success: !0,
|
|
182
|
-
result: {
|
|
183
|
-
name: e.name,
|
|
184
|
-
currentVersion: A || y,
|
|
185
|
-
latestVersion: D.result,
|
|
186
|
-
isCurrentProject: !1,
|
|
187
|
-
isInstalled: !0,
|
|
188
|
-
isUpToDate: !1,
|
|
189
|
-
isDependency: r,
|
|
190
|
-
isDevDependency: C,
|
|
191
|
-
installedPath: g,
|
|
192
|
-
file: P
|
|
193
|
-
}
|
|
194
|
-
} : {
|
|
195
|
-
success: !0,
|
|
196
|
-
result: {
|
|
197
|
-
name: e.name,
|
|
198
|
-
currentVersion: y,
|
|
199
|
-
latestVersion: D.result,
|
|
200
|
-
isCurrentProject: !1,
|
|
201
|
-
isInstalled: !0,
|
|
202
|
-
isUpToDate: y === D.result,
|
|
203
|
-
isDependency: r,
|
|
204
|
-
isDevDependency: C,
|
|
205
|
-
installedPath: g,
|
|
206
|
-
file: P
|
|
207
|
-
}
|
|
208
|
-
};
|
|
209
|
-
} catch (n) {
|
|
210
|
-
return d(n);
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
}
|
|
214
|
-
function se(e) {
|
|
215
|
-
return N(this, null, function* () {
|
|
216
|
-
var s, t;
|
|
217
|
-
try {
|
|
218
|
-
const n = R(E.PACKAGE_JSON), a = (s = n.dependencies) != null ? s : {}, c = (t = n.devDependencies) != null ? t : {};
|
|
219
|
-
e.isDependency ? a[e.name] = e.latestVersion : e.isDevDependency && (c[e.name] = e.latestVersion), De(E.PACKAGE_JSON, JSON.stringify(n, null, 4)), _.info(`Updated "${e.name}" to version ${e.latestVersion}`);
|
|
220
|
-
} catch (n) {
|
|
221
|
-
d(n);
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
}
|
|
225
|
-
function ge() {
|
|
226
|
-
return N(this, null, function* () {
|
|
227
|
-
try {
|
|
228
|
-
const e = [
|
|
229
|
-
{ command: () => w.pnpmInstallStandard(), message: "Installing dependencies (standard)" },
|
|
230
|
-
{ command: () => w.pnpmInstallLegacy(), message: "Retrying with legacy peer dependencies" },
|
|
231
|
-
{ command: () => w.pnpmInstallForce(), message: "Retrying with force install" }
|
|
232
|
-
];
|
|
233
|
-
for (const { command: s, message: t } of e)
|
|
234
|
-
try {
|
|
235
|
-
const n = yield s();
|
|
236
|
-
yield le(`${t} using: ${n}`, n);
|
|
237
|
-
return;
|
|
238
|
-
} catch (n) {
|
|
239
|
-
d(n);
|
|
240
|
-
}
|
|
241
|
-
} catch (e) {
|
|
242
|
-
d(e);
|
|
243
|
-
}
|
|
244
|
-
});
|
|
245
|
-
}
|
|
246
|
-
function Oe(e, s) {
|
|
247
|
-
return N(this, null, function* () {
|
|
248
|
-
var t;
|
|
249
|
-
try {
|
|
250
|
-
if (!V(E.PACKAGE_JSON)) {
|
|
251
|
-
_.error("package.json not found. Aborting setup.");
|
|
252
|
-
return;
|
|
253
|
-
}
|
|
254
|
-
const a = (yield Promise.all(e.map(H))).filter((r) => r.success && !!r.result && !r.result.isCurrentProject).map((r) => r.result), c = a.filter((r) => !r.isInstalled), p = a.filter((r) => !r.isUpToDate), o = [];
|
|
255
|
-
s != null && s.install && c.length > 0 && o.push(...c.map(se)), s != null && s.update && p.length > 0 && o.push(...p.map(se)), o.length > 0 && (yield Promise.all(o), yield ge(), yield le("Running ESLint with auto-fix", yield w.eslintFix()));
|
|
256
|
-
for (const r of (t = s == null ? void 0 : s.callbacks) != null ? t : [])
|
|
257
|
-
yield r();
|
|
258
|
-
} catch (n) {
|
|
259
|
-
d(n);
|
|
260
|
-
}
|
|
261
|
-
});
|
|
262
|
-
}
|
|
263
|
-
const ie = b(), Ge = _e.promisify(fe);
|
|
264
|
-
function B() {
|
|
265
|
-
return N(this, null, function* () {
|
|
266
|
-
const e = yield H();
|
|
267
|
-
return e.success ? e.result.name : Date.now().toString();
|
|
268
|
-
});
|
|
269
|
-
}
|
|
270
|
-
function ce(e) {
|
|
271
|
-
return N(this, null, function* () {
|
|
272
|
-
if (e.length === 0)
|
|
273
|
-
return;
|
|
274
|
-
const s = yield B();
|
|
275
|
-
try {
|
|
276
|
-
yield K.set(s, e), setTimeout(() => N(null, null, function* () {
|
|
277
|
-
const t = yield K.getLogLink(s);
|
|
278
|
-
t && _.info(`📂 Open the error list manually: ${t}`);
|
|
279
|
-
}), 0);
|
|
280
|
-
} catch (t) {
|
|
281
|
-
d(t);
|
|
282
|
-
}
|
|
283
|
-
});
|
|
284
|
-
}
|
|
285
|
-
function Es() {
|
|
286
|
-
return N(this, null, function* () {
|
|
287
|
-
try {
|
|
288
|
-
const e = yield B(), s = yield K.get(e);
|
|
289
|
-
return s != null ? s : [];
|
|
290
|
-
} catch (e) {
|
|
291
|
-
return d(e, {
|
|
292
|
-
returnValue: []
|
|
293
|
-
});
|
|
294
|
-
}
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
function ms() {
|
|
298
|
-
return N(this, null, function* () {
|
|
299
|
-
try {
|
|
300
|
-
const e = yield B();
|
|
301
|
-
yield K.remove(e);
|
|
302
|
-
} catch (e) {
|
|
303
|
-
d(e);
|
|
304
|
-
}
|
|
305
|
-
});
|
|
306
|
-
}
|
|
307
|
-
function Pe(e) {
|
|
308
|
-
const s = [], t = [];
|
|
309
|
-
let n = "";
|
|
310
|
-
const a = /^\s*(\d+):(\d+)\s+(error|warning)\s+(.+?)\s+(\S+)$/, c = /^(.+?)\((\d+),(\d+)\):\s+(error|warning)\s+TS\d+:\s+(\S.+)$/, p = /^✖\s+(.*?)\s+\[(.*?)\]$/;
|
|
311
|
-
e.split(`
|
|
312
|
-
`).forEach((o) => {
|
|
313
|
-
var r, C, D, y, g, P, A, $, M, h, z;
|
|
314
|
-
if (o.startsWith("/"))
|
|
315
|
-
n = o.trim();
|
|
316
|
-
else {
|
|
317
|
-
const I = a.exec(o) || [], f = c.exec(o) || [], O = p.exec(o) || [];
|
|
318
|
-
I.length && n ? s.push({
|
|
319
|
-
file: n,
|
|
320
|
-
position: `${I[1]}:${I[2]}`,
|
|
321
|
-
type: I[3] === T.Error ? T.Error : T.Warning,
|
|
322
|
-
message: (C = (r = I == null ? void 0 : I[4]) == null ? void 0 : r.trim()) != null ? C : "",
|
|
323
|
-
rule: (y = (D = I == null ? void 0 : I[5]) == null ? void 0 : D.trim()) != null ? y : ""
|
|
324
|
-
}) : f.length ? s.push({
|
|
325
|
-
file: (g = f == null ? void 0 : f[1]) != null ? g : "",
|
|
326
|
-
position: `${f[2]}:${f[3]}`,
|
|
327
|
-
type: f[4] === T.Error ? T.Error : T.Warning,
|
|
328
|
-
message: (A = (P = f == null ? void 0 : f[5]) == null ? void 0 : P.trim()) != null ? A : ""
|
|
329
|
-
}) : O.length ? s.push({
|
|
330
|
-
file: "commitlint",
|
|
331
|
-
type: T.Error,
|
|
332
|
-
message: (M = ($ = O == null ? void 0 : O[1]) == null ? void 0 : $.trim()) != null ? M : "",
|
|
333
|
-
rule: (z = (h = O == null ? void 0 : O[2]) == null ? void 0 : h.trim()) != null ? z : ""
|
|
334
|
-
}) : t.push(o.trim());
|
|
335
|
-
}
|
|
336
|
-
}), s.length && ce(s), ie.DEBUG && t.length && (_.warn("Unmatched lines:"), t.forEach((o) => _.info(` ${o}`)));
|
|
337
|
-
}
|
|
338
|
-
function Se(e) {
|
|
339
|
-
try {
|
|
340
|
-
const s = JSON.parse(e), t = [];
|
|
341
|
-
s.forEach(({ filePath: n, messages: a }) => {
|
|
342
|
-
a.forEach(({ severity: c, line: p, column: o, ruleId: r, message: C }) => {
|
|
343
|
-
t.push({
|
|
344
|
-
type: c === 2 ? T.Error : T.Warning,
|
|
345
|
-
file: n,
|
|
346
|
-
position: `${p}:${o}`,
|
|
347
|
-
rule: r,
|
|
348
|
-
message: C
|
|
349
|
-
});
|
|
350
|
-
});
|
|
351
|
-
}), t.length && ce(t);
|
|
352
|
-
} catch (s) {
|
|
353
|
-
Pe(e);
|
|
354
|
-
}
|
|
355
|
-
}
|
|
356
|
-
function Le(t) {
|
|
357
|
-
return N(this, arguments, function* (e, s = Se) {
|
|
358
|
-
const n = new AbortController();
|
|
359
|
-
ee.on("SIGINT", () => {
|
|
360
|
-
_.warn("Process interrupted. Terminating..."), n.abort(), ee.exit();
|
|
361
|
-
});
|
|
362
|
-
try {
|
|
363
|
-
if (typeof e == "string") {
|
|
364
|
-
const { stdout: a, stderr: c } = yield Ge(e, {
|
|
365
|
-
maxBuffer: 104857600,
|
|
366
|
-
signal: n.signal
|
|
367
|
-
});
|
|
368
|
-
[a, c].forEach((p) => p && s(p));
|
|
369
|
-
}
|
|
370
|
-
} catch (a) {
|
|
371
|
-
const { stdout: c, stderr: p, message: o } = a;
|
|
372
|
-
[c, p].forEach((r) => r && s(r)), !p && !c && _.error(`Command failed: ${o}`);
|
|
373
|
-
}
|
|
374
|
-
});
|
|
375
|
-
}
|
|
376
|
-
function j(e) {
|
|
377
|
-
return { raw: !0, cmd: e };
|
|
378
|
-
}
|
|
379
|
-
function te(e, s) {
|
|
380
|
-
return s != null && s.isCurrentProject ? `${x} ${G} ${Fe} ${e}` : `${x} ${je} ${e}`;
|
|
381
|
-
}
|
|
382
|
-
function F(e, s) {
|
|
383
|
-
return typeof e == "function" ? te(e(s), s) : typeof e == "object" && (e == null ? void 0 : e.raw) === !0 ? e.cmd : typeof e == "string" ? te(e, s) : e;
|
|
384
|
-
}
|
|
385
|
-
function ps(e) {
|
|
386
|
-
return N(this, null, function* () {
|
|
387
|
-
const s = yield H({ name: k });
|
|
388
|
-
if (s.success) {
|
|
389
|
-
const t = { isCurrentProject: s.result.isCurrentProject }, n = typeof e == "function" ? e(t) : e;
|
|
390
|
-
return Object.fromEntries(
|
|
391
|
-
Object.entries(n).map(([a, c]) => [a, F(c, t)])
|
|
392
|
-
);
|
|
393
|
-
}
|
|
394
|
-
});
|
|
395
|
-
}
|
|
396
|
-
function le(e, s) {
|
|
397
|
-
return N(this, null, function* () {
|
|
398
|
-
try {
|
|
399
|
-
_.start(`${e}`), ie.DEBUG && _.info(`→ ${s}`), yield Le(s), _.success(`${e} done.`);
|
|
400
|
-
} catch (t) {
|
|
401
|
-
d(t);
|
|
402
|
-
}
|
|
403
|
-
});
|
|
404
|
-
}
|
|
405
|
-
const Ae = b(), J = Ae.CWD, k = "@cyberskill/shared", W = "node_modules", $e = "dist", he = "public", X = "package.json", Me = "package-lock.json", Ve = "tsconfig.json", Re = ".gitignore", we = ".simple-git-hooks.json", Ke = "pnpm-lock.yaml", Ye = ".git/hooks/", ve = ".git/COMMIT_EDITMSG", Ue = ".migrate-mongo.config.js", S = (() => {
|
|
406
|
-
const s = Ie.readJsonSync(u(X)).name === k ? J : U(J, W, k);
|
|
407
|
-
return U(s, $e);
|
|
408
|
-
})(), je = "cyberskill", Fe = "src/node/cli/index.ts", ne = "eslint", re = "eslint", ae = "vitest", oe = "vitest", Je = "@commitlint/cli", ke = "@commitlint/config-conventional", Ee = "commitlint", xe = "lint-staged", me = "lint-staged", be = "typescript", He = "tsc", G = "tsx", pe = "git", L = "pnpm", x = "pnpm exec", Be = "simple-git-hooks", We = "simple-git-hooks", Xe = "@eslint/config-inspector", ze = "eslint-config-inspector", Qe = "node-modules-inspector", Ze = "node-modules-inspector", Y = "migrate-mongo", v = "./node_modules/migrate-mongo/bin/migrate-mongo", E = {
|
|
409
|
-
CYBERSKILL_DIRECTORY: S,
|
|
410
|
-
WORKING_DIRECTORY: J,
|
|
411
|
-
PUBLIC_DIRECTORY: u(he),
|
|
412
|
-
TS_CONFIG: u(Ve),
|
|
413
|
-
GIT_IGNORE: u(Re),
|
|
414
|
-
GIT_HOOK: u(Ye),
|
|
415
|
-
GIT_COMMIT_MSG: u(ve),
|
|
416
|
-
SIMPLE_GIT_HOOKS_JSON: u(we),
|
|
417
|
-
PACKAGE_JSON: u(X),
|
|
418
|
-
PACKAGE_LOCK_JSON: u(Me),
|
|
419
|
-
PNPM_LOCK_YAML: u(Ke),
|
|
420
|
-
NODE_MODULES: u(W),
|
|
421
|
-
MIGRATE_MONGO_CONFIG: u(Ue),
|
|
422
|
-
LINT_STAGED_CONFIG: u(`${S}/src/config/lint-staged/index.js`),
|
|
423
|
-
COMMITLINT_CONFIG: u(`${S}/src/config/commitlint/index.js`),
|
|
424
|
-
VITEST_UNIT_CONFIG: u(`${S}/src/config/vitest/vitest.unit.js`),
|
|
425
|
-
VITEST_UNIT_SETUP_CONFIG: u(`${S}/src/config/vitest/vitest.unit.setup.js`),
|
|
426
|
-
VITEST_E2E_CONFIG: u(`${S}/src/config/vitest/vitest.e2e.js`)
|
|
427
|
-
};
|
|
428
|
-
function us({ isCurrentProject: e }) {
|
|
429
|
-
return q({
|
|
430
|
-
"pre-commit": me,
|
|
431
|
-
"commit-msg": Ee
|
|
432
|
-
}, e && { "pre-push": j(`${pe} pull`) });
|
|
433
|
-
}
|
|
434
|
-
function m({ type: e, packages: s, command: t }) {
|
|
435
|
-
const n = s == null ? void 0 : s.reduce((a, c) => (a.some((p) => p.name === c.name) || a.push(c), a), []);
|
|
436
|
-
return () => N(null, null, function* () {
|
|
437
|
-
switch (e) {
|
|
438
|
-
case l.CLI:
|
|
439
|
-
return n != null && n.length && (yield Oe(n, {
|
|
440
|
-
install: !0
|
|
441
|
-
})), F(j(`${x} ${t}`));
|
|
442
|
-
case l.STRING:
|
|
443
|
-
return F(j(t));
|
|
444
|
-
default:
|
|
445
|
-
throw new Error("Unsupported command type");
|
|
446
|
-
}
|
|
447
|
-
});
|
|
448
|
-
}
|
|
449
|
-
const w = {
|
|
450
|
-
simpleGitHooks: m({
|
|
451
|
-
type: l.CLI,
|
|
452
|
-
packages: [
|
|
453
|
-
{
|
|
454
|
-
name: Be,
|
|
455
|
-
type: i.DEV_DEPENDENCY
|
|
456
|
-
}
|
|
457
|
-
],
|
|
458
|
-
command: We
|
|
459
|
-
}),
|
|
460
|
-
eslintInspect: m({
|
|
461
|
-
type: l.CLI,
|
|
462
|
-
packages: [
|
|
463
|
-
{
|
|
464
|
-
name: Xe,
|
|
465
|
-
type: i.DEV_DEPENDENCY
|
|
466
|
-
}
|
|
467
|
-
],
|
|
468
|
-
command: ze
|
|
469
|
-
}),
|
|
470
|
-
nodeModulesInspect: m({
|
|
471
|
-
type: l.CLI,
|
|
472
|
-
packages: [
|
|
473
|
-
{
|
|
474
|
-
name: Qe,
|
|
475
|
-
type: i.DEV_DEPENDENCY
|
|
476
|
-
}
|
|
477
|
-
],
|
|
478
|
-
command: Ze
|
|
479
|
-
}),
|
|
480
|
-
eslintCheck: m({
|
|
481
|
-
type: l.CLI,
|
|
482
|
-
packages: [
|
|
483
|
-
{
|
|
484
|
-
name: ne,
|
|
485
|
-
type: i.DEV_DEPENDENCY
|
|
486
|
-
}
|
|
487
|
-
],
|
|
488
|
-
command: `${re} ${E.WORKING_DIRECTORY} --no-cache`
|
|
489
|
-
}),
|
|
490
|
-
eslintFix: m({
|
|
491
|
-
type: l.CLI,
|
|
492
|
-
packages: [
|
|
493
|
-
{
|
|
494
|
-
name: ne,
|
|
495
|
-
type: i.DEV_DEPENDENCY
|
|
496
|
-
}
|
|
497
|
-
],
|
|
498
|
-
command: `${re} ${E.WORKING_DIRECTORY} --fix --no-cache`
|
|
499
|
-
}),
|
|
500
|
-
typescriptCheck: m({
|
|
501
|
-
type: l.CLI,
|
|
502
|
-
packages: [
|
|
503
|
-
{
|
|
504
|
-
name: be,
|
|
505
|
-
type: i.DEV_DEPENDENCY
|
|
506
|
-
}
|
|
507
|
-
],
|
|
508
|
-
command: `${He} -p ${E.TS_CONFIG} --noEmit`
|
|
509
|
-
}),
|
|
510
|
-
testUnit: m({
|
|
511
|
-
type: l.CLI,
|
|
512
|
-
packages: [
|
|
513
|
-
{
|
|
514
|
-
name: ae,
|
|
515
|
-
type: i.DEV_DEPENDENCY
|
|
516
|
-
}
|
|
517
|
-
],
|
|
518
|
-
command: `${oe} --config ${E.VITEST_UNIT_CONFIG}`
|
|
519
|
-
}),
|
|
520
|
-
testE2e: m({
|
|
521
|
-
type: l.CLI,
|
|
522
|
-
packages: [
|
|
523
|
-
{
|
|
524
|
-
name: ae,
|
|
525
|
-
type: i.DEV_DEPENDENCY
|
|
526
|
-
}
|
|
527
|
-
],
|
|
528
|
-
command: `${oe} --config ${E.VITEST_E2E_CONFIG}`
|
|
529
|
-
}),
|
|
530
|
-
mongoMigrateCreate: (e) => m({
|
|
531
|
-
type: l.CLI,
|
|
532
|
-
packages: [
|
|
533
|
-
{
|
|
534
|
-
name: G,
|
|
535
|
-
type: i.DEPENDENCY
|
|
536
|
-
},
|
|
537
|
-
{
|
|
538
|
-
name: Y,
|
|
539
|
-
type: i.DEPENDENCY
|
|
540
|
-
}
|
|
541
|
-
],
|
|
542
|
-
command: `${G} ${v} create ${e} -f ${E.MIGRATE_MONGO_CONFIG}`
|
|
543
|
-
})(),
|
|
544
|
-
mongoMigrateUp: m({
|
|
545
|
-
type: l.CLI,
|
|
546
|
-
packages: [
|
|
547
|
-
{
|
|
548
|
-
name: G,
|
|
549
|
-
type: i.DEPENDENCY
|
|
550
|
-
},
|
|
551
|
-
{
|
|
552
|
-
name: Y,
|
|
553
|
-
type: i.DEPENDENCY
|
|
554
|
-
}
|
|
555
|
-
],
|
|
556
|
-
command: `${G} ${v} up -f ${E.MIGRATE_MONGO_CONFIG}`
|
|
557
|
-
}),
|
|
558
|
-
mongoMigrateDown: m({
|
|
559
|
-
type: l.CLI,
|
|
560
|
-
packages: [
|
|
561
|
-
{
|
|
562
|
-
name: G,
|
|
563
|
-
type: i.DEPENDENCY
|
|
564
|
-
},
|
|
565
|
-
{
|
|
566
|
-
name: Y,
|
|
567
|
-
type: i.DEPENDENCY
|
|
568
|
-
}
|
|
569
|
-
],
|
|
570
|
-
command: `${G} ${v} down -f ${E.MIGRATE_MONGO_CONFIG}`
|
|
571
|
-
}),
|
|
572
|
-
commitLint: m({
|
|
573
|
-
type: l.CLI,
|
|
574
|
-
packages: [
|
|
575
|
-
{
|
|
576
|
-
name: Je,
|
|
577
|
-
type: i.DEV_DEPENDENCY
|
|
578
|
-
},
|
|
579
|
-
{
|
|
580
|
-
name: ke,
|
|
581
|
-
type: i.DEV_DEPENDENCY
|
|
582
|
-
}
|
|
583
|
-
],
|
|
584
|
-
command: `${Ee} --edit ${E.GIT_COMMIT_MSG} --config ${E.COMMITLINT_CONFIG}`
|
|
585
|
-
}),
|
|
586
|
-
lintStaged: m({
|
|
587
|
-
type: l.CLI,
|
|
588
|
-
packages: [
|
|
589
|
-
{
|
|
590
|
-
name: xe,
|
|
591
|
-
type: i.DEV_DEPENDENCY
|
|
592
|
-
}
|
|
593
|
-
],
|
|
594
|
-
command: `${me} --config ${E.LINT_STAGED_CONFIG}`
|
|
595
|
-
}),
|
|
596
|
-
configureGitHook: m({
|
|
597
|
-
type: l.STRING,
|
|
598
|
-
command: `${pe} config core.hooksPath ${E.GIT_HOOK}`
|
|
599
|
-
}),
|
|
600
|
-
build: m({
|
|
601
|
-
type: l.STRING,
|
|
602
|
-
command: `${L} run --if-present build`
|
|
603
|
-
}),
|
|
604
|
-
pnpmInstallStandard: m({
|
|
605
|
-
type: l.STRING,
|
|
606
|
-
command: `${L} install --ignore-scripts`
|
|
607
|
-
}),
|
|
608
|
-
pnpmInstallLegacy: m({
|
|
609
|
-
type: l.STRING,
|
|
610
|
-
command: `${L} install --ignore-scripts --legacy-peer-deps`
|
|
611
|
-
}),
|
|
612
|
-
pnpmInstallForce: m({
|
|
613
|
-
type: l.STRING,
|
|
614
|
-
command: `${L} install --ignore-scripts --force`
|
|
615
|
-
}),
|
|
616
|
-
pnpmPruneStore: m({
|
|
617
|
-
type: l.STRING,
|
|
618
|
-
command: `${L} store prune`
|
|
619
|
-
}),
|
|
620
|
-
pnpmCleanCache: m({
|
|
621
|
-
type: l.STRING,
|
|
622
|
-
command: `${L} cache delete`
|
|
623
|
-
})
|
|
624
|
-
};
|
|
625
|
-
export {
|
|
626
|
-
F as $,
|
|
627
|
-
Y as A,
|
|
628
|
-
$e as B,
|
|
629
|
-
k as C,
|
|
630
|
-
v as D,
|
|
631
|
-
ne as E,
|
|
632
|
-
E as F,
|
|
633
|
-
Re as G,
|
|
634
|
-
us as H,
|
|
635
|
-
w as I,
|
|
636
|
-
i as J,
|
|
637
|
-
ye as K,
|
|
638
|
-
xe as L,
|
|
639
|
-
Ue as M,
|
|
640
|
-
W as N,
|
|
641
|
-
H as O,
|
|
642
|
-
he as P,
|
|
643
|
-
se as Q,
|
|
644
|
-
ge as R,
|
|
645
|
-
we as S,
|
|
646
|
-
Ve as T,
|
|
647
|
-
Oe as U,
|
|
648
|
-
ae as V,
|
|
649
|
-
J as W,
|
|
650
|
-
l as X,
|
|
651
|
-
Es as Y,
|
|
652
|
-
ms as Z,
|
|
653
|
-
j as _,
|
|
654
|
-
X as a,
|
|
655
|
-
ps as a0,
|
|
656
|
-
le as a1,
|
|
657
|
-
Me as b,
|
|
658
|
-
Ke as c,
|
|
659
|
-
Ye as d,
|
|
660
|
-
ve as e,
|
|
661
|
-
S as f,
|
|
662
|
-
je as g,
|
|
663
|
-
Fe as h,
|
|
664
|
-
re as i,
|
|
665
|
-
oe as j,
|
|
666
|
-
Je as k,
|
|
667
|
-
ke as l,
|
|
668
|
-
Ee as m,
|
|
669
|
-
me as n,
|
|
670
|
-
be as o,
|
|
671
|
-
He as p,
|
|
672
|
-
G as q,
|
|
673
|
-
pe as r,
|
|
674
|
-
L as s,
|
|
675
|
-
x as t,
|
|
676
|
-
Be as u,
|
|
677
|
-
We as v,
|
|
678
|
-
Xe as w,
|
|
679
|
-
ze as x,
|
|
680
|
-
Qe as y,
|
|
681
|
-
Ze as z
|
|
682
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const e={extends:["@commitlint/config-conventional"],ignores:[n=>n.includes("[🚀 CI - Deploy]")]};module.exports=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("@antfu/eslint-config");require("./vitest/vitest.e2e.cjs");require("./vitest/vitest.unit.cjs");require("../util/object/object.util.cjs");const e=require("../../config.util-Ci2CZDut.cjs");require("./eslint/index.cjs");exports.mergeConfigs=e.mergeConfigs;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import "@antfu/eslint-config";
|
|
2
|
-
import "./vitest/vitest.e2e.js";
|
|
3
|
-
import "./vitest/vitest.unit.js";
|
|
4
|
-
import "../util/object/object.util.js";
|
|
5
|
-
import { m as f } from "../../config.util-DKBwEBKR.js";
|
|
6
|
-
import "./eslint/index.js";
|
|
7
|
-
export {
|
|
8
|
-
f as mergeConfigs
|
|
9
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=".cyberskill-storage";exports.CYBERSKILL_STORAGE_DIRECTORY=e;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("@dotenvx/dotenvx"),n=require("envalid"),s=require("node:os"),E=require("node:path"),t=require("node:process"),c=require("../../typescript/common.cjs"),a=require("./env.constant.cjs");let r=!1;const l=n.makeValidator(e=>typeof e=="boolean"?e:typeof e=="string");function o(){t.env.NODE_ENV!==c.E_Environment.PRODUCTION&&!r&&(i.config(),r=!0)}function u(){o();const e=n.cleanEnv(t.env,{CWD:n.str({default:t.cwd()}),DEBUG:l({default:!1}),CYBERSKILL_STORAGE_DIRECTORY:n.str({default:E.join(s.homedir(),a.CYBERSKILL_STORAGE_DIRECTORY)})});return{CWD:e.CWD,DEBUG:e.DEBUG,CYBERSKILL_STORAGE_DIRECTORY:e.CYBERSKILL_STORAGE_DIRECTORY}}exports.getEnv=u;exports.loadEnvFile=o;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./env.constant.cjs"),e=require("./env.util.cjs");exports.CYBERSKILL_STORAGE_DIRECTORY=n.CYBERSKILL_STORAGE_DIRECTORY;exports.getEnv=e.getEnv;exports.loadEnvFile=e.loadEnvFile;
|