summaryrefslogtreecommitdiffstats
path: root/node_modules/p-finally
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/p-finally')
-rw-r--r--node_modules/p-finally/index.js15
-rw-r--r--node_modules/p-finally/license21
-rw-r--r--node_modules/p-finally/package.json74
-rw-r--r--node_modules/p-finally/readme.md47
4 files changed, 0 insertions, 157 deletions
diff --git a/node_modules/p-finally/index.js b/node_modules/p-finally/index.js
deleted file mode 100644
index 52b7b49..0000000
--- a/node_modules/p-finally/index.js
+++ /dev/null
@@ -1,15 +0,0 @@
-'use strict';
-module.exports = (promise, onFinally) => {
- onFinally = onFinally || (() => {});
-
- return promise.then(
- val => new Promise(resolve => {
- resolve(onFinally());
- }).then(() => val),
- err => new Promise(resolve => {
- resolve(onFinally());
- }).then(() => {
- throw err;
- })
- );
-};
diff --git a/node_modules/p-finally/license b/node_modules/p-finally/license
deleted file mode 100644
index 654d0bf..0000000
--- a/node_modules/p-finally/license
+++ /dev/null
@@ -1,21 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
-
-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.
diff --git a/node_modules/p-finally/package.json b/node_modules/p-finally/package.json
deleted file mode 100644
index 8843ce7..0000000
--- a/node_modules/p-finally/package.json
+++ /dev/null
@@ -1,74 +0,0 @@
-{
- "_from": "p-finally@^1.0.0",
- "_id": "p-finally@1.0.0",
- "_inBundle": false,
- "_integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=",
- "_location": "/p-finally",
- "_phantomChildren": {},
- "_requested": {
- "type": "range",
- "registry": true,
- "raw": "p-finally@^1.0.0",
- "name": "p-finally",
- "escapedName": "p-finally",
- "rawSpec": "^1.0.0",
- "saveSpec": null,
- "fetchSpec": "^1.0.0"
- },
- "_requiredBy": [
- "/execa"
- ],
- "_resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz",
- "_shasum": "3fbcfb15b899a44123b34b6dcc18b724336a2cae",
- "_spec": "p-finally@^1.0.0",
- "_where": "/home/pruss/Dev/3-minute-website/node_modules/execa",
- "author": {
- "name": "Sindre Sorhus",
- "email": "sindresorhus@gmail.com",
- "url": "sindresorhus.com"
- },
- "bugs": {
- "url": "https://github.com/sindresorhus/p-finally/issues"
- },
- "bundleDependencies": false,
- "deprecated": false,
- "description": "`Promise#finally()` ponyfill - Invoked when the promise is settled regardless of outcome",
- "devDependencies": {
- "ava": "*",
- "xo": "*"
- },
- "engines": {
- "node": ">=4"
- },
- "files": [
- "index.js"
- ],
- "homepage": "https://github.com/sindresorhus/p-finally#readme",
- "keywords": [
- "promise",
- "finally",
- "handler",
- "function",
- "async",
- "await",
- "promises",
- "settled",
- "ponyfill",
- "polyfill",
- "shim",
- "bluebird"
- ],
- "license": "MIT",
- "name": "p-finally",
- "repository": {
- "type": "git",
- "url": "git+https://github.com/sindresorhus/p-finally.git"
- },
- "scripts": {
- "test": "xo && ava"
- },
- "version": "1.0.0",
- "xo": {
- "esnext": true
- }
-}
diff --git a/node_modules/p-finally/readme.md b/node_modules/p-finally/readme.md
deleted file mode 100644
index 09ef364..0000000
--- a/node_modules/p-finally/readme.md
+++ /dev/null
@@ -1,47 +0,0 @@
-# p-finally [![Build Status](https://travis-ci.org/sindresorhus/p-finally.svg?branch=master)](https://travis-ci.org/sindresorhus/p-finally)
-
-> [`Promise#finally()`](https://github.com/tc39/proposal-promise-finally) [ponyfill](https://ponyfill.com) - Invoked when the promise is settled regardless of outcome
-
-Useful for cleanup.
-
-
-## Install
-
-```
-$ npm install --save p-finally
-```
-
-
-## Usage
-
-```js
-const pFinally = require('p-finally');
-
-const dir = createTempDir();
-
-pFinally(write(dir), () => cleanup(dir));
-```
-
-
-## API
-
-### pFinally(promise, [onFinally])
-
-Returns a `Promise`.
-
-#### onFinally
-
-Type: `Function`
-
-Note: Throwing or returning a rejected promise will reject `promise` with the rejection reason.
-
-
-## Related
-
-- [p-try](https://github.com/sindresorhus/p-try) - `Promise#try()` ponyfill - Starts a promise chain
-- [More…](https://github.com/sindresorhus/promise-fun)
-
-
-## License
-
-MIT © [Sindre Sorhus](https://sindresorhus.com)