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

timm

Package Overview
Dependencies
Maintainers
1
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

timm - npm Package Compare versions

Comparing version 0.4.2 to 0.4.3

4

CHANGELOG.md
# Changelog
## 0.4.3 (Mar. 08, 2016)
* Bugfix: internal `_merge()` incorrectly merged `{a: 3} + {a: undefined} => {a: undefined}`
## 0.4.2 (Feb. 28, 2016)

@@ -4,0 +8,0 @@

10

dist/timm.js

@@ -34,3 +34,3 @@ // Generated by CoffeeScript 1.10.0

_merge = function(fAddDefaults) {
var args, fChanged, i, idx, j, key, keys, len, len1, obj, out, ref;
var args, fChanged, i, idx, j, key, keys, len, len1, nextVal, obj, out, ref;
args = arguments;

@@ -55,5 +55,9 @@ len = args.length;

}
if (obj[key] === out[key]) {
nextVal = obj[key];
if (nextVal === void 0) {
continue;
}
if (nextVal === out[key]) {
continue;
}
if (!fChanged) {

@@ -63,3 +67,3 @@ fChanged = true;

}
out[key] = obj[key];
out[key] = nextVal;
}

@@ -66,0 +70,0 @@ }

@@ -6,2 +6,2 @@ /*

*/
(function(){var n,r,t,e,c,u,a,l,o,i,s,f,g,y,v,A,d,h,m=[].slice;n="INVALID_ARGS",u=function(n){throw new Error(n)},r=function(n){var r,t,e,c,u;if(Array.isArray(n))return[].concat(n);for(e=Object.keys(n),u={},r=0,c=e.length;c>r;r++)t=e[r],u[t]=n[t];return u},e=function(t){var e,c,a,l,o,i,s,f,g,y,v,A;for(e=arguments,f=e.length,v=e[1],!(null!=v)&&u(n),c=!1,l=a=2,A=f;A>a;l=a+=1)if(y=e[l],null!=y&&(s=Object.keys(y),s.length))for(o=0,g=s.length;g>o;o++)i=s[o],t&&void 0!==v[i]||y[i]!==v[i]&&(c||(c=!0,v=r(v)),v[i]=y[i]);return v},t=function(n){var r;return r=typeof n,null!=n&&("object"===r||"function"===r)},o=function(n,r){return n.concat(Array.isArray(r)?r:[r])},l=function(n,r){return Array.isArray(r)?r.concat(n):[r].concat(n)},s=function(n,r,t){return n.slice(0,r).concat(Array.isArray(t)?t:[t]).concat(n.slice(r))},y=function(n,r){return n.slice(0,r).concat(n.slice(r+1))},v=function(n,r,t){return n[r]===t?n:n.slice(0,r).concat([t]).concat(n.slice(r+1))},i=function(r,t){var e,c,a,l;if(!Array.isArray(t)&&u(n),a=r,null==a)return void 0;for(e=0,c=t.length;c>e;e++)if(l=t[e],a=null!=a?a[l]:void 0,void 0===a)return a;return a},A=function(n,t,e){var c;return null==n&&(n={}),n[t]===e?n:(c=r(n),c[t]=e,c)},d=function(n,r,t){return r.length?c(n,r,t,0):t},c=function(n,r,e,u){var a,l,o;return a=r[u],u===r.length-1?o=e:(l=t(n)?n[a]:{},o=c(l,r,e,u+1)),A(n,a,o)},h=function(n,r,t){var e,c;return c=i(n,r),e=t(c),d(n,r,e)},f=function(n,r,t,c,u,a){return arguments.length<=6?e(!1,n,r,t,c,u,a):e.apply(null,[!1].concat(m.call(arguments)))},g=function(n,r,t,c,u,a,l){var o,s,f;return f=i(n,r),null==f&&(f={}),arguments.length<=7?s=e(!1,f,t,c,u,a,l):(o=[!1,f].concat([].slice.call(arguments,2)),s=e.apply(null,o)),d(n,r,s)},a=function(n,r,t,c,u,a){return arguments.length<=6?e(!0,n,r,t,c,u,a):e.apply(null,[!0].concat(m.call(arguments)))},module.exports={addLast:o,addFirst:l,insert:s,removeAt:y,replaceAt:v,getIn:i,set:A,setIn:d,updateIn:h,merge:f,mergeIn:g,addDefaults:a}}).call(this);
(function(){var n,r,t,e,c,u,a,l,o,i,s,f,g,y,v,A,d,h,m=[].slice;n="INVALID_ARGS",u=function(n){throw new Error(n)},r=function(n){var r,t,e,c,u;if(Array.isArray(n))return[].concat(n);for(e=Object.keys(n),u={},r=0,c=e.length;c>r;r++)t=e[r],u[t]=n[t];return u},e=function(t){var e,c,a,l,o,i,s,f,g,y,v,A,d;for(e=arguments,f=e.length,A=e[1],!(null!=A)&&u(n),c=!1,l=a=2,d=f;d>a;l=a+=1)if(v=e[l],null!=v&&(s=Object.keys(v),s.length))for(o=0,g=s.length;g>o;o++)i=s[o],t&&void 0!==A[i]||(y=v[i],void 0!==y&&y!==A[i]&&(c||(c=!0,A=r(A)),A[i]=y));return A},t=function(n){var r;return r=typeof n,null!=n&&("object"===r||"function"===r)},o=function(n,r){return n.concat(Array.isArray(r)?r:[r])},l=function(n,r){return Array.isArray(r)?r.concat(n):[r].concat(n)},s=function(n,r,t){return n.slice(0,r).concat(Array.isArray(t)?t:[t]).concat(n.slice(r))},y=function(n,r){return n.slice(0,r).concat(n.slice(r+1))},v=function(n,r,t){return n[r]===t?n:n.slice(0,r).concat([t]).concat(n.slice(r+1))},i=function(r,t){var e,c,a,l;if(!Array.isArray(t)&&u(n),a=r,null==a)return void 0;for(e=0,c=t.length;c>e;e++)if(l=t[e],a=null!=a?a[l]:void 0,void 0===a)return a;return a},A=function(n,t,e){var c;return null==n&&(n={}),n[t]===e?n:(c=r(n),c[t]=e,c)},d=function(n,r,t){return r.length?c(n,r,t,0):t},c=function(n,r,e,u){var a,l,o;return a=r[u],u===r.length-1?o=e:(l=t(n)?n[a]:{},o=c(l,r,e,u+1)),A(n,a,o)},h=function(n,r,t){var e,c;return c=i(n,r),e=t(c),d(n,r,e)},f=function(n,r,t,c,u,a){return arguments.length<=6?e(!1,n,r,t,c,u,a):e.apply(null,[!1].concat(m.call(arguments)))},g=function(n,r,t,c,u,a,l){var o,s,f;return f=i(n,r),null==f&&(f={}),arguments.length<=7?s=e(!1,f,t,c,u,a,l):(o=[!1,f].concat([].slice.call(arguments,2)),s=e.apply(null,o)),d(n,r,s)},a=function(n,r,t,c,u,a){return arguments.length<=6?e(!0,n,r,t,c,u,a):e.apply(null,[!0].concat(m.call(arguments)))},module.exports={addLast:o,addFirst:l,insert:s,removeAt:y,replaceAt:v,getIn:i,set:A,setIn:d,updateIn:h,merge:f,mergeIn:g,addDefaults:a}}).call(this);
{
"name": "timm",
"version": "0.4.2",
"version": "0.4.3",
"description": "Immutability helpers with fast reads and acceptable writes",

@@ -15,2 +15,3 @@ "main": "index.js",

"debug": "2.2.0",
"diveSync": "0.3.0",
"envify": "3.4.0",

@@ -30,5 +31,5 @@ "immutable": "3.7.6",

"testCoverageMerge": "coffee tools/coffeeCoverageMerge.coffee",
"testCoverage": "npm run testCoverageDev && npm run testCoverageProd && npm run testCoverageMerge",
"testCoverage": "rm -rf ./coverage && npm run testCoverageDev && npm run testCoverageProd && npm run testCoverageMerge",
"testMinified": "cross-env TEST_MINIFIED_LIB=1 mocha",
"compile": "rm -rf dist && coffee -o dist -c src",
"compile": "rm -rf ./dist && coffee -o dist -c src",
"docs": "coffee tools/extractDocs.coffee",

@@ -35,0 +36,0 @@ "uglify": "cross-env NODE_ENV=production envify dist/timm.js | uglifyjs - -o dist/timm.min.js --mangle --compress --comments \"/\\|/\"",

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