@modern-js/plugin 2.58.1 → 2.58.2

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.
@@ -1,5 +1,11 @@
1
1
  import { generateRunner, DEFAULT_OPTIONS } from "./sync";
2
- import { checkPlugins, isObject, hasOwnProperty, sortPlugins, includePlugin } from "./shared";
2
+ import {
3
+ checkPlugins,
4
+ isObject,
5
+ hasOwnProperty,
6
+ sortPlugins,
7
+ includePlugin
8
+ } from "./shared";
3
9
  const ASYNC_PLUGIN_SYMBOL = "ASYNC_PLUGIN_SYMBOL";
4
10
  const createAsyncManager = (hooks, api) => {
5
11
  let index = 0;
@@ -1,7 +1,13 @@
1
1
  import { isPipeline, createPipeline } from "../farrow-pipeline";
2
2
  import { isWaterfall, createWaterfall, isAsyncWaterfall, createAsyncWaterfall } from "../waterfall";
3
3
  import { isWorkflow, createWorkflow, isAsyncWorkflow, createAsyncWorkflow, isParallelWorkflow, createParallelWorkflow, isAsyncInterruptWorkflow, createAsyncInterruptWorkflow, isSyncParallelWorkflow, createSyncParallelWorkflow } from "../workflow";
4
- import { checkPlugins, hasOwnProperty, includePlugin, isObject, sortPlugins } from "./shared";
4
+ import {
5
+ checkPlugins,
6
+ hasOwnProperty,
7
+ includePlugin,
8
+ isObject,
9
+ sortPlugins
10
+ } from "./shared";
5
11
  const SYNC_PLUGIN_SYMBOL = "SYNC_PLUGIN_SYMBOL";
6
12
  const DEFAULT_OPTIONS = {
7
13
  name: "untitled",
@@ -2,8 +2,8 @@
2
2
  * modified from https://github.com/farrow-js/farrow/tree/master/packages/farrow-pipeline
3
3
  * license at https://github.com/farrow-js/farrow/blob/master/LICENSE
4
4
  */
5
- import { createContext, Context } from './context';
6
- import { Next } from './counter';
5
+ import { createContext, type Context } from './context';
6
+ import { type Next } from './counter';
7
7
  export type { Next };
8
8
  export { createContext };
9
9
  export type { Context };
@@ -1,4 +1,4 @@
1
- import { MaybeAsync } from '../farrow-pipeline';
1
+ import { type 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> | {
@@ -1,4 +1,4 @@
1
- import { MaybeAsync } from '../farrow-pipeline';
1
+ import { type MaybeAsync } from '../farrow-pipeline';
2
2
  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>[];
@@ -1,4 +1,4 @@
1
- import { MaybeAsync } from '../farrow-pipeline';
1
+ import { type MaybeAsync } from '../farrow-pipeline';
2
2
  declare const ASYNC_INTERRUPT_WORKFLOW_SYMBOL: unique symbol;
3
3
  export type AsyncInterruptWorker<I, O> = (I: I, interrupt: (result: any) => void) => MaybeAsync<O>;
4
4
  export type AsyncInterruptWorkers<I, O> = AsyncInterruptWorker<I, O>[];
package/package.json CHANGED
@@ -15,7 +15,7 @@
15
15
  "modern",
16
16
  "modern.js"
17
17
  ],
18
- "version": "2.58.1",
18
+ "version": "2.58.2",
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.58.1"
36
+ "@modern-js/utils": "2.58.2"
37
37
  },
38
38
  "devDependencies": {
39
39
  "@types/jest": "^29",
40
40
  "@types/node": "^14",
41
41
  "jest": "^29",
42
42
  "typescript": "^5",
43
- "@scripts/jest-config": "2.58.1",
44
- "@scripts/build": "2.58.1"
43
+ "@scripts/jest-config": "2.58.2",
44
+ "@scripts/build": "2.58.2"
45
45
  },
46
46
  "sideEffects": false,
47
47
  "publishConfig": {