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.5 to 1.0.6

4

CHANGELOG.md

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

## 1.0.6
* Replace `map` with `slice` when shallow-cloning arrays (performance and footprint)
## 1.0.5

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

4

dist/unchanged.js

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

if (isArray(object)) {
return object.map(function (item) {
return item;
});
return object.slice();
}

@@ -438,0 +436,0 @@

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

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

@@ -57,5 +57,3 @@ // external dependencies

if (isArray(object)) {
return object.map(function (item) {
return item;
});
return object.slice();
}

@@ -62,0 +60,0 @@

@@ -62,5 +62,3 @@ 'use strict';

if (isArray(object)) {
return object.map(function (item) {
return item;
});
return object.slice();
}

@@ -67,0 +65,0 @@

@@ -42,3 +42,3 @@ {

"cli-table": "^0.3.1",
"eslint": "^4.16.0",
"eslint": "^4.17.0",
"eslint-config-rapid7": "^2.11.1",

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

"in-publish": "^2.0.0",
"lodash": "^4.17.4",
"lodash": "^4.17.5",
"nyc": "^11.4.1",

@@ -57,4 +57,4 @@ "optimize-js-plugin": "^0.0.4",

"react-dom": "^16.2.0",
"sinon": "^4.2.2",
"webpack": "^3.10.0",
"sinon": "^4.3.0",
"webpack": "^3.11.0",
"webpack-dev-server": "^2.11.1"

@@ -96,3 +96,3 @@ },

},
"version": "1.0.5"
"version": "1.0.6"
}

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