Template Upload

This commit is contained in:
SOUTHERNCO\x2mjbyrn
2017-05-17 13:45:25 -04:00
parent 415b9c25f3
commit 7efe7605b8
11476 changed files with 2170865 additions and 34 deletions

13
node_modules/popsicle-retry/LICENSE generated vendored Normal file
View File

@ -0,0 +1,13 @@
Copyright 2015 Blake Embrey
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

47
node_modules/popsicle-retry/README.md generated vendored Normal file
View File

@ -0,0 +1,47 @@
# Popsicle Retry
[![NPM version][npm-image]][npm-url]
[![NPM downloads][downloads-image]][downloads-url]
[![Build status][travis-image]][travis-url]
[![Test coverage][coveralls-image]][coveralls-url]
> Enable request retries for Popsicle (>= 3.2).
## Installation
```sh
npm install popsicle-retry --save
```
## Usage
```js
var request = require('popsicle').request
var retry = require('popsicle-retry')
request('http://example.com')
.use(retry())
.then(...)
```
### Options
Accepts a function that returns a number of milliseconds to back off for, or `-1`. Defaults to `popsicleRetry.retries(5, retryAllowed)`.
### Methods
* **retryAllowed(request)** Check if a request should be attempted again. Defaults to `5xx` and unavailable errors.
* **retries(count, isRetryAllowed)** An exponential backoff function, defaulting to 5 retries.
## License
Apache 2.0
[npm-image]: https://img.shields.io/npm/v/popsicle-retry.svg?style=flat
[npm-url]: https://npmjs.org/package/popsicle-retry
[downloads-image]: https://img.shields.io/npm/dm/popsicle-retry.svg?style=flat
[downloads-url]: https://npmjs.org/package/popsicle-retry
[travis-image]: https://img.shields.io/travis/blakeembrey/popsicle-retry.svg?style=flat
[travis-url]: https://travis-ci.org/blakeembrey/popsicle-retry
[coveralls-image]: https://img.shields.io/coveralls/blakeembrey/popsicle-retry.svg?style=flat
[coveralls-url]: https://coveralls.io/r/blakeembrey/popsicle-retry?branch=master

7
node_modules/popsicle-retry/dist/index.d.ts generated vendored Normal file
View File

@ -0,0 +1,7 @@
import { Request } from 'popsicle';
declare function popsicleRetry(retries?: (request: Request, iter: number) => number): (self: Request) => void;
declare namespace popsicleRetry {
function retryAllowed(request: Request): boolean;
function retries(count?: number, isRetryAllowed?: typeof retryAllowed): (request: Request, iter: number) => number;
}
export = popsicleRetry;

48
node_modules/popsicle-retry/dist/index.js generated vendored Normal file
View File

@ -0,0 +1,48 @@
"use strict";
var Promise = require('any-promise');
function popsicleRetry(retries) {
if (retries === void 0) { retries = popsicleRetry.retries(); }
return function (self) {
var iter = 0;
self.always(function (request) {
var delay = retries(request, ++iter);
if (delay > 0) {
return new Promise(function (resolve) {
setTimeout(function () {
resolve(request.clone());
}, delay);
})
.then(function (response) {
request.response = response;
});
}
});
};
}
var popsicleRetry;
(function (popsicleRetry) {
function retryAllowed(request) {
if (request.errored) {
return request.errored.code === 'EUNAVAILABLE';
}
if (request.response) {
return request.response.statusType() === 5;
}
return false;
}
popsicleRetry.retryAllowed = retryAllowed;
function retries(count, isRetryAllowed) {
if (count === void 0) { count = 5; }
if (isRetryAllowed === void 0) { isRetryAllowed = retryAllowed; }
return function (request, iter) {
if (iter > count || !isRetryAllowed(request)) {
return -1;
}
var noise = Math.random() * 100;
return (1 << iter) * 1000 + noise;
};
}
popsicleRetry.retries = retries;
})(popsicleRetry || (popsicleRetry = {}));
module.exports = popsicleRetry;
//# sourceMappingURL=index.js.map

1
node_modules/popsicle-retry/dist/index.js.map generated vendored Normal file
View File

