mirror of
https://github.com/bvanroll/yahoo-thing.git
synced 2025-08-29 20:12:46 +00:00
euh
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.
|
26
node_modules/setprototypeof/README.md
generated
vendored
Normal file
26
node_modules/setprototypeof/README.md
generated
vendored
Normal file
@@ -0,0 +1,26 @@
|
||||
# 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
|
||||
```
|
||||
|
||||
TypeScript is also supported:
|
||||
```typescript
|
||||
import setPrototypeOf = require('setprototypeof');
|
||||
```
|
2
node_modules/setprototypeof/index.d.ts
generated
vendored
Normal file
2
node_modules/setprototypeof/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
declare function setPrototypeOf(o: any, proto: object | null): any;
|
||||
export = setPrototypeOf;
|
15
node_modules/setprototypeof/index.js
generated
vendored
Normal file
15
node_modules/setprototypeof/index.js
generated
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
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) {
|
||||
if (!obj.hasOwnProperty(prop)) {
|
||||
obj[prop] = proto[prop];
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
}
|
83
node_modules/setprototypeof/package.json
generated
vendored
Normal file
83
node_modules/setprototypeof/package.json
generated
vendored
Normal file
@@ -0,0 +1,83 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"setprototypeof@1.1.0",
|
||||
"/home/beppe/Github/yahooApi/node_modules/express"
|
||||
]
|
||||
],
|
||||
"_from": "setprototypeof@1.1.0",
|
||||
"_id": "setprototypeof@1.1.0",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/setprototypeof",
|
||||
"_nodeVersion": "8.4.0",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "s3://npm-registry-packages",
|
||||
"tmp": "tmp/setprototypeof-1.1.0.tgz_1505346623089_0.6391460271552205"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "wes@wesleytodd.com",
|
||||
"name": "wesleytodd"
|
||||
},
|
||||
"_npmVersion": "5.3.0",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "setprototypeof",
|
||||
"raw": "setprototypeof@1.1.0",
|
||||
"rawSpec": "1.1.0",
|
||||
"scope": null,
|
||||
"spec": "1.1.0",
|
||||
"type": "version"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/express",
|
||||
"/http-errors"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz",
|
||||
"_shasum": "d0bd85536887b6fe7c0d818cb962d9d91c54e656",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "setprototypeof@1.1.0",
|
||||
"_where": "/home/beppe/Github/yahooApi/node_modules/express",
|
||||
"author": {
|
||||
"name": "Wes Todd"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/wesleytodd/setprototypeof/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "A small polyfill for Object.setprototypeof",
|
||||
"devDependencies": {},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==",
|
||||
"shasum": "d0bd85536887b6fe7c0d818cb962d9d91c54e656",
|
||||
"tarball": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz"
|
||||
},
|
||||
"gitHead": "8fc2c260d8b7da91133edefde49a3df461f220c8",
|
||||
"homepage": "https://github.com/wesleytodd/setprototypeof",
|
||||
"keywords": [
|
||||
"object",
|
||||
"polyfill",
|
||||
"setprototypeof"
|
||||
],
|
||||
"license": "ISC",
|
||||
"main": "index.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "wesleytodd",
|
||||
"email": "wes@wesleytodd.com"
|
||||
}
|
||||
],
|
||||
"name": "setprototypeof",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/wesleytodd/setprototypeof.git"
|
||||
},
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1"
|
||||
},
|
||||
"typings": "index.d.ts",
|
||||
"version": "1.1.0"
|
||||
}
|
Reference in New Issue
Block a user