New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

objectools

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

objectools - npm Package Compare versions

Comparing version
2.1.1
to
2.1.2
+9
-9
dist/main.d.ts

@@ -10,3 +10,3 @@ /**

});
get o(): { [P in K]: V; };
get o(): Record<K, V>;
get keys(): Set<K>;

@@ -16,3 +16,3 @@ get values(): V[];

static oFromKeys<K extends Key, V>(keys: K[], value: V | ((key: K, index: number) => V)): O<K, V>;
static fromKeys<V, K extends Key = string>(keys: K[], value: V | ((key: K, index: number) => V)): { [P in K]: V; };
static fromKeys<V, K extends Key = string>(keys: K[], value: V | ((key: K, index: number) => V)): Record<K, V>;
/**

@@ -27,3 +27,3 @@ * Filter the object by keys and values (chainable).

*/
filter<P extends K, U extends V>(predicateFn: (value: V, key: K, index: number) => this is O<P, U>): { [P_1 in P]: U; };
filter<P extends K, U extends V>(predicateFn: (value: V, key: K, index: number) => this is O<P, U>): Record<P, U>;
/**

@@ -38,3 +38,3 @@ * Map the object by keys and values (chainable).

*/
map<P extends Key = K, U = V>(mapper: (value: V, key: K, index: number) => U | [P, U]): { [P_1 in P]: U; };
map<P extends Key = K, U = V>(mapper: (value: V, key: K, index: number) => U | [P, U]): Record<P, U>;
/**

@@ -117,3 +117,3 @@ * `forEach`-loop method for objects.

*/
sort(compareFn?: (a: [K, V], b: [K, V]) => number): { [P in K]: V; };
sort(compareFn?: (a: [K, V], b: [K, V]) => number): Record<K, V>;
/**

@@ -128,3 +128,3 @@ * Similar to `oSort()` method. But operates based on the `value`s only (instead of `[key, value]`s).

*/
sortByValues(compareFn?: (v1: V, v2: V) => number): { [P in K]: V; };
sortByValues(compareFn?: (v1: V, v2: V) => number): Record<K, V>;
shallowEqual(object: Record<K, any>): boolean;

@@ -142,3 +142,3 @@ /**

*/
flip(): { [P in K]: V extends string ? V : never; };
flip(): Record<K, V extends string ? V : never>;
/**

@@ -158,3 +158,3 @@ * NOT [IN-PLACE](https://en.wikipedia.org/wiki/In-place_algorithm) reverse the object (and return a NEW object)

*/
reverse(): { [P in K]: V extends string ? V : never; };
reverse(): Record<K, V extends string ? V : never>;
/**

@@ -185,3 +185,3 @@ * **`O.fromKeys(o(this.values[0]).keys, k1 => O.fromKeys(this.keys, k2 => this.o[k2][k1]))`**

*/
transpose(): { [P in V extends object ? keyof V extends string ? keyof V : never : never]: Record<K, any>; };
transpose(): Record<V extends object ? keyof V extends string ? keyof V : never : never, Record<K, any>>;
}

@@ -188,0 +188,0 @@ /**

{
"name": "objectools",
"version": "2.1.1",
"version": "2.1.2",
"description": "Useful easy-to-use utilities for JavaScript objects",

@@ -5,0 +5,0 @@ "keywords": [