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

unchanged

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

unchanged - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

CHANGELOG.md

@@ -5,2 +5,6 @@ # unchanged CHANGELOG

## 1.0.3
* Use custom `splice` for `remove` instead of native (in case item is an extension of an `Array` and has messed with `splice`)
## 1.0.2

@@ -7,0 +11,0 @@

@@ -228,3 +228,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

if (Object(__WEBPACK_IMPORTED_MODULE_1__utils__["f" /* isArray */])(ref)) {
ref.splice(key, 1);
Object(__WEBPACK_IMPORTED_MODULE_1__utils__["i" /* splice */])(ref, key);
} else {

@@ -372,2 +372,3 @@ delete ref[key];

/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return isEmptyKey; });
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return splice; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_pathington__ = __webpack_require__(5);

@@ -432,3 +433,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

if (isArray(object)) {
return [].concat(object);
return object.map(function (item) {
return item;
});
}

@@ -553,3 +556,3 @@

if (isObject1Array) {
return [].concat(object1, object2.map(cloneIfPossible));
return object1.concat(object2.map(cloneIfPossible));
}

@@ -663,2 +666,26 @@

};
/**
* @function splice
*
* @description
* splice a single item from the array
*
* @param {Array<*>} array array to splice from
* @param {number} splicedIndex index to splice at
*/
var splice = function splice(array, splicedIndex) {
if (array.length) {
var length = array.length,
index = splicedIndex;
while (index < length) {
array[index] = array[index + 1];
index++;
}
array.length--;
}
};
/* WEBPACK VAR INJECTION */}.call(__webpack_exports__, __webpack_require__(4)))

@@ -665,0 +692,0 @@

2

dist/unchanged.min.js

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

