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

@eturino/key-set

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@eturino/key-set - npm Package Compare versions

Comparing version 4.1.0 to 4.1.1

3

build/main/lib/key-set/all-except-some.d.ts
import { Key, KeySet, KeySetAllExceptSomeSerialized, KeySetTypes } from "./-base";
import { KeySetByKeys } from "./-by-keys";
import { KeySetGlobal } from "./-global";
import { KeySetAll } from "./all";

@@ -19,2 +20,3 @@ import { KeySetNone } from "./none";

remove(other: KeySetAllExceptSome<T>): KeySetNone<T> | KeySetSome<T>;
remove(other: KeySet<T> | KeySetGlobal<Key>): KeySetAllExceptSome<T> | KeySetSome<T> | KeySetNone<T>;
intersect(other: KeySetAll<T> | KeySetAll<Key>): KeySetAllExceptSome<T>;

@@ -24,2 +26,3 @@ intersect(other: KeySetNone<T> | KeySetNone<Key>): KeySetNone<T>;

intersect(other: KeySetAllExceptSome<T>): KeySetAll<T> | KeySetAllExceptSome<T>;
intersect(other: KeySet<T> | KeySetGlobal<Key>): KeySet<T>;
private excludeMyKeys;

@@ -26,0 +29,0 @@ }

2

build/main/lib/key-set/all-except-some.js

@@ -92,2 +92,2 @@ "use strict";

exports.allExceptSome = allExceptSome;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLWV4Y2VwdC1zb21lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9rZXktc2V0L2FsbC1leGNlcHQtc29tZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUNBLG1DQUFrRjtBQUNsRix5Q0FBMEM7QUFFMUMsK0JBQXVDO0FBQ3ZDLHVFQUFpRTtBQUNqRSxpQ0FBb0M7QUFDcEMsaUNBQTBDO0FBRTFDLE1BQWEsbU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GlEQUFpRCxDQUFDLENBQUM7S0FDbkY7SUFFRCxPQUFPLElBQUksbUJBQW1CLENBQUMsSUFBSSxDQUFDLENBQUM7QUFDdkMsQ0FBQztBQVJELGtEQVFDO0FBRUQ7Ozs7R0FJRztBQUNILFNBQWdCLGFBQWEsQ0FDM0IsSUFBNEI7SUFFNUIsSUFBSSxDQUFDLElBQUksQ0FBQyxNQUFNO1FBQUUsT0FBTyxTQUFHLEVBQUssQ0FBQztJQUVsQyxPQUFPLG1CQUFtQixDQUFDLElBQUksQ0FBQyxDQUFDO0FBQ25DLENBQUM7QUFORCxzQ0FNQyJ9

@@ -20,3 +20,3 @@ import { Key, KeySet, KeySetAllSerialized, KeySetTypes } from "./-base";

remove(other: KeySetAllExceptSome<T>): KeySetSome<T>;
remove(other: KeySet<T>): KeySet<T>;
remove(other: KeySet<T> | KeySetGlobal<Key>): KeySet<T>;
intersect(other: KeySetAll<T> | KeySetAll<Key>): KeySetAll<T>;

@@ -23,0 +23,0 @@ intersect(other: KeySetNone<T> | KeySetNone<Key>): KeySetNone<T>;

import { Key, KeySet, KeySetSomeSerialized, KeySetTypes } from "./-base";
import { KeySetByKeys } from "./-by-keys";
import { KeySetGlobal } from "./-global";
import { KeySetAll } from "./all";

@@ -18,6 +19,6 @@ import { KeySetAllExceptSome } from "./all-except-some";

remove(other: KeySetAll<T> | KeySetAll<Key>): KeySetNone<T>;
remove(other: KeySetAllExceptSome<T> | KeySetSome<T>): KeySetSome<T> | KeySetNone<T>;
remove(other: KeySet<T> | KeySetGlobal<Key>): KeySetSome<T> | KeySetNone<T>;
intersect(other: KeySetAll<T> | KeySetAll<Key>): KeySetSome<T>;
intersect(other: KeySetNone<T> | KeySetNone<Key>): KeySetNone<T>;
intersect(other: KeySetSome<T> | KeySetAllExceptSome<T>): KeySetSome<T> | KeySetNone<T>;
intersect(other: KeySet<T> | KeySetGlobal<Key>): KeySetSome<T> | KeySetNone<T>;
private intersectKeys;

@@ -24,0 +25,0 @@ private excludeKeys;

import { Key, KeySet, KeySetAllExceptSomeSerialized, KeySetTypes } from "./-base";
import { KeySetByKeys } from "./-by-keys";
import { KeySetGlobal } from "./-global";
import { KeySetAll } from "./all";

@@ -19,2 +20,3 @@ import { KeySetNone } from "./none";

remove(other: KeySetAllExceptSome<T>): KeySetNone<T> | KeySetSome<T>;
remove(other: KeySet<T> | KeySetGlobal<Key>): KeySetAllExceptSome<T> | KeySetSome<T> | KeySetNone<T>;
intersect(other: KeySetAll<T> | KeySetAll<Key>): KeySetAllExceptSome<T>;

@@ -24,2 +26,3 @@ intersect(other: KeySetNone<T> | KeySetNone<Key>): KeySetNone<T>;

