aboutsummaryrefslogtreecommitdiff
path: root/node_modules/union-value/node_modules/set-value
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/union-value/node_modules/set-value')
-rw-r--r--node_modules/union-value/node_modules/set-value/LICENSE21
-rw-r--r--node_modules/union-value/node_modules/set-value/README.md81
-rw-r--r--node_modules/union-value/node_modules/set-value/index.js63
-rw-r--r--node_modules/union-value/node_modules/set-value/package.json125
4 files changed, 290 insertions, 0 deletions
diff --git a/node_modules/union-value/node_modules/set-value/LICENSE b/node_modules/union-value/node_modules/set-value/LICENSE
new file mode 100644
index 0000000..d734237
--- /dev/null
+++ b/node_modules/union-value/node_modules/set-value/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-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.
diff --git a/node_modules/union-value/node_modules/set-value/README.md b/node_modules/union-value/node_modules/set-value/README.md
new file mode 100644
index 0000000..19fbdbb
--- /dev/null
+++ b/node_modules/union-value/node_modules/set-value/README.md
@@ -0,0 +1,81 @@
+# set-value [![NPM version](https://img.shields.io/npm/v/set-value.svg?style=flat)](https://www.npmjs.com/package/set-value) [![NPM monthly downloads](https://img.shields.io/npm/dm/set-value.svg?style=flat)](https://npmjs.org/package/set-value) [![NPM total downloads](https://img.shields.io/npm/dt/set-value.svg?style=flat)](https://npmjs.org/package/set-value) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/set-value.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/set-value)
+
+> Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save set-value
+```
+
+## Usage
+
+```js
+var set = require('set-value');
+
+var obj = {};
+set(obj, 'a.b.c', 'd');
+console.log(obj);
+//=> {a: {b: c: 'd'}}
+```
+
+## About
+
+### Related projects
+
+* [assign-value](https://www.npmjs.com/package/assign-value): Assign a value or extend a deeply nested property of an object using object path… [more](https://github.com/jonschlinkert/assign-value) | [homepage](https://github.com/jonschlinkert/assign-value "Assign a value or extend a deeply nested property of an object using object path notation.")
+* [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.")
+* [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://github.com/jonschlinkert/has-value) | [homepage](https://github.com/jonschlinkert/has-value "Returns true if a value exists, false if empty. Works with deeply nested values using object paths.")
+* [merge-value](https://www.npmjs.com/package/merge-value): Similar to assign-value but deeply merges object values or nested values using object path/dot notation. | [homepage](https://github.com/jonschlinkert/merge-value "Similar to assign-value but deeply merges object values or nested values using object path/dot notation.")
+* [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.")
+* [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.")
+* [unset-value](https://www.npmjs.com/package/unset-value): Delete nested properties from an object using dot notation. | [homepage](https://github.com/jonschlinkert/unset-value "Delete nested properties from an object using dot notation.")
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 53 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 1 | [vadimdemedes](https://github.com/vadimdemedes) |
+| 1 | [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 22, 2017._ \ No newline at end of file
diff --git a/node_modules/union-value/node_modules/set-value/index.js b/node_modules/union-value/node_modules/set-value/index.js
new file mode 100644
index 0000000..e51ece5
--- /dev/null
+++ b/node_modules/union-value/node_modules/set-value/index.js
@@ -0,0 +1,63 @@
+/*!
+ * set-value <https://github.com/jonschlinkert/set-value>
+ *
+ * Copyright (c) 2014-2015, 2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+'use strict';
+
+var toPath = require('to-object-path');
+var extend = require('extend-shallow');
+var isPlainObject = require('is-plain-object');
+var isObject = require('is-extendable');
+
+module.exports = function(obj, path, val) {
+ if (!isObject(obj)) {
+ return obj;
+ }
+
+ if (Array.isArray(path)) {
+ path = toPath(path);
+ }
+
+ if (typeof path !== 'string') {
+ return obj;
+ }
+
+ var segs = path.split('.');
+ var len = segs.length, i = -1;
+ var res = obj;
+ var last;
+
+ while (++i < len) {
+ var key = segs[i];
+
+ while (key[key.length - 1] === '\\') {
+ key = key.slice(0, -1) + '.' + segs[++i];
+ }
+
+ if (i === len - 1) {
+ last = key;
+ break;
+ }
+
+ if (!isObject(obj[key])) {
+ obj[key] = {};
+ }
+ obj = obj[key];
+ }
+
+ if (obj.hasOwnProperty(last) && isObject(obj[last])) {
+ if (isPlainObject(val)) {
+ extend(obj[last], val);
+ } else {
+ obj[last] = val;
+ }
+
+ } else {
+ obj[last] = val;
+ }
+ return res;
+};
+
diff --git a/node_modules/union-value/node_modules/set-value/package.json b/node_modules/union-value/node_modules/set-value/package.json
new file mode 100644
index 0000000..c650196
--- /dev/null
+++ b/node_modules/union-value/node_modules/set-value/package.json
@@ -0,0 +1,125 @@
+{
+ "_args": [
+ [
+ "set-value@0.4.3",
+ "/home/dstaesse/git/website"
+ ]
+ ],
+ "_development": true,
+ "_from": "set-value@0.4.3",
+ "_id": "set-value@0.4.3",
+ "_inBundle": false,
+ "_integrity": "sha1-fbCPnT0i3H945Trzw79GZuzfzPE=",
+ "_location": "/union-value/set-value",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "version",
+ "registry": true,
+ "raw": "set-value@0.4.3",
+ "name": "set-value",
+ "escapedName": "set-value",
+ "rawSpec": "0.4.3",
+ "saveSpec": null,
+ "fetchSpec": "0.4.3"
+ },
+ "_requiredBy": [
+ "/union-value"
+ ],
+ "_resolved": "https://registry.npmjs.org/set-value/-/set-value-0.4.3.tgz",
+ "_spec": "0.4.3",
+ "_where": "/home/dstaesse/git/website",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/set-value/issues"
+ },
+ "contributors": [
+ {
+ "email": "wtgtybhertgeghgtwtg@gmail.com",
+ "url": "https://github.com/wtgtybhertgeghgtwtg"
+ },
+ {
+ "name": "Jon Schlinkert",
+ "email": "jon.schlinkert@sellside.com",
+ "url": "http://twitter.com/jonschlinkert"
+ },
+ {
+ "name": "Vadim Demedes",
+ "email": "vdemedes@gmail.com",
+ "url": "https://vadimdemedes.com"
+ }
+ ],
+ "dependencies": {
+ "extend-shallow": "^2.0.1",
+ "is-extendable": "^0.1.1",
+ "is-plain-object": "^2.0.1",
+ "to-object-path": "^0.3.0"
+ },
+ "description": "Create nested values and any intermediaries using dot notation (`'a.b.c'`) paths.",
+ "devDependencies": {
+ "gulp-format-md": "^0.1.10",
+ "mocha": "^3.0.2"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/set-value",
+ "keywords": [
+ "get",
+ "has",
+ "hasown",
+ "key",
+ "keys",
+ "nested",
+ "notation",
+ "object",
+ "prop",
+ "properties",
+ "property",
+ "props",
+ "set",
+ "value",
+ "values"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "set-value",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/set-value.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "assign-value",
+ "get-value",
+ "has-value",
+ "merge-value",
+ "omit-value",
+ "set-value",
+ "union-value",
+ "unset-value"
+ ]
+ },
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "0.4.3"
+}