tempo-store
Advanced tools
Comparing version 1.2.2 to 1.2.3
@@ -5,2 +5,14 @@ { | ||
{ | ||
"version": "1.2.3", | ||
"tag": "tempo-store_v1.2.3", | ||
"date": "Sun, 07 Jun 2020 04:29:56 GMT", | ||
"comments": { | ||
"patch": [ | ||
{ | ||
"comment": "Add processMany to Store." | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"version": "1.2.2", | ||
@@ -7,0 +19,0 @@ "tag": "tempo-store_v1.2.2", |
# Change Log - tempo-store | ||
This log was last generated on Sun, 16 Feb 2020 03:58:19 GMT and should not be manually modified. | ||
This log was last generated on Sun, 07 Jun 2020 04:29:56 GMT and should not be manually modified. | ||
## 1.2.3 | ||
Sun, 07 Jun 2020 04:29:56 GMT | ||
### Patches | ||
- Add processMany to Store. | ||
## 1.2.2 | ||
@@ -6,0 +13,0 @@ Sun, 16 Feb 2020 03:58:19 GMT |
@@ -15,4 +15,5 @@ import { Property } from './property'; | ||
process(action: Action): boolean; | ||
processMany(...actions: Action[]): boolean; | ||
private readonly emitter; | ||
} | ||
//# sourceMappingURL=store.d.ts.map |
@@ -31,2 +31,16 @@ /* | ||
}; | ||
Store.prototype.processMany = function () { | ||
var _this = this; | ||
var actions = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
actions[_i] = arguments[_i]; | ||
} | ||
return actions.reduce(function (changed, action) { | ||
var newResult = _this.process(action); | ||
if (changed || newResult) | ||
return true; | ||
else | ||
return false; | ||
}, false); | ||
}; | ||
return Store; | ||
@@ -33,0 +47,0 @@ }()); |
@@ -15,2 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.nextFrame = exports.debounce = exports.Emitter = void 0; | ||
var Emitter = /** @class */ (function () { | ||
@@ -17,0 +18,0 @@ function Emitter() { |
@@ -15,2 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Property = void 0; | ||
var emitter_1 = require("./emitter"); | ||
@@ -17,0 +18,0 @@ var equals_1 = require("tempo-std/lib/equals"); |
@@ -15,2 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.reduceOnKind = exports.matchReduce = exports.compose = void 0; | ||
function compose(reducer) { | ||
@@ -17,0 +18,0 @@ var others = []; |
@@ -15,4 +15,5 @@ import { Property } from './property'; | ||
process(action: Action): boolean; | ||
processMany(...actions: Action[]): boolean; | ||
private readonly emitter; | ||
} | ||
//# sourceMappingURL=store.d.ts.map |
@@ -15,2 +15,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.Store = void 0; | ||
var property_1 = require("./property"); | ||
@@ -34,2 +35,16 @@ var emitter_1 = require("./emitter"); | ||
}; | ||
Store.prototype.processMany = function () { | ||
var _this = this; | ||
var actions = []; | ||
for (var _i = 0; _i < arguments.length; _i++) { | ||
actions[_i] = arguments[_i]; | ||
} | ||
return actions.reduce(function (changed, action) { | ||
var newResult = _this.process(action); | ||
if (changed || newResult) | ||
return true; | ||
else | ||
return false; | ||
}, false); | ||
}; | ||
return Store; | ||
@@ -36,0 +51,0 @@ }()); |
{ | ||
"name": "tempo-store", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"priority": 20, | ||
@@ -22,4 +22,2 @@ "description": "Super simple state management library", | ||
"test-watch": "jest --watch", | ||
"tslint": "tslint -p ./tslint.json", | ||
"tslint-fix": "tslint -p ./tslint.json --fix", | ||
"prettier": "prettier -c src/**/*.ts", | ||
@@ -39,12 +37,11 @@ "prettier-fix": "prettier --write src/**/*.ts", | ||
"dependencies": { | ||
"tempo-core": "1.7.0", | ||
"tempo-std": "0.5.0" | ||
"tempo-core": "^1.7.0", | ||
"tempo-std": "^0.5.3" | ||
}, | ||
"devDependencies": { | ||
"@types/jest": "25.1.2", | ||
"jest": "25.1.0", | ||
"prettier": "1.19.1", | ||
"ts-jest": "25.2.0", | ||
"tslint": "6.0.0", | ||
"typescript": "3.7.5" | ||
"@types/jest": "^25.2.3", | ||
"jest": "^26.0.1", | ||
"prettier": "^2.0.5", | ||
"ts-jest": "^26.1.0", | ||
"typescript": "^3.9.3" | ||
}, | ||
@@ -51,0 +48,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
53469
5
789
+ Addedtempo-core@1.9.0(transitive)
+ Addedtempo-std@0.5.6(transitive)
- Removedtempo-core@1.7.0(transitive)
- Removedtempo-std@0.5.0(transitive)
Updatedtempo-core@^1.7.0
Updatedtempo-std@^0.5.3