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

array-hyper-unique

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

array-hyper-unique - npm Package Compare versions

Comparing version 1.1.6 to 1.1.7

16

CHANGELOG.md

@@ -6,2 +6,18 @@ # Change Log

## [1.1.7](https://github.com/bluelovers/ws-array/compare/array-hyper-unique@1.1.6...array-hyper-unique@1.1.7) (2020-06-18)
### ✨ Features
* add support remove item form start ([cc89ec5](https://github.com/bluelovers/ws-array/commit/cc89ec5304b107a6d61b3ae0fd607ae9fcd34735))
### 🚨 Tests
* update test ([1808424](https://github.com/bluelovers/ws-array/commit/1808424b11efc07a60ea70e15b2fe3e45e9adca5))
## [1.1.6](https://github.com/bluelovers/ws-array/compare/array-hyper-unique@1.1.5...array-hyper-unique@1.1.6) (2020-06-16)

@@ -8,0 +24,0 @@

4

lib.chk.md

@@ -94,3 +94,3 @@ ```

[FAIL] just-unique
[FAIL] arr-unique
[SUCCESS] arr-unique
[SUCCESS] array-unique-deep

@@ -221,5 +221,5 @@ [FAIL] lodash.uniq

'array-unique-deep': { success: 11, fail: 4, error: 0 },
'arr-unique': { success: 8, fail: 7, error: 0 },
'array-uniq': { success: 7, fail: 8, error: 0 },
'just-unique': { success: 7, fail: 8, error: 0 },
'arr-unique': { success: 7, fail: 8, error: 0 },
'lodash.uniq': { success: 7, fail: 8, error: 0 },

@@ -226,0 +226,0 @@ 'lodash/uniq': { success: 7, fail: 8, error: 0 },

@@ -10,2 +10,3 @@ /**

filter?<R>(v: R[keyof R]): boolean;
removeFromFirst?: boolean;
};

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

const deep_eql_1 = __importDefault(require("deep-eql"));
const lodash_1 = require("lodash");
function equals(a1, a2) {

@@ -16,4 +17,5 @@ return deep_eql_1.default(a1, a2);

const filter = options.filter || null;
const find = options.removeFromFirst ? lodash_1.findLastIndex : lodash_1.findIndex;
const cb = (val, index, arr) => {
let i = arr.findIndex(a => checker(a, val, arr, arr));
let i = find(arr, a => checker(a, val, arr, arr));
return i == index && (!filter || filter(val));

@@ -20,0 +22,0 @@ };

{
"name": "array-hyper-unique",
"version": "1.1.6",
"version": "1.1.7",
"description": "Get unique values of an array. Really, like deeply unique.",

@@ -60,3 +60,4 @@ "keywords": [

"dependencies": {
"deep-eql": "^4.0.0"
"deep-eql": "^4.0.0",
"lodash": "^4.17.15"
},

@@ -70,7 +71,6 @@ "devDependencies": {

"just-unique": "^3.2.0",
"lodash": "^4.17.15",
"lodash.uniq": "^4.5.0",
"tfk-unique-array": "^2.0.0"
},
"gitHead": "315a9098b8d606eb0be8a9edc7b5fe0674c452d1"
"gitHead": "d7b3dcac924faac8f277385cf1353695ca05408d"
}

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