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

@xylabs/array

Package Overview
Dependencies
Maintainers
7
Versions
251
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xylabs/array - npm Package Compare versions

Comparing version 2.11.22 to 2.11.23

3

dist/browser/containsAll.js

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

// src/containsAll.ts
var containsAll = (source, target) => target.every((i) => source.includes(i));
const containsAll = (source, target) => target.every((i) => source.includes(i));
export {

@@ -4,0 +3,0 @@ containsAll

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

// src/distinct.ts
var distinct = (value, index, array) => array.indexOf(value) === index;
const distinct = (value, index, array) => array.indexOf(value) === index;
export {

@@ -4,0 +3,0 @@ distinct

@@ -1,4 +0,3 @@

// src/flatten.ts
import { exists } from "@xylabs/exists";
var flatten = (a, b) => {
const flatten = (a, b) => {
return [].concat(a).concat(b).filter(exists);

@@ -5,0 +4,0 @@ };

@@ -1,17 +0,4 @@

// src/containsAll.ts
var containsAll = (source, target) => target.every((i) => source.includes(i));
// src/distinct.ts
var distinct = (value, index, array) => array.indexOf(value) === index;
// src/flatten.ts
import { exists } from "@xylabs/exists";
var flatten = (a, b) => {
return [].concat(a).concat(b).filter(exists);
};
export {
containsAll,
distinct,
flatten
};
export * from "./containsAll";
export * from "./distinct";
export * from "./flatten";
//# sourceMappingURL=index.js.map

@@ -19,2 +19,4 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/containsAll.ts
var containsAll_exports = {};

@@ -25,3 +27,3 @@ __export(containsAll_exports, {

module.exports = __toCommonJS(containsAll_exports);
const containsAll = (source, target) => target.every((i) => source.includes(i));
var containsAll = (source, target) => target.every((i) => source.includes(i));
// Annotate the CommonJS export names for ESM import in node:

@@ -28,0 +30,0 @@ 0 && (module.exports = {

@@ -19,2 +19,4 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/distinct.ts
var distinct_exports = {};

@@ -25,3 +27,3 @@ __export(distinct_exports, {

module.exports = __toCommonJS(distinct_exports);
const distinct = (value, index, array) => array.indexOf(value) === index;
var distinct = (value, index, array) => array.indexOf(value) === index;
// Annotate the CommonJS export names for ESM import in node:

@@ -28,0 +30,0 @@ 0 && (module.exports = {

@@ -19,2 +19,4 @@ "use strict";

var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/flatten.ts
var flatten_exports = {};

@@ -26,3 +28,3 @@ __export(flatten_exports, {

var import_exists = require("@xylabs/exists");
const flatten = (a, b) => {
var flatten = (a, b) => {
return [].concat(a).concat(b).filter(import_exists.exists);

@@ -29,0 +31,0 @@ };

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

var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {

@@ -15,15 +19,30 @@ if (from && typeof from === "object" || typeof from === "function") {

};
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
containsAll: () => containsAll,
distinct: () => distinct,
flatten: () => flatten
});
module.exports = __toCommonJS(src_exports);
__reExport(src_exports, require("./containsAll"), module.exports);
__reExport(src_exports, require("./distinct"), module.exports);
__reExport(src_exports, require("./flatten"), module.exports);
// src/containsAll.ts
var containsAll = (source, target) => target.every((i) => source.includes(i));
// src/distinct.ts
var distinct = (value, index, array) => array.indexOf(value) === index;
// src/flatten.ts
var import_exists = require("@xylabs/exists");
var flatten = (a, b) => {
return [].concat(a).concat(b).filter(import_exists.exists);
};
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
...require("./containsAll"),
...require("./distinct"),
...require("./flatten")
containsAll,
distinct,
flatten
});
//# sourceMappingURL=index.js.map

@@ -35,7 +35,7 @@ {

"dependencies": {
"@xylabs/exists": "~2.11.22"
"@xylabs/exists": "~2.11.23"
},
"devDependencies": {
"@xylabs/ts-scripts-yarn3": "^3.0.70",
"@xylabs/tsconfig": "^3.0.70",
"@xylabs/ts-scripts-yarn3": "^3.0.72",
"@xylabs/tsconfig": "^3.0.72",
"typescript": "^5.2.2"

@@ -58,3 +58,3 @@ },

"sideEffects": false,
"version": "2.11.22"
"version": "2.11.23"
}

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

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

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

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

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

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