immutable-lens
Advanced tools
Comparing version 0.0.8 to 0.0.9
@@ -5,3 +5,3 @@ "use strict"; | ||
var updateFields_1 = require("./updateFields"); | ||
var pipe_1 = require("./pipe"); | ||
var pipeUpdaters_1 = require("./pipeUpdaters"); | ||
var AbstractLens = /** @class */ (function () { | ||
@@ -45,3 +45,3 @@ function AbstractLens() { | ||
} | ||
return this.update(pipe_1.pipe.apply(void 0, updaters)); | ||
return this.update(pipeUpdaters_1.pipeUpdaters.apply(void 0, updaters)); | ||
}; | ||
@@ -48,0 +48,0 @@ return AbstractLens; |
export * from './Lens'; | ||
export { createComposedLens } from './createComposedLens'; | ||
export { createLens } from './createLens'; | ||
export { pipe } from './pipe'; | ||
export { extract } from './extract'; | ||
export { pipeUpdaters } from './pipeUpdaters'; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var createComposedLens_1 = require("./createComposedLens"); | ||
exports.createComposedLens = createComposedLens_1.createComposedLens; | ||
var createLens_1 = require("./createLens"); | ||
exports.createLens = createLens_1.createLens; | ||
var pipe_1 = require("./pipe"); | ||
exports.pipe = pipe_1.pipe; | ||
var extract_1 = require("./extract"); | ||
exports.extract = extract_1.extract; | ||
var pipeUpdaters_1 = require("./pipeUpdaters"); | ||
exports.pipeUpdaters = pipeUpdaters_1.pipeUpdaters; | ||
//# sourceMappingURL=index.js.map |
@@ -13,2 +13,5 @@ export interface NotAnArray { | ||
}; | ||
export declare type FieldLenses<Source, Composition> = object & NotAnArray & { | ||
[K in keyof Composition]: Lens<Source, Composition[K]>; | ||
}; | ||
export interface Lens<T, Target> { | ||
@@ -15,0 +18,0 @@ readonly path: string; |
@@ -7,3 +7,3 @@ "use strict"; | ||
var setFieldValues_1 = require("./setFieldValues"); | ||
var pipe_1 = require("./pipe"); | ||
var pipeUpdaters_1 = require("./pipeUpdaters"); | ||
var RootLens = /** @class */ (function () { | ||
@@ -45,3 +45,3 @@ function RootLens() { | ||
} | ||
return pipe_1.pipe.apply(void 0, updaters); | ||
return pipeUpdaters_1.pipeUpdaters.apply(void 0, updaters); | ||
}; | ||
@@ -48,0 +48,0 @@ // TODO Support optional types |
{ | ||
"name": "immutable-lens", | ||
"version": "0.0.8", | ||
"version": "0.0.9", | ||
"description": "Type-safe Lens API for immutable updates in complex data structures", | ||
@@ -29,4 +29,4 @@ "keywords": [ | ||
"prepare": "npm run build", | ||
"type-test": "node test/testCompilationErrors.js", | ||
"test": "mocha --opts mocha.opts", | ||
"test": "mocha --opts mocha.opts && npm run test-compilation-errors", | ||
"test-compilation-errors": "node ./testCompilationErrors.js", | ||
"tdd": "mocha --opts mocha.opts --watch" | ||
@@ -44,3 +44,5 @@ }, | ||
"chalk": "^2.1.0", | ||
"glob-promise": "^3.2.0", | ||
"mocha": "^3.5.3", | ||
"ramda": "^0.24.1", | ||
"shx": "^0.2.2", | ||
@@ -47,0 +49,0 @@ "ts-node": "^3.3.0", |
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
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
50505
51
704
0
10