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

@reverse/array

Package Overview
Dependencies
Maintainers
2
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@reverse/array - npm Package Compare versions

Comparing version
1.6.0
to
1.6.1
+1
createArary.d.ts
export declare function createArray<T>(length: number, map: (index: number) => T): T[];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function createArray(length, map) {
return Array(length).fill(null).map((value, index) => map(index));
}
exports.createArray = createArray;
//# sourceMappingURL=createArary.js.map
{"version":3,"file":"createArary.js","sourceRoot":"","sources":["createArary.ts"],"names":[],"mappings":";;AAAA,SAAgB,WAAW,CAAI,MAAc,EAAE,GAAyB;IACtE,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;AACpE,CAAC;AAFD,kCAEC"}
+1
-0

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

export * from './createArary';
export * from './moveIndex';

@@ -2,0 +3,0 @@ export * from './remove';

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

Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./createArary"));
__export(require("./moveIndex"));

@@ -8,0 +9,0 @@ __export(require("./remove"));

+1
-1

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

{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA,iCAA4B;AAC5B,8BAAyB;AACzB,gCAA2B;AAC3B,+BAA0B;AAC1B,8BAAyB"}
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":";;;;;AAAA,mCAA8B;AAC9B,iCAA4B;AAC5B,8BAAyB;AACzB,gCAA2B;AAC3B,+BAA0B;AAC1B,8BAAyB"}
{
"name": "@reverse/array",
"version": "1.6.0",
"version": "1.6.1",
"description": "Useful functions for managing arrays.",
"main": "index.js",
"dependencies": {
"@reverse/random": "^1.0.7"
"@reverse/random": "^1.0.8"
},

@@ -31,3 +31,3 @@ "repository": {

],
"gitHead": "d2a350ae8323cc3de66eddd841e70d5cb0c0a7cd"
"gitHead": "3dd0ee52cffbdbc33a883d2a32f996977585f07c"
}
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function remove(array, value) {
return array.filter((x) => x !== value);
let loop = true;
return array.filter((x) => loop && (x !== value || (loop = false)));
}
exports.remove = remove;
//# sourceMappingURL=remove.js.map

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

{"version":3,"file":"remove.js","sourceRoot":"","sources":["remove.ts"],"names":[],"mappings":";;AAGA,SAAgB,MAAM,CAAI,KAAU,EAAE,KAAQ;IAC5C,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,CAAC;AAC1C,CAAC;AAFD,wBAEC"}
{"version":3,"file":"remove.js","sourceRoot":"","sources":["remove.ts"],"names":[],"mappings":";;AAGA,SAAgB,MAAM,CAAI,KAAU,EAAE,KAAQ;IAC5C,IAAI,IAAI,GAAG,IAAI,CAAC;IAChB,OAAO,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,KAAK,KAAK,IAAI,CAAC,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;AACtE,CAAC;AAHD,wBAGC"}