intersect(other: KeySetAllExceptSome<T>): KeySetAll<T> | KeySetAllExceptSome<T>;
intersect(other: KeySet<T> | KeySetGlobal<Key>): KeySet<T>;
private excludeMyKeys;

@@ -26,0 +29,0 @@ }

@@ -87,2 +87,2 @@ import { KeySetTypes } from "./-base";

}
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxsLWV4Y2VwdC1zb21lLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vc3JjL2xpYi9rZXktc2V0L2FsbC1leGNlcHQtc29tZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFDQSxPQUFPLEVBQThDLFdBQVcsRUFBRSxNQUFNLFNBQVMsQ0FBQztBQUNsRixPQUFPLEVBQUUsWUFBWSxFQUFFLE1BQU0sWUFBWSxDQUFDO0FBRTFDLE9BQU8sRUFBRSxHQUFHLEVBQUUsU0FBUyxFQUFFLE1BQU0sT0FBTyxDQUFDO0FBQ3ZDLE9BQU8sRUFBRSxvQkFBb0IsRUFBRSxNQUFNLDJCQUEyQixDQUFDO0FBQ2pFLE9BQU8sRUFBRSxVQUFVLEVBQUUsTUFBTSxRQUFRLENBQUM7QUFDcEMsT0FBTyxFQUFFLFVBQVUsRUFBRSxJQUFJLEVBQUUsTUFBTSxR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FBQyxDQUFDO0lBQ2hFLENBQUM7Q0FDRjtBQUVEOzs7OztHQUtHO0FBQ0gsTUFBTSxVQUFVLG1CQUFtQixDQUNqQyxJQUE0QjtJQUU1QixJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sRUFBRTtRQUNoQixNQUFNLElBQUksb0JBQW9CLENBQUMsaURBQWlELENBQUMsQ0FBQztLQUNuRjtJQUVELE9BQU8sSUFBSSxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUN2QyxDQUFDO0FBRUQ7Ozs7R0FJRztBQUNILE1BQU0sVUFBVSxhQUFhLENBQzNCLElBQTRCO0lBRTVCLElBQUksQ0FBQyxJQUFJLENBQUMsTUFBTTtRQUFFLE9BQU8sR0FBRyxFQUFLLENBQUM7SUFFbEMsT0FBTyxtQkFBbUIsQ0FBQyxJQUFJLENBQUMsQ0FBQztBQUNuQyxDQUFDIn0=

@@ -20,3 +20,3 @@ import { Key, KeySet, KeySetAllSerialized, KeySetTypes } from "./-base";

remove(other: KeySetAllExceptSome<T>): KeySetSome<T>;
remove(other: KeySet<T>): KeySet<T>;
remove(other: KeySet<T> | KeySetGlobal<Key>): KeySet<T>;
intersect(other: KeySetAll<T> | KeySetAll<Key>): KeySetAll<T>;

@@ -23,0 +23,0 @@ intersect(other: KeySetNone<T> | KeySetNone<Key>): KeySetNone<T>;

import { Key, KeySet, KeySetSomeSerialized, KeySetTypes } from "./-base";
import { KeySetByKeys } from "./-by-keys";
import { KeySetGlobal } from "./-global";
import { KeySetAll } from "./all";

@@ -18,6 +19,6 @@ import { KeySetAllExceptSome } from "./all-except-some";

remove(other: KeySetAll<T> | KeySetAll<Key>): KeySetNone<T>;
remove(other: KeySetAllExceptSome<T> | KeySetSome<T>): KeySetSome<T> | KeySetNone<T>;
remove(other: KeySet<T> | KeySetGlobal<Key>): KeySetSome<T> | KeySetNone<T>;
intersect(other: KeySetAll<T> | KeySetAll<Key>): KeySetSome<T>;
intersect(other: KeySetNone<T> | KeySetNone<Key>): KeySetNone<T>;
intersect(other: KeySetSome<T> | KeySetAllExceptSome<T>): KeySetSome<T> | KeySetNone<T>;
intersect(other: KeySet<T> | KeySetGlobal<Key>): KeySetSome<T> | KeySetNone<T>;
private intersectKeys;

@@ -24,0 +25,0 @@ private excludeKeys;

@@ -5,2 +5,9 @@ # Changelog

### [4.1.1](https://github.com/eturino/ts-key-set/compare/v4.1.0...v4.1.1) (2020-02-29)
### Bug Fixes
* fixing overloads on remove() and intersect() (TypeScript) ([7ea0ff1](https://github.com/eturino/ts-key-set/commit/7ea0ff1aeeb0593153eb40f1eb0f5d7b74bd95ff))
## [4.1.0](https://github.com/eturino/ts-key-set/compare/v4.0.0...v4.1.0) (2020-02-29)

@@ -7,0 +14,0 @@

{
"name": "@eturino/key-set",
"version": "4.1.0",
"version": "4.1.1",
"author": "Eduardo Turiño <eturino@eturino.com>",

@@ -5,0 +5,0 @@ "description": "KeySet with 4 classes to represent concepts of All, None, Some, and AllExceptSome, the last 2 with a sorted uniq list of keys, and all with intersection calculations (TypeScript port of https://github.com/eturino/ruby_key_set)",

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