@forklaunch/interfaces-worker 0.1.2 → 0.1.4

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,3 +1,3 @@
1
1
  export * from './worker.consumer.interface';
2
2
  export * from './worker.producer.interface';
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export interface WorkerConsumer<T> {
2
- peekEvents: () => Promise<T[]>;
3
- start: () => Promise<void>;
2
+ peekEvents: () => Promise<T[]>;
3
+ start: () => Promise<void>;
4
4
  }
5
- //# sourceMappingURL=worker.consumer.interface.d.ts.map
5
+ //# sourceMappingURL=worker.consumer.interface.d.ts.map
@@ -1,5 +1,5 @@
1
1
  export interface WorkerProducer<T> {
2
- enqueueJob: (job: T) => Promise<void>;
3
- enqueueBatchJobs: (jobs: T[]) => Promise<void>;
2
+ enqueueJob: (job: T) => Promise<void>;
3
+ enqueueBatchJobs: (jobs: T[]) => Promise<void>;
4
4
  }
5
- //# sourceMappingURL=worker.producer.interface.d.ts.map
5
+ //# sourceMappingURL=worker.producer.interface.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import type { JestConfigWithTsJest } from 'ts-jest';
2
2
  declare const jestConfig: JestConfigWithTsJest;
3
3
  export default jestConfig;
4
- //# sourceMappingURL=jest.config.d.ts.map
4
+ //# sourceMappingURL=jest.config.d.ts.map
@@ -1,19 +1,19 @@
1
1
  const jestConfig = {
2
- preset: 'ts-jest/presets/default-esm', // or other ESM presets
3
- moduleNameMapper: {
4
- '^(\\.{1,2}/.*)\\.js$': '$1'
5
- },
6
- transform: {
7
- // '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest`
8
- // '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest`
9
- '^.+\\.[tj]sx?$': [
10
- 'ts-jest',
11
- {
12
- useESM: true
13
- }
14
- ],
15
- '^.+\\.js$': 'babel-jest'
16
- },
17
- testPathIgnorePatterns: ['.*dist/', '.*node_modules/']
2
+ preset: 'ts-jest/presets/default-esm', // or other ESM presets
3
+ moduleNameMapper: {
4
+ '^(\\.{1,2}/.*)\\.js$': '$1'
5
+ },
6
+ transform: {
7
+ // '^.+\\.[tj]sx?$' to process ts,js,tsx,jsx with `ts-jest`
8
+ // '^.+\\.m?[tj]sx?$' to process ts,js,tsx,jsx,mts,mjs,mtsx,mjsx with `ts-jest`
9
+ '^.+\\.[tj]sx?$': [
10
+ 'ts-jest',
11
+ {
12
+ useESM: true
13
+ }
14
+ ],
15
+ '^.+\\.js$': 'babel-jest'
16
+ },
17
+ testPathIgnorePatterns: ['.*dist/', '.*node_modules/']
18
18
  };
19
19
  export default jestConfig;
@@ -1,3 +1,3 @@
1
1
  export * from './worker.consumer.types';
2
2
  export * from './workerEventEntity.types';
3
- //# sourceMappingURL=index.d.ts.map
3
+ //# sourceMappingURL=index.d.ts.map
@@ -1,11 +1,7 @@
1
1
  export type WorkerProcessFailureResult<T> = {
2
- value: T;
3
- error: Error;
2
+ value: T;
3
+ error: Error;
4
4
  };
5
- export type WorkerProcessFunction<T> = (
6
- events: T[]
7
- ) => Promise<WorkerProcessFailureResult<T>[]>;
8
- export type WorkerFailureHandler<T> = (
9
- results: WorkerProcessFailureResult<T>[]
10
- ) => Promise<void>;
11
- //# sourceMappingURL=worker.consumer.types.d.ts.map
5
+ export type WorkerProcessFunction<T> = (events: T[]) => Promise<WorkerProcessFailureResult<T>[]>;
6
+ export type WorkerFailureHandler<T> = (results: WorkerProcessFailureResult<T>[]) => Promise<void>;
7
+ //# sourceMappingURL=worker.consumer.types.d.ts.map
@@ -1,6 +1,6 @@
1
1
  export type WorkerEventEntity = {
2
- id: string;
3
- retryCount: number;
4
- processed: boolean;
2
+ id: string;
3
+ retryCount: number;
4
+ processed: boolean;
5
5
  };
6
- //# sourceMappingURL=workerEventEntity.types.d.ts.map
6
+ //# sourceMappingURL=workerEventEntity.types.d.ts.map
@@ -1,3 +1,3 @@
1
- declare const _default: import('vite').UserConfig;
1
+ declare const _default: import("vite").UserConfig;
2
2
  export default _default;
3
- //# sourceMappingURL=vitest.config.d.ts.map
3
+ //# sourceMappingURL=vitest.config.d.ts.map
@@ -1,7 +1,7 @@
1
1
  import { defineConfig } from 'vitest/config';
2
2
  export default defineConfig({
3
- test: {
4
- globals: true,
5
- exclude: ['**/lib/**', '**/node_modules/**']
6
- }
3
+ test: {
4
+ globals: true,
5
+ exclude: ['**/lib/**', '**/node_modules/**']
6
+ }
7
7
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forklaunch/interfaces-worker",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "description": "Worker interfaces for forklaunch",
5
5
  "homepage": "https://github.com/forklaunch/forklaunch-js#readme",
6
6
  "bugs": {
@@ -1,6 +0,0 @@
1
- export type EventEntity = {
2
- id: string;
3
- retryCount: number;
4
- processed: boolean;
5
- };
6
- //# sourceMappingURL=eventEntity.types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"eventEntity.types.d.ts","sourceRoot":"","sources":["../../types/eventEntity.types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,MAAM,CAAC;IACnB,SAAS,EAAE,OAAO,CAAC;CACpB,CAAC"}
@@ -1 +0,0 @@
1
- export {};