From 3a0d66f07b112b6d2bdc2b57bbf717a89a351ce6 Mon Sep 17 00:00:00 2001 From: Unit 193 Date: Wed, 3 Feb 2021 19:17:00 -0500 Subject: New upstream version 8.1.2. --- npm_assets/node_modules/merge/LICENSE | 21 ++++ npm_assets/node_modules/merge/README.md | 58 ++++++++++ npm_assets/node_modules/merge/bower.json | 22 ++++ npm_assets/node_modules/merge/merge.js | 177 +++++++++++++++++++++++++++++ npm_assets/node_modules/merge/merge.min.js | 3 + npm_assets/node_modules/merge/package.json | 54 +++++++++ 6 files changed, 335 insertions(+) create mode 100644 npm_assets/node_modules/merge/LICENSE create mode 100644 npm_assets/node_modules/merge/README.md create mode 100644 npm_assets/node_modules/merge/bower.json create mode 100644 npm_assets/node_modules/merge/merge.js create mode 100644 npm_assets/node_modules/merge/merge.min.js create mode 100644 npm_assets/node_modules/merge/package.json (limited to 'npm_assets/node_modules/merge') diff --git a/npm_assets/node_modules/merge/LICENSE b/npm_assets/node_modules/merge/LICENSE new file mode 100644 index 0000000..06cc243 --- /dev/null +++ b/npm_assets/node_modules/merge/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014 yeikos + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. \ No newline at end of file diff --git a/npm_assets/node_modules/merge/README.md b/npm_assets/node_modules/merge/README.md new file mode 100644 index 0000000..1d38059 --- /dev/null +++ b/npm_assets/node_modules/merge/README.md @@ -0,0 +1,58 @@ +# Merge + +Merge multiple objects into one, optionally creating a new cloned object. +Similar to the jQuery.extend but more flexible. Works in Node.js and the +browser. + +## Node.js Usage + +```sh +npm install merge --save +``` + +```js +var merge = require('merge'), original, cloned; + +console.log(merge({one:'hello'}, {two: 'world'})); +// -> {"one": "hello", "two": "world"} + +original = { x: { y: 1 } }; +cloned = merge(true, original); +cloned.x.y++; + +console.log(original.x.y, cloned.x.y); +// -> 1, 2 + +console.log(merge.recursive(true, original, { x: { z: 2 } })); +// -> {"x": { "y": 1, "z": 2 } } + +``` + +## Browser Usage + +```html + + +``` + +## Tests + +```sh +npm test +``` diff --git a/npm_assets/node_modules/merge/bower.json b/npm_assets/node_modules/merge/bower.json new file mode 100644 index 0000000..5f867a3 --- /dev/null +++ b/npm_assets/node_modules/merge/bower.json @@ -0,0 +1,22 @@ +{ + "name": "merge", + "version": "1.2.1", + "homepage": "https://github.com/yeikos/js.merge", + "authors": [ + "yeikos " + ], + "description": "Merge multiple objects into one, optionally creating a new cloned object. Similar to the jQuery.extend but more flexible. Works in Node.js and the browser.", + "main": "merge.js", + "keywords": [ + "merge", + "recursive", + "extend", + "clone", + "object", + "browser" + ], + "license": "MIT", + "ignore": [ + "tests" + ] +} diff --git a/npm_assets/node_modules/merge/merge.js b/npm_assets/node_modules/merge/merge.js new file mode 100644 index 0000000..1a9ac77 --- /dev/null +++ b/npm_assets/node_modules/merge/merge.js @@ -0,0 +1,177 @@ +/*! + * @name JavaScript/NodeJS Merge v1.2.1 + * @author yeikos + * @repository https://github.com/yeikos/js.merge + + * Copyright 2014 yeikos - MIT license + * https://raw.github.com/yeikos/js.merge/master/LICENSE + */ + +;(function(isNode) { + + /** + * Merge one or more objects + * @param bool? clone + * @param mixed,... arguments + * @return object + */ + + var Public = function(clone) { + + return merge(clone === true, false, arguments); + + }, publicName = 'merge'; + + /** + * Merge two or more objects recursively + * @param bool? clone + * @param mixed,... arguments + * @return object + */ + + Public.recursive = function(clone) { + + return merge(clone === true, true, arguments); + + }; + + /** + * Clone the input removing any reference + * @param mixed input + * @return mixed + */ + + Public.clone = function(input) { + + var output = input, + type = typeOf(input), + index, size; + + if (type === 'array') { + + output = []; + size = input.length; + + for (index=0;index