Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

factory.ts

Package Overview
Dependencies
Maintainers
1
Versions
28
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

factory.ts - npm Package Compare versions

Comparing version 0.4.3 to 0.4.4

4

CHANGELOG.md
# Changelog
## [0.4.4] - 2019-03-16
- Added `resetSequenceNumber()` function.
## [0.4.2] - 2019-03-03

@@ -4,0 +8,0 @@

@@ -27,3 +27,5 @@ import { RecPartial } from "./shared";

private seqNum;
private getStartingSequenceNumber;
constructor(builder: Builder<T>, config: AsyncFactoryConfig | undefined);
resetSequenceNumber(): void;
build(item?: RecPartial<T>): Promise<T>;

@@ -30,0 +32,0 @@ private static recursivePartialOverride;

23

lib/async.js

@@ -47,7 +47,12 @@ "use strict";

this.config = config;
this.seqNum = this.config && this.config.startingSequenceNumber || 0;
this.getStartingSequenceNumber = () => this.config && this.config.startingSequenceNumber || 0;
this.seqNum = this.getStartingSequenceNumber();
}
resetSequenceNumber() {
this.seqNum = this.getStartingSequenceNumber();
}
build(item) {
return __awaiter(this, void 0, void 0, function* () {
const seqNum = this.seqNum;
this.seqNum++;
const base = yield buildBase(seqNum, this.builder);

@@ -64,3 +69,2 @@ let v = Object.assign({}, base.value); //, item);

}
this.seqNum++;
return lift(v);

@@ -92,7 +96,10 @@ });

buildList(count, item) {
const ts = Array(count); // allocate to correct size
for (let i = 0; i < count; i++) {
ts[i] = this.build(item);
}
return Promise.all(ts);
return __awaiter(this, void 0, void 0, function* () {
const ts = Array(count); // allocate to correct size
// don't run in parallel, so that seq num works predictably
for (let i = 0; i < count; i++) {
ts[i] = yield this.build(item);
}
return ts;
});
}

@@ -211,2 +218,2 @@ extend(def) {

exports.makeFactoryFromSync = makeFactoryFromSync;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXN5bmMuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNl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MsS0FBSyxDQUFDLE1BQU0sQ0FBQyxDQUFDO2lCQUNsRDtxQkFBTSxJQUFJLENBQUMsQ0FBQyxXQUFXLElBQUksSUFBSSxDQUFDLE9BQU8sRUFBRTtvQkFDeEMsT0FBTyxDQUFDLElBQUksQ0FBQyxFQUFFLEdBQUcsRUFBRSxPQUFPLEVBQUUsSUFBSSxPQUFPLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxFQUFFLENBQUMsQ0FBQztpQkFDckQ7cUJBQU07b0JBQ0wsS0FBSyxHQUFHLFNBQVMsQ0FBQyxDQUFDLENBQUMsQ0FBQztpQkFDdEI7YUFDRjtZQUNELENBQUMsQ0FBQyxHQUFHLENBQUMsR0FBRyxLQUFLLENBQUM7U0FDaEI7UUFDRCxPQUFPLEVBQUUsS0FBSyxFQUFFLENBQU0sRUFBRSxPQUFPLEVBQUUsQ0FBQztJQUNwQyxDQUFDO0NBQUE7QUFFRCxTQUFnQixXQUFXLENBQUksT0FBbUIsRUFBRSxNQUEyQjtJQUM3RSxPQUFPLElBQUksT0FBTyxDQUFDLE9BQU8sRUFBRSxNQUFNLENBQUMsQ0FBQztBQUN0QyxDQUFDO0FBRkQsa0NBRUM7QUFFRCxTQUFnQixtQkFBbUIsQ0FBSSxPQUF3QixFQUFFLE1BQTJCO0lBQzFGLE9BQU8sSUFBSSxPQUFPLENBQUMsT0FBMkIsRUFBRSxNQUFNLENBQUMsQ0FBQztBQUMxRCxDQUFDO0FBRkQsa0RBRUMifQ==

@@ -20,3 +20,5 @@ import { RecPartial } from "./shared";

private seqNum;
private getStartingSequenceNumber;
constructor(builder: Builder<T>, config: SyncFactoryConfig | undefined);
resetSequenceNumber(): void;
build(item?: RecPartial<T>): T;

@@ -23,0 +25,0 @@ private static recursivePartialOverride;

@@ -27,6 +27,11 @@ "use strict";

this.config = config;
this.seqNum = this.config && this.config.startingSequenceNumber || 0;
this.getStartingSequenceNumber = () => this.config && this.config.startingSequenceNumber || 0;
this.seqNum = this.getStartingSequenceNumber();
}
resetSequenceNumber() {
this.seqNum = this.getStartingSequenceNumber();
}
build(item) {
const seqNum = this.seqNum;
this.seqNum++;
const base = buildBase(seqNum, this.builder);

@@ -43,3 +48,2 @@ let v = Object.assign({}, base.value); //, item);

}
this.seqNum++;
return v;

@@ -160,2 +164,2 @@ }

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3luYy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL3NyYy9zeW5jLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7O0FBQ0Esd0NBQXdDO0FBUXhDLE1BQWEsU0FBUztJQUNwQixZQUFxQixJQUF3QjtRQUF4QixTQUFJLEdBQUosSUFBSSxDQUFvQjtJQUFJLENBQUM7SUFDM0MsS0FBSyxDQUFDLEdBQVc7UUFDdEIsT0FBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyxDQUFDO0lBQ3hCLENBQUM7Q0FDRjtBQUxELDhCQUtDO0FBQ0QsTUFBYSxPQUFPO0lBQ2xCLFlBQXFCLElBQStDO1FBQS9DLFNBQUksR0FBSixJQUFJLENBQTJDO0lBQUksQ0FBQztJQUNsRSxLQUFLLENBQUMsS0FBYSxFQUFFLEdBQVc7UUFDckMsTUFBTSxHQUFHLEdBQUcsSUFBSSxDQUFDLElBQUksQ0FBQyxLQUFLLEVBQUUsR0FBRyxDQUFDLENBQUM7UUFDbEMsT0FBTyxHQUFHLENBQUM7SUFDYixDQUFDO0NBQ0Y7QUFORCwwQkFNQztBQUVELE1BQWEsT0FBTztJQUVsQixZQUFxQixPQUFtQixFQUFtQixNQUFxQztRQUEzRSxZQUFPLEdBQVAsT0FBTyxDQUFZO1FBQW1CLFdBQU0sR0FBTixNQUFNLENBQStCO1FBQzlGLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxDQUFDLE1BQU0sSUFBSSxJQUFJLENBQUMsTUFBTS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yJ9
{
"name": "factory.ts",
"version": "0.4.3",
"version": "0.4.4",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "A Typescript test data factory similar to factory_bot and rosie",

@@ -66,2 +66,8 @@ # factory.ts

To reset the factory's sequence number used by 'build' and 'buildList':
```typescript
personFactory.resetSequenceNumber();
```
### Extending factories

@@ -68,0 +74,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc