🐛 Update: Added support for the 'find' command in settings.local.json. Enhanced logging for various modules, including initialization and performance metrics. Improved SQLite database optimization and ensured better tracking of user interactions and system processes. 📚
This commit is contained in:
21
network-visualization/node_modules/copy-descriptor/LICENSE
generated
vendored
Normal file
21
network-visualization/node_modules/copy-descriptor/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015-2016, Jon Schlinkert
|
||||
|
||||
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.
|
81
network-visualization/node_modules/copy-descriptor/index.js
generated
vendored
Normal file
81
network-visualization/node_modules/copy-descriptor/index.js
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
/*!
|
||||
* copy-descriptor <https://github.com/jonschlinkert/copy-descriptor>
|
||||
*
|
||||
* Copyright (c) 2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
/**
|
||||
* Copy a descriptor from one object to another.
|
||||
*
|
||||
* ```js
|
||||
* function App() {
|
||||
* this.cache = {};
|
||||
* }
|
||||
* App.prototype.set = function(key, val) {
|
||||
* this.cache[key] = val;
|
||||
* return this;
|
||||
* };
|
||||
* Object.defineProperty(App.prototype, 'count', {
|
||||
* get: function() {
|
||||
* return Object.keys(this.cache).length;
|
||||
* }
|
||||
* });
|
||||
*
|
||||
* copy(App.prototype, 'count', 'len');
|
||||
*
|
||||
* // create an instance
|
||||
* var app = new App();
|
||||
*
|
||||
* app.set('a', true);
|
||||
* app.set('b', true);
|
||||
* app.set('c', true);
|
||||
*
|
||||
* console.log(app.count);
|
||||
* //=> 3
|
||||
* console.log(app.len);
|
||||
* //=> 3
|
||||
* ```
|
||||
* @name copy
|
||||
* @param {Object} `receiver` The target object
|
||||
* @param {Object} `provider` The provider object
|
||||
* @param {String} `from` The key to copy on provider.
|
||||
* @param {String} `to` Optionally specify a new key name to use.
|
||||
* @return {Object}
|
||||
* @api public
|
||||
*/
|
||||
|
||||
module.exports = function copyDescriptor(receiver, provider, from, to) {
|
||||
if (!isObject(provider) && typeof provider !== 'function') {
|
||||
to = from;
|
||||
from = provider;
|
||||
provider = receiver;
|
||||
}
|
||||
if (!isObject(receiver) && typeof receiver !== 'function') {
|
||||
throw new TypeError('expected the first argument to be an object');
|
||||
}
|
||||
if (!isObject(provider) && typeof provider !== 'function') {
|
||||
throw new TypeError('expected provider to be an object');
|
||||
}
|
||||
|
||||
if (typeof to !== 'string') {
|
||||
to = from;
|
||||
}
|
||||
if (typeof from !== 'string') {
|
||||
throw new TypeError('expected key to be a string');
|
||||
}
|
||||
|
||||
if (!(from in provider)) {
|
||||
throw new Error('property "' + from + '" does not exist');
|
||||
}
|
||||
|
||||
var val = Object.getOwnPropertyDescriptor(provider, from);
|
||||
if (val) Object.defineProperty(receiver, to, val);
|
||||
};
|
||||
|
||||
function isObject(val) {
|
||||
return {}.toString.call(val) === '[object Object]';
|
||||
}
|
||||
|
56
network-visualization/node_modules/copy-descriptor/package.json
generated
vendored
Normal file
56
network-visualization/node_modules/copy-descriptor/package.json
generated
vendored
Normal file
@@ -0,0 +1,56 @@
|
||||
{
|
||||
"name": "copy-descriptor",
|
||||
"description": "Copy a descriptor from object A to object B",
|
||||
"version": "0.1.1",
|
||||
"homepage": "https://github.com/jonschlinkert/copy-descriptor",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/copy-descriptor",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/copy-descriptor/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.9",
|
||||
"mocha": "^2.5.3"
|
||||
},
|
||||
"keywords": [
|
||||
"copy",
|
||||
"descriptor"
|
||||
],
|
||||
"verb": {
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"is-accessor-descriptor",
|
||||
"is-data-descriptor",
|
||||
"is-descriptor",
|
||||
"is-plain-object",
|
||||
"isobject"
|
||||
]
|
||||
},
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
},
|
||||
"reflinks": [
|
||||
"verb-readme-generator",
|
||||
"verb"
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user