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

.editorconfig

2

bower.json
{
"name": "mixing",
"main": ["dist/mixing.js", "dist/mixing.min.js"],
"version": "1.2.5",
"version": "1.2.6",
"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.5",
"version": "1.2.6",
"keywords": [

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

@@ -311,3 +311,3 @@ (function(root, factory) {

* </table>
* An object having the following fields is passed into `overwrite`, `filter` or `change` function:
* An object having the following fields is passed into `overwrite`, `filter` and `change` function:
* <ul>

@@ -314,0 +314,0 @@ * <li>`field` - field name

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

!function(e,o){if(void 0===e&&void 0!==window&&(e=window),"object"==typeof module&&module.exports)module.exports=o(require,exports,module);else if("function"==typeof define&&define.amd)define(["require","exports","module"],o);else{var 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],f=r.toString();function y(){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(f)||t.exceptions&&t.exceptions[r]||t.exceptRegExp&&t.exceptRegExp.test(f)||t.filter&&!t.filter.call(null,y())||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(y())||u instanceof RegExp&&!u.test(r))||(t.changeFunc?a=t.changeFunc.call(null,y()):(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=typeof e,n=typeof o;if(e&&("object"==t||"function"==t)&&o&&("object"==n||"function"==n)){var i;"object"!=typeof r||null===r?r=v||{}:v&&(i=v,v=null,r=R({},[r,i]),v=i),Array.isArray(o)&&!r.oneSource||(o=[o]);var c,p,u,a,f,y=Object.getOwnPropertySymbols,l=Object.getPrototypeOf,s={copyFunc:!("copyFunc"in r)||r.copyFunc,funcToProto:Boolean(r.funcToProto),processSymbol:(!("processSymbol"in r)||r.processSymbol)&&"function"==typeof y,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(i=o[c]){for(f in i)E(e,i,f,s);if(g){A={};do{for(p=0,a=(h=y(i)).length;p<a;p++)(f=h[p])in A||(E(e,i,f,s),A[f]=!0);i=x?null:l(i)}while(i)}}}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){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});

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

options: {
files: ["package.json", "bower.json", "component.json"],
files: ["package.json", "package-lock.json", "bower.json", "component.json"],
commitMessage: "Release version %VERSION%",

@@ -71,0 +71,0 @@ commitFiles: ["-a"],

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

### 1.2.6 / 2020-08-14
* fix `.d.ts` file
### 1.2.5 / 2020-02-20

@@ -2,0 +6,0 @@

@@ -63,13 +63,13 @@ // Created on the basis of http://www.typescriptlang.org/docs/handbook/declaration-files/templates/module-function-d-ts.html

export declare function assign(destination: Target, ...source: Source[]): Target;
export declare function change(source: Source, change: ChangeFunc): Source;
export declare function copy(source: Source | Source[], settings?: Settings): object;
export declare function mixToItems(destinationList: Target[], source: Source | Source[], settings?: Settings): Target[];
export declare function clone(this: object, settings?: Settings): object;
export declare function filter(this: object, filter: FilterFunc | Settings): object;
export declare function map(this: object, change: ChangeFunc | Settings): object;
export declare function mix(this: object, source: Source | Source[], settings?: Settings): object;
export declare function update(this: object, change: ChangeFunc | FieldMap): object;
export declare function getSettings(): Settings | null | undefined;
export declare function setSettings(settings?: Settings | null): void;
export function assign(destination: Target, ...source: Source[]): Target;
export function change(source: Source, change: ChangeFunc): Source;
export function copy(source: Source | Source[], settings?: Settings): object;
export function mixToItems(destinationList: Target[], source: Source | Source[], settings?: Settings): Target[];
export function clone(this: object, settings?: Settings): object;
export function filter(this: object, filter: FilterFunc | Settings): object;
export function map(this: object, change: ChangeFunc | Settings): object;
export function mix(this: object, source: Source | Source[], settings?: Settings): object;
export function update(this: object, change: ChangeFunc | FieldMap): object;
export function getSettings(): Settings | null | undefined;
export function setSettings(settings?: Settings | null): void;
}

@@ -0,0 +0,0 @@ /**

@@ -0,0 +0,0 @@ {

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

@@ -46,8 +46,8 @@ "main": "index.js",

"devDependencies": {
"grunt": "1.0.4",
"grunt": "^1.2.1",
"grunt-bump": "0.8.0",
"grunt-contrib-jshint": "2.1.0",
"grunt-contrib-uglify": "4.0.1",
"grunt-contrib-uglify": "^5.0.0",
"grunt-jsdoc": "2.4.1",
"grunt-mocha-cli": "5.0.0",
"grunt-mocha-cli": "^6.0.0",
"grunt-umd": "3.0.0",

@@ -54,0 +54,0 @@ "ink-docstrap": "1.3.2"

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

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

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

Sorry, the diff of this file is not supported yet

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