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 2.0.0-beta.6 to 2.0.0

2

package.json
{
"name": "shades",
"version": "2.0.0-beta.6",
"version": "2.0.0",
"description": "Lens-like functionality with a lodash-style interface.",

@@ -5,0 +5,0 @@ "main": "lib/bundle.js",

@@ -80,8 +80,2 @@ import {

mod("freinds", toString)(s => s.toUpperCase())(user); // $ExpectError
into("a")({ a: 10 }); // $ExpectType number
into("b")({ a: 10 }); // $ExpectError
into({ a: 10 })({ a: 10 }); // $ExpectType boolean
into({ a: 10 })({ b: 10 }); // $ExpectError
into((x: number) => x + 1)(10); // $ExpectType number
filter((user: User) => user.friends.length > 0)(users); // $ExpectType User[]

@@ -209,14 +203,2 @@ filter((user: User) => user.name)(byName); // $ExpectType { [name: string]: User; }

add(1)(3); // $ExpectType number
add(1)("s"); // $ExpectError
sub(1)(3); // $ExpectType number
sub(1)("s"); // $ExpectError
inc(1); // $ExpectType number
inc(""); // $ExpectError
dec(1); // $ExpectType number
dec(""); // $ExpectError
identity(10); // $ExpectType 10

@@ -264,2 +246,8 @@ identity("butts"); // $ExpectType "butts"

into("a")({ a: 10 }); // $ExpectType number
into("b")({ a: 10 }); // $ExpectError
into({ a: 10 })({ a: 10 }); // $ExpectType boolean
into({ a: 10 })({ b: 10 }); // $ExpectError
into((x: number) => x + 1)(10); // $ExpectType number
has({ a: 1 }); // $ExpectType (obj: HasPattern<{ a: number; }>) => boolean

@@ -295,2 +283,14 @@ has({ a: false }); // $ExpectType (obj: HasPattern<{ a: boolean; }>) => boolean

add(1)(3); // $ExpectType number
add(1)("s"); // $ExpectError
sub(1)(3); // $ExpectType number
sub(1)("s"); // $ExpectError
inc(1); // $ExpectType number
inc(""); // $ExpectError
dec(1); // $ExpectType number
dec(""); // $ExpectError
includes("hello")("hello"); // $ExpectType boolean

@@ -297,0 +297,0 @@ includes("hello")(false); // $ExpectError

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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