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

shades

Package Overview
Dependencies
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

shades - npm Package Compare versions

Comparing version 1.10.1 to 1.11.0

LICENSE

2

package.json
{
"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 @@ ```

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