UNPKG

rebrowser-puppeteer-core

Version:

A drop-in replacement for puppeteer-core patched with rebrowser-patches. It allows to pass modern automation detection tests.

22 lines 535 B
"use strict"; /** * @license * Copyright 2020 Google Inc. * SPDX-License-Identifier: Apache-2.0 */ Object.defineProperty(exports, "__esModule", { value: true }); exports.assert = void 0; /** * Asserts that the given value is truthy. * @param value - some conditional statement * @param message - the error message to throw if the value is not truthy. * * @internal */ const assert = (value, message) => { if (!value) { throw new Error(message); } }; exports.assert = assert; //# sourceMappingURL=assert.js.map