mirror of
https://github.com/aljazceru/satshkd-vercel.git
synced 2025-12-18 05:34:22 +01:00
generated
This commit is contained in:
23
node_modules/follow-redirects/index.js
generated
vendored
23
node_modules/follow-redirects/index.js
generated
vendored
@@ -274,21 +274,26 @@ RedirectableRequest.prototype._performRequest = function () {
|
||||
this._options.agent = this._options.agents[scheme];
|
||||
}
|
||||
|
||||
// Create the native request
|
||||
// Create the native request and set up its event handlers
|
||||
var request = this._currentRequest =
|
||||
nativeProtocol.request(this._options, this._onNativeResponse);
|
||||
this._currentUrl = url.format(this._options);
|
||||
|
||||
// Set up event handlers
|
||||
request._redirectable = this;
|
||||
for (var e = 0; e < events.length; e++) {
|
||||
request.on(events[e], eventHandlers[events[e]]);
|
||||
for (var event of events) {
|
||||
request.on(event, eventHandlers[event]);
|
||||
}
|
||||
|
||||
// RFC7230§5.3.1: When making a request directly to an origin server, […]
|
||||
// a client MUST send only the absolute path […] as the request-target.
|
||||
this._currentUrl = /^\//.test(this._options.path) ?
|
||||
url.format(this._options) :
|
||||
// When making a request to a proxy, […]
|
||||
// a client MUST send the target URI in absolute-form […].
|
||||
this._currentUrl = this._options.path;
|
||||
|
||||
// End a redirected request
|
||||
// (The first request must be ended explicitly with RedirectableRequest#end)
|
||||
if (this._isRedirect) {
|
||||
// Write the request entity and end.
|
||||
// Write the request entity and end
|
||||
var i = 0;
|
||||
var self = this;
|
||||
var buffers = this._requestBodyBuffers;
|
||||
@@ -576,8 +581,8 @@ function createErrorType(code, defaultMessage) {
|
||||
}
|
||||
|
||||
function abortRequest(request) {
|
||||
for (var e = 0; e < events.length; e++) {
|
||||
request.removeListener(events[e], eventHandlers[events[e]]);
|
||||
for (var event of events) {
|
||||
request.removeListener(event, eventHandlers[event]);
|
||||
}
|
||||
request.on("error", noop);
|
||||
request.abort();
|
||||
|
||||
10
node_modules/follow-redirects/package.json
generated
vendored
10
node_modules/follow-redirects/package.json
generated
vendored
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"_from": "follow-redirects@^1.14.8",
|
||||
"_id": "follow-redirects@1.15.0",
|
||||
"_id": "follow-redirects@1.15.1",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-aExlJShTV4qOUOL7yF1U5tvLCB0xQuudbf6toyYA0E/acBNw71mvjFTnLaRp50aQaYocMR0a/RMMBIHeZnGyjQ==",
|
||||
"_integrity": "sha512-yLAMQs+k0b2m7cVxpS1VKJVvoz7SS9Td1zss3XRwXj+ZDH00RJgnuLx7E44wx02kQLrdM3aOOy+FpzS7+8OizA==",
|
||||
"_location": "/follow-redirects",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
@@ -18,8 +18,8 @@
|
||||
"_requiredBy": [
|
||||
"/axios"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.0.tgz",
|
||||
"_shasum": "06441868281c86d0dda4ad8bdaead2d02dca89d4",
|
||||
"_resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.1.tgz",
|
||||
"_shasum": "0ca6a452306c9b276e4d3127483e29575e207ad5",
|
||||
"_spec": "follow-redirects@^1.14.8",
|
||||
"_where": "/home/runner/work/satshkd-vercel/satshkd-vercel/node_modules/axios",
|
||||
"author": {
|
||||
@@ -91,5 +91,5 @@
|
||||
"mocha": "nyc mocha",
|
||||
"test": "npm run lint && npm run mocha"
|
||||
},
|
||||
"version": "1.15.0"
|
||||
"version": "1.15.1"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user