@crawlee/core 3.0.1-beta.9 → 3.0.1
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/autoscaling/autoscaled_pool.d.ts +1 -1
- package/autoscaling/autoscaled_pool.d.ts.map +1 -1
- package/autoscaling/autoscaled_pool.js +5 -3
- package/autoscaling/autoscaled_pool.js.map +1 -1
- package/autoscaling/snapshotter.d.ts +8 -8
- package/autoscaling/snapshotter.d.ts.map +1 -1
- package/configuration.d.ts +2 -29
- package/configuration.d.ts.map +1 -1
- package/configuration.js.map +1 -1
- package/cookie_utils.d.ts +43 -0
- package/cookie_utils.d.ts.map +1 -0
- package/cookie_utils.js +118 -0
- package/cookie_utils.js.map +1 -0
- package/crawlers/crawler_utils.d.ts +0 -10
- package/crawlers/crawler_utils.d.ts.map +1 -1
- package/crawlers/crawler_utils.js +1 -47
- package/crawlers/crawler_utils.js.map +1 -1
- package/enqueue_links/enqueue_links.d.ts +5 -1
- package/enqueue_links/enqueue_links.d.ts.map +1 -1
- package/enqueue_links/enqueue_links.js +10 -14
- package/enqueue_links/enqueue_links.js.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +1 -0
- package/index.js.map +1 -1
- package/index.mjs +5 -2
- package/package.json +4 -5
- package/session_pool/index.d.ts +0 -1
- package/session_pool/index.d.ts.map +1 -1
- package/session_pool/index.js +0 -1
- package/session_pool/index.js.map +1 -1
- package/session_pool/session.d.ts +3 -19
- package/session_pool/session.d.ts.map +1 -1
- package/session_pool/session.js +6 -52
- package/session_pool/session.js.map +1 -1
- package/storages/request_list.d.ts +2 -2
- package/storages/request_list.d.ts.map +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
- package/session_pool/session_utils.d.ts +0 -11
- package/session_pool/session_utils.d.ts.map +0 -1
- package/session_pool/session_utils.js +0 -22
- package/session_pool/session_utils.js.map +0 -1
package/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,iBAAiB,CAAC;AAChC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,OAAO,CAAC;AACtB,cAAc,uBAAuB,CAAC;AACtC,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAC9C,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC"}
|
package/index.js
CHANGED
|
@@ -17,6 +17,7 @@ tslib_1.__exportStar(require("./serialization"), exports);
|
|
|
17
17
|
tslib_1.__exportStar(require("./session_pool"), exports);
|
|
18
18
|
tslib_1.__exportStar(require("./storages"), exports);
|
|
19
19
|
tslib_1.__exportStar(require("./validators"), exports);
|
|
20
|
+
tslib_1.__exportStar(require("./cookie_utils"), exports);
|
|
20
21
|
var pseudo_url_1 = require("@apify/pseudo_url");
|
|
21
22
|
Object.defineProperty(exports, "PseudoUrl", { enumerable: true, get: function () { return pseudo_url_1.PseudoUrl; } });
|
|
22
23
|
//# sourceMappingURL=index.js.map
|
package/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,mDAAyB;AACzB,wDAA8B;AAC9B,0DAAgC;AAChC,sDAA4B;AAC5B,qDAA2B;AAC3B,0DAAgC;AAChC,mDAAyB;AACzB,gDAAsB;AACtB,gEAAsC;AACtC,oDAA0B;AAC1B,mDAAyB;AACzB,0DAAgC;AAChC,yDAA+B;AAC/B,qDAA2B;AAC3B,uDAA6B;AAC7B,gDAA8C;AAArC,uGAAA,SAAS,OAAA"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,mDAAyB;AACzB,wDAA8B;AAC9B,0DAAgC;AAChC,sDAA4B;AAC5B,qDAA2B;AAC3B,0DAAgC;AAChC,mDAAyB;AACzB,gDAAsB;AACtB,gEAAsC;AACtC,oDAA0B;AAC1B,mDAAyB;AACzB,0DAAgC;AAChC,yDAA+B;AAC/B,qDAA2B;AAC3B,uDAA6B;AAC7B,yDAA+B;AAC/B,gDAA8C;AAArC,uGAAA,SAAS,OAAA"}
|
package/index.mjs
CHANGED
|
@@ -41,26 +41,29 @@ export const Snapshotter = mod.Snapshotter;
|
|
|
41
41
|
export const Statistics = mod.Statistics;
|
|
42
42
|
export const StorageManager = mod.StorageManager;
|
|
43
43
|
export const SystemStatus = mod.SystemStatus;
|
|
44
|
+
export const browserPoolCookieToToughCookie = mod.browserPoolCookieToToughCookie;
|
|
44
45
|
export const checkAndSerialize = mod.checkAndSerialize;
|
|
45
46
|
export const chunkBySize = mod.chunkBySize;
|
|
46
47
|
export const constructGlobObjectsFromGlobs = mod.constructGlobObjectsFromGlobs;
|
|
47
48
|
export const constructRegExpObjectsFromPseudoUrls = mod.constructRegExpObjectsFromPseudoUrls;
|
|
48
49
|
export const constructRegExpObjectsFromRegExps = mod.constructRegExpObjectsFromRegExps;
|
|
50
|
+
export const cookieStringToToughCookie = mod.cookieStringToToughCookie;
|
|
49
51
|
export const createDeserialize = mod.createDeserialize;
|
|
50
52
|
export const createRequestOptions = mod.createRequestOptions;
|
|
51
53
|
export const createRequests = mod.createRequests;
|
|
52
54
|
export const deserializeArray = mod.deserializeArray;
|
|
53
|
-
export const diffCookies = mod.diffCookies;
|
|
54
55
|
export const enqueueLinks = mod.enqueueLinks;
|
|
55
56
|
export const getCookiesFromResponse = mod.getCookiesFromResponse;
|
|
57
|
+
export const getDefaultCookieExpirationDate = mod.getDefaultCookieExpirationDate;
|
|
56
58
|
export const getRequestId = mod.getRequestId;
|
|
57
59
|
export const handleRequestTimeout = mod.handleRequestTimeout;
|
|
58
60
|
export const log = mod.log;
|
|
59
61
|
export const maybeStringify = mod.maybeStringify;
|
|
60
62
|
export const mergeCookies = mod.mergeCookies;
|
|
61
63
|
export const purgeDefaultStorages = mod.purgeDefaultStorages;
|
|
62
|
-
export const
|
|
64
|
+
export const resolveBaseUrlForEnqueueLinksFiltering = mod.resolveBaseUrlForEnqueueLinksFiltering;
|
|
63
65
|
export const serializeArray = mod.serializeArray;
|
|
66
|
+
export const toughCookieToBrowserPoolCookie = mod.toughCookieToBrowserPoolCookie;
|
|
64
67
|
export const updateEnqueueLinksPatternCache = mod.updateEnqueueLinksPatternCache;
|
|
65
68
|
export const validateGlobPattern = mod.validateGlobPattern;
|
|
66
69
|
export const validators = mod.validators;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crawlee/core",
|
|
3
|
-
"version": "3.0.1
|
|
3
|
+
"version": "3.0.1",
|
|
4
4
|
"description": "The scalable web crawling and scraping library for JavaScript/Node.js. Enables development of data extraction and web automation jobs (not only) with headless Chrome and Puppeteer.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=16.0.0"
|
|
@@ -58,10 +58,9 @@
|
|
|
58
58
|
"@apify/pseudo_url": "^2.0.0",
|
|
59
59
|
"@apify/timeout": "^0.3.0",
|
|
60
60
|
"@apify/utilities": "^2.0.0",
|
|
61
|
-
"@crawlee/
|
|
62
|
-
"@crawlee/
|
|
63
|
-
"@crawlee/
|
|
64
|
-
"@crawlee/utils": "^3.0.1-beta.9",
|
|
61
|
+
"@crawlee/memory-storage": "^3.0.1",
|
|
62
|
+
"@crawlee/types": "^3.0.1",
|
|
63
|
+
"@crawlee/utils": "^3.0.1",
|
|
65
64
|
"@types/tough-cookie": "^4.0.2",
|
|
66
65
|
"@vladfrangu/async_event_emitter": "^2.0.0",
|
|
67
66
|
"fs-extra": "^10.1.0",
|
package/session_pool/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/session_pool/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/session_pool/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
|
package/session_pool/index.js
CHANGED
|
@@ -5,5 +5,4 @@ tslib_1.__exportStar(require("./errors"), exports);
|
|
|
5
5
|
tslib_1.__exportStar(require("./events"), exports);
|
|
6
6
|
tslib_1.__exportStar(require("./session"), exports);
|
|
7
7
|
tslib_1.__exportStar(require("./session_pool"), exports);
|
|
8
|
-
tslib_1.__exportStar(require("./session_utils"), exports);
|
|
9
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/session_pool/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,mDAAyB;AACzB,oDAA0B;AAC1B,yDAA+B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/session_pool/index.ts"],"names":[],"mappings":";;;AAAA,mDAAyB;AACzB,mDAAyB;AACzB,oDAA0B;AAC1B,yDAA+B"}
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
import type { Log } from '@apify/log';
|
|
3
3
|
import type { Dictionary, Cookie as CookieObject, BrowserLikeResponse } from '@crawlee/types';
|
|
4
4
|
import type { IncomingMessage } from 'node:http';
|
|
5
|
-
import { Cookie
|
|
5
|
+
import type { Cookie } from 'tough-cookie';
|
|
6
|
+
import { CookieJar } from 'tough-cookie';
|
|
6
7
|
/**
|
|
7
8
|
* Persistable {@link Session} state.
|
|
8
9
|
*/
|
|
@@ -168,7 +169,7 @@ export declare class Session {
|
|
|
168
169
|
*/
|
|
169
170
|
setCookies(cookies: CookieObject[], url: string): void;
|
|
170
171
|
/**
|
|
171
|
-
* Returns cookies in a format compatible with puppeteer and ready to be used with `page.setCookie`.
|
|
172
|
+
* Returns cookies in a format compatible with puppeteer/playwright and ready to be used with `page.setCookie`.
|
|
172
173
|
* @param url website url. Only cookies stored for this url will be returned
|
|
173
174
|
*/
|
|
174
175
|
getCookies(url: string): CookieObject[];
|
|
@@ -183,27 +184,10 @@ export declare class Session {
|
|
|
183
184
|
* Sets a cookie within this session for the specific URL.
|
|
184
185
|
*/
|
|
185
186
|
setCookie(rawCookie: string, url: string): void;
|
|
186
|
-
/**
|
|
187
|
-
* Transforms puppeteer cookie to tough-cookie.
|
|
188
|
-
* @param cookieObject Cookie object (for instance from the `page.cookies` method).
|
|
189
|
-
*/
|
|
190
|
-
protected _cookieObjectToTough(cookieObject: CookieObject): Cookie;
|
|
191
|
-
/**
|
|
192
|
-
* Transforms tough-cookie to puppeteer cookie.
|
|
193
|
-
* @param toughCookie Cookie from CookieJar
|
|
194
|
-
* @return Cookie from Puppeteer
|
|
195
|
-
*/
|
|
196
|
-
protected _toughCookieToPuppeteer(toughCookie: Cookie): CookieObject;
|
|
197
187
|
/**
|
|
198
188
|
* Sets cookies.
|
|
199
189
|
*/
|
|
200
190
|
protected _setCookies(cookies: Cookie[], url: string): void;
|
|
201
|
-
/**
|
|
202
|
-
* Calculate cookie expiration date
|
|
203
|
-
* @param maxAgeSecs
|
|
204
|
-
* @returns Calculated date by session max age seconds.
|
|
205
|
-
*/
|
|
206
|
-
protected _getDefaultCookieExpirationDate(maxAgeSecs: number): Date;
|
|
207
191
|
/**
|
|
208
192
|
* Checks if session is not usable. if it is not retires the session.
|
|
209
193
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/session_pool/session.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,YAAY,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AAC9F,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAGjD,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"session.d.ts","sourceRoot":"","sources":["../../src/session_pool/session.ts"],"names":[],"mappings":";AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,IAAI,YA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C;;;;;OAKG;IACH,eAAe,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM;IAIpC;;OAEG;IACH,SAAS,CAAC,SAAS,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAI/C;;OAEG;IACH,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,GAAG,IAAI;IAkB3D;;OAEG;IACH,SAAS,CAAC,gBAAgB,IAAI,IAAI;CAKrC"}
|
package/session_pool/session.js
CHANGED
|
@@ -9,7 +9,7 @@ const tough_cookie_1 = require("tough-cookie");
|
|
|
9
9
|
const constants_1 = require("../constants");
|
|
10
10
|
const log_1 = require("../log");
|
|
11
11
|
const events_1 = require("./events");
|
|
12
|
-
const
|
|
12
|
+
const cookie_utils_1 = require("../cookie_utils");
|
|
13
13
|
// CONSTANTS
|
|
14
14
|
const DEFAULT_SESSION_MAX_AGE_SECS = 3000;
|
|
15
15
|
/**
|
|
@@ -117,7 +117,7 @@ class Session {
|
|
|
117
117
|
log: ow_1.default.optional.object,
|
|
118
118
|
}));
|
|
119
119
|
const { sessionPool, id = `session_${(0, utilities_1.cryptoRandomObjectId)(10)}`, cookieJar = new tough_cookie_1.CookieJar(), maxAgeSecs = DEFAULT_SESSION_MAX_AGE_SECS, userData = {}, maxErrorScore = 3, errorScoreDecrement = 0.5, createdAt = new Date(), usageCount = 0, errorScore = 0, maxUsageCount = 50, log = log_1.log, } = options;
|
|
120
|
-
const { expiresAt =
|
|
120
|
+
const { expiresAt = (0, cookie_utils_1.getDefaultCookieExpirationDate)(maxAgeSecs) } = options;
|
|
121
121
|
this.log = log.child({ prefix: 'Session' });
|
|
122
122
|
this.cookieJar = cookieJar.setCookie ? cookieJar : tough_cookie_1.CookieJar.fromJSON(JSON.stringify(cookieJar));
|
|
123
123
|
this.id = id;
|
|
@@ -132,7 +132,6 @@ class Session {
|
|
|
132
132
|
this.errorScore = errorScore; // indicates number of markBaded request with the session
|
|
133
133
|
this.maxUsageCount = maxUsageCount;
|
|
134
134
|
this.sessionPool = sessionPool;
|
|
135
|
-
this._cookieObjectToTough = this._cookieObjectToTough.bind(this);
|
|
136
135
|
}
|
|
137
136
|
/**
|
|
138
137
|
* Indicates whether the session is blocked.
|
|
@@ -240,7 +239,7 @@ class Session {
|
|
|
240
239
|
*/
|
|
241
240
|
setCookiesFromResponse(response) {
|
|
242
241
|
try {
|
|
243
|
-
const cookies = (0,
|
|
242
|
+
const cookies = (0, cookie_utils_1.getCookiesFromResponse)(response).filter((c) => c);
|
|
244
243
|
this._setCookies(cookies, typeof response.url === 'function' ? response.url() : response.url);
|
|
245
244
|
}
|
|
246
245
|
catch (e) {
|
|
@@ -263,16 +262,16 @@ class Session {
|
|
|
263
262
|
* ```
|
|
264
263
|
*/
|
|
265
264
|
setCookies(cookies, url) {
|
|
266
|
-
const normalizedCookies = cookies.map(this.
|
|
265
|
+
const normalizedCookies = cookies.map((c) => (0, cookie_utils_1.browserPoolCookieToToughCookie)(c, this.maxAgeSecs));
|
|
267
266
|
this._setCookies(normalizedCookies, url);
|
|
268
267
|
}
|
|
269
268
|
/**
|
|
270
|
-
* Returns cookies in a format compatible with puppeteer and ready to be used with `page.setCookie`.
|
|
269
|
+
* Returns cookies in a format compatible with puppeteer/playwright and ready to be used with `page.setCookie`.
|
|
271
270
|
* @param url website url. Only cookies stored for this url will be returned
|
|
272
271
|
*/
|
|
273
272
|
getCookies(url) {
|
|
274
273
|
const cookies = this.cookieJar.getCookiesSync(url);
|
|
275
|
-
return cookies.map(
|
|
274
|
+
return cookies.map((c) => (0, cookie_utils_1.toughCookieToBrowserPoolCookie)(c));
|
|
276
275
|
}
|
|
277
276
|
/**
|
|
278
277
|
* Returns cookies saved with the session in the typical
|
|
@@ -289,43 +288,6 @@ class Session {
|
|
|
289
288
|
setCookie(rawCookie, url) {
|
|
290
289
|
this.cookieJar.setCookieSync(rawCookie, url);
|
|
291
290
|
}
|
|
292
|
-
/**
|
|
293
|
-
* Transforms puppeteer cookie to tough-cookie.
|
|
294
|
-
* @param cookieObject Cookie object (for instance from the `page.cookies` method).
|
|
295
|
-
*/
|
|
296
|
-
_cookieObjectToTough(cookieObject) {
|
|
297
|
-
const isExpiresValid = cookieObject.expires && typeof cookieObject.expires === 'number' && cookieObject.expires > 0;
|
|
298
|
-
const expires = isExpiresValid ? new Date(cookieObject.expires * 1000) : this._getDefaultCookieExpirationDate(this.maxAgeSecs);
|
|
299
|
-
const domain = typeof cookieObject.domain === 'string' && cookieObject.domain.startsWith('.')
|
|
300
|
-
? cookieObject.domain.slice(1)
|
|
301
|
-
: cookieObject.domain;
|
|
302
|
-
return new tough_cookie_1.Cookie({
|
|
303
|
-
key: cookieObject.name,
|
|
304
|
-
value: cookieObject.value,
|
|
305
|
-
expires,
|
|
306
|
-
domain,
|
|
307
|
-
path: cookieObject.path,
|
|
308
|
-
secure: cookieObject.secure,
|
|
309
|
-
httpOnly: cookieObject.httpOnly,
|
|
310
|
-
});
|
|
311
|
-
}
|
|
312
|
-
/**
|
|
313
|
-
* Transforms tough-cookie to puppeteer cookie.
|
|
314
|
-
* @param toughCookie Cookie from CookieJar
|
|
315
|
-
* @return Cookie from Puppeteer
|
|
316
|
-
*/
|
|
317
|
-
_toughCookieToPuppeteer(toughCookie) {
|
|
318
|
-
return {
|
|
319
|
-
name: toughCookie.key,
|
|
320
|
-
value: toughCookie.value,
|
|
321
|
-
// Puppeteer and Playwright expect 'expires' to be 'Unix time in seconds', not ms
|
|
322
|
-
expires: new Date(toughCookie.expires).getTime() / 1000,
|
|
323
|
-
domain: toughCookie.domain,
|
|
324
|
-
path: toughCookie.path,
|
|
325
|
-
secure: toughCookie.secure,
|
|
326
|
-
httpOnly: toughCookie.httpOnly,
|
|
327
|
-
};
|
|
328
|
-
}
|
|
329
291
|
/**
|
|
330
292
|
* Sets cookies.
|
|
331
293
|
*/
|
|
@@ -345,14 +307,6 @@ class Session {
|
|
|
345
307
|
this.log.debug('Could not set cookies.', { errorMessages });
|
|
346
308
|
}
|
|
347
309
|
}
|
|
348
|
-
/**
|
|
349
|
-
* Calculate cookie expiration date
|
|
350
|
-
* @param maxAgeSecs
|
|
351
|
-
* @returns Calculated date by session max age seconds.
|
|
352
|
-
*/
|
|
353
|
-
_getDefaultCookieExpirationDate(maxAgeSecs) {
|
|
354
|
-
return new Date(Date.now() + (maxAgeSecs * 1000));
|
|
355
|
-
}
|
|
356
310
|
/**
|
|
357
311
|
* Checks if session is not usable. if it is not retires the session.
|
|
358
312
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/session_pool/session.ts"],"names":[],"mappings":";;;;AACA,gDAAwD;AAGxD,6CAA2C;AAC3C,oDAAoB;
|
|
1
|
+
{"version":3,"file":"session.js","sourceRoot":"","sources":["../../src/session_pool/session.ts"],"names":[],"mappings":";;;;AACA,gDAAwD;AAGxD,6CAA2C;AAC3C,oDAAoB;AAEpB,+CAAyC;AACzC,4CAAoD;AACpD,gCAA2C;AAC3C,qCAAiD;AACjD,kDAAyJ;AAEzJ,YAAY;AACZ,MAAM,4BAA4B,GAAG,IAAI,CAAC;AA6E1C;;;;;GAKG;AACH,MAAa,OAAO;IAehB;;OAEG;IACH,YAAY,OAAuB;QAjBnC;;;;;WAAoB;QACpB;;;;;WAA2B;QAC3B;;;;;WAAqB;QACrB;;;;;WAA8B;QAC9B;;;;;WAAoC;QACpC;;;;;WAAwB;QACxB;;;;;WAAwB;QACxB;;;;;WAA2B;QAC3B;;;;;WAA8B;QAC9B;;;;;WAA0D;QAC1D;;;;;WAA2B;QAC3B;;;;;WAA6B;QAC7B;;;;;WAAiB;QAMb,IAAA,YAAE,EAAC,OAAO,EAAE,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC;YAC7B,WAAW,EAAE,YAAE,CAAC,MAAM,CAAC,UAAU,CAAC,0BAAY,CAAC;YAC/C,EAAE,EAAE,YAAE,CAAC,QAAQ,CAAC,MAAM;YACtB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CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;IACjD,CAAC;IAED;;OAEG;IACO,WAAW,CAAC,OAAiB,EAAE,GAAW;QAChD,MAAM,aAAa,GAAa,EAAE,CAAC;QAEnC,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE;YAC1B,IAAI;gBACA,IAAI,CAAC,SAAS,CAAC,aAAa,CAAC,MAAM,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC,CAAC;aACrE;YAAC,OAAO,CAAC,EAAE;gBACR,MAAM,GAAG,GAAG,CAAU,CAAC;gBACvB,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;aACnC;SACJ;QAED,sGAAsG;QACtG,IAAI,aAAa,CAAC,MAAM,EAAE;YACtB,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,wBAAwB,EAAE,EAAE,aAAa,EAAE,CAAC,CAAC;SAC/D;IACL,CAAC;IAED;;OAEG;IACO,gBAAgB;QACtB,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE;YAClB,IAAI,CAAC,MAAM,EAAE,CAAC;SACjB;IACL,CAAC;CACJ;AA/QD,0BA+QC"}
|
|
@@ -457,10 +457,10 @@ export declare type Source = string | (Partial<RequestOptions> & {
|
|
|
457
457
|
requestsFromUrl?: string;
|
|
458
458
|
regex?: RegExp;
|
|
459
459
|
}) | Request;
|
|
460
|
-
|
|
460
|
+
interface InternalSource {
|
|
461
461
|
requestsFromUrl: string;
|
|
462
462
|
regex?: RegExp;
|
|
463
|
-
}
|
|
463
|
+
}
|
|
464
464
|
export declare type RequestListSourcesFunction = () => Promise<Source[]>;
|
|
465
465
|
export {};
|
|
466
466
|
//# sourceMappingURL=request_list.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"request_list.d.ts","sourceRoot":"","sources":["../../src/storages/request_list.ts"],"names":[],"mappings":";AAKA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAk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