Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
18 lines
733 B
Plaintext
18 lines
733 B
Plaintext
"use strict";
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
exports.Context = void 0;
|
|
var logger_1 = require("./logger");
|
|
var cache_storage_1 = require("./cache-storage");
|
|
var Context = /** @class */ (function () {
|
|
function Context(options, windowBounds) {
|
|
var _a;
|
|
this.windowBounds = windowBounds;
|
|
this.instanceName = "#" + Context.instanceCount++;
|
|
this.logger = new logger_1.Logger({ id: this.instanceName, enabled: options.logging });
|
|
this.cache = (_a = options.cache) !== null && _a !== void 0 ? _a : new cache_storage_1.Cache(this, options);
|
|
}
|
|
Context.instanceCount = 1;
|
|
return Context;
|
|
}());
|
|
exports.Context = Context;
|
|
//# sourceMappingURL=context.js.map |