20 lines
2.9 KiB
JavaScript
20 lines
2.9 KiB
JavaScript
|
"use strict";
|
||
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||
|
exports.ProxyCookieProvider = void 0;
|
||
|
const base_1 = require("./base");
|
||
|
class ProxyCookieProvider extends base_1.CookieProviderBase {
|
||
|
async getCookies(externalCookies, urls) {
|
||
|
const session = this.testRun.session;
|
||
|
return session.cookies.getCookies(externalCookies, urls);
|
||
|
}
|
||
|
async setCookies(cookies, url) {
|
||
|
const session = this.testRun.session;
|
||
|
return session.cookies.setCookies(cookies, url);
|
||
|
}
|
||
|
async deleteCookies(cookies, urls) {
|
||
|
const session = this.testRun.session;
|
||
|
return session.cookies.deleteCookies(cookies, urls);
|
||
|
}
|
||
|
}
|
||
|
exports.ProxyCookieProvider = ProxyCookieProvider;
|
||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHJvdmlkZXIuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGVzdC1ydW4vY29va2llcy9wcm92aWRlci50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7QUFFQSxpQ0FBNEQ7QUFFNUQsTUFBYSxtQkFBb0IsU0FBUSx5QkFBa0I7SUFDdkQsS0FBSyxDQUFDLFVBQVUsQ0FBRSxlQUFrQyxFQUFFLElBQWM7UUFDaEUsTUFBTSxPQUFPLEdBQUcsSUFBSSxDQUFDLE9BQU8sQ0FBQyxPQUFPLENBQUM7UUFFckMsT0FBTyxPQUFPLENBQUMsT0FBTyxDQUFDLFVBQVUsQ0FBQyxlQUFlLEVBQUUsSUFBSSxDQUFDLENBQUM7SUFDN0QsQ0FBQztJQUVELEtBQUssQ0FBQyxVQUFVLENBQUUsT0FBd0IsRUFBRSxHQUFXO1FBQ25ELE1BQU0sT0FBTyxHQUFHLElBQUksQ0FBQyxPQUFPLENBQUMsT0FBTyxDQUFDO1FBRXJDLE9BQU8sT0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3RyaW5nKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgICAgIGNvbnN0IHNlc3Npb24gPSB0aGlzLnRlc3RSdW4uc2Vzc2lvbjtcblxuICAgICAgICByZXR1cm4gc2Vzc2lvbi5jb29raWVzLnNldENvb2tpZXMoY29va2llcywgdXJsKTtcbiAgICB9XG5cbiAgICBhc3luYyBkZWxldGVDb29raWVzIChjb29raWVzOiBDb29raWVPcHRpb25zW10sIHVybHM6IHN0cmluZ1tdKTogUHJvbWlzZTx2b2lkPiB7XG4gICAgICAgIGNvbnN0IHNlc3Npb24gPSB0aGlzLnRlc3RSdW4uc2Vzc2lvbjtcblxuICAgICAgICByZXR1cm4gc2Vzc2lvbi5jb29raWVzLmRlbGV0ZUNvb2tpZXMoY29va2llcywgdXJscyk7XG4gICAgfVxufVxuIl19
|