!(function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("unchanged",[],t):"object"==typeof exports?exports.unchanged=t():n.unchanged=t()})("undefined"!=typeof self?self:this,(function(){return (function(n){function t(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var e={};return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=0)})([(function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol?Symbol("placeholder"):60881,u=function(n,t){var e=n.map((function(n){return n===r&&t.length?t.shift():n}));return t.length?e.concat(t):e},o=function(n,t){for(var e=0;e<t;e++)if(n[e]===r)return!0;return!1},c=function(n){var t=n.length;return function e(){for(var r=arguments.length,c=Array(r),i=0;i<r;i++)c[i]=arguments[i];return c.length>=t&&!o(c,t)?n.apply(void 0,c):function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.apply(void 0,u(c,t))}}},i=e(1);e.d(t,"get",(function(){return f})),e.d(t,"has",(function(){return a})),e.d(t,"merge",(function(){return s})),e.d(t,"remove",(function(){return l})),e.d(t,"set",(function(){return d})),e.d(t,"add",(function(){return p})),e.d(t,"__",(function(){return r}));var f=c((function(n,t){return Object(i.h)(n)?t:Object(i.c)(n,t)})),a=c((function(n,t){return Object(i.h)(n)?!!t:Object(i.e)(n,t)})),s=c((function(n,t,e){return Object(i.g)(e)?Object(i.h)(n)?Object(i.b)(e,t):Object(i.a)(n,e,(function(n,e){n[e]=Object(i.b)(n[e],t)})):t})),l=c((function(n,t){return Object(i.h)(n)?Object(i.d)(t):Object(i.e)(n,t)?Object(i.a)(n,t,(function(n,t){Object(i.f)(n)?n.splice(t,1):delete n[t]})):t})),d=c((function(n,t,e){return Object(i.h)(n)?t:Object(i.a)(n,e,(function(n,e){n[e]=t}))})),p=c((function(n,t,e){var r=f(n,e),u=Object(i.f)(r)?(Object(i.h)(n)?"":n)+"["+r.length+"]":n;return d(u,t,e)}))}),(function(n,t,e){"use strict";(function(n){e.d(t,"f",(function(){return i})),e.d(t,"g",(function(){return f})),e.d(t,"d",(function(){return d})),e.d(t,"b",(function(){return h})),e.d(t,"c",(function(){return j})),e.d(t,"a",(function(){return O})),e.d(t,"e",(function(){return g})),e.d(t,"h",(function(){return m}));var r=e(3),u=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,c=/^\s*function\s*([^\(]*)/i,i=Array.isArray,f=function(n){return!!n&&"object"==typeof n&&!(n instanceof Date||n instanceof RegExp)&&n.$$typeof!==o},a=function(t){return"function"==typeof t&&("undefined"!=typeof window?window:n)[t.name||Function.prototype.toString.call(t).split(c)[1]]===t},s=function(n){return i(n)?[].concat(n):n.constructor===Object?u({},n):a(n.constructor)?{}:Object.keys(n).reduce((function(t,e){return t[e]=n[e],t}),Object.create(Object.getPrototypeOf(n)))},l=function(n){return"number"==typeof n?[]:{}},d=function(n){return i(n)?[]:{}},p=function(n){return f(n)?s(n):n},b=function(n,t){return f(n)?s(n):l(t)},y=function n(t,e,r,u,o){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=t[c],f=c+1;if(f===t.length){var a=e||u?r(e,i):o;return u?e:a}return u?(e[i]=n(t,b(e[i],t[f]),r,u,o,f),e):e&&e[i]?n(t,e[i],r,u,o,f):o},h=function n(t,e){var r=i(t);if(r!==i(e))return p(e);if(r)return[].concat(t,e.map(p));var u=f(t)?Object.keys(t).reduce((function(n,e){return n[e]=p(t[e]),n}),{}):{};return Object.keys(e).reduce((function(r,u){return r[u]=f(e[u])?n(t[u],e[u]):e[u],r}),u)},v=function(n){return i(n)?n:Object(r.a)(n)},j=function(n,t){var e=v(n);return 1===e.length?t?t[e[0]]:void 0:y(e,t,(function(n,t){return n[t]}))},O=function(n,t,e){var r=v(n),u=f(t)?s(t):l(r[0]);return 1===r.length?(e(u,r[0]),u):y(r,u,e,!0)},g=function(n,t){var e=v(n);return 1===e.length?!!t&&void 0!==t[e[0]]:y(e,t,(function(n,t){return!!n&&void 0!==n[t]}),!1,!1)},m=function(n){return void 0===n||null===n||i(n)&&!n.length}}).call(t,e(2))}),(function(n,t){var e;e=(function(){return this})();try{e=e||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(e=window)}n.exports=e}),(function(n,t,e){"use strict";var r={clear:function(){r.results={},r.size=0},results:{},size:0},u=/"[^"]+"|`[^`]+`|'[^']+'|[^.[\]]+/g,o=/^\d+$/i,c=/^"[^"]+"|`[^`]+`|'[^']+'$/,i=function(n){return!!n.length&&o.test(n)},f=function(n){return c.test(n)},a=function(n){var t=f(n)?n.substring(1,n.length-1):n;return i(t)?+t:t},s=function(n){return r.results[n]?r.results[n]:(r.size>500&&r.clear(),r.results[n]=n?n.match(u).map(a):[n],r.size++,r.results[n])};e.d(t,"a",(function(){return l}));var l=function(n){return"string"==typeof n?s(n):Array.isArray(n)?n.map(a):["number"==typeof n?n:""+n]}})])}));
!(function(n,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("unchanged",[],t):"object"==typeof exports?exports.unchanged=t():n.unchanged=t()})("undefined"!=typeof self?self:this,(function(){return (function(n){function t(r){if(e[r])return e[r].exports;var u=e[r]={i:r,l:!1,exports:{}};return n[r].call(u.exports,u,u.exports,t),u.l=!0,u.exports}var e={};return t.m=n,t.c=e,t.d=function(n,e,r){t.o(n,e)||Object.defineProperty(n,e,{configurable:!1,enumerable:!0,get:r})},t.n=function(n){var e=n&&n.__esModule?function(){return n.default}:function(){return n};return t.d(e,"a",e),e},t.o=function(n,t){return Object.prototype.hasOwnProperty.call(n,t)},t.p="",t(t.s=0)})([(function(n,t,e){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r="function"==typeof Symbol?Symbol("placeholder"):60881,u=function(n,t){var e=n.map((function(n){return n===r&&t.length?t.shift():n}));return t.length?e.concat(t):e},o=function(n,t){for(var e=0;e<t;e++)if(n[e]===r)return!0;return!1},c=function(n){var t=n.length;return function e(){for(var r=arguments.length,c=Array(r),i=0;i<r;i++)c[i]=arguments[i];return c.length>=t&&!o(c,t)?n.apply(void 0,c):function(){for(var n=arguments.length,t=Array(n),r=0;r<n;r++)t[r]=arguments[r];return e.apply(void 0,u(c,t))}}},i=e(1);e.d(t,"get",(function(){return f})),e.d(t,"has",(function(){return a})),e.d(t,"merge",(function(){return s})),e.d(t,"remove",(function(){return l})),e.d(t,"set",(function(){return d})),e.d(t,"add",(function(){return b})),e.d(t,"__",(function(){return r}));var f=c((function(n,t){return Object(i.h)(n)?t:Object(i.c)(n,t)})),a=c((function(n,t){return Object(i.h)(n)?!!t:Object(i.e)(n,t)})),s=c((function(n,t,e){return Object(i.g)(e)?Object(i.h)(n)?Object(i.b)(e,t):Object(i.a)(n,e,(function(n,e){n[e]=Object(i.b)(n[e],t)})):t})),l=c((function(n,t){return Object(i.h)(n)?Object(i.d)(t):Object(i.e)(n,t)?Object(i.a)(n,t,(function(n,t){Object(i.f)(n)?Object(i.i)(n,t):delete n[t]})):t})),d=c((function(n,t,e){return Object(i.h)(n)?t:Object(i.a)(n,e,(function(n,e){n[e]=t}))})),b=c((function(n,t,e){var r=f(n,e),u=Object(i.f)(r)?(Object(i.h)(n)?"":n)+"["+r.length+"]":n;return d(u,t,e)}))}),(function(n,t,e){"use strict";(function(n){e.d(t,"f",(function(){return i})),e.d(t,"g",(function(){return f})),e.d(t,"d",(function(){return d})),e.d(t,"b",(function(){return y})),e.d(t,"c",(function(){return j})),e.d(t,"a",(function(){return g})),e.d(t,"e",(function(){return O})),e.d(t,"h",(function(){return m})),e.d(t,"i",(function(){return x}));var r=e(3),u=Object.assign||function(n){for(var t=1;t<arguments.length;t++){var e=arguments[t];for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r])}return n},o="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103,c=/^\s*function\s*([^\(]*)/i,i=Array.isArray,f=function(n){return!!n&&"object"==typeof n&&!(n instanceof Date||n instanceof RegExp)&&n.$$typeof!==o},a=function(t){return"function"==typeof t&&("undefined"!=typeof window?window:n)[t.name||Function.prototype.toString.call(t).split(c)[1]]===t},s=function(n){return i(n)?n.map((function(n){return n})):n.constructor===Object?u({},n):a(n.constructor)?{}:Object.keys(n).reduce((function(t,e){return t[e]=n[e],t}),Object.create(Object.getPrototypeOf(n)))},l=function(n){return"number"==typeof n?[]:{}},d=function(n){return i(n)?[]:{}},b=function(n){return f(n)?s(n):n},p=function(n,t){return f(n)?s(n):l(t)},h=function n(t,e,r,u,o){var c=arguments.length>5&&void 0!==arguments[5]?arguments[5]:0,i=t[c],f=c+1;if(f===t.length){var a=e||u?r(e,i):o;return u?e:a}return u?(e[i]=n(t,p(e[i],t[f]),r,u,o,f),e):e&&e[i]?n(t,e[i],r,u,o,f):o},y=function n(t,e){var r=i(t);if(r!==i(e))return b(e);if(r)return t.concat(e.map(b));var u=f(t)?Object.keys(t).reduce((function(n,e){return n[e]=b(t[e]),n}),{}):{};return Object.keys(e).reduce((function(r,u){return r[u]=f(e[u])?n(t[u],e[u]):e[u],r}),u)},v=function(n){return i(n)?n:Object(r.a)(n)},j=function(n,t){var e=v(n);return 1===e.length?t?t[e[0]]:void 0:h(e,t,(function(n,t){return n[t]}))},g=function(n,t,e){var r=v(n),u=f(t)?s(t):l(r[0]);return 1===r.length?(e(u,r[0]),u):h(r,u,e,!0)},O=function(n,t){var e=v(n);return 1===e.length?!!t&&void 0!==t[e[0]]:h(e,t,(function(n,t){return!!n&&void 0!==n[t]}),!1,!1)},m=function(n){return void 0===n||null===n||i(n)&&!n.length},x=function(n,t){if(n.length){for(var e=n.length,r=t;r<e;)n[r]=n[r+1],r++;n.length--}}}).call(t,e(2))}),(function(n,t){var e;e=(function(){return this})();try{e=e||Function("return this")()||(0,eval)("this")}catch(n){"object"==typeof window&&(e=window)}n.exports=e}),(function(n,t,e){"use strict";var r={clear:function(){r.results={},r.size=0},results:{},size:0},u=/"[^"]+"|`[^`]+`|'[^']+'|[^.[\]]+/g,o=/^\d+$/i,c=/^"[^"]+"|`[^`]+`|'[^']+'$/,i=function(n){return!!n.length&&o.test(n)},f=function(n){return c.test(n)},a=function(n){var t=f(n)?n.substring(1,n.length-1):n;return i(t)?+t:t},s=function(n){return r.results[n]?r.results[n]:(r.size>500&&r.clear(),r.results[n]=n?n.match(u).map(a):[n],r.size++,r.results[n])};e.d(t,"a",(function(){return l}));var l=function(n){return"string"==typeof n?s(n):Array.isArray(n)?n.map(a):["number"==typeof n?n:""+n]}})])}));
// utils
import { __, curry } from './curry';
import { getDeepClone, getDeeplyMergedObject, getNestedProperty, getNewEmptyObject, hasNestedProperty, isArray, isCloneable, isEmptyKey } from './utils';
import { getDeepClone, getDeeplyMergedObject, getNestedProperty, getNewEmptyObject, hasNestedProperty, isArray, isCloneable, isEmptyKey, splice } from './utils';