@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,IAAO,OAAO,WAAW,aAAa,CAAC,CAAA;AAMvC,uBAAwB,OAAiC;IAAjC,uBAAiC,GAAjC,UAAU,aAAa,CAAC,OAAO,EAAE;IACvD,MAAM,CAAC,UAAU,IAAa;QAC5B,IAAI,IAAI,GAAG,CAAC,CAAA;QAEZ,IAAI,C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,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,GAAG,GAAG,CAAA;YACjC,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,IAAI,GAAG,KAAK,CAAA;QACnC,CAAC,CAAA;IACH,CAAC;IAVe,qBAAO,UAUtB,CAAA;AACH,CAAC,EA9BS,aAAa,KAAb,aAAa,QA8BtB;AAED,iBAAS,aAAa,CAAA"}

106
node_modules/popsicle-retry/package.json generated vendored Normal file
View File

@ -0,0 +1,106 @@
{
"_args": [
[
"popsicle-retry@^2.0.0",
"C:\\Users\\x2mjbyrn\\Source\\Repos\\Skeleton\\node_modules\\typings-core"
]
],
"_from": "popsicle-retry@>=2.0.0-0 <3.0.0-0",
"_id": "popsicle-retry@2.0.0",
"_inCache": true,
"_location": "/popsicle-retry",
"_nodeVersion": "5.8.0",
"_npmOperationalInternal": {
"host": "packages-12-west.internal.npmjs.com",
"tmp": "tmp/popsicle-retry-2.0.0.tgz_1459728301238_0.8547375686466694"
},
"_npmUser": {
"email": "hello@blakeembrey.com",
"name": "blakeembrey"
},
"_npmVersion": "3.7.3",
"_phantomChildren": {},
"_requested": {
"name": "popsicle-retry",
"raw": "popsicle-retry@^2.0.0",
"rawSpec": "^2.0.0",
"scope": null,
"spec": ">=2.0.0-0 <3.0.0-0",
"type": "range"
},
"_requiredBy": [
"/typings-core"
],
"_resolved": "https://registry.npmjs.org/popsicle-retry/-/popsicle-retry-2.0.0.tgz",
"_shasum": "a0b44558c7b5064b50e4abd0a059a199b6ad1a5f",
"_shrinkwrap": null,
"_spec": "popsicle-retry@^2.0.0",
"_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/popsicle-retry/issues"
},
"dependencies": {
"any-promise": "^1.1.0"
},
"description": "Enable request retries for Popsicle",
"devDependencies": {
"blue-tape": "^0.2.0",
"bluebird": "^3.2.2",
"express": "^4.13.4",
"istanbul": "^0.4.2",
"popsicle": "^5.0.1",
"tap-spec": "^4.1.1",
"tslint": "^3.1.1",
"typescript": "^1.7.3",
"typings": "^0.7.11"
},
"directories": {},
"dist": {
"shasum": "a0b44558c7b5064b50e4abd0a059a199b6ad1a5f",
"tarball": "https://registry.npmjs.org/popsicle-retry/-/popsicle-retry-2.0.0.tgz"
},
"files": [
"LICENSE",
"dist/",
"typings.json"
],
"gitHead": "978d5ef2a94ffba5858b5e479b0404dcd583df3e",
"homepage": "https://github.com/blakeembrey/popsicle-retry",
"installable": true,
"keywords": [
"5xx",
"error",
"fail",
"http",
"popsicle",
"retry"
],
"license": "Apache-2.0",
"main": "dist/index.js",
"maintainers": [
{
"name": "blakeembrey",
"email": "hello@blakeembrey.com"
}
],
"name": "popsicle-retry",
"optionalDependencies": {},
"repository": {
"type": "git",
"url": "git://github.com/blakeembrey/popsicle-retry.git"
},
"scripts": {
"build": "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 blue-tape -- test/index.js | tap-spec",
"test-spec": "blue-tape test/index.js | tap-spec"
},
"version": "2.0.0"
}

12
node_modules/popsicle-retry/typings.json generated vendored Normal file
View File

@ -0,0 +1,12 @@
{
"devDependencies": {
"blue-tape": "github:typings/typed-blue-tape#a4e41a85d6f760e7c60088127968eae7d3a556fa",
"popsicle": "npm:popsicle"
},
"ambientDependencies": {
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts#1c56e368e17bb28ca57577250624ca5bd561aa81"
},
"dependencies": {
"any-promise": "github:typings/typed-any-promise#74ba6cf22149ff4de39c2338a9cb84f9ded6f042"
}
}