Template Upload
This commit is contained in:
21
node_modules/promise-finally/LICENSE
generated
vendored
Normal file
21
node_modules/promise-finally/LICENSE
generated
vendored
Normal file
@ -0,0 +1,21 @@
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright (c) 2014 Blake Embrey (hello@blakeembrey.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.
|
2
node_modules/promise-finally/dist/promise-finally.d.ts
generated
vendored
Normal file
2
node_modules/promise-finally/dist/promise-finally.d.ts
generated
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
import Promise = require('any-promise');
|
||||
export default function promiseFinally(value: any, cb: Function): Promise<any>;
|
9
node_modules/promise-finally/dist/promise-finally.js
generated
vendored
Normal file
9
node_modules/promise-finally/dist/promise-finally.js
generated
vendored
Normal file
@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
var Promise = require('any-promise');
|
||||
function promiseFinally(value, cb) {
|
||||
return Promise.resolve(value)
|
||||
.then(function (value) { return Promise.resolve(cb()).then(function () { return value; }); }, function (reason) { return Promise.resolve(cb()).then(function () { return Promise.reject(reason); }); });
|
||||
}
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.default = promiseFinally;
|
||||
//# sourceMappingURL=promise-finally.js.map
|
1
node_modules/promise-finally/dist/promise-finally.js.map
generated
vendored
Normal file
1
node_modules/promise-finally/dist/promise-finally.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"promise-finally.js","sourceRoot":"","sources":["../src/promise-finally.ts"],"names":[],"mappings":";AAAA,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AAEvC,wBAAwC,KAAU,EAAE,EAAY;IAC9D,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,KAAK,CAAC;SAC1B,IAAI,CACH,UAAA,KAAK,IAAI,OAAA,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,KAAK,EAAL,CAAK,CAAC,EAAvC,CAAuC,EAChD,UAAA,MAAM,IAAI,OAAA,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC,IAAI,CAAC,cAAM,OAAA,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,EAAtB,CAAsB,CAAC,EAAxD,CAAwD,CACnE,CAAA;AACL,CAAC;AAND;gCAMC,CAAA","sourcesContent":["import Promise = require('any-promise')\n\nexport default function promiseFinally (value: any, cb: Function) {\n return Promise.resolve(value)\n .then(\n value => Promise.resolve(cb()).then(() => value),\n reason => Promise.resolve(cb()).then(() => Promise.reject(reason))\n )\n}\n"]}
|
0
node_modules/promise-finally/dist/promise-finally.spec.d.ts
generated
vendored
Normal file
0
node_modules/promise-finally/dist/promise-finally.spec.d.ts
generated
vendored
Normal file
23
node_modules/promise-finally/dist/promise-finally.spec.js
generated
vendored
Normal file
23
node_modules/promise-finally/dist/promise-finally.spec.js
generated
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
"use strict";
|
||||
var test = require('blue-tape');
|
||||
var Promise = require('any-promise');
|
||||
var promise_finally_1 = require('./promise-finally');
|
||||
test('promise-finally', function (t) {
|
||||
t.test('run on resolve', function (t) {
|
||||
t.plan(2);
|
||||
function cb() {
|
||||
t.equal(arguments.length, 0, 'should not have any arguments');
|
||||
}
|
||||
return promise_finally_1.default(Promise.resolve('hello'), cb)
|
||||
.then(function (value) { return t.equal(value, 'hello'); });
|
||||
});
|
||||
t.test('run on reject', function (t) {
|
||||
t.plan(2);
|
||||
function cb() {
|
||||
t.equal(arguments.length, 0, 'should not have any arguments');
|
||||
}
|
||||
return promise_finally_1.default(Promise.reject('hello'), cb)
|
||||
.then(null, function (reason) { return t.equal(reason, 'hello'); });
|
||||
});
|
||||
});
|
||||
//# sourceMappingURL=promise-finally.spec.js.map
|
1
node_modules/promise-finally/dist/promise-finally.spec.js.map
generated
vendored
Normal file
1
node_modules/promise-finally/dist/promise-finally.spec.js.map
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"promise-finally.spec.js","sourceRoot":"","sources":["../src/promise-finally.spec.ts"],"names":[],"mappings":";AAAA,IAAO,IAAI,WAAW,WAAW,CAAC,CAAA;AAClC,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AACvC,gCAA2B,mBAE3B,CAAC,CAF6C;AAE9C,IAAI,CAAC,iBAAiB,EAAE,UAAA,CAAC;IACvB,CAAC,CAAC,IAAI,CAAC,gBAAgB,EAAE,UAAA,CAAC;QACxB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAET;YACE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,+BAA+B,CAAC,CAAA;QAC/D,CAAC;QAED,MAAM,CAAC,yBAAc,CAAC,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;aAChD,IAAI,CAAC,UAAA,KAAK,IAAI,OAAA,CAAC,CAAC,KAAK,CAAC,KAAK,EAAE,OAAO,CAAC,EAAvB,CAAuB,CAAC,CAAA;IAC3C,CAAC,CAAC,CAAA;IAEF,CAAC,CAAC,IAAI,CAAC,eAAe,EAAE,UAAA,CAAC;QACvB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAA;QAET;YACE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC,EAAE,+BAA+B,CAAC,CAAA;QAC/D,CAAC;QAED,MAAM,CAAC,yBAAc,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;aAC/C,IAAI,CAAC,IAAI,EAAE,UAAA,MAAM,IAAI,OAAA,CAAC,CAAC,KAAK,CAAC,MAAM,EAAE,OAAO,CAAC,EAAxB,CAAwB,CAAC,CAAA;IACnD,CAAC,CAAC,CAAA;AACJ,CAAC,CAAC,CAAA","sourcesContent":["import test = require('blue-tape')\nimport Promise = require('any-promise')\nimport promiseFinally from './promise-finally'\n\ntest('promise-finally', t => {\n t.test('run on resolve', t => {\n t.plan(2)\n\n function cb () {\n t.equal(arguments.length, 0, 'should not have any arguments')\n }\n\n return promiseFinally(Promise.resolve('hello'), cb)\n .then(value => t.equal(value, 'hello'))\n })\n\n t.test('run on reject', t => {\n t.plan(2)\n\n function cb () {\n t.equal(arguments.length, 0, 'should not have any arguments')\n }\n\n return promiseFinally(Promise.reject('hello'), cb)\n .then(null, reason => t.equal(reason, 'hello'))\n })\n})\n"]}
|
107
node_modules/promise-finally/package.json
generated
vendored
Normal file
107
node_modules/promise-finally/package.json
generated
vendored
Normal file
@ -0,0 +1,107 @@
|
||||
{
|
||||
"_args": [
|
||||
[
|
||||
"promise-finally@^2.0.1",
|
||||
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\typings-core"
|
||||
]
|
||||
],
|
||||
"_from": "promise-finally@>=2.0.1-0 <3.0.0-0",
|
||||
"_id": "promise-finally@2.2.1",
|
||||
"_inCache": true,
|
||||
"_location": "/promise-finally",
|
||||
"_nodeVersion": "6.2.1",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/promise-finally-2.2.1.tgz_1466442232688_0.3707898345310241"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "hello@blakeembrey.com",
|
||||
"name": "blakeembrey"
|
||||
},
|
||||
"_npmVersion": "3.9.3",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "promise-finally",
|
||||
"raw": "promise-finally@^2.0.1",
|
||||
"rawSpec": "^2.0.1",
|
||||
"scope": null,
|
||||
"spec": ">=2.0.1-0 <3.0.0-0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/typings-core"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/promise-finally/-/promise-finally-2.2.1.tgz",
|
||||
"_shasum": "22616c4ba902916e988bd46c54d7caa08910cd77",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "promise-finally@^2.0.1",
|
||||
"_where": "C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\typings-core",
|
||||
"author": {
|
||||
"email": "hello@blakeembrey.com",
|
||||
"name": "Blake Embrey",
|
||||
"url": "http://blakeembrey.me"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/blakeembrey/promise-finally/issues"
|
||||
},
|
||||
"dependencies": {
|
||||
"any-promise": "^1.3.0"
|
||||
},
|
||||
"description": "Simple wrapper to run promise \"finally\" logic",
|
||||
"devDependencies": {
|
||||
"blue-tape": "^0.2.0",
|
||||
"bluebird": "^3.0.5",
|
||||
"istanbul": "^0.4.3",
|
||||
"tap-dot": "^1.0.0",
|
||||
"tslint": "^3.10.2",
|
||||
"tslint-config-standard": "^1.0.0",
|
||||
"typescript": "^1.6.2",
|
||||
"typings": "^1.0.4"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "22616c4ba902916e988bd46c54d7caa08910cd77",
|
||||
"tarball": "https://registry.npmjs.org/promise-finally/-/promise-finally-2.2.1.tgz"
|
||||
},
|
||||
"files": [
|
||||
"LICENSE",
|
||||
"dist/",
|
||||
"typings.json"
|
||||
],
|
||||
"gitHead": "f4ba956c5f0706860bd8fc23c250c34ca2d88875",
|
||||
"homepage": "https://github.com/blakeembrey/promise-finally",
|
||||
"installable": true,
|
||||
"keywords": [
|
||||
"always",
|
||||
"cleanup",
|
||||
"complete",
|
||||
"done",
|
||||
"finally",
|
||||
"promise"
|
||||
],
|
||||
"license": "MIT",
|
||||
"main": "dist/promise-finally.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "blakeembrey",
|
||||
"email": "hello@blakeembrey.com"
|
||||
}
|
||||
],
|
||||
"name": "promise-finally",
|
||||
"optionalDependencies": {},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/blakeembrey/promise-finally.git"
|
||||
},
|
||||
"scripts": {
|
||||
"build": "npm run build-ts",
|
||||
"build-ts": "rm -rf dist/ && tsc",
|
||||
"lint": "tslint \"src/**/*.ts\"",
|
||||
"prepublish": "typings install && npm run build",
|
||||
"test": "npm run lint && npm run build && npm run test-cov",
|
||||
"test-cov": "istanbul cover --print none -x dist/**/*.spec.js blue-tape -- dist/**/*.spec.js | tap-dot",
|
||||
"test-spec": "blue-tape dist/**/*.spec.js"
|
||||
},
|
||||
"typings": "dist/promise-finally.d.ts",
|
||||
"version": "2.2.1"
|
||||
}
|
8
node_modules/promise-finally/typings.json
generated
vendored
Normal file
8
node_modules/promise-finally/typings.json
generated
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
{
|
||||
"devDependencies": {
|
||||
"blue-tape": "github:typings/typed-blue-tape#a4e41a85d6f760e7c60088127968eae7d3a556fa"
|
||||
},
|
||||
"globalDependencies": {
|
||||
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#1c56e368e17bb28ca57577250624ca5bd561aa81"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user