diff options
Diffstat (limited to 'node_modules/is-promise')
| -rw-r--r-- | node_modules/is-promise/.npmignore | 6 | ||||
| -rw-r--r-- | node_modules/is-promise/.travis.yml | 3 | ||||
| -rw-r--r-- | node_modules/is-promise/LICENSE | 19 | ||||
| -rw-r--r-- | node_modules/is-promise/index.js | 5 | ||||
| -rw-r--r-- | node_modules/is-promise/package.json | 50 | ||||
| -rw-r--r-- | node_modules/is-promise/readme.md | 29 |
6 files changed, 0 insertions, 112 deletions
diff --git a/node_modules/is-promise/.npmignore b/node_modules/is-promise/.npmignore deleted file mode 100644 index aeb7b45..0000000 --- a/node_modules/is-promise/.npmignore +++ /dev/null @@ -1,6 +0,0 @@ -component -build -node_modules -test.js -component.json -.gitignore
\ No newline at end of file diff --git a/node_modules/is-promise/.travis.yml b/node_modules/is-promise/.travis.yml deleted file mode 100644 index 87f8cd9..0000000 --- a/node_modules/is-promise/.travis.yml +++ /dev/null @@ -1,3 +0,0 @@ -language: node_js -node_js: - - "0.10"
\ No newline at end of file diff --git a/node_modules/is-promise/LICENSE b/node_modules/is-promise/LICENSE deleted file mode 100644 index 27cc9f3..0000000 --- a/node_modules/is-promise/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -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.
\ No newline at end of file diff --git a/node_modules/is-promise/index.js b/node_modules/is-promise/index.js deleted file mode 100644 index ca2444c..0000000 --- a/node_modules/is-promise/index.js +++ /dev/null @@ -1,5 +0,0 @@ -module.exports = isPromise; - -function isPromise(obj) { - return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function'; -} diff --git a/node_modules/is-promise/package.json b/node_modules/is-promise/package.json deleted file mode 100644 index fcb37ff..0000000 --- a/node_modules/is-promise/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "_from": "is-promise@^2.1.0", - "_id": "[email protected]", - "_inBundle": false, - "_integrity": "sha1-eaKp7OfwlugPNtKy87wWwf9L8/o=", - "_location": "/is-promise", - "_phantomChildren": {}, - "_requested": { - "type": "range", - "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": [ - "/lowdb" - ], - "_resolved": "https://registry.npmjs.org/is-promise/-/is-promise-2.1.0.tgz", - "_shasum": "79a2a9ece7f096e80f36d2b2f3bc16c1ff4bf3fa", - "_spec": "is-promise@^2.1.0", - "_where": "E:\\Documents\\GitHub\\s5nical\\node_modules\\lowdb", - "author": { - "name": "ForbesLindesay" - }, - "bugs": { - "url": "https://github.com/then/is-promise/issues" - }, - "bundleDependencies": false, - "deprecated": false, - "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" -} diff --git a/node_modules/is-promise/readme.md b/node_modules/is-promise/readme.md deleted file mode 100644 index 50d5d98..0000000 --- a/node_modules/is-promise/readme.md +++ /dev/null @@ -1,29 +0,0 @@ -<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 - - [](https://travis-ci.org/then/is-promise) - [](https://gemnasium.com/then/is-promise) - [](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 |