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

@roots/container

Package Overview
Dependencies
Maintainers
5
Versions
925
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@roots/container - npm Package Compare versions

Comparing version 5.0.0-next.7 to 5.0.0-next.8

6

package.json
{
"name": "@roots/container",
"version": "5.0.0-next.7",
"version": "5.0.0-next.8",
"description": "Collections utility",

@@ -67,6 +67,6 @@ "homepage": "https://roots.io/bud",

"@types/lodash": "4.14.176",
"@types/node": "16.11.4",
"@types/node": "16.11.6",
"helpful-decorators": "2.1.0",
"lodash": "4.17.21",
"type-fest": "2.5.1"
"type-fest": "2.5.2"
},

@@ -73,0 +73,0 @@ "dependencies": {

@@ -123,3 +123,3 @@ import type { ValueOf } from 'type-fest';

*/
get<T = any>(key: string | number): T;
get<T = any>(key: string): T;
/**

@@ -144,3 +144,3 @@ * Returns a {@link (Repository:interface) | Repository} key and value as a tuple

*/
getEntries<T = any>(key?: string | number): [string, ValueOf<T>][];
getEntries<T = any>(key?: string): [string, ValueOf<T>][];
/**

@@ -174,3 +174,3 @@ * Merges object created from an array of tuples with the {@link (Repository:interface) | Repository}.

*/
each(key: string | number, callFn: (key: any, value: any) => void): this;
each(key: string, callFn: (key: any, value: any) => void): this;
/**

@@ -188,3 +188,3 @@ * Calls a supplied function for every {@link (Repository:interface) | Repository} value, passing

*/
every(fn: (key: string | number, value: any) => any): this;
every(fn: (key: string, value: any) => any): this;
/**

@@ -206,3 +206,3 @@ * Find

*/
findKeyIn(key: string | number, ...searchItem: any[]): any;
findKeyIn(key: string, ...searchItem: any[]): any;
/**

@@ -279,3 +279,3 @@ * Returns an array of values of the enumerable properties of a {@link (Repository:interface) | Repository} object

*/
set(key: string | number, value: any): this;
set(key: string, value: any): this;
/**

@@ -298,3 +298,3 @@ * Retrieve a container item, running it through the supplied fn.

*/
transform(key: string | number, mutationFn: (value?: any) => any): any;
transform(key: string, mutationFn: (value?: any) => any): any;
/**

@@ -314,3 +314,3 @@ * Mutate a {@link (Repository:interface) | Repository} item

*/
mutate(key: string | number, mutationFn: (value?: any) => any): this;
mutate(key: string, mutationFn: (value?: any) => any): this;
/**

@@ -330,3 +330,3 @@ * Merge a supplied value with an existing {@link (Repository:interface) | Repository} value

*/
merge(key: string | number, value: any): this;
merge(key: string, value: any): this;
/**

@@ -344,3 +344,3 @@ * Return a boolean indicating if a given key exists.

*/
has(key: string | number | number): boolean;
has(key: string): boolean;
/**

@@ -360,3 +360,3 @@ * delete

*/
remove(key: string | number): this;
remove(key: string): this;
/**

@@ -374,3 +374,3 @@ * Return a boolean indicating if the given key matches the given value.

*/
is(key: string | number, value: any): boolean;
is(key: string, value: any): boolean;
/**

@@ -391,3 +391,3 @@ * Return a boolean indicating if the given key's value is true

*/
isTrue(key: string | number): boolean;
isTrue(key: string): boolean;
/**

@@ -408,3 +408,3 @@ * Return a boolean indicating if the given key's value is false

*/
isFalse(key: string | number): boolean;
isFalse(key: string): boolean;
/**

@@ -425,3 +425,3 @@ * Return true if object is likely a vanilla object with string keys.

*/
isIndexed(key?: string | number): boolean;
isIndexed(key?: string): boolean;
/**

@@ -442,3 +442,3 @@ * Return true if object is an array.

*/
isArray(key: string | number): boolean;
isArray(key: string): boolean;
/**

@@ -459,3 +459,3 @@ * Return true if object is not an array.

*/
isNotArray(key: string | number): boolean;
isNotArray(key: string): boolean;
/**

@@ -476,3 +476,3 @@ * Return true if object is a string.

*/
isString(key: string | number): boolean;
isString(key: string): boolean;
/**

@@ -493,3 +493,3 @@ * Return true if object is not a string.

*/
isNotString(key: string | number): boolean;
isNotString(key: string): boolean;
/**

@@ -510,3 +510,3 @@ * Return true if object is a number.

*/
isNumber(key: string | number): boolean;
isNumber(key: string): boolean;
/**

@@ -527,3 +527,3 @@ * Return true if object is not a number.

*/
isNotNumber(key: string | number): boolean;
isNotNumber(key: string): boolean;
/**

@@ -541,3 +541,3 @@ * Return true if object is null.

*/
isNull(key: string | number): boolean;
isNull(key: string): boolean;
/**

@@ -558,3 +558,3 @@ * Return true if object is not null.

*/
isNotNull(key: string | number): boolean;
isNotNull(key: string): boolean;
/**

@@ -576,3 +576,3 @@ * Return true if object is defined.

*/
isDefined(key: string | number): boolean;
isDefined(key: string): boolean;
/**

@@ -593,3 +593,3 @@ * Return true if object is not defined.

*/
isUndefined(key: string | number): boolean;
isUndefined(key: string): boolean;
/**

@@ -610,4 +610,4 @@ * Return true if object is a function

*/
isFunction(key: string | number): boolean;
isFunction(key: string): boolean;
}
//# sourceMappingURL=Container.d.ts.map

Sorry, the diff of this file is not supported yet

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