@@ -73,3 +73,3 @@ export { __ };

if (isArray(ref)) {
ref.splice(key, 1);
splice(ref, key);
} else {

@@ -76,0 +76,0 @@ delete ref[key];

@@ -59,3 +59,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; };

if (isArray(object)) {
return [].concat(object);
return object.map(function (item) {
return item;
});
}

@@ -180,3 +182,3 @@

if (isObject1Array) {
return [].concat(object1, object2.map(cloneIfPossible));
return object1.concat(object2.map(cloneIfPossible));
}

@@ -289,2 +291,26 @@

return object === void 0 || object === null || isArray(object) && !object.length;
};
/**
* @function splice
*
* @description
* splice a single item from the array
*
* @param {Array<*>} array array to splice from
* @param {number} splicedIndex index to splice at
*/
export var splice = function splice(array, splicedIndex) {
if (array.length) {
var length = array.length,
index = splicedIndex;
while (index < length) {
array[index] = array[index + 1];
index++;
}
array.length--;
}
};

@@ -80,3 +80,3 @@ 'use strict';

if ((0, _utils.isArray)(ref)) {
ref.splice(key, 1);
(0, _utils.splice)(ref, key);
} else {

@@ -83,0 +83,0 @@ delete ref[key];

'use strict';
exports.__esModule = true;
exports.isEmptyKey = exports.hasNestedProperty = exports.getDeepClone = exports.getNestedProperty = exports.getParsedPath = exports.getDeeplyMergedObject = exports.onMatchAtPath = exports.getNewChildClone = exports.cloneIfPossible = exports.getNewEmptyObject = exports.getNewEmptyChild = exports.getShallowClone = exports.isGlobalConstructor = exports.isCloneable = exports.isArray = undefined;
exports.splice = exports.isEmptyKey = exports.hasNestedProperty = exports.getDeepClone = exports.getNestedProperty = exports.getParsedPath = exports.getDeeplyMergedObject = exports.onMatchAtPath = exports.getNewChildClone = exports.cloneIfPossible = exports.getNewEmptyObject = exports.getNewEmptyChild = exports.getShallowClone = exports.isGlobalConstructor = exports.isCloneable = exports.isArray = undefined;

@@ -64,3 +64,5 @@ var _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; // external dependencies

if (isArray(object)) {
return [].concat(object);
return object.map(function (item) {
return item;
});
}

@@ -185,3 +187,3 @@

if (isObject1Array) {
return [].concat(object1, object2.map(cloneIfPossible));
return object1.concat(object2.map(cloneIfPossible));
}

@@ -294,2 +296,26 @@

return object === void 0 || object === null || isArray(object) && !object.length;
};
/**
* @function splice
*
* @description
* splice a single item from the array
*
* @param {Array<*>} array array to splice from
* @param {number} splicedIndex index to splice at
*/
var splice = exports.splice = function splice(array, splicedIndex) {
if (array.length) {
var length = array.length,
index = splicedIndex;
while (index < length) {
array[index] = array[index + 1];
index++;
}
array.length--;
}
};

@@ -35,3 +35,3 @@ {

"babel-cli": "^6.26.0",
"babel-eslint": "^8.0.3",
"babel-eslint": "^8.1.0",
"babel-loader": "^7.1.2",

@@ -43,3 +43,3 @@ "babel-preset-env": "^1.6.1",

"cli-table": "^0.3.1",
"eslint": "^4.13.1",
"eslint": "^4.14.0",
"eslint-config-rapid7": "^2.11.1",

@@ -95,3 +95,3 @@ "eslint-friendly-formatter": "^3.0.0",

},
"version": "1.0.2"
"version": "1.0.3"
}

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