Comparing version 1.10.1 to 1.11.0
{ | ||
"name": "shades", | ||
"version": "1.10.1", | ||
"version": "1.11.0", | ||
"description": "Lens-like functionality with a lodash-style interface.", | ||
@@ -5,0 +5,0 @@ "main": "lib/bundle.js", |
@@ -122,5 +122,5 @@ ![shades](imgs/shades.svg) | ||
The simplest lens is a string path, like `'name'`, or `'address.streetName'`. | ||
The simplest lens is a string path like `'name'` or `'address.streetName'`. | ||
`get` is the simplest lens consumer. It takes a lens into an object, and produces a function that will take an object, and produce the focus of that lens. Using the `store` from above: | ||
`get` is the simplest lens consumer. It takes a lens into an object and produces a function that will take an object and produce the focus of that lens (focus = final value referenced by the lens, i.e. `name` or `streetName`). Using the `store` from above: | ||
@@ -272,3 +272,3 @@ ```js | ||
```js | ||
> mod('users', matching(has({goldMember: true})), 'posts', all, 'likes')(store) | ||
> mod('users', matching(has({goldMember: true})), 'posts', all, 'likes')(inc)(store) | ||
{ | ||
@@ -539,3 +539,3 @@ users: [ | ||
> map((key, value) => `${value} was at {key}`)({a: 1, b: 2}) | ||
> map((value, key) => `${value} was at {key}`)({a: 1, b: 2}) | ||
{a: '1 was at a', b: '2 was at b'} | ||
@@ -551,3 +551,3 @@ ``` | ||
> filter((key, value) => isEven(key) && isOdd(value))({2: 1, 3: 1}) | ||
> filter((value, key) => isEven(key) && isOdd(value))({2: 1, 3: 1}) | ||
{2: 1} | ||
@@ -554,0 +554,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
Mixed license
License(Experimental) Package contains multiple licenses.
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
332088
7
1