Socket
Socket
Sign inDemoInstall

mixing

Package Overview
Dependencies
0
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.2.6 to 1.3.0

.mocharc.json

2

bower.json
{
"name": "mixing",
"main": ["dist/mixing.js", "dist/mixing.min.js"],
"version": "1.2.6",
"version": "1.3.0",
"homepage": "https://github.com/gamtiq/mixing",

@@ -6,0 +6,0 @@ "authors": [

@@ -5,3 +5,3 @@ {

"description": "Functions to mix, filter, change and copy/clone objects",
"version": "1.2.6",
"version": "1.3.0",
"keywords": [

@@ -8,0 +8,0 @@ "mix",

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

!function(e,o){var r;void 0===e&&void 0!==window&&(e=window),"object"==typeof module&&module.exports?module.exports=o(require,exports,module):"function"==typeof define&&define.amd?define(["require","exports","module"],o):(r={exports:e},e.mixing=o(0,0,r))}(this,function(e,o,r){var v;function w(e,o){var r,t,n,i;if(Array.isArray(e)){if(0<e.length)for(r={},t=e.length;r[e[--t]]=o||null,t;);}else"string"==(i=typeof e)||"symbol"==i?(r={})[e]=o||null:"object"==i&&(e instanceof RegExp?n=e:r=e);return{map:r,regexp:n}}function E(e,o,r,t){var n,i,c,p,u,a=o[r],y=r.toString();function f(){return{field:r,value:a,targetValue:e[r],target:e,source:o}}t.ownProperty&&!o.hasOwnProperty(r)||t.copyMap&&!(r in t.copyMap)||t.copyRegExp&&!t.copyRegExp.test(y)||t.exceptions&&t.exceptions[r]||t.exceptRegExp&&t.exceptRegExp.test(y)||t.filter&&!t.filter.call(null,f())||t.filterRegExp&&!t.filterRegExp.test("symbol"==typeof a?a.toString():a)||((c=t.otherNameMap)&&r in c&&(r=c[r]),p=typeof a,!(t.recursive&&a&&"object"==p&&(u=e[r])&&"object"==typeof u)||Array.isArray(a)&&!t.mixFromArray||Array.isArray(u)&&!t.mixToArray?(n="function"==p)&&!t.copyFunc||r in e&&(!(u=t.overwrite)||"function"==typeof u&&!u(f())||u instanceof RegExp&&!u.test(r))||(t.changeFunc?a=t.changeFunc.call(null,f()):(i=t.change)&&r in i&&(a=i[r]),n&&t.funcToProto?e.constructor.prototype[r]=a:e[r]=a):R(u,a,t.mixFromArray?R({oneSource:!0},t):t))}function R(e,o,r){var t,n=typeof e,i=typeof o;if(e&&("object"==n||"function"==n)&&o&&("object"==i||"function"==i)){"object"!=typeof r||null===r?r=v||{}:v&&(t=v,v=null,r=R({},[r,t]),v=t),Array.isArray(o)&&!r.oneSource||(o=[o]);var c,p,u,a,y,f=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,s={copyFunc:!("copyFunc"in r)||r.copyFunc,funcToProto:Boolean(r.funcToProto),processSymbol:(!("processSymbol"in r)||r.processSymbol)&&"function"==typeof f,mixFromArray:Boolean("mixFromArray"in r?r.mixFromArray:r.mixArray),mixToArray:Boolean("mixToArray"in r?r.mixToArray:r.mixArray),overwrite:r.overwrite,ownProperty:Boolean(r.ownProperty),recursive:Boolean(r.recursive),otherNameMap:"otherName"in r?r.otherName:null,changeFunc:r.changeFunc,copyMap:r.copyMap,copyRegExp:r.copyRegExp,exceptions:r.exceptions,exceptRegExp:r.exceptRegExp,filterRegExp:r.filterRegExp},x=s.ownProperty,g=s.processSymbol,m=r.change,h=r.copy,A=r.except,b=r.filter;for(h&&(h=w(h),s.copyMap=h.map,s.copyRegExp=h.regexp),A&&(A=w(A,!0),s.exceptions=A.map,s.exceptRegExp=A.regexp),b&&(s["object"==typeof b?"filterRegExp":"filter"]=b),m&&(s["function"==typeof m?"changeFunc":"change"]=m),c=0,u=o.length;c<u;c++)if(t=o[c]){for(y in t)E(e,t,y,s);if(g){A={};do{for(p=0,a=(h=f(t)).length;p<a;p++)(y=h[p])in A||(E(e,t,y,s),A[y]=!0);t=x?null:l(t)}while(t)}}}return e}return Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),R.assign=function(e){return R(e,Array.prototype.slice.call(arguments,1),{overwrite:!0,ownProperty:!0})},R.change=function(e,o){return R(e,e,{change:o,overwrite:!0,oneSource:!0})},R.copy=function(e,o){return R({},e,o)},R.mixToItems=function(e,o,r){for(var t=0,n=e.length;t<n;t++)e[t]=R(e[t],o,r);return e},R.clone=function(e){return R({},this,e)},R.filter=function(e){return R({},this,"function"==typeof e?{filter:e}:e)},R.map=function(e){return R({},this,"function"==typeof e?{change:e}:e)},R.mix=function(e,o){return R(this,e,o)},R.update=function(e){return R.change(this,e)},R.getSettings=function(){return v},R.setSettings=function(e){v="object"==typeof e?e:null},r.exports=R});
!function(e,o){void 0===e&&void 0!==window&&(e=window),"object"==typeof module&&module.exports?module.exports=o(require,exports,module):"function"==typeof define&&define.amd?define(["require","exports","module"],o):e.mixing=o(0,0,{exports:e})}(this,function(e,o,r){var A;function b(e,o){var r,t,n,i;if(Array.isArray(e)){if(0<e.length)for(r={},t=e.length;r[e[--t]]=o||null,t;);}else"string"==(i=typeof e)||"symbol"==i?(r={})[e]=o||null:"object"==i&&(e instanceof RegExp?n=e:r=e);return{map:r,regexp:n}}function v(e,o,r,t){var n,i,c=o[r],p=r.toString();function u(){return{field:r,value:c,targetValue:e[r],target:e,source:o}}t.ownProperty&&!o.hasOwnProperty(r)||t.copyMap&&!(r in t.copyMap)||t.copyRegExp&&!t.copyRegExp.test(p)||t.exceptions&&t.exceptions[r]||t.exceptRegExp&&t.exceptRegExp.test(p)||t.filter&&!t.filter.call(null,u())||t.filterRegExp&&!t.filterRegExp.test("symbol"==typeof c?c.toString():c)||((n=t.otherNameMap)&&r in n&&(r=n[r]),p=typeof c,!(t.recursive&&c&&"object"==p&&(i=e[r])&&"object"==typeof i)||Array.isArray(c)&&!t.mixFromArray||Array.isArray(i)&&!t.mixToArray?(n="function"==p)&&!t.copyFunc||r in e&&(!(i=t.overwrite)||"function"==typeof i&&!i(u())||i instanceof RegExp&&!i.test(r))||(t.changeFunc?c=t.changeFunc.call(null,u()):(p=t.change)&&r in p&&(c=p[r]),n&&t.funcToProto?e.constructor.prototype[r]=c:e[r]=c):w(i,c,t.mixFromArray?w({oneSource:!0},t):t))}function w(e,o,r){var t,n=typeof e,i=typeof o;if(e&&("object"==n||"function"==n)&&o&&("object"==i||"function"==i)){"object"!=typeof r||null===r?r=A||{}:A&&(t=A,A=null,r=w({},[r,t]),A=t),Array.isArray(o)&&!r.oneSource||(o=[o]);var c,p,u,a,y,f=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,s={copyFunc:!("copyFunc"in r)||r.copyFunc,funcToProto:Boolean(r.funcToProto),processSymbol:(!("processSymbol"in r)||r.processSymbol)&&"function"==typeof f,mixFromArray:Boolean("mixFromArray"in r?r.mixFromArray:r.mixArray),mixToArray:Boolean("mixToArray"in r?r.mixToArray:r.mixArray),overwrite:r.overwrite,ownProperty:Boolean(r.ownProperty),recursive:Boolean(r.recursive),otherNameMap:"otherName"in r?r.otherName:null,changeFunc:r.changeFunc,copyMap:r.copyMap,copyRegExp:r.copyRegExp,exceptions:r.exceptions,exceptRegExp:r.exceptRegExp,filterRegExp:r.filterRegExp},x=s.ownProperty,g=s.processSymbol,i=r.change,m=r.copy,h=r.except,r=r.filter;for(m&&(m=b(m),s.copyMap=m.map,s.copyRegExp=m.regexp),h&&(h=b(h,!0),s.exceptions=h.map,s.exceptRegExp=h.regexp),r&&(s["object"==typeof r?"filterRegExp":"filter"]=r),i&&(s["function"==typeof i?"changeFunc":"change"]=i),c=0,u=o.length;c<u;c++)if(t=o[c]){for(y in t)v(e,t,y,s);if(g){h={};do{for(p=0,a=(m=f(t)).length;p<a;p++)(y=m[p])in h||(v(e,t,y,s),h[y]=!0)}while(t=x?null:l(t))}}}return e}return Array.isArray||(Array.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)}),w.assign=function(e){return w(e,Array.prototype.slice.call(arguments,1),{overwrite:!0,ownProperty:!0})},w.change=function(e,o){return w(e,e,{change:o,overwrite:!0,oneSource:!0})},w.copy=function(e,o){return w({},e,o)},w.mixToItems=function(e,o,r){for(var t=0,n=e.length;t<n;t++)e[t]=w(e[t],o,r);return e},w.clone=function(e){return w({},this,e)},w.filter=function(e){return w({},this,"function"==typeof e?{filter:e}:e)},w.map=function(e){return w({},this,"function"==typeof e?{change:e}:e)},w.mix=function(e,o){return w(this,e,o)},w.update=function(e){return w.change(this,e)},w.getSettings=function(){return A},w.setSettings=function(e){A="object"==typeof e?e:null},r.exports=w});

@@ -36,6 +36,3 @@ module.exports = function(grunt) {

dist: {
src: ["<%= src %>", "README.md"],
options: {
destination: "doc",
template: "node_modules/ink-docstrap/template",
configure: "jsdoc-conf.json"

@@ -98,2 +95,5 @@ }

grunt.registerTask("release-major", ["bump:major"]);
// For Travis CI service
grunt.registerTask("travis", ["all"]);
};

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

### 1.3.0 / 2021-05-09
* rename `doc` to `docs`
* update dependencies to fix security alerts
### 1.2.6 / 2020-08-14

@@ -2,0 +7,0 @@

{
"plugins": ["plugins/markdown"],
"source": {
"include": ["index.js"]
},
"opts": {
"destination": "docs",
"readme": "README.md",
"template": "node_modules/ink-docstrap/template",
"fileSet": ".nojekyll"
},
"plugins": [
"plugins/markdown",
"jsdoc-file"
],
"markdown": {

@@ -11,3 +25,3 @@ "parser": "marked"

"systemName": "mixing",
"copyright": "Copyright (c) 2013-2020 Denis Sikuler",
"copyright": "Copyright (c) 2013-2021 Denis Sikuler",
"theme": "spacelab",

@@ -14,0 +28,0 @@ "linenums": true

{
"name": "mixing",
"version": "1.2.6",
"version": "1.3.0",
"description": "Functions to mix, filter, change and copy/clone objects",

@@ -10,3 +10,3 @@ "main": "index.js",

"directories": {
"doc": "doc",
"doc": "docs",
"test": "test"

@@ -47,10 +47,11 @@ },

"devDependencies": {
"grunt": "^1.2.1",
"grunt": "^1.4.0",
"grunt-bump": "0.8.0",
"grunt-contrib-jshint": "2.1.0",
"grunt-contrib-uglify": "^5.0.0",
"grunt-contrib-jshint": "^3.0.0",
"grunt-contrib-uglify": "^5.0.1",
"grunt-jsdoc": "2.4.1",
"grunt-mocha-cli": "^6.0.0",
"grunt-mocha-cli": "^7.0.0",
"grunt-umd": "3.0.0",
"ink-docstrap": "1.3.2"
"ink-docstrap": "1.3.2",
"jsdoc-file": "^1.0.1"
},

@@ -57,0 +58,0 @@ "jspm": {

@@ -44,3 +44,3 @@ # mixing <a name="start"></a>

### [Ringo](http://ringojs.org)
### [Ringo](https://ringojs.org)

@@ -88,2 +88,3 @@ ringo-admin install gamtiq/mixing

```js
var source = {a: 1, b: 2};
var copy = mixing.copy(source); // Make a shallow copy of source

@@ -215,3 +216,3 @@ var result = mixing({a: 1, b: 2}, {c: 3, d: 4}); // result is {a: 1, b: 2, c: 3, d: 4}

See `doc` directory for details.
See [`docs`](https://gamtiq.github.io/mixing/) for details.

@@ -218,0 +219,0 @@ ### mixing(destination: Object, source: Array | Object, [settings: Object]);

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc