@cyberskill/shared 3.12.0 → 3.13.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.d.ts +5 -1
- package/dist/{src/config → config}/config.type.d.ts +1 -1
- package/dist/{src/config → config}/config.util.d.ts +1 -1
- package/dist/config/env/index.d.ts +3 -1
- package/dist/config/eslint/index.d.ts +1198 -1
- package/dist/config/graphql-codegen/index.d.ts +2 -1
- package/dist/config/index.d.ts +2 -1
- package/dist/config/lint-staged/index.d.ts +5 -1
- package/dist/config/storybook/index.d.ts +2 -1
- package/dist/config/vitest/index.d.ts +3 -1
- package/dist/config/vitest/vitest.e2e.d.ts +20 -1
- package/dist/config/vitest/vitest.unit.d.ts +22 -1
- package/dist/constant/index.d.ts +5 -1
- package/dist/node/apollo-server/index.d.ts +2 -1
- package/dist/node/cli/index.d.ts +2 -1
- package/dist/node/command/index.d.ts +2 -1
- package/dist/node/express/index.d.ts +2 -1
- package/dist/node/fs/index.d.ts +2 -1
- package/dist/node/log/index.d.ts +2 -1
- package/dist/{src/node → node}/log/log.type.d.ts +2 -2
- package/dist/{src/node → node}/log/log.util.d.ts +1 -1
- package/dist/node/mongo/index.d.ts +6 -1
- package/dist/{src/node → node}/mongo/mongo.controller.helpers.d.ts +1 -1
- package/dist/{src/node → node}/mongo/mongo.controller.mongoose.d.ts +1 -1
- package/dist/{src/node → node}/mongo/mongo.controller.native.d.ts +1 -1
- package/dist/{src/node → node}/mongo/mongo.controller.type.d.ts +1 -1
- package/dist/node/package/index.d.ts +2 -1
- package/dist/{src/node → node}/package/package.util.d.ts +1 -1
- package/dist/node/path/index.d.ts +2 -1
- package/dist/node/storage/index.d.ts +3 -1
- package/dist/node/upload/index.d.ts +3 -1
- package/dist/{src/node → node}/upload/upload.util.d.ts +1 -1
- package/dist/node/upload/upload.util.js.map +1 -1
- package/dist/node/ws/index.d.ts +2 -1
- package/dist/{src/react → react}/apollo-client/apollo-client.type.d.ts +1 -1
- package/dist/react/apollo-client/index.d.ts +9 -1
- package/dist/react/apollo-client/links/index.d.ts +1 -1
- package/dist/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +16 -1
- package/dist/react/apollo-client-nextjs/index.d.ts +2 -1
- package/dist/react/apollo-error/index.d.ts +6 -1
- package/dist/react/i18next/index.d.ts +2 -1
- package/dist/react/loading/index.d.ts +5 -1
- package/dist/{src/react → react}/loading/loading.provider.d.ts +1 -1
- package/dist/react/log/index.d.ts +2 -1
- package/dist/react/log/log.type.d.ts +1 -0
- package/dist/{src/react → react}/log/log.util.d.ts +1 -1
- package/dist/react/next-intl/index.d.ts +6 -1
- package/dist/{src/react → react}/next-intl/next-intl.hoc.d.ts +1 -1
- package/dist/{src/react → react}/next-intl/next-intl.type.d.ts +1 -1
- package/dist/react/storage/index.d.ts +2 -1
- package/dist/{src/react → react}/storage/storage.hook.d.ts +1 -1
- package/dist/react/toast/index.d.ts +1 -1
- package/dist/react/userback/index.d.ts +2 -1
- package/dist/typescript/index.d.ts +5 -1
- package/dist/util/common/index.d.ts +5 -1
- package/dist/util/index.d.ts +9 -1
- package/dist/util/log/index.d.ts +2 -1
- package/dist/{src/util → util}/log/log.util.d.ts +1 -1
- package/dist/util/object/index.d.ts +4 -1
- package/dist/util/serializer/index.d.ts +2 -1
- package/dist/util/string/index.d.ts +5 -1
- package/dist/util/validate/index.d.ts +4 -1
- package/package.json +1 -1
- package/dist/src/config/commitlint/index.d.ts +0 -5
- package/dist/src/config/env/index.d.ts +0 -3
- package/dist/src/config/eslint/index.d.ts +0 -1198
- package/dist/src/config/graphql-codegen/index.d.ts +0 -2
- package/dist/src/config/index.d.ts +0 -2
- package/dist/src/config/lint-staged/index.d.ts +0 -5
- package/dist/src/config/storybook/index.d.ts +0 -2
- package/dist/src/config/vitest/index.d.ts +0 -3
- package/dist/src/config/vitest/vitest.e2e.d.ts +0 -20
- package/dist/src/config/vitest/vitest.unit.d.ts +0 -22
- package/dist/src/constant/index.d.ts +0 -5
- package/dist/src/node/apollo-server/index.d.ts +0 -2
- package/dist/src/node/cli/index.d.ts +0 -2
- package/dist/src/node/command/index.d.ts +0 -2
- package/dist/src/node/express/index.d.ts +0 -2
- package/dist/src/node/fs/index.d.ts +0 -2
- package/dist/src/node/log/index.d.ts +0 -2
- package/dist/src/node/mongo/index.d.ts +0 -6
- package/dist/src/node/package/index.d.ts +0 -2
- package/dist/src/node/path/index.d.ts +0 -2
- package/dist/src/node/storage/index.d.ts +0 -3
- package/dist/src/node/upload/index.d.ts +0 -3
- package/dist/src/node/ws/index.d.ts +0 -2
- package/dist/src/react/apollo-client/index.d.ts +0 -9
- package/dist/src/react/apollo-client/links/index.d.ts +0 -1
- package/dist/src/react/apollo-client-nextjs/apollo-client-nextjs.rsc.d.ts +0 -16
- package/dist/src/react/apollo-client-nextjs/index.d.ts +0 -2
- package/dist/src/react/apollo-error/index.d.ts +0 -6
- package/dist/src/react/i18next/index.d.ts +0 -2
- package/dist/src/react/loading/index.d.ts +0 -5
- package/dist/src/react/log/index.d.ts +0 -2
- package/dist/src/react/log/log.type.d.ts +0 -1
- package/dist/src/react/next-intl/index.d.ts +0 -6
- package/dist/src/react/storage/index.d.ts +0 -2
- package/dist/src/react/toast/index.d.ts +0 -1
- package/dist/src/react/userback/index.d.ts +0 -2
- package/dist/src/typescript/index.d.ts +0 -5
- package/dist/src/util/common/index.d.ts +0 -5
- package/dist/src/util/index.d.ts +0 -9
- package/dist/src/util/log/index.d.ts +0 -2
- package/dist/src/util/object/index.d.ts +0 -4
- package/dist/src/util/serializer/index.d.ts +0 -2
- package/dist/src/util/string/index.d.ts +0 -5
- package/dist/src/util/validate/index.d.ts +0 -4
- /package/dist/{src/config → config}/env/env.constant.d.ts +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}/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}/storybook/storybook.main.d.ts +0 -0
- /package/dist/{src/config → config}/storybook/storybook.preview.d.ts +0 -0
- /package/dist/{src/config → config}/vitest/vitest.unit.setup.d.ts +0 -0
- /package/dist/{src/constant → constant}/common.d.ts +0 -0
- /package/dist/{src/constant → constant}/response-status.d.ts +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}/command/command.type.d.ts +0 -0
- /package/dist/{src/node → node}/command/command.util.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}/fs/fs.type.d.ts +0 -0
- /package/dist/{src/node → node}/fs/fs.util.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.constant.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.controller.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.dynamic-populate.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.internal-types.d.ts +0 -0
- /package/dist/{src/node → node}/mongo/mongo.populate.d.ts +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/package.type.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}/storage/storage.constant.d.ts +0 -0
- /package/dist/{src/node → node}/storage/storage.type.d.ts +0 -0
- /package/dist/{src/node → node}/storage/storage.util.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.constant.d.ts +0 -0
- /package/dist/{src/node → node}/upload/upload.type.d.ts +0 -0
- /package/dist/{src/node → node}/ws/ws.type.d.ts +0 -0
- /package/dist/{src/node → node}/ws/ws.util.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.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/links/upload.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.util.d.ts +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.hook.d.ts +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}/i18next/i18next.hook.d.ts +0 -0
- /package/dist/{src/react → react}/i18next/i18next.util.d.ts +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.hook.d.ts +0 -0
- /package/dist/{src/react → react}/loading/loading.type.d.ts +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.context.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.provider.d.ts +0 -0
- /package/dist/{src/react → react}/storage/storage.util.d.ts +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 → 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}/log/log.type.d.ts +0 -0
- /package/dist/{src/util → util}/object/object.util.d.ts +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}/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/validate.util.d.ts +0 -0
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { UserConfig } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a Vitest configuration for end-to-end testing with browser automation.
|
|
4
|
-
* This function generates a Vitest configuration specifically designed for E2E testing
|
|
5
|
-
* using Playwright with multiple browser instances. It includes React support and
|
|
6
|
-
* browser automation capabilities for comprehensive end-to-end testing.
|
|
7
|
-
*
|
|
8
|
-
* The configuration includes:
|
|
9
|
-
* - React SWC plugin for fast React compilation
|
|
10
|
-
* - Browser automation with Playwright provider
|
|
11
|
-
* - Multiple browser instances (Chromium, Firefox, WebKit)
|
|
12
|
-
* - E2E test file pattern matching
|
|
13
|
-
* - Configurable options merging
|
|
14
|
-
*
|
|
15
|
-
* @param options - Additional Vite configuration options to merge with the E2E config.
|
|
16
|
-
* @returns A Vitest configuration object optimized for end-to-end testing with browser automation.
|
|
17
|
-
*/
|
|
18
|
-
export declare function vitestE2E(options: UserConfig): UserConfig;
|
|
19
|
-
declare const _default: UserConfig;
|
|
20
|
-
export default _default;
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { UserConfig } from 'vite';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a Vitest configuration for unit testing with React support.
|
|
4
|
-
* This function generates a Vitest configuration specifically designed for unit testing
|
|
5
|
-
* React components and JavaScript/TypeScript modules. It includes JSDOM environment
|
|
6
|
-
* for DOM simulation and comprehensive testing setup.
|
|
7
|
-
*
|
|
8
|
-
* The configuration includes:
|
|
9
|
-
* - React SWC plugin for fast React compilation
|
|
10
|
-
* - JSDOM environment for DOM simulation
|
|
11
|
-
* - Global test functions availability
|
|
12
|
-
* - VM threads pool for parallel test execution
|
|
13
|
-
* - Unit test file pattern matching
|
|
14
|
-
* - Setup files for testing library configuration
|
|
15
|
-
* - Configurable options merging
|
|
16
|
-
*
|
|
17
|
-
* @param options - Additional Vite configuration options to merge with the unit test config.
|
|
18
|
-
* @returns A Vitest configuration object optimized for unit testing with React and DOM support.
|
|
19
|
-
*/
|
|
20
|
-
export declare function vitestUnit(options: UserConfig): UserConfig;
|
|
21
|
-
declare const _default: UserConfig;
|
|
22
|
-
export default _default;
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export * from './apollo-client.component.js';
|
|
2
|
-
export * from './apollo-client.constant.js';
|
|
3
|
-
export * from './apollo-client.context.js';
|
|
4
|
-
export * from './apollo-client.hook.js';
|
|
5
|
-
export * from './apollo-client.type.js';
|
|
6
|
-
export * from './apollo-client.util.js';
|
|
7
|
-
export * from './links/index.js';
|
|
8
|
-
export { makeVar } from '@apollo/client/cache';
|
|
9
|
-
export { useApolloClient, useBackgroundQuery, useFragment, useLazyQuery, useLoadableQuery, useMutation, useQuery, useQueryRefHandlers, useReactiveVar, useReadQuery, useSubscription, useSuspenseFragment, useSuspenseQuery } from '@apollo/client/react';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './upload.js';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { I_ApolloOptions } from '../apollo-client/index.js';
|
|
2
|
-
/**
|
|
3
|
-
* Creates a registered Apollo Client factory for Next.js server components.
|
|
4
|
-
* This function creates a client factory that is registered with Next.js for
|
|
5
|
-
* proper server-side rendering support. The factory function ensures that
|
|
6
|
-
* each request gets its own Apollo Client instance, which is essential for
|
|
7
|
-
* SSR compatibility and preventing client state leakage between requests.
|
|
8
|
-
*
|
|
9
|
-
* @param options - Configuration options for the Apollo Client including URI, WebSocket URL, and custom links.
|
|
10
|
-
* @returns A registered Apollo Client factory function that can be used with Next.js server components.
|
|
11
|
-
*/
|
|
12
|
-
export declare const makeClient: (options?: I_ApolloOptions) => {
|
|
13
|
-
getClient: () => import('@apollo/client-integration-nextjs').ApolloClient;
|
|
14
|
-
query: <TData = unknown, TVariables extends import('@apollo/client').OperationVariables = import('@apollo/client').OperationVariables>(options: import("@apollo/client").ApolloClient.QueryOptions<TData, TVariables>) => Promise<import("@apollo/client").ApolloClient.QueryResult<import('@apollo/client').MaybeMasked<TData>>>;
|
|
15
|
-
PreloadQuery: import('@apollo/client-integration-nextjs').PreloadQueryComponent;
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export type { I_CatchErrorOptions } from '../../../util/log/index.js';
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { toast, Toaster } from 'react-hot-toast';
|
package/dist/src/util/index.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Re-exports all utility modules for shared usage across the codebase.
|
|
3
|
-
*/
|
|
4
|
-
export * from './common/index.js';
|
|
5
|
-
export * from './log/index.js';
|
|
6
|
-
export * from './object/index.js';
|
|
7
|
-
export * from './serializer/index.js';
|
|
8
|
-
export * from './string/index.js';
|
|
9
|
-
export * from './validate/index.js';
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|