tlsd 2.5.0 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +26 -3
- package/domains/README.txt +0 -0
- package/package.json +1 -1
- package/proxy/config.json +5 -0
- package/proxy/package-lock.json +118 -0
- package/proxy/package.json +15 -0
- package/proxy/proxy.js +20 -0
- package/proxy/siriusmercantile.com/index.js +14 -0
- package/proxy/siriusmercantile.com/package-lock.json +137 -0
- package/proxy/siriusmercantile.com/package.json +7 -0
- package/proxy/zzz/was-nm/debug/CHANGELOG.md +395 -0
- package/proxy/zzz/was-nm/debug/LICENSE +19 -0
- package/proxy/zzz/was-nm/debug/README.md +437 -0
- package/proxy/zzz/was-nm/debug/dist/debug.js +886 -0
- package/proxy/zzz/was-nm/debug/node.js +1 -0
- package/proxy/zzz/was-nm/debug/package.json +90 -0
- package/proxy/zzz/was-nm/debug/src/browser.js +180 -0
- package/proxy/zzz/was-nm/debug/src/common.js +249 -0
- package/proxy/zzz/was-nm/debug/src/index.js +12 -0
- package/proxy/zzz/was-nm/debug/src/node.js +174 -0
- package/proxy/zzz/was-nm/eventemitter3/LICENSE +21 -0
- package/proxy/zzz/was-nm/eventemitter3/README.md +92 -0
- package/proxy/zzz/was-nm/eventemitter3/index.d.ts +67 -0
- package/proxy/zzz/was-nm/eventemitter3/index.js +336 -0
- package/proxy/zzz/was-nm/eventemitter3/package.json +84 -0
- package/proxy/zzz/was-nm/eventemitter3/umd/eventemitter3.js +340 -0
- package/proxy/zzz/was-nm/eventemitter3/umd/eventemitter3.min.js +1 -0
- package/proxy/zzz/was-nm/eventemitter3/umd/eventemitter3.min.js.map +1 -0
- package/proxy/zzz/was-nm/follow-redirects/LICENSE +18 -0
- package/proxy/zzz/was-nm/follow-redirects/README.md +145 -0
- package/proxy/zzz/was-nm/follow-redirects/http.js +1 -0
- package/proxy/zzz/was-nm/follow-redirects/https.js +1 -0
- package/proxy/zzz/was-nm/follow-redirects/index.js +452 -0
- package/proxy/zzz/was-nm/follow-redirects/package.json +87 -0
- package/proxy/zzz/was-nm/http-proxy/.auto-changelog +6 -0
- package/proxy/zzz/was-nm/http-proxy/.gitattributes +1 -0
- package/proxy/zzz/was-nm/http-proxy/CHANGELOG.md +1864 -0
- package/proxy/zzz/was-nm/http-proxy/CODE_OF_CONDUCT.md +74 -0
- package/proxy/zzz/was-nm/http-proxy/LICENSE +23 -0
- package/proxy/zzz/was-nm/http-proxy/README.md +568 -0
- package/proxy/zzz/was-nm/http-proxy/codecov.yml +10 -0
- package/proxy/zzz/was-nm/http-proxy/index.js +13 -0
- package/proxy/zzz/was-nm/http-proxy/lib/http-proxy/common.js +248 -0
- package/proxy/zzz/was-nm/http-proxy/lib/http-proxy/index.js +185 -0
- package/proxy/zzz/was-nm/http-proxy/lib/http-proxy/passes/web-incoming.js +192 -0
- package/proxy/zzz/was-nm/http-proxy/lib/http-proxy/passes/web-outgoing.js +147 -0
- package/proxy/zzz/was-nm/http-proxy/lib/http-proxy/passes/ws-incoming.js +162 -0
- package/proxy/zzz/was-nm/http-proxy/lib/http-proxy.js +66 -0
- package/proxy/zzz/was-nm/http-proxy/package.json +77 -0
- package/proxy/zzz/was-nm/http-proxy/renovate.json +19 -0
- package/proxy/zzz/was-nm/ms/index.js +162 -0
- package/proxy/zzz/was-nm/ms/license.md +21 -0
- package/proxy/zzz/was-nm/ms/package.json +69 -0
- package/proxy/zzz/was-nm/ms/readme.md +60 -0
- package/proxy/zzz/was-nm/requires-port/.travis.yml +19 -0
- package/proxy/zzz/was-nm/requires-port/LICENSE +22 -0
- package/proxy/zzz/was-nm/requires-port/README.md +47 -0
- package/proxy/zzz/was-nm/requires-port/index.js +38 -0
- package/proxy/zzz/was-nm/requires-port/package.json +74 -0
- package/proxy/zzz/was-nm/requires-port/test.js +98 -0
- package/proxy/zzz/was-nm/sleepless/README.md +4 -0
- package/proxy/zzz/was-nm/sleepless/autosite/README.txt +0 -0
- package/proxy/zzz/was-nm/sleepless/autosite/site/foobar.txt +1 -0
- package/proxy/zzz/was-nm/sleepless/autosite/site/pull.php +4 -0
- package/proxy/zzz/was-nm/sleepless/index.js +2 -0
- package/proxy/zzz/was-nm/sleepless/package.json +44 -0
- package/proxy/zzz/was-nm/sleepless/sleepless.js +613 -0
- package/proxy/zzz/was-nm/sleepless/test.html +9 -0
- package/proxy/zzz/was-nm/sleepless/test.js +146 -0
- package/tlsd +11 -2
- package/tlsd.js +2 -0
|
@@ -0,0 +1,340 @@
|
|
|
1
|
+
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.EventEmitter3 = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
|
|
2
|
+
'use strict';
|
|
3
|
+
|
|
4
|
+
var has = Object.prototype.hasOwnProperty
|
|
5
|
+
, prefix = '~';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Constructor to create a storage for our `EE` objects.
|
|
9
|
+
* An `Events` instance is a plain object whose properties are event names.
|
|
10
|
+
*
|
|
11
|
+
* @constructor
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
14
|
+
function Events() {}
|
|
15
|
+
|
|
16
|
+
//
|
|
17
|
+
// We try to not inherit from `Object.prototype`. In some engines creating an
|
|
18
|
+
// instance in this way is faster than calling `Object.create(null)` directly.
|
|
19
|
+
// If `Object.create(null)` is not supported we prefix the event names with a
|
|
20
|
+
// character to make sure that the built-in object properties are not
|
|
21
|
+
// overridden or used as an attack vector.
|
|
22
|
+
//
|
|
23
|
+
if (Object.create) {
|
|
24
|
+
Events.prototype = Object.create(null);
|
|
25
|
+
|
|
26
|
+
//
|
|
27
|
+
// This hack is needed because the `__proto__` property is still inherited in
|
|
28
|
+
// some old browsers like Android 4, iPhone 5.1, Opera 11 and Safari 5.
|
|
29
|
+
//
|
|
30
|
+
if (!new Events().__proto__) prefix = false;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Representation of a single event listener.
|
|
35
|
+
*
|
|
36
|
+
* @param {Function} fn The listener function.
|
|
37
|
+
* @param {*} context The context to invoke the listener with.
|
|
38
|
+
* @param {Boolean} [once=false] Specify if the listener is a one-time listener.
|
|
39
|
+
* @constructor
|
|
40
|
+
* @private
|
|
41
|
+
*/
|
|
42
|
+
function EE(fn, context, once) {
|
|
43
|
+
this.fn = fn;
|
|
44
|
+
this.context = context;
|
|
45
|
+
this.once = once || false;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Add a listener for a given event.
|
|
50
|
+
*
|
|
51
|
+
* @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
|
|
52
|
+
* @param {(String|Symbol)} event The event name.
|
|
53
|
+
* @param {Function} fn The listener function.
|
|
54
|
+
* @param {*} context The context to invoke the listener with.
|
|
55
|
+
* @param {Boolean} once Specify if the listener is a one-time listener.
|
|
56
|
+
* @returns {EventEmitter}
|
|
57
|
+
* @private
|
|
58
|
+
*/
|
|
59
|
+
function addListener(emitter, event, fn, context, once) {
|
|
60
|
+
if (typeof fn !== 'function') {
|
|
61
|
+
throw new TypeError('The listener must be a function');
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
var listener = new EE(fn, context || emitter, once)
|
|
65
|
+
, evt = prefix ? prefix + event : event;
|
|
66
|
+
|
|
67
|
+
if (!emitter._events[evt]) emitter._events[evt] = listener, emitter._eventsCount++;
|
|
68
|
+
else if (!emitter._events[evt].fn) emitter._events[evt].push(listener);
|
|
69
|
+
else emitter._events[evt] = [emitter._events[evt], listener];
|
|
70
|
+
|
|
71
|
+
return emitter;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Clear event by name.
|
|
76
|
+
*
|
|
77
|
+
* @param {EventEmitter} emitter Reference to the `EventEmitter` instance.
|
|
78
|
+
* @param {(String|Symbol)} evt The Event name.
|
|
79
|
+
* @private
|
|
80
|
+
*/
|
|
81
|
+
function clearEvent(emitter, evt) {
|
|
82
|
+
if (--emitter._eventsCount === 0) emitter._events = new Events();
|
|
83
|
+
else delete emitter._events[evt];
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Minimal `EventEmitter` interface that is molded against the Node.js
|
|
88
|
+
* `EventEmitter` interface.
|
|
89
|
+
*
|
|
90
|
+
* @constructor
|
|
91
|
+
* @public
|
|
92
|
+
*/
|
|
93
|
+
function EventEmitter() {
|
|
94
|
+
this._events = new Events();
|
|
95
|
+
this._eventsCount = 0;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* Return an array listing the events for which the emitter has registered
|
|
100
|
+
* listeners.
|
|
101
|
+
*
|
|
102
|
+
* @returns {Array}
|
|
103
|
+
* @public
|
|
104
|
+
*/
|
|
105
|
+
EventEmitter.prototype.eventNames = function eventNames() {
|
|
106
|
+
var names = []
|
|
107
|
+
, events
|
|
108
|
+
, name;
|
|
109
|
+
|
|
110
|
+
if (this._eventsCount === 0) return names;
|
|
111
|
+
|
|
112
|
+
for (name in (events = this._events)) {
|
|
113
|
+
if (has.call(events, name)) names.push(prefix ? name.slice(1) : name);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
if (Object.getOwnPropertySymbols) {
|
|
117
|
+
return names.concat(Object.getOwnPropertySymbols(events));
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
return names;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Return the listeners registered for a given event.
|
|
125
|
+
*
|
|
126
|
+
* @param {(String|Symbol)} event The event name.
|
|
127
|
+
* @returns {Array} The registered listeners.
|
|
128
|
+
* @public
|
|
129
|
+
*/
|
|
130
|
+
EventEmitter.prototype.listeners = function listeners(event) {
|
|
131
|
+
var evt = prefix ? prefix + event : event
|
|
132
|
+
, handlers = this._events[evt];
|
|
133
|
+
|
|
134
|
+
if (!handlers) return [];
|
|
135
|
+
if (handlers.fn) return [handlers.fn];
|
|
136
|
+
|
|
137
|
+
for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) {
|
|
138
|
+
ee[i] = handlers[i].fn;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
return ee;
|
|
142
|
+
};
|
|
143
|
+
|
|
144
|
+
/**
|
|
145
|
+
* Return the number of listeners listening to a given event.
|
|
146
|
+
*
|
|
147
|
+
* @param {(String|Symbol)} event The event name.
|
|
148
|
+
* @returns {Number} The number of listeners.
|
|
149
|
+
* @public
|
|
150
|
+
*/
|
|
151
|
+
EventEmitter.prototype.listenerCount = function listenerCount(event) {
|
|
152
|
+
var evt = prefix ? prefix + event : event
|
|
153
|
+
, listeners = this._events[evt];
|
|
154
|
+
|
|
155
|
+
if (!listeners) return 0;
|
|
156
|
+
if (listeners.fn) return 1;
|
|
157
|
+
return listeners.length;
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Calls each of the listeners registered for a given event.
|
|
162
|
+
*
|
|
163
|
+
* @param {(String|Symbol)} event The event name.
|
|
164
|
+
* @returns {Boolean} `true` if the event had listeners, else `false`.
|
|
165
|
+
* @public
|
|
166
|
+
*/
|
|
167
|
+
EventEmitter.prototype.emit = function emit(event, a1, a2, a3, a4, a5) {
|
|
168
|
+
var evt = prefix ? prefix + event : event;
|
|
169
|
+
|
|
170
|
+
if (!this._events[evt]) return false;
|
|
171
|
+
|
|
172
|
+
var listeners = this._events[evt]
|
|
173
|
+
, len = arguments.length
|
|
174
|
+
, args
|
|
175
|
+
, i;
|
|
176
|
+
|
|
177
|
+
if (listeners.fn) {
|
|
178
|
+
if (listeners.once) this.removeListener(event, listeners.fn, undefined, true);
|
|
179
|
+
|
|
180
|
+
switch (len) {
|
|
181
|
+
case 1: return listeners.fn.call(listeners.context), true;
|
|
182
|
+
case 2: return listeners.fn.call(listeners.context, a1), true;
|
|
183
|
+
case 3: return listeners.fn.call(listeners.context, a1, a2), true;
|
|
184
|
+
case 4: return listeners.fn.call(listeners.context, a1, a2, a3), true;
|
|
185
|
+
case 5: return listeners.fn.call(listeners.context, a1, a2, a3, a4), true;
|
|
186
|
+
case 6: return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true;
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
for (i = 1, args = new Array(len -1); i < len; i++) {
|
|
190
|
+
args[i - 1] = arguments[i];
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
listeners.fn.apply(listeners.context, args);
|
|
194
|
+
} else {
|
|
195
|
+
var length = listeners.length
|
|
196
|
+
, j;
|
|
197
|
+
|
|
198
|
+
for (i = 0; i < length; i++) {
|
|
199
|
+
if (listeners[i].once) this.removeListener(event, listeners[i].fn, undefined, true);
|
|
200
|
+
|
|
201
|
+
switch (len) {
|
|
202
|
+
case 1: listeners[i].fn.call(listeners[i].context); break;
|
|
203
|
+
case 2: listeners[i].fn.call(listeners[i].context, a1); break;
|
|
204
|
+
case 3: listeners[i].fn.call(listeners[i].context, a1, a2); break;
|
|
205
|
+
case 4: listeners[i].fn.call(listeners[i].context, a1, a2, a3); break;
|
|
206
|
+
default:
|
|
207
|
+
if (!args) for (j = 1, args = new Array(len -1); j < len; j++) {
|
|
208
|
+
args[j - 1] = arguments[j];
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
listeners[i].fn.apply(listeners[i].context, args);
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
return true;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
/**
|
|
220
|
+
* Add a listener for a given event.
|
|
221
|
+
*
|
|
222
|
+
* @param {(String|Symbol)} event The event name.
|
|
223
|
+
* @param {Function} fn The listener function.
|
|
224
|
+
* @param {*} [context=this] The context to invoke the listener with.
|
|
225
|
+
* @returns {EventEmitter} `this`.
|
|
226
|
+
* @public
|
|
227
|
+
*/
|
|
228
|
+
EventEmitter.prototype.on = function on(event, fn, context) {
|
|
229
|
+
return addListener(this, event, fn, context, false);
|
|
230
|
+
};
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Add a one-time listener for a given event.
|
|
234
|
+
*
|
|
235
|
+
* @param {(String|Symbol)} event The event name.
|
|
236
|
+
* @param {Function} fn The listener function.
|
|
237
|
+
* @param {*} [context=this] The context to invoke the listener with.
|
|
238
|
+
* @returns {EventEmitter} `this`.
|
|
239
|
+
* @public
|
|
240
|
+
*/
|
|
241
|
+
EventEmitter.prototype.once = function once(event, fn, context) {
|
|
242
|
+
return addListener(this, event, fn, context, true);
|
|
243
|
+
};
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Remove the listeners of a given event.
|
|
247
|
+
*
|
|
248
|
+
* @param {(String|Symbol)} event The event name.
|
|
249
|
+
* @param {Function} fn Only remove the listeners that match this function.
|
|
250
|
+
* @param {*} context Only remove the listeners that have this context.
|
|
251
|
+
* @param {Boolean} once Only remove one-time listeners.
|
|
252
|
+
* @returns {EventEmitter} `this`.
|
|
253
|
+
* @public
|
|
254
|
+
*/
|
|
255
|
+
EventEmitter.prototype.removeListener = function removeListener(event, fn, context, once) {
|
|
256
|
+
var evt = prefix ? prefix + event : event;
|
|
257
|
+
|
|
258
|
+
if (!this._events[evt]) return this;
|
|
259
|
+
if (!fn) {
|
|
260
|
+
clearEvent(this, evt);
|
|
261
|
+
return this;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
var listeners = this._events[evt];
|
|
265
|
+
|
|
266
|
+
if (listeners.fn) {
|
|
267
|
+
if (
|
|
268
|
+
listeners.fn === fn &&
|
|
269
|
+
(!once || listeners.once) &&
|
|
270
|
+
(!context || listeners.context === context)
|
|
271
|
+
) {
|
|
272
|
+
clearEvent(this, evt);
|
|
273
|
+
}
|
|
274
|
+
} else {
|
|
275
|
+
for (var i = 0, events = [], length = listeners.length; i < length; i++) {
|
|
276
|
+
if (
|
|
277
|
+
listeners[i].fn !== fn ||
|
|
278
|
+
(once && !listeners[i].once) ||
|
|
279
|
+
(context && listeners[i].context !== context)
|
|
280
|
+
) {
|
|
281
|
+
events.push(listeners[i]);
|
|
282
|
+
}
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
//
|
|
286
|
+
// Reset the array, or remove it completely if we have no more listeners.
|
|
287
|
+
//
|
|
288
|
+
if (events.length) this._events[evt] = events.length === 1 ? events[0] : events;
|
|
289
|
+
else clearEvent(this, evt);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
return this;
|
|
293
|
+
};
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Remove all listeners, or those of the specified event.
|
|
297
|
+
*
|
|
298
|
+
* @param {(String|Symbol)} [event] The event name.
|
|
299
|
+
* @returns {EventEmitter} `this`.
|
|
300
|
+
* @public
|
|
301
|
+
*/
|
|
302
|
+
EventEmitter.prototype.removeAllListeners = function removeAllListeners(event) {
|
|
303
|
+
var evt;
|
|
304
|
+
|
|
305
|
+
if (event) {
|
|
306
|
+
evt = prefix ? prefix + event : event;
|
|
307
|
+
if (this._events[evt]) clearEvent(this, evt);
|
|
308
|
+
} else {
|
|
309
|
+
this._events = new Events();
|
|
310
|
+
this._eventsCount = 0;
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
return this;
|
|
314
|
+
};
|
|
315
|
+
|
|
316
|
+
//
|
|
317
|
+
// Alias methods names because people roll like that.
|
|
318
|
+
//
|
|
319
|
+
EventEmitter.prototype.off = EventEmitter.prototype.removeListener;
|
|
320
|
+
EventEmitter.prototype.addListener = EventEmitter.prototype.on;
|
|
321
|
+
|
|
322
|
+
//
|
|
323
|
+
// Expose the prefix.
|
|
324
|
+
//
|
|
325
|
+
EventEmitter.prefixed = prefix;
|
|
326
|
+
|
|
327
|
+
//
|
|
328
|
+
// Allow `EventEmitter` to be imported as module namespace.
|
|
329
|
+
//
|
|
330
|
+
EventEmitter.EventEmitter = EventEmitter;
|
|
331
|
+
|
|
332
|
+
//
|
|
333
|
+
// Expose the module.
|
|
334
|
+
//
|
|
335
|
+
if ('undefined' !== typeof module) {
|
|
336
|
+
module.exports = EventEmitter;
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
},{}]},{},[1])(1)
|
|
340
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
!function(e){if("object"==typeof exports&&"undefined"!=typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:this).EventEmitter3=e()}}(function(){return function i(s,f,c){function u(t,e){if(!f[t]){if(!s[t]){var n="function"==typeof require&&require;if(!e&&n)return n(t,!0);if(a)return a(t,!0);var r=new Error("Cannot find module '"+t+"'");throw r.code="MODULE_NOT_FOUND",r}var o=f[t]={exports:{}};s[t][0].call(o.exports,function(e){return u(s[t][1][e]||e)},o,o.exports,i,s,f,c)}return f[t].exports}for(var a="function"==typeof require&&require,e=0;e<c.length;e++)u(c[e]);return u}({1:[function(e,t,n){"use strict";var r=Object.prototype.hasOwnProperty,v="~";function o(){}function f(e,t,n){this.fn=e,this.context=t,this.once=n||!1}function i(e,t,n,r,o){if("function"!=typeof n)throw new TypeError("The listener must be a function");var i=new f(n,r||e,o),s=v?v+t:t;return e._events[s]?e._events[s].fn?e._events[s]=[e._events[s],i]:e._events[s].push(i):(e._events[s]=i,e._eventsCount++),e}function u(e,t){0==--e._eventsCount?e._events=new o:delete e._events[t]}function s(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(v=!1)),s.prototype.eventNames=function(){var e,t,n=[];if(0===this._eventsCount)return n;for(t in e=this._events)r.call(e,t)&&n.push(v?t.slice(1):t);return Object.getOwnPropertySymbols?n.concat(Object.getOwnPropertySymbols(e)):n},s.prototype.listeners=function(e){var t=v?v+e:e,n=this._events[t];if(!n)return[];if(n.fn)return[n.fn];for(var r=0,o=n.length,i=new Array(o);r<o;r++)i[r]=n[r].fn;return i},s.prototype.listenerCount=function(e){var t=v?v+e:e,n=this._events[t];return n?n.fn?1:n.length:0},s.prototype.emit=function(e,t,n,r,o,i){var s=v?v+e:e;if(!this._events[s])return!1;var f,c,u=this._events[s],a=arguments.length;if(u.fn){switch(u.once&&this.removeListener(e,u.fn,void 0,!0),a){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,t),!0;case 3:return u.fn.call(u.context,t,n),!0;case 4:return u.fn.call(u.context,t,n,r),!0;case 5:return u.fn.call(u.context,t,n,r,o),!0;case 6:return u.fn.call(u.context,t,n,r,o,i),!0}for(c=1,f=new Array(a-1);c<a;c++)f[c-1]=arguments[c];u.fn.apply(u.context,f)}else{var l,p=u.length;for(c=0;c<p;c++)switch(u[c].once&&this.removeListener(e,u[c].fn,void 0,!0),a){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,t);break;case 3:u[c].fn.call(u[c].context,t,n);break;case 4:u[c].fn.call(u[c].context,t,n,r);break;default:if(!f)for(l=1,f=new Array(a-1);l<a;l++)f[l-1]=arguments[l];u[c].fn.apply(u[c].context,f)}}return!0},s.prototype.on=function(e,t,n){return i(this,e,t,n,!1)},s.prototype.once=function(e,t,n){return i(this,e,t,n,!0)},s.prototype.removeListener=function(e,t,n,r){var o=v?v+e:e;if(!this._events[o])return this;if(!t)return u(this,o),this;var i=this._events[o];if(i.fn)i.fn!==t||r&&!i.once||n&&i.context!==n||u(this,o);else{for(var s=0,f=[],c=i.length;s<c;s++)(i[s].fn!==t||r&&!i[s].once||n&&i[s].context!==n)&&f.push(i[s]);f.length?this._events[o]=1===f.length?f[0]:f:u(this,o)}return this},s.prototype.removeAllListeners=function(e){var t;return e?(t=v?v+e:e,this._events[t]&&u(this,t)):(this._events=new o,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=v,s.EventEmitter=s,void 0!==t&&(t.exports=s)},{}]},{},[1])(1)});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["umd/eventemitter3.js"],"names":["f","exports","module","define","amd","window","global","self","this","EventEmitter3","r","e","n","t","o","i","c","require","u","a","Error","code","p","call","length","1","has","Object","prototype","hasOwnProperty","prefix","Events","EE","fn","context","once","addListener","emitter","event","TypeError","listener","evt","_events","push","_eventsCount","clearEvent","EventEmitter","create","__proto__","eventNames","events","name","names","slice","getOwnPropertySymbols","concat","listeners","handlers","l","ee","Array","listenerCount","emit","a1","a2","a3","a4","a5","args","len","arguments","removeListener","undefined","apply","j","on","removeAllListeners","off","prefixed"],"mappings":"CAAA,SAAUA,GAAG,GAAoB,iBAAVC,SAAoC,oBAATC,OAAsBA,OAAOD,QAAQD,SAAS,GAAmB,mBAATG,QAAqBA,OAAOC,IAAKD,OAAO,GAAGH,OAAO,EAA0B,oBAATK,OAAwBA,OAA+B,oBAATC,OAAwBA,OAA6B,oBAAPC,KAAsBA,KAAYC,MAAOC,cAAgBT,KAAlU,CAAyU,WAAqC,OAAmB,SAASU,EAAEC,EAAEC,EAAEC,GAAG,SAASC,EAAEC,EAAEf,GAAG,IAAIY,EAAEG,GAAG,CAAC,IAAIJ,EAAEI,GAAG,CAAC,IAAIC,EAAE,mBAAmBC,SAASA,QAAQ,IAAIjB,GAAGgB,EAAE,OAAOA,EAAED,GAAE,GAAI,GAAGG,EAAE,OAAOA,EAAEH,GAAE,GAAI,IAAII,EAAE,IAAIC,MAAM,uBAAuBL,EAAE,KAAK,MAAMI,EAAEE,K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AAU,IAAIX,EACnBvB,KAAKoC,aAAe,GAGfpC,MAMTsC,EAAalB,UAAUiD,IAAM/B,EAAalB,UAAU2C,eACpDzB,EAAalB,UAAUQ,YAAcU,EAAalB,UAAU+C,GAK5D7B,EAAagC,SAAWhD,EAKxBgB,EAAaA,aAAeA,OAKxB,IAAuB5C,IACzBA,EAAOD,QAAU6C,IAGjB,KAAK,GAAG,CAAC,GAlV0W,CAkVtW"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Copyright 2014–present Olivier Lalonde <olalonde@gmail.com>, James Talmage <james@talmage.io>, Ruben Verborgh
|
|
2
|
+
|
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of
|
|
4
|
+
this software and associated documentation files (the "Software"), to deal in
|
|
5
|
+
the Software without restriction, including without limitation the rights to
|
|
6
|
+
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
|
|
7
|
+
of the Software, and to permit persons to whom the Software is furnished to do
|
|
8
|
+
so, subject to the following conditions:
|
|
9
|
+
|
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
|
11
|
+
copies or substantial portions of the Software.
|
|
12
|
+
|
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
|
|
17
|
+
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR
|
|
18
|
+
IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
## Follow Redirects
|
|
2
|
+
|
|
3
|
+
Drop-in replacement for Node's `http` and `https` modules that automatically follows redirects.
|
|
4
|
+
|
|
5
|
+
[](https://www.npmjs.com/package/follow-redirects)
|
|
6
|
+
[](https://travis-ci.org/follow-redirects/follow-redirects)
|
|
7
|
+
[](https://coveralls.io/r/follow-redirects/follow-redirects?branch=master)
|
|
8
|
+
[](https://www.npmjs.com/package/follow-redirects)
|
|
9
|
+
|
|
10
|
+
`follow-redirects` provides [request](https://nodejs.org/api/http.html#http_http_request_options_callback) and [get](https://nodejs.org/api/http.html#http_http_get_options_callback)
|
|
11
|
+
methods that behave identically to those found on the native [http](https://nodejs.org/api/http.html#http_http_request_options_callback) and [https](https://nodejs.org/api/https.html#https_https_request_options_callback)
|
|
12
|
+
modules, with the exception that they will seamlessly follow redirects.
|
|
13
|
+
|
|
14
|
+
```javascript
|
|
15
|
+
const { http, https } = require('follow-redirects');
|
|
16
|
+
|
|
17
|
+
http.get('http://bit.ly/900913', response => {
|
|
18
|
+
response.on('data', chunk => {
|
|
19
|
+
console.log(chunk);
|
|
20
|
+
});
|
|
21
|
+
}).on('error', err => {
|
|
22
|
+
console.error(err);
|
|
23
|
+
});
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
You can inspect the final redirected URL through the `responseUrl` property on the `response`.
|
|
27
|
+
If no redirection happened, `responseUrl` is the original request URL.
|
|
28
|
+
|
|
29
|
+
```javascript
|
|
30
|
+
https.request({
|
|
31
|
+
host: 'bitly.com',
|
|
32
|
+
path: '/UHfDGO',
|
|
33
|
+
}, response => {
|
|
34
|
+
console.log(response.responseUrl);
|
|
35
|
+
// 'http://duckduckgo.com/robots.txt'
|
|
36
|
+
});
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Options
|
|
40
|
+
### Global options
|
|
41
|
+
Global options are set directly on the `follow-redirects` module:
|
|
42
|
+
|
|
43
|
+
```javascript
|
|
44
|
+
const followRedirects = require('follow-redirects');
|
|
45
|
+
followRedirects.maxRedirects = 10;
|
|
46
|
+
followRedirects.maxBodyLength = 20 * 1024 * 1024; // 20 MB
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
The following global options are supported:
|
|
50
|
+
|
|
51
|
+
- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted.
|
|
52
|
+
|
|
53
|
+
- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted.
|
|
54
|
+
|
|
55
|
+
### Per-request options
|
|
56
|
+
Per-request options are set by passing an `options` object:
|
|
57
|
+
|
|
58
|
+
```javascript
|
|
59
|
+
const url = require('url');
|
|
60
|
+
const { http, https } = require('follow-redirects');
|
|
61
|
+
|
|
62
|
+
const options = url.parse('http://bit.ly/900913');
|
|
63
|
+
options.maxRedirects = 10;
|
|
64
|
+
options.beforeRedirect = options => {
|
|
65
|
+
// Use this function to adjust the options upon redirecting,
|
|
66
|
+
// or to cancel the request by throwing an error
|
|
67
|
+
if (options.hostname === "example.com") {
|
|
68
|
+
options.auth = "user:password";
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
http.request(options);
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
In addition to the [standard HTTP](https://nodejs.org/api/http.html#http_http_request_options_callback) and [HTTPS options](https://nodejs.org/api/https.html#https_https_request_options_callback),
|
|
75
|
+
the following per-request options are supported:
|
|
76
|
+
- `followRedirects` (default: `true`) – whether redirects should be followed.
|
|
77
|
+
|
|
78
|
+
- `maxRedirects` (default: `21`) – sets the maximum number of allowed redirects; if exceeded, an error will be emitted.
|
|
79
|
+
|
|
80
|
+
- `maxBodyLength` (default: 10MB) – sets the maximum size of the request body; if exceeded, an error will be emitted.
|
|
81
|
+
|
|
82
|
+
- `beforeRedirect` (default: `undefined`) – optionally change the request `options` on redirects, or abort the request by throwing an error.
|
|
83
|
+
|
|
84
|
+
- `agents` (default: `undefined`) – sets the `agent` option per protocol, since HTTP and HTTPS use different agents. Example value: `{ http: new http.Agent(), https: new https.Agent() }`
|
|
85
|
+
|
|
86
|
+
- `trackRedirects` (default: `false`) – whether to store the redirected response details into the `redirects` array on the response object.
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
### Advanced usage
|
|
90
|
+
By default, `follow-redirects` will use the Node.js default implementations
|
|
91
|
+
of [`http`](https://nodejs.org/api/http.html)
|
|
92
|
+
and [`https`](https://nodejs.org/api/https.html).
|
|
93
|
+
To enable features such as caching and/or intermediate request tracking,
|
|
94
|
+
you might instead want to wrap `follow-redirects` around custom protocol implementations:
|
|
95
|
+
|
|
96
|
+
```javascript
|
|
97
|
+
const { http, https } = require('follow-redirects').wrap({
|
|
98
|
+
http: require('your-custom-http'),
|
|
99
|
+
https: require('your-custom-https'),
|
|
100
|
+
});
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
Such custom protocols only need an implementation of the `request` method.
|
|
104
|
+
|
|
105
|
+
## Browser Usage
|
|
106
|
+
|
|
107
|
+
Due to the way the browser works,
|
|
108
|
+
the `http` and `https` browser equivalents perform redirects by default.
|
|
109
|
+
|
|
110
|
+
By requiring `follow-redirects` this way:
|
|
111
|
+
```javascript
|
|
112
|
+
const http = require('follow-redirects/http');
|
|
113
|
+
const https = require('follow-redirects/https');
|
|
114
|
+
```
|
|
115
|
+
you can easily tell webpack and friends to replace
|
|
116
|
+
`follow-redirect` by the built-in versions:
|
|
117
|
+
|
|
118
|
+
```json
|
|
119
|
+
{
|
|
120
|
+
"follow-redirects/http" : "http",
|
|
121
|
+
"follow-redirects/https" : "https"
|
|
122
|
+
}
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
## Contributing
|
|
126
|
+
|
|
127
|
+
Pull Requests are always welcome. Please [file an issue](https://github.com/follow-redirects/follow-redirects/issues)
|
|
128
|
+
detailing your proposal before you invest your valuable time. Additional features and bug fixes should be accompanied
|
|
129
|
+
by tests. You can run the test suite locally with a simple `npm test` command.
|
|
130
|
+
|
|
131
|
+
## Debug Logging
|
|
132
|
+
|
|
133
|
+
`follow-redirects` uses the excellent [debug](https://www.npmjs.com/package/debug) for logging. To turn on logging
|
|
134
|
+
set the environment variable `DEBUG=follow-redirects` for debug output from just this module. When running the test
|
|
135
|
+
suite it is sometimes advantageous to set `DEBUG=*` to see output from the express server as well.
|
|
136
|
+
|
|
137
|
+
## Authors
|
|
138
|
+
|
|
139
|
+
- [Ruben Verborgh](https://ruben.verborgh.org/)
|
|
140
|
+
- Olivier Lalonde (olalonde@gmail.com)
|
|
141
|
+
- James Talmage (james@talmage.io)
|
|
142
|
+
|
|
143
|
+
## License
|
|
144
|
+
|
|
145
|
+
[MIT License](https://github.com/follow-redirects/follow-redirects/blob/master/LICENSE)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./").http;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require("./").https;
|