monocle-ts
Advanced tools
Comparing version 2.3.11 to 2.3.12
@@ -16,2 +16,7 @@ # Changelog | ||
# 2.3.12 | ||
- **Polish** | ||
- Add missing pure annotations, #175 (@OliverJAsh) | ||
# 2.3.11 | ||
@@ -18,0 +23,0 @@ |
@@ -653,3 +653,5 @@ /** | ||
export { Prism }; | ||
var somePrism = new Prism(identity, some); | ||
var somePrism = | ||
/*#__PURE__*/ | ||
new Prism(identity, some); | ||
/** | ||
@@ -656,0 +658,0 @@ * Laws: |
@@ -204,3 +204,3 @@ import { flow, identity } from 'fp-ts/es6/function'; | ||
/*#__PURE__*/ | ||
composePrism(_.prismSome()); | ||
composePrism(/*#__PURE__*/ _.prismSome()); | ||
/** | ||
@@ -214,3 +214,3 @@ * Return a `Prism` from a `Iso` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
composePrism(_.prismRight()); | ||
composePrism(/*#__PURE__*/ _.prismRight()); | ||
/** | ||
@@ -224,3 +224,3 @@ * Return a `Prism` from a `Iso` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
composePrism(_.prismLeft()); | ||
composePrism(/*#__PURE__*/ _.prismLeft()); | ||
/** | ||
@@ -227,0 +227,0 @@ * Return a `Traversal` from a `Iso` focused on a `Traversable`. |
@@ -175,3 +175,3 @@ import { flow } from 'fp-ts/es6/function'; | ||
/*#__PURE__*/ | ||
composePrism(_.prismSome()); | ||
composePrism(/*#__PURE__*/ _.prismSome()); | ||
/** | ||
@@ -185,3 +185,3 @@ * Return a `Optional` from a `Lens` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
composePrism(_.prismRight()); | ||
composePrism(/*#__PURE__*/ _.prismRight()); | ||
/** | ||
@@ -195,3 +195,3 @@ * Return a `Optional` from a `Lens` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
composePrism(_.prismLeft()); | ||
composePrism(/*#__PURE__*/ _.prismLeft()); | ||
/** | ||
@@ -198,0 +198,0 @@ * Return a `Traversal` from a `Lens` focused on a `Traversable`. |
@@ -112,3 +112,3 @@ import { constant, flow } from 'fp-ts/es6/function'; | ||
/*#__PURE__*/ | ||
compose(_.prismAsOptional(_.prismFromNullable())); | ||
compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismFromNullable())); | ||
export function filter(predicate) { | ||
@@ -186,3 +186,3 @@ return compose(_.prismAsOptional(_.prismFromPredicate(predicate))); | ||
/*#__PURE__*/ | ||
compose(_.prismAsOptional(_.prismSome())); | ||
compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismSome())); | ||
/** | ||
@@ -196,3 +196,3 @@ * Return a `Optional` from a `Optional` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
compose(_.prismAsOptional(_.prismRight())); | ||
compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismRight())); | ||
/** | ||
@@ -206,3 +206,3 @@ * Return a `Optional` from a `Optional` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
compose(_.prismAsOptional(_.prismLeft())); | ||
compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismLeft())); | ||
/** | ||
@@ -209,0 +209,0 @@ * Return a `Traversal` from a `Optional` focused on a `Traversable`. |
@@ -122,3 +122,3 @@ import { flow, identity } from 'fp-ts/es6/function'; | ||
/*#__PURE__*/ | ||
compose(_.prismFromNullable()); | ||
compose(/*#__PURE__*/ _.prismFromNullable()); | ||
export function filter(predicate) { | ||
@@ -200,3 +200,3 @@ return compose(_.prismFromPredicate(predicate)); | ||
/*#__PURE__*/ | ||
compose(_.prismSome()); | ||
compose(/*#__PURE__*/ _.prismSome()); | ||
/** | ||
@@ -210,3 +210,3 @@ * Return a `Prism` from a `Prism` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
compose(_.prismRight()); | ||
compose(/*#__PURE__*/ _.prismRight()); | ||
/** | ||
@@ -220,3 +220,3 @@ * Return a `Prism` from a `Prism` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
compose(_.prismLeft()); | ||
compose(/*#__PURE__*/ _.prismLeft()); | ||
/** | ||
@@ -223,0 +223,0 @@ * Return a `Traversal` from a `Prism` focused on a `Traversable`. |
@@ -179,3 +179,3 @@ import * as C from 'fp-ts/es6/Const'; | ||
/*#__PURE__*/ | ||
compose(_.prismAsTraversal(_.prismSome())); | ||
compose(/*#__PURE__*/ _.prismAsTraversal(/*#__PURE__*/ _.prismSome())); | ||
/** | ||
@@ -189,3 +189,3 @@ * Return a `Traversal` from a `Traversal` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
compose(_.prismAsTraversal(_.prismRight())); | ||
compose(/*#__PURE__*/ _.prismAsTraversal(/*#__PURE__*/ _.prismRight())); | ||
/** | ||
@@ -199,3 +199,3 @@ * Return a `Traversal` from a `Traversal` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
compose(_.prismAsTraversal(_.prismLeft())); | ||
compose(/*#__PURE__*/ _.prismAsTraversal(/*#__PURE__*/ _.prismLeft())); | ||
/** | ||
@@ -202,0 +202,0 @@ * Return a `Traversal` from a `Traversal` focused on a `Traversable`. |
@@ -634,3 +634,5 @@ "use strict"; | ||
exports.Prism = Prism; | ||
var somePrism = new Prism(function_1.identity, Option_1.some); | ||
var somePrism = | ||
/*#__PURE__*/ | ||
new Prism(function_1.identity, Option_1.some); | ||
/** | ||
@@ -637,0 +639,0 @@ * Laws: |
@@ -225,3 +225,3 @@ "use strict"; | ||
/*#__PURE__*/ | ||
exports.composePrism(_.prismSome()); | ||
exports.composePrism(/*#__PURE__*/ _.prismSome()); | ||
/** | ||
@@ -235,3 +235,3 @@ * Return a `Prism` from a `Iso` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.composePrism(_.prismRight()); | ||
exports.composePrism(/*#__PURE__*/ _.prismRight()); | ||
/** | ||
@@ -245,3 +245,3 @@ * Return a `Prism` from a `Iso` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.composePrism(_.prismLeft()); | ||
exports.composePrism(/*#__PURE__*/ _.prismLeft()); | ||
/** | ||
@@ -248,0 +248,0 @@ * Return a `Traversal` from a `Iso` focused on a `Traversable`. |
@@ -187,3 +187,3 @@ "use strict"; | ||
/*#__PURE__*/ | ||
exports.composePrism(_.prismSome()); | ||
exports.composePrism(/*#__PURE__*/ _.prismSome()); | ||
/** | ||
@@ -197,3 +197,3 @@ * Return a `Optional` from a `Lens` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.composePrism(_.prismRight()); | ||
exports.composePrism(/*#__PURE__*/ _.prismRight()); | ||
/** | ||
@@ -207,3 +207,3 @@ * Return a `Optional` from a `Lens` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.composePrism(_.prismLeft()); | ||
exports.composePrism(/*#__PURE__*/ _.prismLeft()); | ||
/** | ||
@@ -210,0 +210,0 @@ * Return a `Traversal` from a `Lens` focused on a `Traversable`. |
@@ -119,3 +119,3 @@ "use strict"; | ||
/*#__PURE__*/ | ||
exports.compose(_.prismAsOptional(_.prismFromNullable())); | ||
exports.compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismFromNullable())); | ||
function filter(predicate) { | ||
@@ -198,3 +198,3 @@ return exports.compose(_.prismAsOptional(_.prismFromPredicate(predicate))); | ||
/*#__PURE__*/ | ||
exports.compose(_.prismAsOptional(_.prismSome())); | ||
exports.compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismSome())); | ||
/** | ||
@@ -208,3 +208,3 @@ * Return a `Optional` from a `Optional` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.compose(_.prismAsOptional(_.prismRight())); | ||
exports.compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismRight())); | ||
/** | ||
@@ -218,3 +218,3 @@ * Return a `Optional` from a `Optional` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.compose(_.prismAsOptional(_.prismLeft())); | ||
exports.compose(/*#__PURE__*/ _.prismAsOptional(/*#__PURE__*/ _.prismLeft())); | ||
/** | ||
@@ -221,0 +221,0 @@ * Return a `Traversal` from a `Optional` focused on a `Traversable`. |
@@ -129,3 +129,3 @@ "use strict"; | ||
/*#__PURE__*/ | ||
exports.compose(_.prismFromNullable()); | ||
exports.compose(/*#__PURE__*/ _.prismFromNullable()); | ||
function filter(predicate) { | ||
@@ -215,3 +215,3 @@ return exports.compose(_.prismFromPredicate(predicate)); | ||
/*#__PURE__*/ | ||
exports.compose(_.prismSome()); | ||
exports.compose(/*#__PURE__*/ _.prismSome()); | ||
/** | ||
@@ -225,3 +225,3 @@ * Return a `Prism` from a `Prism` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.compose(_.prismRight()); | ||
exports.compose(/*#__PURE__*/ _.prismRight()); | ||
/** | ||
@@ -235,3 +235,3 @@ * Return a `Prism` from a `Prism` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.compose(_.prismLeft()); | ||
exports.compose(/*#__PURE__*/ _.prismLeft()); | ||
/** | ||
@@ -238,0 +238,0 @@ * Return a `Traversal` from a `Prism` focused on a `Traversable`. |
@@ -193,3 +193,3 @@ "use strict"; | ||
/*#__PURE__*/ | ||
exports.compose(_.prismAsTraversal(_.prismSome())); | ||
exports.compose(/*#__PURE__*/ _.prismAsTraversal(/*#__PURE__*/ _.prismSome())); | ||
/** | ||
@@ -203,3 +203,3 @@ * Return a `Traversal` from a `Traversal` focused on the `Right` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.compose(_.prismAsTraversal(_.prismRight())); | ||
exports.compose(/*#__PURE__*/ _.prismAsTraversal(/*#__PURE__*/ _.prismRight())); | ||
/** | ||
@@ -213,3 +213,3 @@ * Return a `Traversal` from a `Traversal` focused on the `Left` of a `Either` type. | ||
/*#__PURE__*/ | ||
exports.compose(_.prismAsTraversal(_.prismLeft())); | ||
exports.compose(/*#__PURE__*/ _.prismAsTraversal(/*#__PURE__*/ _.prismLeft())); | ||
/** | ||
@@ -216,0 +216,0 @@ * Return a `Traversal` from a `Traversal` focused on a `Traversable`. |
{ | ||
"name": "monocle-ts", | ||
"version": "2.3.11", | ||
"version": "2.3.12", | ||
"description": "A porting of scala monocle library to TypeScript", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
366307
12500