Template Upload
This commit is contained in:
13
node_modules/setprototypeof/LICENSE
generated
vendored
Normal file
13
node_modules/setprototypeof/LICENSE
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
Copyright (c) 2015, Wes Todd
|
||||
|
||||
Permission to use, copy, modify, and/or distribute this software for any
|
||||
purpose with or without fee is hereby granted, provided that the above
|
||||
copyright notice and this permission notice appear in all copies.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
||||
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
||||
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
|
||||
SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
||||
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
|
||||
OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
|
||||
CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
21
node_modules/setprototypeof/README.md
generated
vendored
Normal file
21
node_modules/setprototypeof/README.md
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
# Polyfill for `Object.setPrototypeOf`
|
||||
|
||||
A simple cross platform implementation to set the prototype of an instianted object. Supports all modern browsers and at least back to IE8.
|
||||
|
||||
## Usage:
|
||||
|
||||
```
|
||||
$ npm install --save setprototypeof
|
||||
```
|
||||
|
||||
```javascript
|
||||
var setPrototypeOf = require('setprototypeof');
|
||||
|
||||
var obj = {};
|
||||
setPrototypeOf(obj, {
|
||||
foo: function() {
|
||||
return 'bar';
|
||||
}
|
||||
});
|
||||
obj.foo(); // bar
|
||||
```
|
13
node_modules/setprototypeof/index.js
generated
vendored
Normal file
13
node_modules/setprototypeof/index.js
generated
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
module.exports = Object.setPrototypeOf || ({__proto__:[]} instanceof Array ? setProtoOf : mixinProperties);
|
||||
|
||||
function setProtoOf(obj, proto) {
|
||||
obj.__proto__ = proto;
|
||||
return obj;
|
||||
}
|
||||
|
||||
function mixinProperties(obj, proto) {
|
||||
for (var prop in proto) {
|
||||
obj[prop] = proto[prop];
|
||||
}
|
||||
return obj;
|
||||
}
|
79
node_modules/setprototypeof/package.json
generated
vendored
Normal file
79
node_modules/setprototypeof/package.json
generated
vendored
Normal file
@ -0,0 +1,79 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"setprototypeof@1.0.2",
|
||||
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\http-errors"
|
||||
]
|
||||
],
|
||||
"_from": "setprototypeof@1.0.2",
|
||||
"_id": "setprototypeof@1.0.2",
|
||||
"_inCache": true,
|
||||
"_location": "/setprototypeof",
|
||||
"_nodeVersion": "7.0.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/setprototypeof-1.0.2.tgz_1479056139581_0.43114364007487893"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "wes@wesleytodd.com",
|
||||
"name": "wesleytodd"
|
||||
},
|
||||
"_npmVersion": "3.10.8",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "setprototypeof",
|
||||
"raw": "setprototypeof@1.0.2",
|
||||
"rawSpec": "1.0.2",
|
||||
"scope": null,
|
||||
"spec": "1.0.2",
|
||||
"type": "version"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/http-errors"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.2.tgz",
|
||||
"_shasum": "81a552141ec104b88e89ce383103ad5c66564d08",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "setprototypeof@1.0.2",
|
||||
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\http-errors",
|
||||
"author": {
|
||||
"name": "Wes Todd"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wesleytodd/setprototypeof/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "A small polyfill for Object.setprototypeof",
|
||||
"devDependencies": {},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "81a552141ec104b88e89ce383103ad5c66564d08",
|
||||
"tarball": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.0.2.tgz"
|
||||
},
|
||||
"gitHead": "34da239ae7ab69b7b42791d5b928379ce51a0ff2",
|
||||
"homepage": "https://github.com/wesleytodd/setprototypeof",
|
||||
"installable": true,
|
||||
"keywords": [
|
||||
"object",
|
||||
"polyfill",
|
||||
"setprototypeof"
|
||||
],
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wesleytodd",
|
||||
"email": "wes@wesleytodd.com"
|
||||
}
|
||||
],
|
||||
"name": "setprototypeof",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wesleytodd/setprototypeof.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"version": "1.0.2"
|
||||
}
|
Reference in New Issue
Block a user