New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rc-js-util

Package Overview
Dependencies
Maintainers
1
Versions
260
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rc-js-util - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

bin/array/impl/array-map.d.ts

4

bin/array/_array.d.ts
import { arrayBinaryIndexOf } from "./impl/array-binary-index-of";
import { arrayIndexByKey } from "./impl/array-index-by-key";
import { arrayBinaryLastIndexOf } from "./impl/array-binary-last-index-of";
import { arrayMap } from "./impl/array-map";
export declare class _Array {
static readonly binaryIndexOf: typeof arrayBinaryIndexOf;
static readonly binaryLastIndexOf: typeof arrayBinaryLastIndexOf;
static readonly isArray: (obj: unknown) => boolean;
static readonly isArray: (obj: unknown) => obj is ArrayLike<unknown>;
static readonly indexByKey: typeof arrayIndexByKey;
static readonly map: typeof arrayMap;
private constructor();
}

@@ -8,2 +8,3 @@ "use strict";

var array_binary_last_index_of_1 = require("./impl/array-binary-last-index-of");
var array_map_1 = require("./impl/array-map");
var _Array = (function () {

@@ -16,2 +17,3 @@ function _Array() {

_Array.indexByKey = array_index_by_key_1.arrayIndexByKey;
_Array.map = array_map_1.arrayMap;
return _Array;

@@ -18,0 +20,0 @@ }());

@@ -1,1 +0,1 @@

export declare const arrayIsArray: (obj: unknown) => boolean;
export declare const arrayIsArray: (obj: unknown) => obj is ArrayLike<unknown>;

@@ -1,1 +0,1 @@

export declare function dictionaryCloneExtend<T extends object, U extends object>(obj: T, extension: U): T & U;
export declare function dictionaryCloneExtend<T extends object, U extends object>(base: T, extension: U): T & U;

@@ -5,5 +5,5 @@ "use strict";

var dictionary_extend_1 = require("./dictionary-extend");
function dictionaryCloneExtend(obj, extension) {
function dictionaryCloneExtend(base, extension) {
var extended = {};
dictionary_extend_1.dictionaryExtend(extended, obj);
dictionary_extend_1.dictionaryExtend(extended, base);
dictionary_extend_1.dictionaryExtend(extended, extension);

@@ -10,0 +10,0 @@ return extended;

@@ -1,1 +0,1 @@

export declare function dictionaryExtend<T extends object>(obj: T, extension: T): void;
export declare function dictionaryExtend<T extends object>(base: T, extension: T): void;

@@ -6,5 +6,5 @@ "use strict";

var array_is_array_1 = require("../../array/impl/array-is-array");
function dictionaryExtend(obj, extension) {
function dictionaryExtend(base, extension) {
DEBUG_MODE && _debug_1._Debug.runBlock(function () {
_debug_1._Debug.assert(!array_is_array_1.arrayIsArray(obj) && !array_is_array_1.arrayIsArray(extension), "should not be used with arrays");
_debug_1._Debug.assert(!array_is_array_1.arrayIsArray(base) && !array_is_array_1.arrayIsArray(extension), "should not be used with arrays");
});

@@ -14,3 +14,3 @@ var keys = Object.keys(extension);

var key = keys[i];
obj[key] = extension[key];
base[key] = extension[key];
}

@@ -17,0 +17,0 @@ }

{
"name": "rc-js-util",
"version": "1.1.1",
"version": "1.2.0",
"license": "MIT",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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