summaryrefslogtreecommitdiffstats
path: root/node_modules/copy-descriptor
diff options
context:
space:
mode:
authorGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
committerGravatar Piotr Russ <mail@pruss.it> 2020-11-18 23:26:45 +0100
commit81ddf9b700bc48a1f8e472209f080f9c1d9a9b09 (patch)
tree8b959d50c5a614cbf9fcb346ed556140374d4b6d /node_modules/copy-descriptor
parent1870f3fdf43707a15fda0f609a021f516f45eb63 (diff)
downloadwebsite_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.gz
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.tar.bz2
website_creator-81ddf9b700bc48a1f8e472209f080f9c1d9a9b09.zip
rm node_modules
Diffstat (limited to 'node_modules/copy-descriptor')
-rw-r--r--node_modules/copy-descriptor/LICENSE21
-rw-r--r--node_modules/copy-descriptor/index.js81
-rw-r--r--node_modules/copy-descriptor/package.json87
3 files changed, 0 insertions, 189 deletions
diff --git a/node_modules/copy-descriptor/LICENSE b/node_modules/copy-descriptor/LICENSE
deleted file mode 100644
index 6525171..0000000
--- a/node_modules/copy-descriptor/LICENSE
+++ /dev/null
@@ -1,21 +0,0 @@
-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.
diff --git a/node_modules/copy-descriptor/index.js b/node_modules/copy-descriptor/index.js
deleted file mode 100644
index 6da21b1..0000000
--- a/node_modules/copy-descriptor/index.js
+++ /dev/null
@@ -1,81 +0,0 @@
-/*!
- * 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]';
-}
-
diff --git a/node_modules/copy-descriptor/package.json b/node_modules/copy-descriptor/package.json
deleted file mode 100644
index 10e534a..0000000
--- a/node_modules/copy-descriptor/package.json
+++ /dev/null
@@ -1,87 +0,0 @@
-{
- "_from": "copy-descriptor@^0.1.0",
- "_id": "copy-descriptor@0.1.1",
- "_inBundle": false,
- "_integrity": "sha1-Z29us8OZl8LuGsOpJP1hJHSPV40=",
- "_location": "/copy-descriptor",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "copy-descriptor@^0.1.0",
- "name": "copy-descriptor",
- "escapedName": "copy-descriptor",
- "rawSpec": "^0.1.0",
- "saveSpec": null,
- "fetchSpec": "^0.1.0"
- },
- "_requiredBy": [
- "/object-copy"
- ],
- "_resolved": "https://registry.npmjs.org/copy-descriptor/-/copy-descriptor-0.1.1.tgz",
- "_shasum": "676f6eb3c39997c2ee1ac3a924fd6124748f578d",
- "_spec": "copy-descriptor@^0.1.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/object-copy",
- "author": {
- "name": "Jon Schlinkert",
- "url": "https://github.com/jonschlinkert"
- },
- "bugs": {
- "url": "https://github.com/jonschlinkert/copy-descriptor/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "Copy a descriptor from object A to object B",
- "devDependencies": {
- "gulp-format-md": "^0.1.9",
- "mocha": "^2.5.3"
- },
- "engines": {
- "node": ">=0.10.0"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/jonschlinkert/copy-descriptor",
- "keywords": [
- "copy",
- "descriptor"
- ],
- "license": "MIT",
- "main": "index.js",
- "name": "copy-descriptor",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/jonschlinkert/copy-descriptor.git"
- },
- "scripts": {
- "test": "mocha"
- },
- "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"
- ]
- },
- "version": "0.1.1"
-}