🐛 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/unset-value/LICENSE
generated
vendored
Normal file
21
network-visualization/node_modules/unset-value/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2015, 2017, 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.
|
131
network-visualization/node_modules/unset-value/README.md
generated
vendored
Normal file
131
network-visualization/node_modules/unset-value/README.md
generated
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
# unset-value [](https://www.npmjs.com/package/unset-value) [](https://npmjs.org/package/unset-value) [](https://npmjs.org/package/unset-value) [](https://travis-ci.org/jonschlinkert/unset-value)
|
||||
|
||||
> Delete nested properties from an object using dot notation.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install --save unset-value
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var unset = require('unset-value');
|
||||
|
||||
var obj = {a: {b: {c: 'd', e: 'f'}}};
|
||||
unset(obj, 'a.b.c');
|
||||
console.log(obj);
|
||||
//=> {a: {b: {e: 'f'}}};
|
||||
```
|
||||
|
||||
## Examples
|
||||
|
||||
### Updates the object when a property is deleted
|
||||
|
||||
```js
|
||||
var obj = {a: 'b'};
|
||||
unset(obj, 'a');
|
||||
console.log(obj);
|
||||
//=> {}
|
||||
```
|
||||
|
||||
### Returns true when a property is deleted
|
||||
|
||||
```js
|
||||
unset({a: 'b'}, 'a') // true
|
||||
```
|
||||
|
||||
### Returns `true` when a property does not exist
|
||||
|
||||
This is consistent with `delete` behavior in that it does not
|
||||
throw when a property does not exist.
|
||||
|
||||
```js
|
||||
unset({a: {b: {c: 'd'}}}, 'd') // true
|
||||
```
|
||||
|
||||
### delete nested values
|
||||
|
||||
```js
|
||||
var one = {a: {b: {c: 'd'}}};
|
||||
unset(one, 'a.b');
|
||||
console.log(one);
|
||||
//=> {a: {}}
|
||||
|
||||
var two = {a: {b: {c: 'd'}}};
|
||||
unset(two, 'a.b.c');
|
||||
console.log(two);
|
||||
//=> {a: {b: {}}}
|
||||
|
||||
var three = {a: {b: {c: 'd', e: 'f'}}};
|
||||
unset(three, 'a.b.c');
|
||||
console.log(three);
|
||||
//=> {a: {b: {e: 'f'}}}
|
||||
```
|
||||
|
||||
### throws on invalid args
|
||||
|
||||
```js
|
||||
unset();
|
||||
// 'expected an object.'
|
||||
```
|
||||
|
||||
## About
|
||||
|
||||
### Related projects
|
||||
|
||||
* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value "Use property paths (`a.b.c`) to get a nested value from an object.")
|
||||
* [get-values](https://www.npmjs.com/package/get-values): Return an array of all values from the given object. | [homepage](https://github.com/jonschlinkert/get-values "Return an array of all values from the given object.")
|
||||
* [omit-value](https://www.npmjs.com/package/omit-value): Omit properties from an object or deeply nested property of an object using object path… [more](https://github.com/jonschlinkert/omit-value) | [homepage](https://github.com/jonschlinkert/omit-value "Omit properties from an object or deeply nested property of an object using object path notation.")
|
||||
* [put-value](https://www.npmjs.com/package/put-value): Update only existing values from an object, works with dot notation paths like `a.b.c` and… [more](https://github.com/tunnckocore/put-value#readme) | [homepage](https://github.com/tunnckocore/put-value#readme "Update only existing values from an object, works with dot notation paths like `a.b.c` and support deep nesting.")
|
||||
* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value "Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.")
|
||||
* [union-value](https://www.npmjs.com/package/union-value): Set an array of unique values as the property of an object. Supports setting deeply… [more](https://github.com/jonschlinkert/union-value) | [homepage](https://github.com/jonschlinkert/union-value "Set an array of unique values as the property of an object. Supports setting deeply nested properties using using object-paths/dot notation.")
|
||||
* [upsert-value](https://www.npmjs.com/package/upsert-value): Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/doowb/upsert-value "Update or set nested values and any intermediaries with dot notation (`'a.b.c'`) paths.")
|
||||
|
||||
### Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
||||
|
||||
### Contributors
|
||||
|
||||
| **Commits** | **Contributor** |
|
||||
| --- | --- |
|
||||
| 6 | [jonschlinkert](https://github.com/jonschlinkert) |
|
||||
| 2 | [wtgtybhertgeghgtwtg](https://github.com/wtgtybhertgeghgtwtg) |
|
||||
|
||||
### Building docs
|
||||
|
||||
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
||||
|
||||
To generate the readme, run the following command:
|
||||
|
||||
```sh
|
||||
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
||||
```
|
||||
|
||||
### Running tests
|
||||
|
||||
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
||||
|
||||
```sh
|
||||
$ npm install && npm test
|
||||
```
|
||||
|
||||
### Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](https://twitter.com/jonschlinkert)
|
||||
|
||||
### License
|
||||
|
||||
Copyright © 2017, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT License](LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.4.2, on February 25, 2017._
|
32
network-visualization/node_modules/unset-value/index.js
generated
vendored
Normal file
32
network-visualization/node_modules/unset-value/index.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
/*!
|
||||
* unset-value <https://github.com/jonschlinkert/unset-value>
|
||||
*
|
||||
* Copyright (c) 2015, 2017, Jon Schlinkert.
|
||||
* Released under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isObject = require('isobject');
|
||||
var has = require('has-value');
|
||||
|
||||
module.exports = function unset(obj, prop) {
|
||||
if (!isObject(obj)) {
|
||||
throw new TypeError('expected an object.');
|
||||
}
|
||||
if (obj.hasOwnProperty(prop)) {
|
||||
delete obj[prop];
|
||||
return true;
|
||||
}
|
||||
|
||||
if (has(obj, prop)) {
|
||||
var segs = prop.split('.');
|
||||
var last = segs.pop();
|
||||
while (segs.length && segs[segs.length - 1].slice(-1) === '\\') {
|
||||
last = segs.pop().slice(0, -1) + '.' + last;
|
||||
}
|
||||
while (segs.length) obj = obj[prop = segs.shift()];
|
||||
return (delete obj[last]);
|
||||
}
|
||||
return true;
|
||||
};
|
21
network-visualization/node_modules/unset-value/node_modules/has-value/LICENSE
generated
vendored
Normal file
21
network-visualization/node_modules/unset-value/node_modules/has-value/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-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.
|
130
network-visualization/node_modules/unset-value/node_modules/has-value/README.md
generated
vendored
Normal file
130
network-visualization/node_modules/unset-value/node_modules/has-value/README.md
generated
vendored
Normal file
@@ -0,0 +1,130 @@
|
||||
# has-value [](https://www.npmjs.com/package/has-value) [](https://npmjs.org/package/has-value) [](https://travis-ci.org/jonschlinkert/has-value)
|
||||
|
||||
> Returns true if a value exists, false if empty. Works with deeply nested values using object paths.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install has-value --save
|
||||
```
|
||||
|
||||
**Works for:**
|
||||
|
||||
* booleans
|
||||
* functions
|
||||
* numbers (pass `true` as the last arg to treat zero as a value instead of falsey)
|
||||
* strings
|
||||
* nulls
|
||||
* object
|
||||
* arrays
|
||||
|
||||
## Usage
|
||||
|
||||
Works with nested object paths or a single value:
|
||||
|
||||
```js
|
||||
var hasValue = require('has-value');
|
||||
|
||||
hasValue({a: {b: {c: 'foo'}}} 'a.b.c');
|
||||
//=> true
|
||||
|
||||
hasValue('a');
|
||||
//=> true
|
||||
|
||||
hasValue('');
|
||||
//=> false
|
||||
|
||||
hasValue(1);
|
||||
//=> true
|
||||
|
||||
hasValue(0);
|
||||
//=> false
|
||||
|
||||
hasValue(0, true); // pass `true` as the last arg to treat zero as a value
|
||||
//=> true
|
||||
|
||||
hasValue({a: 'a'}});
|
||||
//=> true
|
||||
|
||||
hasValue({}});
|
||||
//=> false
|
||||
|
||||
hasValue(['a']);
|
||||
//=> true
|
||||
|
||||
hasValue([]);
|
||||
//=> false
|
||||
|
||||
hasValue(function(foo) {}); // function length/arity
|
||||
//=> true
|
||||
|
||||
hasValue(function() {});
|
||||
//=> false
|
||||
|
||||
hasValue(true);
|
||||
hasValue(false);
|
||||
//=> true
|
||||
```
|
||||
|
||||
## isEmpty
|
||||
|
||||
To do the opposite and test for empty values, do:
|
||||
|
||||
```js
|
||||
function isEmpty(o, isZero) {
|
||||
return !hasValue.apply(hasValue, arguments);
|
||||
}
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
You might also be interested in these projects:
|
||||
|
||||
* [get-object](https://www.npmjs.com/package/get-object): Get a property from an object using dot (object path) notation. | [homepage](https://github.com/jonschlinkert/get-object)
|
||||
* [get-property](https://www.npmjs.com/package/get-property): Get a nested property or its value from an object using simple `a.b.c` paths. | [homepage](https://github.com/jonschlinkert/get-property)
|
||||
* [get-value](https://www.npmjs.com/package/get-value): Use property paths (`a.b.c`) to get a nested value from an object. | [homepage](https://github.com/jonschlinkert/get-value)
|
||||
* [set-value](https://www.npmjs.com/package/set-value): Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths. | [homepage](https://github.com/jonschlinkert/set-value)
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/has-value/issues/new).
|
||||
|
||||
## Building docs
|
||||
|
||||
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install verb && npm run docs
|
||||
```
|
||||
|
||||
Or, if [verb](https://github.com/verbose/verb) is installed globally:
|
||||
|
||||
```sh
|
||||
$ verb
|
||||
```
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/has-value/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb](https://github.com/verbose/verb), v, on March 27, 2016._
|
19
network-visualization/node_modules/unset-value/node_modules/has-value/index.js
generated
vendored
Normal file
19
network-visualization/node_modules/unset-value/node_modules/has-value/index.js
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
/*!
|
||||
* has-value <https://github.com/jonschlinkert/has-value>
|
||||
*
|
||||
* Copyright (c) 2014-2016, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isObject = require('isobject');
|
||||
var hasValues = require('has-values');
|
||||
var get = require('get-value');
|
||||
|
||||
module.exports = function(obj, prop, noZero) {
|
||||
if (isObject(obj)) {
|
||||
return hasValues(get(obj, prop), noZero);
|
||||
}
|
||||
return hasValues(obj, prop);
|
||||
};
|
21
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/LICENSE
generated
vendored
Normal file
21
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-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.
|
112
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/README.md
generated
vendored
Normal file
112
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/README.md
generated
vendored
Normal file
@@ -0,0 +1,112 @@
|
||||
# isobject [](https://www.npmjs.com/package/isobject) [](https://npmjs.org/package/isobject) [](https://travis-ci.org/jonschlinkert/isobject)
|
||||
|
||||
Returns true if the value is an object and not an array or null.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install isobject --save
|
||||
```
|
||||
|
||||
Use [is-plain-object](https://github.com/jonschlinkert/is-plain-object) if you want only objects that are created by the `Object` constructor.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install isobject
|
||||
```
|
||||
|
||||
Install with [bower](http://bower.io/)
|
||||
|
||||
```sh
|
||||
$ bower install isobject
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var isObject = require('isobject');
|
||||
```
|
||||
|
||||
**True**
|
||||
|
||||
All of the following return `true`:
|
||||
|
||||
```js
|
||||
isObject({});
|
||||
isObject(Object.create({}));
|
||||
isObject(Object.create(Object.prototype));
|
||||
isObject(Object.create(null));
|
||||
isObject({});
|
||||
isObject(new Foo);
|
||||
isObject(/foo/);
|
||||
```
|
||||
|
||||
**False**
|
||||
|
||||
All of the following return `false`:
|
||||
|
||||
```js
|
||||
isObject();
|
||||
isObject(function () {});
|
||||
isObject(1);
|
||||
isObject([]);
|
||||
isObject(undefined);
|
||||
isObject(null);
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
You might also be interested in these projects:
|
||||
|
||||
[merge-deep](https://www.npmjs.com/package/merge-deep): Recursively merge values in a javascript object. | [homepage](https://github.com/jonschlinkert/merge-deep)
|
||||
|
||||
* [extend-shallow](https://www.npmjs.com/package/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util. | [homepage](https://github.com/jonschlinkert/extend-shallow)
|
||||
* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object)
|
||||
* [kind-of](https://www.npmjs.com/package/kind-of): Get the native type of a value. | [homepage](https://github.com/jonschlinkert/kind-of)
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/isobject/issues/new).
|
||||
|
||||
## Building docs
|
||||
|
||||
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install verb && npm run docs
|
||||
```
|
||||
|
||||
Or, if [verb](https://github.com/verbose/verb) is installed globally:
|
||||
|
||||
```sh
|
||||
$ verb
|
||||
```
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/isobject/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb](https://github.com/verbose/verb), v0.9.0, on April 25, 2016._
|
14
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/index.js
generated
vendored
Normal file
14
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/index.js
generated
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
/*!
|
||||
* isobject <https://github.com/jonschlinkert/isobject>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
var isArray = require('isarray');
|
||||
|
||||
module.exports = function isObject(val) {
|
||||
return val != null && typeof val === 'object' && isArray(val) === false;
|
||||
};
|
67
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/package.json
generated
vendored
Normal file
67
network-visualization/node_modules/unset-value/node_modules/has-value/node_modules/isobject/package.json
generated
vendored
Normal file
@@ -0,0 +1,67 @@
|
||||
{
|
||||
"name": "isobject",
|
||||
"description": "Returns true if the value is an object and not an array or null.",
|
||||
"version": "2.1.0",
|
||||
"homepage": "https://github.com/jonschlinkert/isobject",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/isobject",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/isobject/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"isarray": "1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.9",
|
||||
"mocha": "^2.4.5"
|
||||
},
|
||||
"keywords": [
|
||||
"check",
|
||||
"is",
|
||||
"is-object",
|
||||
"isobject",
|
||||
"kind",
|
||||
"kind-of",
|
||||
"kindof",
|
||||
"native",
|
||||
"object",
|
||||
"type",
|
||||
"typeof",
|
||||
"value"
|
||||
],
|
||||
"verb": {
|
||||
"related": {
|
||||
"list": [
|
||||
"merge-deep",
|
||||
"extend-shallow",
|
||||
"is-plain-object",
|
||||
"kind-of"
|
||||
]
|
||||
},
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
},
|
||||
"reflinks": [
|
||||
"verb"
|
||||
]
|
||||
}
|
||||
}
|
81
network-visualization/node_modules/unset-value/node_modules/has-value/package.json
generated
vendored
Normal file
81
network-visualization/node_modules/unset-value/node_modules/has-value/package.json
generated
vendored
Normal file
@@ -0,0 +1,81 @@
|
||||
{
|
||||
"name": "has-value",
|
||||
"version": "0.3.1",
|
||||
"description": "Returns true if a value exists, false if empty. Works with deeply nested values using object paths.",
|
||||
"homepage": "https://github.com/jonschlinkert/has-value",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/has-value",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/has-value/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"get-value": "^2.0.3",
|
||||
"has-values": "^0.1.4",
|
||||
"isobject": "^2.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.7",
|
||||
"mocha": "^2.4.5"
|
||||
},
|
||||
"keywords": [
|
||||
"array",
|
||||
"boolean",
|
||||
"empty",
|
||||
"find",
|
||||
"function",
|
||||
"has",
|
||||
"hasOwn",
|
||||
"javascript",
|
||||
"js",
|
||||
"key",
|
||||
"keys",
|
||||
"node.js",
|
||||
"null",
|
||||
"number",
|
||||
"object",
|
||||
"properties",
|
||||
"property",
|
||||
"string",
|
||||
"type",
|
||||
"util",
|
||||
"utilities",
|
||||
"utility",
|
||||
"value"
|
||||
],
|
||||
"verb": {
|
||||
"run": true,
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"get-object",
|
||||
"get-property",
|
||||
"get-value",
|
||||
"set-value"
|
||||
]
|
||||
},
|
||||
"reflinks": [
|
||||
"verb"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
}
|
||||
}
|
||||
}
|
21
network-visualization/node_modules/unset-value/node_modules/has-values/LICENSE
generated
vendored
Normal file
21
network-visualization/node_modules/unset-value/node_modules/has-values/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014-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.
|
114
network-visualization/node_modules/unset-value/node_modules/has-values/README.md
generated
vendored
Normal file
114
network-visualization/node_modules/unset-value/node_modules/has-values/README.md
generated
vendored
Normal file
@@ -0,0 +1,114 @@
|
||||
# has-values [](https://www.npmjs.com/package/has-values) [](https://npmjs.org/package/has-values) [](https://travis-ci.org/jonschlinkert/has-values)
|
||||
|
||||
> Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays.
|
||||
|
||||
## Install
|
||||
|
||||
Install with [npm](https://www.npmjs.com/):
|
||||
|
||||
```sh
|
||||
$ npm install has-values --save
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
var hasValue = require('has-values');
|
||||
|
||||
hasValue('a');
|
||||
//=> true
|
||||
|
||||
hasValue('');
|
||||
//=> false
|
||||
|
||||
hasValue(1);
|
||||
//=> true
|
||||
|
||||
hasValue(0);
|
||||
//=> false
|
||||
|
||||
hasValue(0, true); // treat zero as a value
|
||||
//=> true
|
||||
|
||||
hasValue({a: 'a'}});
|
||||
//=> true
|
||||
|
||||
hasValue({}});
|
||||
//=> false
|
||||
|
||||
hasValue(['a']);
|
||||
//=> true
|
||||
|
||||
hasValue([]);
|
||||
//=> false
|
||||
|
||||
hasValue(function(foo) {}); // function length/arity
|
||||
//=> true
|
||||
|
||||
hasValue(function() {});
|
||||
//=> false
|
||||
|
||||
hasValue(true);
|
||||
hasValue(false);
|
||||
//=> true
|
||||
```
|
||||
|
||||
## isEmpty
|
||||
|
||||
To test for empty values, do:
|
||||
|
||||
```js
|
||||
function isEmpty(o, isZero) {
|
||||
return !hasValue(o, isZero);
|
||||
}
|
||||
```
|
||||
|
||||
## Related projects
|
||||
|
||||
You might also be interested in these projects:
|
||||
|
||||
* [has-value](https://www.npmjs.com/package/has-value): Returns true if a value exists, false if empty. Works with deeply nested values using… [more](https://www.npmjs.com/package/has-value) | [homepage](https://github.com/jonschlinkert/has-value)
|
||||
* [is-plain-object](https://www.npmjs.com/package/is-plain-object): Returns true if an object was created by the `Object` constructor. | [homepage](https://github.com/jonschlinkert/is-plain-object)
|
||||
* [isobject](https://www.npmjs.com/package/isobject): Returns true if the value is an object and not an array or null. | [homepage](https://github.com/jonschlinkert/isobject)
|
||||
|
||||
## Contributing
|
||||
|
||||
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/has-values/issues/new).
|
||||
|
||||
## Building docs
|
||||
|
||||
Generate readme and API documentation with [verb](https://github.com/verbose/verb):
|
||||
|
||||
```sh
|
||||
$ npm install verb && npm run docs
|
||||
```
|
||||
|
||||
Or, if [verb](https://github.com/verbose/verb) is installed globally:
|
||||
|
||||
```sh
|
||||
$ verb
|
||||
```
|
||||
|
||||
## Running tests
|
||||
|
||||
Install dev dependencies:
|
||||
|
||||
```sh
|
||||
$ npm install -d && npm test
|
||||
```
|
||||
|
||||
## Author
|
||||
|
||||
**Jon Schlinkert**
|
||||
|
||||
* [github/jonschlinkert](https://github.com/jonschlinkert)
|
||||
* [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
|
||||
|
||||
## License
|
||||
|
||||
Copyright © 2016, [Jon Schlinkert](https://github.com/jonschlinkert).
|
||||
Released under the [MIT license](https://github.com/jonschlinkert/has-values/blob/master/LICENSE).
|
||||
|
||||
***
|
||||
|
||||
_This file was generated by [verb](https://github.com/verbose/verb), v, on March 27, 2016._
|
36
network-visualization/node_modules/unset-value/node_modules/has-values/index.js
generated
vendored
Normal file
36
network-visualization/node_modules/unset-value/node_modules/has-values/index.js
generated
vendored
Normal file
@@ -0,0 +1,36 @@
|
||||
/*!
|
||||
* has-values <https://github.com/jonschlinkert/has-values>
|
||||
*
|
||||
* Copyright (c) 2014-2015, Jon Schlinkert.
|
||||
* Licensed under the MIT License.
|
||||
*/
|
||||
|
||||
'use strict';
|
||||
|
||||
module.exports = function hasValue(o, noZero) {
|
||||
if (o === null || o === undefined) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (typeof o === 'boolean') {
|
||||
return true;
|
||||
}
|
||||
|
||||
if (typeof o === 'number') {
|
||||
if (o === 0 && noZero === true) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
if (o.length !== undefined) {
|
||||
return o.length !== 0;
|
||||
}
|
||||
|
||||
for (var key in o) {
|
||||
if (o.hasOwnProperty(key)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
75
network-visualization/node_modules/unset-value/node_modules/has-values/package.json
generated
vendored
Normal file
75
network-visualization/node_modules/unset-value/node_modules/has-values/package.json
generated
vendored
Normal file
@@ -0,0 +1,75 @@
|
||||
{
|
||||
"name": "has-values",
|
||||
"version": "0.1.4",
|
||||
"description": "Returns true if any values exist, false if empty. Works for booleans, functions, numbers, strings, nulls, objects and arrays. ",
|
||||
"homepage": "https://github.com/jonschlinkert/has-values",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"repository": "jonschlinkert/has-values",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/has-values/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.7",
|
||||
"mocha": "^2.4.5"
|
||||
},
|
||||
"keywords": [
|
||||
"array",
|
||||
"boolean",
|
||||
"empty",
|
||||
"find",
|
||||
"function",
|
||||
"has",
|
||||
"hasOwn",
|
||||
"javascript",
|
||||
"js",
|
||||
"key",
|
||||
"keys",
|
||||
"node.js",
|
||||
"null",
|
||||
"number",
|
||||
"object",
|
||||
"properties",
|
||||
"property",
|
||||
"string",
|
||||
"type",
|
||||
"util",
|
||||
"utilities",
|
||||
"utility",
|
||||
"value"
|
||||
],
|
||||
"verb": {
|
||||
"run": true,
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"related": {
|
||||
"list": [
|
||||
"has-value",
|
||||
"isobject",
|
||||
"is-plain-object"
|
||||
]
|
||||
},
|
||||
"reflinks": [
|
||||
"verb"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
}
|
||||
}
|
||||
}
|
71
network-visualization/node_modules/unset-value/package.json
generated
vendored
Normal file
71
network-visualization/node_modules/unset-value/package.json
generated
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
{
|
||||
"name": "unset-value",
|
||||
"description": "Delete nested properties from an object using dot notation.",
|
||||
"version": "1.0.0",
|
||||
"homepage": "https://github.com/jonschlinkert/unset-value",
|
||||
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
||||
"contributors": [
|
||||
"<wtgtybhertgeghgtwtg@gmail.com> (https://github.com/wtgtybhertgeghgtwtg)",
|
||||
"Jon Schlinkert <jon.schlinkert@sellside.com> (http://twitter.com/jonschlinkert)"
|
||||
],
|
||||
"repository": "jonschlinkert/unset-value",
|
||||
"bugs": {
|
||||
"url": "https://github.com/jonschlinkert/unset-value/issues"
|
||||
},
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"index.js"
|
||||
],
|
||||
"main": "index.js",
|
||||
"engines": {
|
||||
"node": ">=0.10.0"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "mocha"
|
||||
},
|
||||
"dependencies": {
|
||||
"has-value": "^0.3.1",
|
||||
"isobject": "^3.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"gulp-format-md": "^0.1.11",
|
||||
"mocha": "*",
|
||||
"should": "*"
|
||||
},
|
||||
"keywords": [
|
||||
"del",
|
||||
"delete",
|
||||
"key",
|
||||
"object",
|
||||
"omit",
|
||||
"prop",
|
||||
"property",
|
||||
"remove",
|
||||
"unset",
|
||||
"value"
|
||||
],
|
||||
"verb": {
|
||||
"related": {
|
||||
"list": [
|
||||
"get-value",
|
||||
"get-values",
|
||||
"omit-value",
|
||||
"put-value",
|
||||
"set-value",
|
||||
"union-value",
|
||||
"upsert-value"
|
||||
]
|
||||
},
|
||||
"toc": false,
|
||||
"layout": "default",
|
||||
"tasks": [
|
||||
"readme"
|
||||
],
|
||||
"plugins": [
|
||||
"gulp-format-md"
|
||||
],
|
||||
"lint": {
|
||||
"reflinks": true
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user