This commit is contained in:
tatianamac
2019-11-26 14:50:43 -08:00
parent 8a55660ed0
commit 6d5445ecc5
13894 changed files with 2233957 additions and 0 deletions

6
node_modules/is-promise/.npmignore generated vendored Normal file
View File

@ -0,0 +1,6 @@
component
build
node_modules
test.js
component.json
.gitignore

3
node_modules/is-promise/.travis.yml generated vendored Normal file
View File

@ -0,0 +1,3 @@
language: node_js
node_js:
- "0.10"

19
node_modules/is-promise/LICENSE generated vendored Normal file
View File

@ -0,0 +1,19 @@
Copyright (c) 2014 Forbes Lindesay
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.

5
node_modules/is-promise/index.js generated vendored Normal file
View File

@ -0,0 +1,5 @@
module.exports = isPromise;
function isPromise(obj) {
return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
}

53
node_modules/is-promise/package.json generated vendored Normal file
View File

@ -0,0 +1,53 @@
{
"_args": [
[
"is-promise@2.1.0",
"/Users/tatiana/selfdefined"
]
],
"_from": "is-promise@2.1.0",
"_id": "is-promise@2.1.0",
"_inBundle": false,
"_integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=",
"_location": "/is-promise",
"_phantomChildren": {},
"_requested": {
"type": "version",
"registry": true,
"raw": "is-promise@2.1.0",
"name": "is-promise",
"escapedName": "is-promise",
"rawSpec": "2.1.0",
"saveSpec": null,
"fetchSpec": "2.1.0"
},
"_requiredBy": [
"/jstransformer"
],
"_resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz",
"_spec": "2.1.0",
"_where": "/Users/tatiana/selfdefined",
"author": {
"name": "ForbesLindesay"
},
"bugs": {
"url": "https://github.com/then/is-promise/issues"
},
"description": "Test whether an object looks like a promises-a+ promise",
"devDependencies": {
"better-assert": "~0.1.0",
"mocha": "~1.7.4"
},
"homepage": "https://github.com/then/is-promise#readme",
"license": "MIT",
"main": "index.js",
"name": "is-promise",
"repository": {
"type": "git",
"url": "git+https://github.com/then/is-promise.git"
},
"scripts": {
"test": "mocha -R spec"
},
"version": "2.1.0"
}

29
node_modules/is-promise/readme.md generated vendored Normal file
View File

@ -0,0 +1,29 @@
<a href="http://promises-aplus.github.com/promises-spec"><img src="http://promises-aplus.github.com/promises-spec/assets/logo-small.png" align="right" /></a>
# is-promise
Test whether an object looks like a promises-a+ promise
[![Build Status](https://img.shields.io/travis/then/is-promise/master.svg)](https://travis-ci.org/then/is-promise)
[![Dependency Status](https://img.shields.io/gemnasium/then/is-promise.svg)](https://gemnasium.com/then/is-promise)
[![NPM version](https://img.shields.io/npm/v/is-promise.svg)](https://www.npmjs.org/package/is-promise)
## Installation
$ npm install is-promise
You can also use it client side via npm.
## API
```javascript
var isPromise = require('is-promise');
isPromise({then:function () {...}});//=>true
isPromise(null);//=>false
isPromise({});//=>false
isPromise({then: true})//=>false
```
## License
MIT