factory.ts
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -25,7 +25,7 @@ import { RecPartial, Omit } from "./shared"; | ||
export declare class Factory<T, K extends keyof T = keyof T> implements IFactory<T, K, T> { | ||
readonly builder: Builder<T, K>; | ||
readonly builder: Builder<T, K> | Promise<Builder<T, K>>; | ||
private readonly config; | ||
private seqNum; | ||
private getStartingSequenceNumber; | ||
constructor(builder: Builder<T, K>, config: AsyncFactoryConfig | undefined); | ||
constructor(builder: Builder<T, K> | Promise<Builder<T, K>>, config: AsyncFactoryConfig | undefined); | ||
resetSequenceNumber(newSequenceNumber?: number): void; | ||
@@ -56,4 +56,4 @@ build: Async.FactoryFunc<T, K, T>; | ||
export declare function each<T>(f: (seqNum: number) => T | Promise<T>): Generator<T>; | ||
export declare function makeFactory<T>(builder: Builder<T, keyof T>, config?: AsyncFactoryConfig): Factory<T, keyof T>; | ||
export declare function makeFactoryWithRequired<T, K extends keyof T>(builder: Builder<T, Exclude<keyof T, K>>, config?: AsyncFactoryConfig): Factory<T, Exclude<keyof T, K>>; | ||
export declare function makeFactory<T>(builder: Builder<T, keyof T> | Promise<Builder<T, keyof T>>, config?: AsyncFactoryConfig): Factory<T, keyof T>; | ||
export declare function makeFactoryWithRequired<T, K extends keyof T>(builder: Builder<T, Exclude<keyof T, K>> | Promise<Builder<T, Exclude<keyof T, K>>>, config?: AsyncFactoryConfig): Factory<T, Exclude<keyof T, K>>; | ||
export declare function makeFactoryFromSync<T, K extends keyof T = keyof T>(builder: Sync.Builder<T, K>, config?: AsyncFactoryConfig): Factory<T, K>; |
@@ -17,3 +17,3 @@ "use strict"; | ||
function isPromise(t) { | ||
return typeof t["then"] === "function"; | ||
return !!t && typeof t["then"] === "function"; | ||
} | ||
@@ -152,7 +152,8 @@ function lift(t) { | ||
return __awaiter(this, void 0, void 0, function* () { | ||
const resolvedBuilder = yield lift(builder); | ||
const t = {}; | ||
const keys = Object.getOwnPropertyNames(builder); | ||
const keys = Object.getOwnPropertyNames(resolvedBuilder); | ||
const derived = []; | ||
for (const key of keys) { | ||
const v = builder[key]; | ||
const v = resolvedBuilder[key]; | ||
let value = v; | ||
@@ -196,2 +197,2 @@ if (!!v && typeof v === "object") { | ||
exports.makeFactoryFromSync = makeFactoryFromSync; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYXN5bmMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEscUNBQXNFO0FBQ3RFLCtCQUErQjtBQUUvQix3Q0FBd0M7QUFjeEMsU0FBUyxTQUFTLENBQW1CLENBQWlCO0lBQ3BELE9BQU8sT0FBUSxDQUFTLENBQUMsTUFBTSxDQUFDLEtBQUssVUFBVSxDQUFDO0FBQ2xELENBQUM7QUFFRCxTQUFnQixJQUFJLENBQUksQ0FBaUI7SUFDdkMsSUFBSSxTQUFTLENBQUMsQ0FBQyxDQUFDLEVBQUU7UUFDaEIsT0FBTyxDQUFDLENBQUM7S0FDVjtTQUFNO1FBQ0wsT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUMsQ0FBQyxDQUFDO0tBQzNCO0FBQ0gsQ0FBQztBQU5ELG9CQU1DO0FBRUQsTUFBYSxTQUFTO0lBQ3BCLFlBQXFCLElBQXFDO1FBQXJDLFNBQUksR0FBSixJQUFJLENBQWlDO0lBQUcsQ0FBQztJQUN2RCxLQUFLLENBQUMsR0FBVztRQUN0QixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDLENBQUM7SUFDOUIsQ0FBQztDQUNGO0FBTEQsOEJBS0M7QUFDRCxNQUFhLE9BQU87SUFDbEIsWUFDVyxJQUcwQjtRQUgxQixTQUFJLEdBQUosSUFBSSxDQUdzQjtJQUNsQyxDQUFDO0lBQ0csS0FBSyxD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QUFMRCxrREFLQyJ9 |
@@ -8,3 +8,3 @@ import * as Async from "./async"; | ||
declare type PipePartialRec<P, T, K extends keyof T> = MaybePromiseFunc<P, RecPartial<Pick<T, K>> & Omit<T, K>>; | ||
export declare class Pipeline<P extends Object = {}> implements PromiseLike<P> { | ||
export declare class Pipeline<P extends Record<string, unknown> = {}> implements PromiseLike<P> { | ||
private current; | ||
@@ -24,3 +24,4 @@ constructor(current: Promise<P>); | ||
then<TResult1 = P, TResult2 = never>(onfulfilled?: (value: P) => TResult1 | PromiseLike<TResult1>, onrejected?: (reason: any) => TResult2 | PromiseLike<TResult2>): Promise<TResult1 | TResult2>; | ||
toFactory(): Async.Factory<P>; | ||
} | ||
export {}; |
@@ -54,4 +54,7 @@ "use strict"; | ||
} | ||
toFactory() { | ||
return Async.makeFactory(this.current); | ||
} | ||
} | ||
exports.Pipeline = Pipeline; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZWxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcGlwZWxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7O0FBQUEsaUNBQWlDO0FBWWpDLE1BQWEsUUFBUTtJQUNuQixZQUFvQixPQUFtQjtRQUFuQixZQUFPLEdBQVAsT0FBTyxDQUFZO0lBQUcsQ0FBQztJQUUzQyxNQUFNLENBQUMsS0FBSztRQUNWLE9BQU8sSUFBSSxRQUFRLENBQUMsT0FBTyxDQUFDLE9BQU8sQ0FBQyxFQUFFLENBQUMsQ0FBQyxDQUFDO0lBQzNDLENBQUM7SUFFRCxpR0FBaUc7SUFDMUYsU0FBUyxDQUNkLEdBQTRCO1FBRTVCLE9BQU8sSUFBSSxRQUFRLENBQ2pCLElBQUksQ0FBQyxPQUFPLENBQUMsSUFBSSxDQUFDLENBQU0sQ0FBQyxFQUFDLEVBQUU7WUFDMUIsTUFBTSxD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BQTZCLEVBQzdCLEdBQU0sRUFDTixPQUEwRTtRQUUxRSxPQUFPLElBQUksQ0FBQyxjQUFjLENBQ3hCLENBQUMsQ0FBQyxDQUFNLEVBQUUsRUFBRSxDQUFDLE9BQU8sQ0FBQyxLQUFLLENBQUMsQ0FBQyxDQUFDLENBQVEsRUFDckMsR0FBRyxFQUNILE9BQU8sQ0FDUixDQUFDO0lBQ0osQ0FBQztJQUVNLFlBQVksQ0FDakIsT0FBeUMsRUFDekMsR0FBTSxFQUNOLE9BQTBFO1FBRTFFLE9BQU8sSUFBSSxDQUFDLGNBQWMsQ0FDeEIsQ0FBQyxDQUFDLENBQU0sRUFBRSxFQUFFLENBQUMsT0FBTyxDQUFDLEtBQUssQ0FBQyxDQUFDLENBQUMsQ0FBUSxFQUNyQyxHQUFHLEVBQ0gsT0FBTyxDQUNSLENBQUM7SUFDSixDQUFDO0lBRUQsSUFBSSxDQUNGLFdBQTRELEVBQzVELFVBQThEO1FBRTlELE9BQU8sSUFBSSxDQUFDLE9BQU8sQ0FBQyxJQUFJLENBQUMsV0FBVyxFQUFFLFVBQVUsQ0FBQyxDQUFDO0lBQ3BELENBQUM7SUFFRCxTQUFTO1FBQ1AsT0FBTyxLQUFLLENBQUMsV0FBVyxDQUFDLElBQUksQ0FBQyxPQUFvQyxDQUFDLENBQUM7SUFDdEUsQ0FBQztDQUNGO0FBckZELDRCQXFGQyJ9 |
{ | ||
"name": "factory.ts", | ||
"version": "1.2.0", | ||
"version": "1.3.0", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "A Typescript test data factory similar to factory_bot and rosie", |
@@ -195,3 +195,3 @@ # factory.ts | ||
Not the use of `makeFactoryWithRequired()` to specify required keys. | ||
Note the use of `makeFactoryWithRequired()` to specify required keys. | ||
@@ -198,0 +198,0 @@ ## Async Factories |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
181506
1901
0