@modern-js/plugin 2.41.0 → 2.42.1
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/types/farrow-pipeline/context.d.ts +6 -6
- package/dist/types/farrow-pipeline/counter.d.ts +3 -3
- package/dist/types/farrow-pipeline/index.d.ts +7 -7
- package/dist/types/index.d.ts +1 -1
- package/dist/types/manager/async.d.ts +45 -45
- package/dist/types/manager/index.d.ts +1 -1
- package/dist/types/manager/shared.d.ts +3 -3
- package/dist/types/manager/sync.d.ts +52 -52
- package/dist/types/manager/types.d.ts +16 -12
- package/dist/types/waterfall/async.d.ts +7 -7
- package/dist/types/waterfall/index.d.ts +1 -1
- package/dist/types/waterfall/sync.d.ts +7 -7
- package/dist/types/workflow/async.d.ts +4 -4
- package/dist/types/workflow/index.d.ts +1 -1
- package/dist/types/workflow/parallel.d.ts +4 -4
- package/dist/types/workflow/sync.d.ts +4 -4
- package/package.json +4 -4
@@ -3,10 +3,10 @@
|
|
3
3
|
* license at https://github.com/farrow-js/farrow/blob/master/LICENSE
|
4
4
|
*/
|
5
5
|
export type Context<T = any> = {
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
6
|
+
use: () => {
|
7
|
+
value: T;
|
8
|
+
};
|
9
|
+
get: () => T;
|
10
|
+
set: (value: T) => void;
|
11
11
|
};
|
12
|
-
export declare const createContext: <T>(value: T) => Context<T>;
|
12
|
+
export declare const createContext: <T>(value: T) => Context<T>;
|
@@ -5,7 +5,7 @@
|
|
5
5
|
export type Next<I = unknown, O = unknown> = (input?: I) => O;
|
6
6
|
export type CounterCallback<I = unknown, O = unknown> = (index: number, input: I, next: Next<I, O>) => O;
|
7
7
|
export type Counter<I = unknown, O = unknown> = {
|
8
|
-
|
9
|
-
|
8
|
+
start: (input: I) => O;
|
9
|
+
dispatch: (index: number, input: I) => O;
|
10
10
|
};
|
11
|
-
export declare const createCounter: <I, O>(callback: CounterCallback<I, O>) => Counter<I, O>;
|
11
|
+
export declare const createCounter: <I, O>(callback: CounterCallback<I, O>) => Counter<I, O>;
|
@@ -12,18 +12,18 @@ export type Middlewares<I = unknown, O = unknown> = Middleware<I, O>[];
|
|
12
12
|
export declare const isPipeline: (input: any) => input is Pipeline<unknown, unknown>;
|
13
13
|
declare const PipelineSymbol: unique symbol;
|
14
14
|
export type RunPipelineOptions<I = unknown, O = unknown> = {
|
15
|
-
|
15
|
+
onLast?: (input: I) => O;
|
16
16
|
};
|
17
17
|
export type MiddlewareInput<I = unknown, O = unknown> = Middleware<I, O> | {
|
18
|
-
|
18
|
+
middleware: Middleware<I, O>;
|
19
19
|
};
|
20
20
|
export type Pipeline<I = unknown, O = unknown> = {
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
[PipelineSymbol]: true;
|
22
|
+
use: (...inputs: MiddlewareInput<I, O>[]) => Pipeline<I, O>;
|
23
|
+
run: (input: I, options?: RunPipelineOptions<I, O>) => O;
|
24
|
+
middleware: Middleware<I, O>;
|
25
25
|
};
|
26
26
|
export declare const createPipeline: <I, O>() => Pipeline<I, O>;
|
27
27
|
export type MaybeAsync<T> = T | Promise<T>;
|
28
28
|
export type AsyncPipeline<I = unknown, O = unknown> = Pipeline<I, MaybeAsync<O>>;
|
29
|
-
export declare const createAsyncPipeline: <I, O>() => AsyncPipeline<I, O>;
|
29
|
+
export declare const createAsyncPipeline: <I, O>() => AsyncPipeline<I, O>;
|
package/dist/types/index.d.ts
CHANGED
@@ -3,52 +3,52 @@ import type { ToRunners, ToThreads, CommonAPI, PluginOptions } from './types';
|
|
3
3
|
export type AsyncSetup<Hooks, API = Record<string, never>> = (api: API & CommonAPI<Hooks>) => Partial<ToThreads<Hooks>> | Promise<Partial<ToThreads<Hooks>> | void> | void;
|
4
4
|
declare const ASYNC_PLUGIN_SYMBOL = "ASYNC_PLUGIN_SYMBOL";
|
5
5
|
export type AsyncPlugin<Hooks, API> = {
|
6
|
-
|
6
|
+
ASYNC_PLUGIN_SYMBOL: typeof ASYNC_PLUGIN_SYMBOL;
|
7
7
|
} & Required<PluginOptions<Hooks, AsyncSetup<Hooks, API>>>;
|
8
8
|
export type AsyncManager<Hooks, API> = {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
9
|
+
/**
|
10
|
+
* Create a sync plugin.
|
11
|
+
* @param setup the setup function.
|
12
|
+
* @param options optional plugin options.
|
13
|
+
*/
|
14
|
+
createPlugin: (setup?: AsyncSetup<Hooks, API>, options?: PluginOptions<Hooks, AsyncSetup<Hooks, API>>) => AsyncPlugin<Hooks, API>;
|
15
|
+
/**
|
16
|
+
* Determine if a value is a async plugin.
|
17
|
+
* @param input
|
18
|
+
*/
|
19
|
+
isPlugin: (input: unknown) => input is AsyncPlugin<Hooks, API>;
|
20
|
+
/**
|
21
|
+
* Register new plugins to current manager.
|
22
|
+
* @param plugins one or more plugin.
|
23
|
+
*/
|
24
|
+
usePlugin: (...plugins: Array<AsyncPlugin<Hooks, API> | PluginOptions<Hooks, AsyncSetup<Hooks, API>> | (() => PluginOptions<Hooks, AsyncSetup<Hooks, API>>)>) => AsyncManager<Hooks, API>;
|
25
|
+
/**
|
26
|
+
* Init manager, it will call the setup function of all registered plugins.
|
27
|
+
*/
|
28
|
+
init: () => Promise<ToRunners<Hooks>>;
|
29
|
+
/**
|
30
|
+
* Run callback function.
|
31
|
+
* @param callback
|
32
|
+
*/
|
33
|
+
run: <O>(cb: () => O) => O;
|
34
|
+
/**
|
35
|
+
* Register new hooks.
|
36
|
+
* @param newHooks
|
37
|
+
*/
|
38
|
+
registerHook: (newHooks: Partial<Hooks>) => void;
|
39
|
+
/**
|
40
|
+
* Return a cloned manager.
|
41
|
+
* @param overrideAPI override the default plugin API.
|
42
|
+
*/
|
43
|
+
clone: (overrideAPI?: Partial<API & CommonAPI<Hooks>>) => AsyncManager<Hooks, API>;
|
44
|
+
/**
|
45
|
+
* Clear all registered plugins.
|
46
|
+
*/
|
47
|
+
clear: () => void;
|
48
|
+
/**
|
49
|
+
* Get all runner functions of the hooks.
|
50
|
+
*/
|
51
|
+
useRunner: () => ToRunners<Hooks>;
|
52
52
|
};
|
53
53
|
export declare const createAsyncManager: <Hooks extends Record<string, any>, API extends Record<string, any> = Record<string, never>>(hooks?: Partial<Hooks> | undefined, api?: API | undefined) => AsyncManager<Hooks, API>;
|
54
|
-
export {};
|
54
|
+
export {};
|
@@ -4,9 +4,9 @@ export declare const checkPlugins: <Hooks, API>(plugins: Plugin<Hooks, API>[] |
|
|
4
4
|
export declare function sortPlugins<Hooks, API>(input: Plugin<Hooks, API>[]): Plugin<Hooks, API>[];
|
5
5
|
export declare function sortPlugins<Hooks, API>(input: AsyncPlugin<Hooks, API>[]): AsyncPlugin<Hooks, API>[];
|
6
6
|
export declare const includePlugin: <P extends {
|
7
|
-
|
7
|
+
name: string;
|
8
8
|
}, I extends {
|
9
|
-
|
9
|
+
name: string;
|
10
10
|
}>(plugins: P[], input: I) => boolean;
|
11
11
|
export declare const isObject: (obj: unknown) => obj is Record<string, any>;
|
12
|
-
export declare const hasOwnProperty: <X extends Record<string, unknown>, Y extends PropertyKey>(obj: X, prop: Y) => obj is X & Record<Y, unknown>;
|
12
|
+
export declare const hasOwnProperty: <X extends Record<string, unknown>, Y extends PropertyKey>(obj: X, prop: Y) => obj is X & Record<Y, unknown>;
|
@@ -3,64 +3,64 @@ import type { Hook, CommonAPI, ToRunners, ToThreads, PluginOptions } from './typ
|
|
3
3
|
export type Setup<Hooks, API = Record<string, never>> = (api: API) => Partial<ToThreads<Hooks>> | void;
|
4
4
|
declare const SYNC_PLUGIN_SYMBOL = "SYNC_PLUGIN_SYMBOL";
|
5
5
|
export type Plugin<Hooks, API> = {
|
6
|
-
|
6
|
+
SYNC_PLUGIN_SYMBOL: typeof SYNC_PLUGIN_SYMBOL;
|
7
7
|
} & Required<PluginOptions<Hooks, Setup<Hooks, API>>>;
|
8
8
|
export type Manager<Hooks, API> = {
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
9
|
+
/**
|
10
|
+
* Create a sync plugin.
|
11
|
+
* @param setup the setup function.
|
12
|
+
* @param options optional plugin options.
|
13
|
+
*/
|
14
|
+
createPlugin: (setup?: Setup<Hooks, API>, options?: PluginOptions<Hooks, Setup<Hooks, API>>) => Plugin<Hooks, API>;
|
15
|
+
/**
|
16
|
+
* Determine if a value is a sync plugin.
|
17
|
+
* @param input
|
18
|
+
*/
|
19
|
+
isPlugin: (input: unknown) => input is Plugin<Hooks, API>;
|
20
|
+
/**
|
21
|
+
* Register new plugins to current manager.
|
22
|
+
* @param plugins one or more plugin.
|
23
|
+
*/
|
24
|
+
usePlugin: (...plugins: Array<Plugin<Hooks, API> | PluginOptions<Hooks, Setup<Hooks, API>> | (() => PluginOptions<Hooks, Setup<Hooks, API>>)>) => Manager<Hooks, API>;
|
25
|
+
/**
|
26
|
+
* Init manager, it will call the setup function of all registered plugins.
|
27
|
+
*/
|
28
|
+
init: () => ToRunners<Hooks>;
|
29
|
+
/**
|
30
|
+
* Run callback function.
|
31
|
+
* @param callback
|
32
|
+
*/
|
33
|
+
run: <O>(cb: () => O) => O;
|
34
|
+
/**
|
35
|
+
* Register new hooks.
|
36
|
+
* @param newHooks
|
37
|
+
*/
|
38
|
+
registerHook: (hewHooks: Partial<Hooks>) => void;
|
39
|
+
/**
|
40
|
+
* Clear all registered plugins.
|
41
|
+
*/
|
42
|
+
clear: () => void;
|
43
|
+
/**
|
44
|
+
* Return a cloned manager.
|
45
|
+
* @param overrideAPI override the default plugin API.
|
46
|
+
*/
|
47
|
+
clone: (overrideAPI?: Partial<API & CommonAPI<Hooks>>) => Manager<Hooks, API>;
|
48
|
+
/**
|
49
|
+
* Get all runner functions of the hooks.
|
50
|
+
*/
|
51
|
+
useRunner: () => ToRunners<Hooks>;
|
52
52
|
};
|
53
53
|
export declare const DEFAULT_OPTIONS: {
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
54
|
+
name: string;
|
55
|
+
pre: never[];
|
56
|
+
post: never[];
|
57
|
+
rivals: never[];
|
58
|
+
required: never[];
|
59
|
+
usePlugins: never[];
|
60
|
+
registerHook: {};
|
61
61
|
};
|
62
62
|
export declare const createManager: <Hooks extends Record<string, any>, API extends Record<string, any> = Record<string, never>>(hooks?: Partial<Hooks> | undefined, api?: API | undefined) => Manager<Hooks, API>;
|
63
63
|
export declare const generateRunner: <Hooks extends Record<string, any>>(hooksList: (void | Partial<ToThreads<Hooks>>)[], hooksMap?: Hooks | undefined) => ToRunners<Hooks>;
|
64
64
|
export declare const cloneHook: (hook: Hook) => Hook;
|
65
65
|
export declare const cloneHooksMap: <Hooks>(record: Hooks) => Hooks;
|
66
|
-
export {};
|
66
|
+
export {};
|
@@ -7,23 +7,27 @@ export type HooksMap = Record<string, Hook>;
|
|
7
7
|
/** Extract the type of callback function from a hook. */
|
8
8
|
export type ToThread<P extends Hook> = P extends Workflow<infer I, infer O> ? Worker<I, O> : P extends AsyncWorkflow<infer I, infer O> ? AsyncWorker<I, O> : P extends ParallelWorkflow<infer I, infer O> ? AsyncWorker<I, O> : P extends Waterfall<infer I> ? Brook<I> : P extends AsyncWaterfall<infer I> ? AsyncBrook<I> : P extends Pipeline<infer I, infer O> ? Middleware<I, O> : P extends AsyncPipeline<infer I, infer O> ? Middleware<I, MaybeAsync<O>> : never;
|
9
9
|
/** Extract types of callback function from hooks. */
|
10
|
-
export type ToThreads<PS> = {
|
10
|
+
export type ToThreads<PS> = {
|
11
|
+
[K in keyof PS]: PS[K] extends Hook ? ToThread<PS[K]> : PS[K] extends void ? void : never;
|
12
|
+
};
|
11
13
|
/** Extract run method from a hook. */
|
12
14
|
export type RunnerFromHook<P extends Hook> = P extends Waterfall<infer I> ? Waterfall<I>['run'] : P extends AsyncWaterfall<infer I> ? AsyncWaterfall<I>['run'] : P extends Workflow<infer I, infer O> ? Workflow<I, O>['run'] : P extends AsyncWorkflow<infer I, infer O> ? AsyncWorkflow<I, O>['run'] : P extends ParallelWorkflow<infer I, infer O> ? ParallelWorkflow<I, O>['run'] : P extends Pipeline<infer I, infer O> ? Pipeline<I, O>['run'] : P extends AsyncPipeline<infer I, infer O> ? AsyncPipeline<I, O>['run'] : never;
|
13
15
|
/** Extract all run methods from hooks. */
|
14
|
-
export type ToRunners<PS> = {
|
16
|
+
export type ToRunners<PS> = {
|
17
|
+
[K in keyof PS]: PS[K] extends Hook ? RunnerFromHook<PS[K]> : PS[K] extends void ? void : never;
|
18
|
+
};
|
15
19
|
/** All options to define a plugin. */
|
16
20
|
export type PluginOptions<Hooks, Setup = undefined, ExtendHooks = Record<string, unknown>> = {
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
name?: string;
|
22
|
+
pre?: string[];
|
23
|
+
post?: string[];
|
24
|
+
setup?: Setup;
|
25
|
+
rivals?: string[];
|
26
|
+
required?: string[];
|
27
|
+
usePlugins?: PluginOptions<any, any>[];
|
28
|
+
registerHook?: Partial<Hooks & ExtendHooks>;
|
25
29
|
};
|
26
30
|
/** Common api of setup function. */
|
27
31
|
export type CommonAPI<Hooks> = {
|
28
|
-
|
29
|
-
};
|
32
|
+
useHookRunners: () => ToRunners<Hooks>;
|
33
|
+
};
|
@@ -2,20 +2,20 @@ import { MaybeAsync } from '../farrow-pipeline';
|
|
2
2
|
declare const ASYNC_WATERFALL_SYMBOL: unique symbol;
|
3
3
|
export type AsyncBrook<I = unknown> = (I: I) => MaybeAsync<I>;
|
4
4
|
export type AsyncBrookInput<I = unknown> = AsyncBrook<I> | {
|
5
|
-
|
5
|
+
middleware: AsyncBrook<I>;
|
6
6
|
};
|
7
7
|
export type AsyncBrooks<I = unknown> = AsyncBrook<I>[];
|
8
8
|
export type AsyncBrookInputs<I = unknown> = AsyncBrookInput<I>[];
|
9
9
|
export declare const getAsyncBrook: <I>(input: AsyncBrookInput<I>) => AsyncBrook<I>;
|
10
10
|
export type RunAsyncWaterfallOptions<I = unknown> = {
|
11
|
-
|
11
|
+
onLast?: AsyncBrook<I>;
|
12
12
|
};
|
13
13
|
export type AsyncWaterfall<I> = {
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
14
|
+
run: (input: I, options?: RunAsyncWaterfallOptions<I>) => MaybeAsync<I>;
|
15
|
+
use: (...I: AsyncBrookInputs<I>) => AsyncWaterfall<I>;
|
16
|
+
middleware: AsyncBrook<I>;
|
17
|
+
[ASYNC_WATERFALL_SYMBOL]: true;
|
18
18
|
};
|
19
19
|
export declare const createAsyncWaterfall: <I = void>() => AsyncWaterfall<I>;
|
20
20
|
export declare const isAsyncWaterfall: (input: any) => input is AsyncWaterfall<any>;
|
21
|
-
export {};
|
21
|
+
export {};
|
@@ -1,2 +1,2 @@
|
|
1
1
|
export * from './sync';
|
2
|
-
export * from './async';
|
2
|
+
export * from './async';
|
@@ -1,20 +1,20 @@
|
|
1
1
|
declare const WATERFALL_SYMBOL: unique symbol;
|
2
2
|
export type Brook<I = unknown> = (I: I) => I;
|
3
3
|
export type BrookInput<I = unknown> = Brook<I> | {
|
4
|
-
|
4
|
+
middleware: Brook<I>;
|
5
5
|
};
|
6
6
|
export type Brooks<I = unknown> = Brook<I>[];
|
7
7
|
export type BrookInputs<I = unknown> = BrookInput<I>[];
|
8
8
|
export declare const getBrook: <I>(input: BrookInput<I>) => Brook<I>;
|
9
9
|
export type RunWaterfallOptions<I = unknown> = {
|
10
|
-
|
10
|
+
onLast?: Brook<I>;
|
11
11
|
};
|
12
12
|
export type Waterfall<I = void> = {
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
run: (input: I, options?: RunWaterfallOptions<I>) => I;
|
14
|
+
use: (...I: BrookInputs<I>) => Waterfall<I>;
|
15
|
+
middleware: Brook<I>;
|
16
|
+
[WATERFALL_SYMBOL]: true;
|
17
17
|
};
|
18
18
|
export declare const createWaterfall: <I = void>() => Waterfall<I>;
|
19
19
|
export declare const isWaterfall: (input: any) => input is Waterfall<any>;
|
20
|
-
export {};
|
20
|
+
export {};
|
@@ -3,10 +3,10 @@ declare const ASYNC_WORKFLOW_SYMBOL: unique symbol;
|
|
3
3
|
export type AsyncWorker<I, O> = (I: I) => MaybeAsync<O>;
|
4
4
|
export type AsyncWorkers<I, O> = AsyncWorker<I, O>[];
|
5
5
|
export type AsyncWorkflow<I, O> = {
|
6
|
-
|
7
|
-
|
8
|
-
|
6
|
+
run: (input: I) => MaybeAsync<O[]>;
|
7
|
+
use: (...I: AsyncWorkers<I, O>) => AsyncWorkflow<I, O>;
|
8
|
+
[ASYNC_WORKFLOW_SYMBOL]: true;
|
9
9
|
};
|
10
10
|
export declare const isAsyncWorkflow: (input: any) => input is AsyncWorkflow<any, any>;
|
11
11
|
export declare const createAsyncWorkflow: <I = void, O = unknown>() => AsyncWorkflow<I, O>;
|
12
|
-
export {};
|
12
|
+
export {};
|
@@ -1,10 +1,10 @@
|
|
1
1
|
import type { AsyncWorkers } from './async';
|
2
2
|
declare const PARALLEL_WORKFLOW_SYMBOL: unique symbol;
|
3
3
|
export type ParallelWorkflow<I, O = any> = {
|
4
|
-
|
5
|
-
|
6
|
-
|
4
|
+
run: (input: I) => Promise<O[]>;
|
5
|
+
use: (...I: AsyncWorkers<I, O>) => ParallelWorkflow<I, O>;
|
6
|
+
[PARALLEL_WORKFLOW_SYMBOL]: true;
|
7
7
|
};
|
8
8
|
export declare const isParallelWorkflow: (input: any) => input is ParallelWorkflow<any, any>;
|
9
9
|
export declare const createParallelWorkflow: <I = void, O = unknown>() => ParallelWorkflow<I, O>;
|
10
|
-
export {};
|
10
|
+
export {};
|
@@ -2,10 +2,10 @@ declare const WORKFLOW_SYMBOL: unique symbol;
|
|
2
2
|
export type Worker<I, O> = (I: I) => O;
|
3
3
|
export type Workers<I, O> = Worker<I, O>[];
|
4
4
|
export type Workflow<I, O> = {
|
5
|
-
|
6
|
-
|
7
|
-
|
5
|
+
run: (input: I) => O[];
|
6
|
+
use: (...I: Workers<I, O>) => Workflow<I, O>;
|
7
|
+
[WORKFLOW_SYMBOL]: true;
|
8
8
|
};
|
9
9
|
export declare const createWorkflow: <I = void, O = unknown>() => Workflow<I, O>;
|
10
10
|
export declare const isWorkflow: (input: any) => input is Workflow<unknown, unknown>;
|
11
|
-
export {};
|
11
|
+
export {};
|
package/package.json
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
"modern",
|
16
16
|
"modern.js"
|
17
17
|
],
|
18
|
-
"version": "2.
|
18
|
+
"version": "2.42.1",
|
19
19
|
"jsnext:source": "./src/index.ts",
|
20
20
|
"types": "./dist/types/index.d.ts",
|
21
21
|
"main": "./dist/cjs/index.js",
|
@@ -33,15 +33,15 @@
|
|
33
33
|
},
|
34
34
|
"dependencies": {
|
35
35
|
"@swc/helpers": "0.5.3",
|
36
|
-
"@modern-js/utils": "2.
|
36
|
+
"@modern-js/utils": "2.42.1"
|
37
37
|
},
|
38
38
|
"devDependencies": {
|
39
39
|
"@types/jest": "^29",
|
40
40
|
"@types/node": "^14",
|
41
41
|
"typescript": "^5",
|
42
42
|
"jest": "^29",
|
43
|
-
"@scripts/
|
44
|
-
"@scripts/
|
43
|
+
"@scripts/jest-config": "2.42.1",
|
44
|
+
"@scripts/build": "2.42.1"
|
45
45
|
},
|
46
46
|
"sideEffects": false,
|
47
47
|
"publishConfig": {
|