summaryrefslogtreecommitdiffstats
path: root/node_modules/mixin-object
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-16 00:10:28 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-16 00:10:28 +0100
commite06ec920f7a5d784e674c4c4b4e6d1da3dc7391d (patch)
tree55713f725f77b44ebfec86e4eec3ce33e71458ca /node_modules/mixin-object
downloadwebsite_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.tar.gz
website_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.tar.bz2
website_creator-e06ec920f7a5d784e674c4c4b4e6d1da3dc7391d.zip
api, login, auth
Diffstat (limited to 'node_modules/mixin-object')
-rw-r--r--node_modules/mixin-object/LICENSE21
-rw-r--r--node_modules/mixin-object/README.md75
-rw-r--r--node_modules/mixin-object/index.js36
-rw-r--r--node_modules/mixin-object/node_modules/for-in/LICENSE21
-rw-r--r--node_modules/mixin-object/node_modules/for-in/README.md85
-rw-r--r--node_modules/mixin-object/node_modules/for-in/index.js16
-rw-r--r--node_modules/mixin-object/node_modules/for-in/package.json102
-rw-r--r--node_modules/mixin-object/package.json92
8 files changed, 448 insertions, 0 deletions
diff --git a/node_modules/mixin-object/LICENSE b/node_modules/mixin-object/LICENSE
new file mode 100644
index 0000000..fa30c4c
--- /dev/null
+++ b/node_modules/mixin-object/LICENSE
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (c) 2014-2015, 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/mixin-object/README.md b/node_modules/mixin-object/README.md
new file mode 100644
index 0000000..6553853
--- /dev/null
+++ b/node_modules/mixin-object/README.md
@@ -0,0 +1,75 @@
+# mixin-object [![NPM version](https://badge.fury.io/js/mixin-object.svg)](http://badge.fury.io/js/mixin-object)
+
+> Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.
+
+If you only want to combine own-properties, use [extend-shallow](https://github.com/jonschlinkert/extend-shallow).
+
+## Install
+
+Install with [npm](https://www.npmjs.com/)
+
+```sh
+$ npm i mixin-object --save
+```
+
+Install with [bower](http://bower.io/)
+
+```sh
+$ bower install mixin-object --save
+```
+
+## Usage
+
+```js
+var mixin = require('mixin-object');
+
+var obj = {c: 'c'};
+var foo = mixin({a: 'a'}, {b: 'b'});
+console.log(foo);
+//=> {c: 'c', a: 'a', b: 'b'}
+console.log(obj);
+//=> {c: 'c'}
+
+mixin({}, {a: 'a'}, {b: 'b'});
+//=> {a: 'a', b: 'b'}
+```
+
+## Related
+
+* [assign-deep](https://github.com/jonschlinkert/assign-deep): Deeply assign the enumerable properties of source objects to a destination object.
+* [defaults-deep](https://github.com/jonschlinkert/defaults-deep): Like `extend` but recursively copies only the missing properties/values to the target object.
+* [extend-shallow](https://github.com/jonschlinkert/extend-shallow): Extend an object with the properties of additional objects. node.js/javascript util.
+* [for-own](https://github.com/jonschlinkert/for-own): Iterate over the own enumerable properties of an object, and return an object with properties… [more](https://github.com/jonschlinkert/for-own)
+* [for-in](https://github.com/jonschlinkert/for-in): Iterate over the own and inherited enumerable properties of an objecte, and return an object… [more](https://github.com/jonschlinkert/for-in)
+* [isobject](https://github.com/jonschlinkert/isobject): Returns true if the value is an object and not an array or null.
+* [is-plain-object](https://github.com/jonschlinkert/is-plain-object): Returns true if an object was created by the `Object` constructor.
+* [mixin-deep](https://github.com/jonschlinkert/mixin-deep): Deeply mix the properties of objects into the first object. Like merge-deep, but doesn't clone.
+* [merge-deep](https://github.com/jonschlinkert/merge-deep): Recursively merge values in a javascript object.
+
+## Running tests
+
+Install dev dependencies:
+
+```sh
+$ npm i -d && npm test
+```
+
+## Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](https://github.com/jonschlinkert/mixin-object/issues/new)
+
+## Author
+
+**Jon Schlinkert**
+
++ [github/jonschlinkert](https://github.com/jonschlinkert)
++ [twitter/jonschlinkert](http://twitter.com/jonschlinkert)
+
+## License
+
+Copyright © 2014-2015 [Jon Schlinkert](https://github.com/jonschlinkert)
+Released under the MIT license.
+
+***
+
+_This file was generated by [verb-cli](https://github.com/assemble/verb-cli) on July 05, 2015._ \ No newline at end of file
diff --git a/node_modules/mixin-object/index.js b/node_modules/mixin-object/index.js
new file mode 100644
index 0000000..fca0107
--- /dev/null
+++ b/node_modules/mixin-object/index.js
@@ -0,0 +1,36 @@
+'use strict';
+
+var isObject = require('is-extendable');
+var forIn = require('for-in');
+
+function mixin(target, objects) {
+ if (!isObject(target)) {
+ throw new TypeError('mixin-object expects the first argument to be an object.');
+ }
+ var len = arguments.length, i = 0;
+ while (++i < len) {
+ var obj = arguments[i];
+ if (isObject(obj)) {
+ forIn(obj, copy, target);
+ }
+ }
+ return target;
+}
+
+/**
+ * copy properties from the source object to the
+ * target object.
+ *
+ * @param {*} `value`
+ * @param {String} `key`
+ */
+
+function copy(value, key) {
+ this[key] = value;
+}
+
+/**
+ * Expose `mixin`
+ */
+
+module.exports = mixin; \ No newline at end of file
diff --git a/node_modules/mixin-object/node_modules/for-in/LICENSE b/node_modules/mixin-object/node_modules/for-in/LICENSE
new file mode 100644
index 0000000..d734237
--- /dev/null
+++ b/node_modules/mixin-object/node_modules/for-in/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/mixin-object/node_modules/for-in/README.md b/node_modules/mixin-object/node_modules/for-in/README.md
new file mode 100644
index 0000000..1173630
--- /dev/null
+++ b/node_modules/mixin-object/node_modules/for-in/README.md
@@ -0,0 +1,85 @@
+# for-in [![NPM version](https://img.shields.io/npm/v/for-in.svg?style=flat)](https://www.npmjs.com/package/for-in) [![NPM monthly downloads](https://img.shields.io/npm/dm/for-in.svg?style=flat)](https://npmjs.org/package/for-in) [![NPM total downloads](https://img.shields.io/npm/dt/for-in.svg?style=flat)](https://npmjs.org/package/for-in) [![Linux Build Status](https://img.shields.io/travis/jonschlinkert/for-in.svg?style=flat&label=Travis)](https://travis-ci.org/jonschlinkert/for-in)
+
+> Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js
+
+## Install
+
+Install with [npm](https://www.npmjs.com/):
+
+```sh
+$ npm install --save for-in
+```
+
+## Usage
+
+```js
+var forIn = require('for-in');
+
+var obj = {a: 'foo', b: 'bar', c: 'baz'};
+var values = [];
+var keys = [];
+
+forIn(obj, function (value, key, o) {
+ keys.push(key);
+ values.push(value);
+});
+
+console.log(keys);
+//=> ['a', 'b', 'c'];
+
+console.log(values);
+//=> ['foo', 'bar', 'baz'];
+```
+
+## About
+
+### Related projects
+
+* [arr-flatten](https://www.npmjs.com/package/arr-flatten): Recursively flatten an array or arrays. This is the fastest implementation of array flatten. | [homepage](https://github.com/jonschlinkert/arr-flatten)
+* [collection-map](https://www.npmjs.com/package/collection-map): Returns an array of mapped values from an array or object. | [homepage](https://github.com/jonschlinkert/collection-map)
+* [for-own](https://www.npmjs.com/package/for-own): Iterate over the own enumerable properties of an object, and return an object with properties… [more](https://github.com/jonschlinkert/for-own) | [homepage](https://github.com/jonschlinkert/for-own)
+
+### Contributing
+
+Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
+
+### Contributors
+
+| **Commits** | **Contributor** |
+| --- | --- |
+| 11 | [jonschlinkert](https://github.com/jonschlinkert) |
+| 2 | [paulirish](https://github.com/paulirish) |
+
+### 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 26, 2017._ \ No newline at end of file
diff --git a/node_modules/mixin-object/node_modules/for-in/index.js b/node_modules/mixin-object/node_modules/for-in/index.js
new file mode 100644
index 0000000..0b5f95f
--- /dev/null
+++ b/node_modules/mixin-object/node_modules/for-in/index.js
@@ -0,0 +1,16 @@
+/*!
+ * for-in <https://github.com/jonschlinkert/for-in>
+ *
+ * Copyright (c) 2014-2017, Jon Schlinkert.
+ * Released under the MIT License.
+ */
+
+'use strict';
+
+module.exports = function forIn(obj, fn, thisArg) {
+ for (var key in obj) {
+ if (fn.call(thisArg, obj[key], key, obj) === false) {
+ break;
+ }
+ }
+};
diff --git a/node_modules/mixin-object/node_modules/for-in/package.json b/node_modules/mixin-object/node_modules/for-in/package.json
new file mode 100644
index 0000000..7e8c1aa
--- /dev/null
+++ b/node_modules/mixin-object/node_modules/for-in/package.json
@@ -0,0 +1,102 @@
+{
+ "_from": "for-in@^0.1.3",
+ "_id": "for-in@0.1.8",
+ "_inBundle": false,
+ "_integrity": "sha1-2Hc5COMSVhCZUrH9ubP6hn0ndeE=",
+ "_location": "/mixin-object/for-in",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "for-in@^0.1.3",
+ "name": "for-in",
+ "escapedName": "for-in",
+ "rawSpec": "^0.1.3",
+ "saveSpec": null,
+ "fetchSpec": "^0.1.3"
+ },
+ "_requiredBy": [
+ "/mixin-object"
+ ],
+ "_resolved": "https://registry.npmjs.org/for-in/-/for-in-0.1.8.tgz",
+ "_shasum": "d8773908e31256109952b1fdb9b3fa867d2775e1",
+ "_spec": "for-in@^0.1.3",
+ "_where": "/home/pruss/Dev/3-minute-website/node_modules/mixin-object",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/for-in/issues"
+ },
+ "bundleDependencies": false,
+ "contributors": [
+ {
+ "name": "Jon Schlinkert",
+ "email": "jon.schlinkert@sellside.com",
+ "url": "http://twitter.com/jonschlinkert"
+ },
+ {
+ "name": "Paul Irish",
+ "url": "http://paulirish.com"
+ }
+ ],
+ "deprecated": false,
+ "description": "Iterate over the own and inherited enumerable properties of an object, and return an object with properties that evaluate to true from the callback. Exit early by returning `false`. JavaScript/Node.js",
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/for-in",
+ "keywords": [
+ "for",
+ "for-in",
+ "for-own",
+ "has",
+ "has-own",
+ "hasOwn",
+ "in",
+ "key",
+ "keys",
+ "object",
+ "own",
+ "value"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "for-in",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/for-in.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verb": {
+ "run": true,
+ "toc": false,
+ "layout": "default",
+ "tasks": [
+ "readme"
+ ],
+ "plugins": [
+ "gulp-format-md"
+ ],
+ "related": {
+ "list": [
+ "arr-flatten",
+ "for-own",
+ "collection-map"
+ ]
+ },
+ "reflinks": [
+ "verb"
+ ],
+ "lint": {
+ "reflinks": true
+ }
+ },
+ "version": "0.1.8"
+}
diff --git a/node_modules/mixin-object/package.json b/node_modules/mixin-object/package.json
new file mode 100644
index 0000000..b854d38
--- /dev/null
+++ b/node_modules/mixin-object/package.json
@@ -0,0 +1,92 @@
+{
+ "_from": "mixin-object@^2.0.1",
+ "_id": "mixin-object@2.0.1",
+ "_inBundle": false,
+ "_integrity": "sha1-T7lJRB2rGCVA8f4DW6YOGUel5X4=",
+ "_location": "/mixin-object",
+ "_phantomChildren": {},
+ "_requested": {
+ "type": "range",
+ "registry": true,
+ "raw": "mixin-object@^2.0.1",
+ "name": "mixin-object",
+ "escapedName": "mixin-object",
+ "rawSpec": "^2.0.1",
+ "saveSpec": null,
+ "fetchSpec": "^2.0.1"
+ },
+ "_requiredBy": [
+ "/shallow-clone"
+ ],
+ "_resolved": "https://registry.npmjs.org/mixin-object/-/mixin-object-2.0.1.tgz",
+ "_shasum": "4fb949441dab182540f1fe035ba60e1947a5e57e",
+ "_spec": "mixin-object@^2.0.1",
+ "_where": "/home/pruss/Dev/3-minute-website/node_modules/shallow-clone",
+ "author": {
+ "name": "Jon Schlinkert",
+ "url": "https://github.com/jonschlinkert"
+ },
+ "bugs": {
+ "url": "https://github.com/jonschlinkert/mixin-object/issues"
+ },
+ "bundleDependencies": false,
+ "dependencies": {
+ "for-in": "^0.1.3",
+ "is-extendable": "^0.1.1"
+ },
+ "deprecated": false,
+ "description": "Mixin the own and inherited properties of other objects onto the first object. Pass an empty object as the first arg to shallow clone.",
+ "devDependencies": {
+ "mocha": "^2.2.5",
+ "should": "^7.0.1"
+ },
+ "engines": {
+ "node": ">=0.10.0"
+ },
+ "files": [
+ "index.js"
+ ],
+ "homepage": "https://github.com/jonschlinkert/mixin-object",
+ "keywords": [
+ "assign",
+ "copy",
+ "extend",
+ "key",
+ "merge",
+ "mixin",
+ "object",
+ "objects",
+ "prop",
+ "properties",
+ "property",
+ "shallow",
+ "util",
+ "value"
+ ],
+ "license": "MIT",
+ "main": "index.js",
+ "name": "mixin-object",
+ "repository": {
+ "type": "git",
+ "url": "git+https://github.com/jonschlinkert/mixin-object.git"
+ },
+ "scripts": {
+ "test": "mocha"
+ },
+ "verbiage": {
+ "related": {
+ "list": [
+ "defaults-deep",
+ "extend-shallow",
+ "assign-deep",
+ "mixin-deep",
+ "merge-deep",
+ "isobject",
+ "is-plain-object",
+ "for-own",
+ "for-in"
+ ]
+ }
+ },
+ "version": "2.0.1"
+}