aboutsummaryrefslogtreecommitdiffstats
path: root/node_modules/is-promise
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--node_modules/is-promise/LICENSE19
-rw-r--r--node_modules/is-promise/index.d.ts2
-rw-r--r--node_modules/is-promise/index.js6
-rw-r--r--node_modules/is-promise/index.mjs3
-rw-r--r--node_modules/is-promise/package.json30
-rw-r--r--node_modules/is-promise/readme.md33
6 files changed, 0 insertions, 93 deletions
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.d.ts b/node_modules/is-promise/index.d.ts
deleted file mode 100644
index 2107b42..0000000
--- a/node_modules/is-promise/index.d.ts
+++ /dev/null
@@ -1,2 +0,0 @@
-declare function isPromise<T, S>(obj: PromiseLike<T> | S): obj is PromiseLike<T>;
-export default isPromise;
diff --git a/node_modules/is-promise/index.js b/node_modules/is-promise/index.js
deleted file mode 100644
index 1bed087..0000000
--- a/node_modules/is-promise/index.js
+++ /dev/null
@@ -1,6 +0,0 @@
-module.exports = isPromise;
-module.exports.default = isPromise;
-
-function isPromise(obj) {
- return !!obj && (typeof obj === 'object' || typeof obj === 'function') && typeof obj.then === 'function';
-}
diff --git a/node_modules/is-promise/index.mjs b/node_modules/is-promise/index.mjs
deleted file mode 100644
index bf9e99b..0000000
--- a/node_modules/is-promise/index.mjs
+++ /dev/null
@@ -1,3 +0,0 @@
-export default 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 2a3c540..0000000
--- a/node_modules/is-promise/package.json
+++ /dev/null
@@ -1,30 +0,0 @@
-{
- "name": "is-promise",
- "version": "4.0.0",
- "description": "Test whether an object looks like a promises-a+ promise",
- "main": "./index.js",
- "scripts": {
- "test": "node test"
- },
- "files": [
- "index.js",
- "index.mjs",
- "index.d.ts"
- ],
- "exports": {
- ".": [
- {
- "import": "./index.mjs",
- "require": "./index.js",
- "default": "./index.js"
- },
- "./index.js"
- ]
- },
- "repository": {
- "type": "git",
- "url": "https://github.com/then/is-promise.git"
- },
- "author": "ForbesLindesay",
- "license": "MIT"
-}
diff --git a/node_modules/is-promise/readme.md b/node_modules/is-promise/readme.md
deleted file mode 100644
index d53d34b..0000000
--- a/node_modules/is-promise/readme.md
+++ /dev/null
@@ -1,33 +0,0 @@
-<a href="https://promisesaplus.com/"><img src="https://promisesaplus.com/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/david/then/is-promise.svg)](https://david-dm.org/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
-
-```typescript
-import isPromise from 'is-promise';
-
-isPromise(Promise.resolve());//=>true
-isPromise({then:function () {...}});//=>true
-isPromise(null);//=>false
-isPromise({});//=>false
-isPromise({then: true})//=>false
-```
-
-## License
-
- MIT