array-hyper-unique
Advanced tools
Comparing version 1.1.9 to 1.1.10
@@ -6,2 +6,13 @@ # Change Log | ||
## [1.1.10](https://github.com/bluelovers/ws-array/compare/array-hyper-unique@1.1.9...array-hyper-unique@1.1.10) (2021-07-09) | ||
### ♻️ Chores | ||
* update deps and use tslib with importHelpers ([7364982](https://github.com/bluelovers/ws-array/commit/7364982d9e8ebff5dc9b9742f187e3dc5d216f38)) | ||
## [1.1.9](https://github.com/bluelovers/ws-array/compare/array-hyper-unique@1.1.8...array-hyper-unique@1.1.9) (2020-07-01) | ||
@@ -8,0 +19,0 @@ |
18
core.js
@@ -5,19 +5,7 @@ "use strict"; | ||
*/ | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
__exportStar(require("./index"), exports); | ||
const index_1 = __importDefault(require("./index")); | ||
const tslib_1 = require("tslib"); | ||
(0, tslib_1.__exportStar)(require("./index"), exports); | ||
const index_1 = (0, tslib_1.__importDefault)(require("./index")); | ||
exports.default = index_1.default; | ||
//# sourceMappingURL=core.js.map |
@@ -7,25 +7,3 @@ import { IOptions } from './lib/types'; | ||
export declare function lazy_unique<T extends any[]>(arr: T): T; | ||
export declare namespace lazy_unique { | ||
export var array_unique: typeof import(".").array_unique; | ||
export var array_unique_overwrite: typeof import(".").array_unique_overwrite; | ||
export var lazy_unique_overwrite: typeof import(".").lazy_unique_overwrite; | ||
export var equals: typeof import("./lib/util").equals; | ||
export var defaultFilter: typeof import("./lib/util").defaultFilter; | ||
export var defaultChecker: typeof import("./lib/util").defaultChecker; | ||
export var lazy_unique: typeof import(".").lazy_unique; | ||
var _a: typeof import(".").lazy_unique; | ||
export { _a as default }; | ||
} | ||
export declare function lazy_unique<T, T1, T2>(a1: T1, a2: T2, ...arr: T[]): Array<T | T1 | T2>; | ||
export declare namespace lazy_unique { | ||
export var array_unique: typeof import(".").array_unique; | ||
export var array_unique_overwrite: typeof import(".").array_unique_overwrite; | ||
export var lazy_unique_overwrite: typeof import(".").lazy_unique_overwrite; | ||
export var equals: typeof import("./lib/util").equals; | ||
export var defaultFilter: typeof import("./lib/util").defaultFilter; | ||
export var defaultChecker: typeof import("./lib/util").defaultChecker; | ||
export var lazy_unique: typeof import(".").lazy_unique; | ||
var _a: typeof import(".").lazy_unique; | ||
export { _a as default }; | ||
} | ||
export declare function lazy_unique<T>(...arr: Array<T | T[]>): T | (T | T[])[]; | ||
@@ -32,0 +10,0 @@ export declare namespace lazy_unique { |
17
index.js
"use strict"; | ||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } }); | ||
}) : (function(o, m, k, k2) { | ||
if (k2 === undefined) k2 = k; | ||
o[k2] = m[k]; | ||
})); | ||
var __exportStar = (this && this.__exportStar) || function(m, exports) { | ||
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p); | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.lazy_unique_overwrite = exports.lazy_unique = exports.array_unique_overwrite = exports.array_unique = void 0; | ||
const tslib_1 = require("tslib"); | ||
const util_1 = require("./lib/util"); | ||
__exportStar(require("./lib/types"), exports); | ||
__exportStar(require("./lib/util"), exports); | ||
(0, tslib_1.__exportStar)(require("./lib/types"), exports); | ||
(0, tslib_1.__exportStar)(require("./lib/util"), exports); | ||
function array_unique(arr, options = {}) { | ||
@@ -21,3 +12,3 @@ if (!Array.isArray(arr)) { | ||
} | ||
const cb = util_1.defaultFilter(options); | ||
const cb = (0, util_1.defaultFilter)(options); | ||
if (options.overwrite) { | ||
@@ -24,0 +15,0 @@ let index = arr.length; |
"use strict"; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.defaultChecker = exports.defaultFilter = exports.equals = void 0; | ||
const deep_eql_1 = __importDefault(require("deep-eql")); | ||
const tslib_1 = require("tslib"); | ||
const deep_eql_1 = (0, tslib_1.__importDefault)(require("deep-eql")); | ||
const lodash_1 = require("lodash"); | ||
function equals(a1, a2) { | ||
return deep_eql_1.default(a1, a2); | ||
return (0, deep_eql_1.default)(a1, a2); | ||
} | ||
@@ -25,5 +23,5 @@ exports.equals = equals; | ||
function defaultChecker(element, value, arr_new, arr_old) { | ||
return deep_eql_1.default(element, value); | ||
return (0, deep_eql_1.default)(element, value); | ||
} | ||
exports.defaultChecker = defaultChecker; | ||
//# sourceMappingURL=util.js.map |
{ | ||
"name": "array-hyper-unique", | ||
"version": "1.1.9", | ||
"version": "1.1.10", | ||
"description": "Get unique values of an array. Really, like deeply unique.", | ||
@@ -61,3 +61,4 @@ "keywords": [ | ||
"deep-eql": "^4.0.0", | ||
"lodash": "^4.17.15" | ||
"lodash": "^4.17.21", | ||
"tslib": "^2.3.0" | ||
}, | ||
@@ -67,10 +68,10 @@ "devDependencies": { | ||
"arr-unique": "^1.0.2", | ||
"array-uniq": "^2.1.0", | ||
"array-uniq": "<3 >=2.1", | ||
"array-unique": "^0.3.2", | ||
"array-unique-deep": "^1.0.1", | ||
"just-unique": "^3.2.0", | ||
"just-unique": "^3.3.0", | ||
"lodash.uniq": "^4.5.0", | ||
"tfk-unique-array": "^2.0.0" | ||
}, | ||
"gitHead": "4838f4f6ecf0366b1ce683053d80bad426059a27" | ||
"gitHead": "7c1aae53d026795e4d4739bad05cc5cf796c0f6d" | ||
} |
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
28545
3
16
141
+ Addedtslib@^2.3.0
+ Addedtslib@2.8.1(transitive)
Updatedlodash@^4.17.21