Initial
This commit is contained in:
56
Client/node_modules/deep-assign/index.js
generated
vendored
Executable file
56
Client/node_modules/deep-assign/index.js
generated
vendored
Executable file
@@ -0,0 +1,56 @@
|
||||
'use strict';
|
||||
var isObj = require('is-obj');
|
||||
var hasOwnProperty = Object.prototype.hasOwnProperty;
|
||||
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
||||
|
||||
function toObject(val) {
|
||||
if (val === null || val === undefined) {
|
||||
throw new TypeError('Sources cannot be null or undefined');
|
||||
}
|
||||
|
||||
return Object(val);
|
||||
}
|
||||
|
||||
function base(to, from) {
|
||||
if (to === from) {
|
||||
return to;
|
||||
}
|
||||
|
||||
from = Object(from);
|
||||
|
||||
for (var key in from) {
|
||||
if (hasOwnProperty.call(from, key)) {
|
||||
var val = from[key];
|
||||
|
||||
if (Array.isArray(val)) {
|
||||
to[key] = val.slice();
|
||||
} else if (isObj(val)) {
|
||||
to[key] = base(to[key] || {}, val);
|
||||
} else if (val !== undefined) {
|
||||
to[key] = val;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (Object.getOwnPropertySymbols) {
|
||||
var symbols = Object.getOwnPropertySymbols(from);
|
||||
|
||||
for (var i = 0; i < symbols.length; i++) {
|
||||
if (propIsEnumerable.call(from, symbols[i])) {
|
||||
to[symbols[i]] = from[symbols[i]];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
return to;
|
||||
}
|
||||
|
||||
module.exports = function deepAssign(target) {
|
||||
target = toObject(target);
|
||||
|
||||
for (var s = 1; s < arguments.length; s++) {
|
||||
base(target, arguments[s]);
|
||||
}
|
||||
|
||||
return target;
|
||||
};
|
||||
21
Client/node_modules/deep-assign/license
generated
vendored
Executable file
21
Client/node_modules/deep-assign/license
generated
vendored
Executable file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
|
||||
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.
|
||||
75
Client/node_modules/deep-assign/package.json
generated
vendored
Executable file
75
Client/node_modules/deep-assign/package.json
generated
vendored
Executable file
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"_from": "deep-assign@^1.0.0",
|
||||
"_id": "deep-assign@1.0.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha1-sJJ0O+hCfcYh6gBnzex+cN0Z83s=",
|
||||
"_location": "/deep-assign",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "range",
|
||||
"registry": true,
|
||||
"raw": "deep-assign@^1.0.0",
|
||||
"name": "deep-assign",
|
||||
"escapedName": "deep-assign",
|
||||
"rawSpec": "^1.0.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "^1.0.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/gulp-chmod"
|
||||
],
|
||||
"_resolved": "http://registry.npmjs.org/deep-assign/-/deep-assign-1.0.0.tgz",
|
||||
"_shasum": "b092743be8427dc621ea0067cdec7e70dd19f37b",
|
||||
"_spec": "deep-assign@^1.0.0",
|
||||
"_where": "/home/nathan/Projects/Upsilon/UpsilonVsCodeLanguageServer/Client/node_modules/gulp-chmod",
|
||||
"author": {
|
||||
"name": "Sindre Sorhus",
|
||||
"email": "sindresorhus@gmail.com",
|
||||
"url": "sindresorhus.com"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/sindresorhus/deep-assign/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"dependencies": {
|
||||
"is-obj": "^1.0.0"
|
||||
},
|
||||
"deprecated": false,
|
||||
"description": "Recursive Object.assign()",
|
||||
"devDependencies": {
|
||||
"ava": "*",
|
||||
"xo": "*"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"homepage": "https://github.com/sindresorhus/deep-assign#readme",
|
||||
"keywords": [
|
||||
"object",
|
||||
"obj",
|
||||
"assign",
|
||||
"extend",
|
||||
"properties",
|
||||
"merge",
|
||||
"deep",
|
||||
"recursive"
|
||||
],
|
||||
"license": "MIT",
|
||||
"name": "deep-assign",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/sindresorhus/deep-assign.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "xo && ava"
|
||||
},
|
||||
"version": "1.0.0",
|
||||
"xo": {
|
||||
"ignores": [
|
||||
"test.js"
|
||||
]
|
||||
}
|
||||
}
|
||||
35
Client/node_modules/deep-assign/readme.md
generated
vendored
Executable file
35
Client/node_modules/deep-assign/readme.md
generated
vendored
Executable file
@@ -0,0 +1,35 @@
|
||||
# deep-assign [](https://travis-ci.org/sindresorhus/deep-assign)
|
||||
|
||||
> Recursive [`Object.assign()`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Object/assign)
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
```
|
||||
$ npm install --save deep-assign
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var deepAssign = require('deep-assign');
|
||||
|
||||
deepAssign({a: {b: 0}}, {a: {b: 1, c: 2}}, {a: {c: 3}});
|
||||
//=> {a: {b: 1, c: 3}}
|
||||
```
|
||||
|
||||
|
||||
### deepAssign(target, source, [source, ...])
|
||||
|
||||
Recursively assigns own enumerable properties of `source` objects to the `target` object and returns the `target` object. Additional `source` objects will overwrite previous ones.
|
||||
|
||||
|
||||
## Related
|
||||
|
||||
- [object-assign](https://github.com/sindresorhus/object-assign) - ES2015 Object.assign() ponyfill
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](http://sindresorhus.com)
|
||||
Reference in New Issue
Block a user