factory.ts
Advanced tools
Comparing version 0.3.4 to 0.4.0
# Changelog | ||
## [0.4.0] - 2018-12-06 | ||
### Changed | ||
- Sequence numbers start from 0 by default, but you can specify a starting sequence number (1) to restore previous behavior. | ||
- Mocha -> Jest. I was having a hard time debugging with Mocha so I switched to the framework I know better. | ||
### Fixed | ||
- derived values did not work when `item` was not passed in to `build()`. They would return the internal `Derived` object rather than run the derivation function. | ||
## [0.3.4] - 2018-08-14 | ||
@@ -4,0 +15,0 @@ |
@@ -202,2 +202,2 @@ "use strict"; | ||
exports.makeFactoryFromSync = makeFactoryFromSync; | ||
//# sourceMappingURL=async.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvYXN5bmMudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUNBLCtCQUErQjtBQVMvQixTQUFTLFNBQVMsQ0FBbUIsQ0FBaUI7SUFDcEQsT0FBTyxPQUFRLENBQVMsQ0FBQyxNQUFNLENBQUMsS0FBSyxVQUFVLENBQUM7QUFDbEQsQ0FBQztBQUVELFNBQWdCLElBQUksQ0FBSSxDQUFpQjtJQUN2QyxJQUFJLFNBQVMsQ0FBQyxDQUFDLENBQUMsRUFBRTtRQUNoQixPQUFPLENBQUMsQ0FBQztLQUNWO1NBQU07UUFDTCxPQUFPLE9BQU8sQ0FBQyxPQUFPLENBQUMsQ0FBQyxDQUFDLENBQUM7S0FDM0I7QUFDSCxDQUFDO0FBTkQsb0JBTUM7QUFFRCxNQUFhLFNBQVM7SUFDcEIsWUFBcUIsSUFBcUM7UUFBckMsU0FBSSxHQUFKLElBQUksQ0FBaUM7SUFBRyxDQUFDO0lBQ3ZELEtBQUssQ0FBQyxHQUFXO1FBQ3RCLE9BQU8sSUFBSSxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUF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0QsT0FBTyxFQUFFLEtBQUssRUFBRSxDQUFNLEVBQUUsT0FBTyxFQUFFLENBQUM7SUFDcEMsQ0FBQztDQUFBO0FBRUQsU0FBZ0IsV0FBVyxDQUFJLE9BQW1CO0lBQ2hELE9BQU8sSUFBSSxPQUFPLENBQUMsT0FBTyxDQUFDLENBQUM7QUFDOUIsQ0FBQztBQUZELGtDQUVDO0FBRUQsU0FBZ0IsbUJBQW1CLENBQUksT0FBd0I7SUFDN0QsT0FBTyxJQUFJLE9BQU8sQ0FBQyxPQUEyQixDQUFDLENBQUM7QUFDbEQsQ0FBQztBQUZELGtEQUVDIn0= |
@@ -17,2 +17,2 @@ "use strict"; | ||
exports.makeFactory = sync_1.makeFactory; | ||
//# sourceMappingURL=index.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7QUFBQSxpQ0FBaUM7QUFDeEIsc0JBQUs7QUFFZCwrQkFBK0I7QUFDdEIsb0JBQUk7QUFFYix1Q0FBdUM7QUFDOUIsNEJBQVE7QUFJakIsZ0NBQWdDO0FBQ2hDLCtCQVNnQjtBQVBkLDJCQUFBLFNBQVMsQ0FBQTtBQUNULHlCQUFBLE9BQU8sQ0FBQTtBQUNQLHlCQUFBLE9BQU8sQ0FBQTtBQUVQLHFCQUFBLEdBQUcsQ0FBQTtBQUNILHNCQUFBLElBQUksQ0FBQTtBQUNKLDZCQUFBLFdBQVcsQ0FBQSJ9 |
import * as Async from "./async"; | ||
import { RecPartial } from "./shared"; | ||
declare type MaybePromise<T> = T | Promise<T>; | ||
declare type MaybePromiseFunc<P, T> = T | ((p: P) => MaybePromise<T>); | ||
declare type PromiseFunc<P, T> = ((p: P) => MaybePromise<T>); | ||
declare type MaybePromiseFunc<P, T> = T | PromiseFunc<P, T>; | ||
declare type PipePartial<P, T> = MaybePromiseFunc<P, RecPartial<T>>; | ||
@@ -6,0 +7,0 @@ export declare class Pipeline<P extends Object = {}> implements PromiseLike<P> { |
@@ -52,2 +52,2 @@ "use strict"; | ||
exports.Pipeline = Pipeline; | ||
//# sourceMappingURL=pipeline.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicGlwZWxpbmUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvcGlwZWxpbmUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLGlDQUFpQztBQVFqQyxNQUFhLFFBQVE7SUFDbkIsWUFBb0IsT0FBbUI7UUFBbkIsWUFBTyxHQUFQLE9BQU8sQ0FBWTtJQUFJLENBQUM7SUFFNUMsTUFBTSxDQUFDLEtBQUs7UUFDVixPQUFPLElBQUksUUFBUSxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUMsRUFBRSxDQUFDLENBQUMsQ0FBQztJQUMzQyxDQUFDO0lBRUQsaUdBQWlHO0lBQzFGLFNBQVMsQ0FDZCxHQUE0QjtRQUU1QixPQUFPLElBQUksUUFBUSxDQUNqQixJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxDQUFNLENBQUMsRUFBQyxFQUFFO1lBQzFCLE1BQU0sQ0FBQyxHQUFHLE9BQU8sR0FBRyxLQUFLLFVBQVUsQ0FBQyxDQUFDLENBQUMsTUFBTSxLQUFLLENBQUMsSUFBSSxDQUFFLEdBQTBCLENBQUMsQ0FBQyxDQUFDLENBQUMsQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDO1lBQzdGLHlCQUNNLENBQVMsRUFDVCxDQUFTLEVBQ2I7UUFDSixDQUFDLENBQUEsQ0FBQyxDQUNILENBQUM7SUFDSixDQUFDO0lBRUQsc0RBQXNEO0lBQ3RELG1EQUFtRDtJQUNuRCxnREFBZ0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U8sQ0FBQyxDQUFDO0lBQ2xFLENBQUM7SUFFRCxJQUFJLENBQ0YsV0FBNEQsRUFDNUQsVUFBOEQ7UUFFOUQsT0FBTyxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxXQUFXLEVBQUUsVUFBVSxDQUFDLENBQUM7SUFDcEQsQ0FBQztDQUNGO0FBdEVELDRCQXNFQyJ9 |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
//# sourceMappingURL=shared.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic2hhcmVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL3NoYXJlZC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiIn0= |
@@ -15,4 +15,5 @@ import { RecPartial } from "./shared"; | ||
readonly builder: Builder<T>; | ||
private startingSeqNum; | ||
private seqNum; | ||
constructor(builder: Builder<T>); | ||
constructor(builder: Builder<T>, startingSeqNum: number); | ||
build(item?: RecPartial<T>): T; | ||
@@ -35,2 +36,2 @@ private static recursivePartialOverride; | ||
export declare function each<T>(f: (seqNum: number) => T): Generator<T>; | ||
export declare function makeFactory<T>(builder: Builder<T>): Factory<T>; | ||
export declare function makeFactory<T>(builder: Builder<T>, startingSeqNum?: number): Factory<T>; |
@@ -23,19 +23,21 @@ "use strict"; | ||
class Factory { | ||
constructor(builder) { | ||
constructor(builder, startingSeqNum) { | ||
this.builder = builder; | ||
this.seqNum = 0; | ||
this.startingSeqNum = startingSeqNum; | ||
this.seqNum = this.startingSeqNum; | ||
} | ||
build(item) { | ||
this.seqNum++; | ||
const base = buildBase(this.seqNum, this.builder); | ||
const seqNum = this.seqNum; | ||
const base = buildBase(seqNum, this.builder); | ||
let v = Object.assign({}, base.value); //, item); | ||
if (item) { | ||
v = Factory.recursivePartialOverride(v, item); | ||
const keys = Object.keys(item); | ||
for (const der of base.derived) { | ||
if (keys.indexOf(der.key) < 0) { | ||
v[der.key] = der.derived.build(v, this.seqNum); | ||
} | ||
} | ||
const keys = Object.keys(item || {}); | ||
for (const der of base.derived) { | ||
if (keys.indexOf(der.key) < 0) { | ||
v[der.key] = der.derived.build(v, seqNum); | ||
} | ||
} | ||
this.seqNum++; | ||
return v; | ||
@@ -75,7 +77,7 @@ } | ||
const builder = Object.assign({}, this.builder, def); | ||
return new Factory(builder); | ||
return new Factory(builder, this.startingSeqNum); | ||
} | ||
combine(other) { | ||
const builder = Object.assign({}, this.builder, other.builder); | ||
return new Factory(builder); | ||
return new Factory(builder, this.startingSeqNum); | ||
} | ||
@@ -141,4 +143,4 @@ withDerivation(kOut, f) { | ||
} | ||
function makeFactory(builder) { | ||
return new Factory(builder); | ||
function makeFactory(builder, startingSeqNum = 0) { | ||
return new Factory(builder, startingSeqNum); | ||
} | ||
@@ -155,2 +157,2 @@ exports.makeFactory = makeFactory; | ||
} | ||
//# sourceMappingURL=sync.js.map | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3luYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zeW5jLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBSUEsTUFBYSxTQUFTO0lBQ3BCLFlBQXFCLElBQXdCO1FBQXhCLFNBQUksR0FBSixJQUFJLENBQW9CO0lBQUksQ0FBQztJQUMzQyxLQUFLLENBQUMsR0FBVztRQUN0QixPQUFPLElBQUksQ0FBQyxJQUFJLENBQUMsR0FBRyxDQUFDLENBQUM7SUFDeEIsQ0FBQztDQUNGO0FBTEQsOEJBS0M7QUFDRCxNQUFhLE9BQU87SUFDbEIsWUFBcUIsSUFBK0M7UUFBL0MsU0FBSSxHQUFKLElBQUksQ0FBMkM7SUFBSSxDQUFDO0lBQ2xFLEtBQUssQ0FBQyxLQUFhLEVBQUUsR0FBVztRQUNyQyxNQUFNLEdBQUcsR0FBRyxJ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ElBQUksR0FBRyxDQUFDLE9BQU8sQ0FBQyxDQUFDLENBQUMsR0FBRyxDQUFDLEVBQUU7WUFDdEIsR0FBRyxDQUFDLElBQUksQ0FBQyxDQUFDLENBQUMsQ0FBQztTQUNiO0tBQ0Y7SUFDRCxPQUFPLEdBQUcsQ0FBQztBQUNiLENBQUMifQ== |
{ | ||
"name": "factory.ts", | ||
"version": "0.3.4", | ||
"version": "0.4.0", | ||
"license": "MIT", | ||
@@ -8,5 +8,23 @@ "description": "A Typescript test data factory similar to factory_bot and rosie", | ||
"build": "tsc -p .", | ||
"test": "NODE_ENV=test mocha --require spec/setup.js --require ts-node/register", | ||
"testAll": "NODE_ENV=test mocha --require spec/setup.js --require ts-node/register 'spec/**/*.spec.ts*'" | ||
"test": "jest --colors", | ||
"test:debug": "node --inspect=9229 --inspect-brk ./node_modules/.bin/jest --runInBand", | ||
"test:watch": "yarn test:truncate && jest --watch" | ||
}, | ||
"jest": { | ||
"reporters": ["default"], | ||
"transform": { | ||
"\\.(js|ts)$": "<rootDir>/node_modules/ts-jest/preprocessor.js" | ||
}, | ||
"testRegex": "./spec/.*\\.spec\\.ts$", | ||
"moduleFileExtensions": [ | ||
"js", | ||
"ts", | ||
"json" | ||
], | ||
"moduleDirectories": [ | ||
"src", | ||
"node_modules" | ||
], | ||
"setupTestFrameworkScriptFile": "<rootDir>/jest-setup.ts" | ||
}, | ||
"repository": "https://github.com/willryan/factory.ts", | ||
@@ -23,4 +41,3 @@ "engines": { | ||
"devDependencies": { | ||
"@types/chai": "^3.4.34", | ||
"@types/mocha": "^2.2.32", | ||
"@types/jest": "^20.0.6", | ||
"@types/node": "^7.0.4", | ||
@@ -32,12 +49,16 @@ "babel-core": "^6.18.0", | ||
"babel-preset-react": "^6.16.0", | ||
"chai": "^3.5.0", | ||
"jest": "^20.0.0", | ||
"jest-environment-node-debug": "^2.0.0", | ||
"jsdom": "^9.8.3", | ||
"mocha": "^3.1.2", | ||
"mocha-junit-reporter": "^1.12.1", | ||
"ts-jest": "^20.0.7", | ||
"ts-loader": "^4.4.2", | ||
"ts-node": "^7.0.0", | ||
"typescript": "2.9.2", | ||
"typescript": "3.2.1", | ||
"webpack": "^1.14.0", | ||
"webpack-dev-server": "^1.16.2" | ||
}, | ||
"dependencies": { | ||
"source-map-support": "^0.5.9", | ||
"tslint": "^5.11.0" | ||
} | ||
} |
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
66574
16
542
2
+ Addedsource-map-support@^0.5.9
+ Addedtslint@^5.11.0
+ Added@babel/code-frame@7.26.2(transitive)
+ Added@babel/helper-validator-identifier@7.25.9(transitive)
+ Addedansi-styles@3.2.1(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedbuiltin-modules@1.1.1(transitive)
+ Addedchalk@2.4.2(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addeddiff@4.0.2(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedis-core-module@2.16.1(transitive)
+ Addedjs-tokens@4.0.0(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedminimist@1.2.8(transitive)
+ Addedmkdirp@0.5.6(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpath-parse@1.0.7(transitive)
+ Addedpicocolors@1.1.1(transitive)
+ Addedresolve@1.22.10(transitive)
+ Addedsemver@5.7.2(transitive)
+ Addedsource-map@0.6.1(transitive)
+ Addedsource-map-support@0.5.21(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedsupports-color@5.5.0(transitive)
+ Addedsupports-preserve-symlinks-flag@1.0.0(transitive)
+ Addedtslib@1.14.1(transitive)
+ Addedtslint@5.20.1(transitive)
+ Addedtsutils@2.29.0(transitive)
+ Addedtypescript@5.7.2(transitive)
+ Addedwrappy@1.0.2(transitive)