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

js-utils-set

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

js-utils-set - npm Package Compare versions

Comparing version 1.8.8 to 1.8.10

dist/__test__/common.test.js

26

dist/utils/common.js

@@ -38,8 +38,10 @@ "use strict";

function sortListByAnotherList() {
var itemsList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _immutable.List)();
var sortingList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _immutable.List)();
var targetList = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : (0, _immutable.List)();
var refferenceList = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (0, _immutable.List)();
var nextTargetList = !(0, _immutable.isImmutable)(targetList) ? (0, _immutable.fromJS)(targetList) : targetList;
var nextRefferenceList = !(0, _immutable.isImmutable)(refferenceList) ? (0, _immutable.fromJS)(refferenceList) : refferenceList;
var partialSortedList = (0, _immutable.List)();
if ((0, _immutable.fromJS)(itemsList).count() !== 0 && (0, _immutable.fromJS)(sortingList).count() !== 0) {
var itemValueList = itemsList.map(function (v) {
if ((0, _immutable.fromJS)(nextTargetList).count() !== 0 && (0, _immutable.fromJS)(nextRefferenceList).count() !== 0) {
var itemValueList = nextTargetList.map(function (v) {
return v.get("value");

@@ -50,7 +52,7 @@ }).filter(function (v) {

if ((0, _xor["default"])(itemValueList.toJS(), sortingList.toJS()).length === itemValueList.concat(sortingList).count()) {
partialSortedList = itemsList;
if ((0, _xor["default"])(itemValueList.toJS(), nextRefferenceList.toJS()).length === itemValueList.concat(nextRefferenceList).count()) {
partialSortedList = nextTargetList;
} else {
partialSortedList = sortingList.reduce(function (acc, cur) {
var item = (0, _immutable.fromJS)(itemsList).find(function (v) {
partialSortedList = nextRefferenceList.reduce(function (acc, cur) {
var item = (0, _immutable.fromJS)(nextTargetList).find(function (v) {
return (0, _text.transToLowercaseAndTrim)(v.get("value", "")) === (0, _text.transToLowercaseAndTrim)(cur);

@@ -68,4 +70,4 @@ }) || (0, _immutable.Map)();

if (partialSortedList.count() !== 0 && partialSortedList.count() !== (0, _immutable.fromJS)(itemsList).count()) {
var leftItemsList = (0, _immutable.fromJS)(itemsList).filter(function (item) {
if (partialSortedList.count() !== 0 && partialSortedList.count() !== (0, _immutable.fromJS)(nextTargetList).count()) {
var leftnextTargetList = (0, _immutable.fromJS)(nextTargetList).filter(function (item) {
var itemValue = item.get("value");

@@ -76,3 +78,3 @@ return !~partialSortedList.findIndex(function (v) {

});
return partialSortedList.concat(leftItemsList);
return partialSortedList.concat(leftnextTargetList);
}

@@ -141,2 +143,2 @@

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlscy9jb21tb24uanMiXSwibmFtZXMiOlsiZ2V0VXVpZCIsImRpZ2kiLCJzbGljZSIsInJlcGxhY2UiLCJ3aW5kb3dTZXRUaW1lb3V0IiwiY2FsbGJhY2siLCJkZWxheSIsIndpbmRvdyIsInNldFRpbWVvdXQiLCJzb3J0TGlzdEJ5QW5vdGhlckxpc3QiLCJpdGVtc0xpc3QiLCJzb3J0aW5nTGlzdCIsInBhcnRpYWxTb3J0ZWRMaXN0IiwiY291bnQiLCJpdGVtVmFsdWVMaXN0IiwibWFwIiwidiIsImdldCIsImZpbHRlciIsInRvSlMiLCJsZW5ndGgiLCJjb25jYXQiLCJyZWR1Y2UiLCJhY2MiLCJjdXIiLCJpdGVtIiwiZmluZCIsInB1c2giLCJsZWZ0SXRlbXNMaXN0IiwiaXRlbVZhbHVlIiwiZmluZEluZGV4IiwiY2xlYXJBbGxTZXRUaW1lb3V0IiwiaGlnaGVzdFRpbWVvdXRJZCIsImkiLCJjbGVhclRpbWVvdXQiLCJjbGVhckFsbFNldEludGVydmFsIiwiaGlnaGVzdEludGVydmFsSWQiLCJ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mZpbGVOYW1lLmxhc3RJbmRleE9mKFwiLlwiKSkge1xuICAgIGFsZXJ0KFwiaW52YWxpZCBmaWxlIG5hbWU6IFwiLCBmaWxlTmFtZSk7XG4gIH0gZWxzZSB7XG4gICAgcmV0dXJuIGZpbGVOYW1lLnNsaWNlKDAsIGZpbGVOYW1lLmxhc3RJbmRleE9mKFwiLlwiKSk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGdldEZpbGVFeHRlbnNpb25UeXBlKGZpbGVOYW1lID0gXCJcIikge1xuICBpZiAoIWZpbGVOYW1lIHx8ICF+ZmlsZU5hbWUubGFzdEluZGV4T2YoXCIuXCIpKSB7XG4gICAgYWxlcnQoXCJpbnZhbGlkIGZpbGUgbmFtZTogXCIsIGZpbGVOYW1lKTtcbiAgfSBlbHNlIHtcbiAgICByZXR1cm4gdHJhbnNUb0xvd2VyY2FzZUFuZFRyaW0oXG4gICAgICBmaWxlTmFtZS5zbGljZShmaWxlTmFtZS5sYXN0SW5kZXhPZihcIi5cIikgKyAxKVxuICAgICk7XG4gIH1cbn1cblxuZXhwb3J0IGZ1bmN0aW9uIGNoZWNrQ2FuQmVOdW1lcmljYWwodmFsdWUpIHtcbiAgaWYgKFxuICAgIHZhbHVlID09PSBudWxsIHx8XG4gICAgdHlwZW9mIHZhbHVlID09PSBcInVuZGVmaW5lZFwiIHx8XG4gICAgdHlwZW9mIHZhbHVlID09PSBcImJvb2xlYW5cIlxuICApIHtcbiAgICByZXR1cm4gZmFsc2U7XG4gIH0gZWxzZSBpZiAodHlwZW9mIHZhbHVlID09PSBcInN0cmluZ1wiKSB7XG4gICAgcmV0dXJuICEodmFsdWUgPT09IFwiXCIgfHwgaXNOYU4oTnVtYmVyKHZhbHVlKSkpO1xuICB9IGVsc2Uge1xuICAgIHJldHVybiB0cnVlO1xuICB9XG59XG4iXX0=
{
"name": "js-utils-set",
"version": "1.8.8",
"version": "1.8.10",
"author": "Jack Huang",

@@ -11,3 +11,4 @@ "main": "dist/index.js",

"build": "babel ./src --out-dir ./dist -s inline",
"prepublishOnly": "rm -rf ./dist && yarn build"
"prepublishOnly": "rm -rf ./dist && yarn build",
"test": "jest"
},

@@ -22,8 +23,17 @@ "devDependencies": {

"immutable": "^4.0.0-rc.12",
"jest": "^24.8.0",
"js-cookie": "^2.2.0",
"lodash": "^4.17.11",
"rt-constants": "^0.10.1",
"rt-constants": "^0.10.4",
"uuid": "^3.3.2"
},
"peerDependencies": {
"date-fns": "^2.0.0-beta.2",
"immutable": "^4.0.0-rc.12",
"js-cookie": "^2.2.0",
"lodash": "^4.17.11",
"rt-constants": "^0.10.4",
"uuid": "^3.3.2"
},
"license": "MIT"
}
}
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