@percy/core
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -30,4 +30,2 @@ "use strict"; | ||
var _package = _interopRequireDefault(require("../package.json")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -113,3 +111,3 @@ | ||
this.config = _config.default.load({ | ||
this.config = config === false ? _config.default.getDefaults(options) : _config.default.load({ | ||
path: config, | ||
@@ -120,5 +118,5 @@ overrides: options | ||
this.client = new _client.default({ | ||
clientInfo: [`${_package.default.name}/${_package.default.version}`].concat(clientInfo), | ||
environmentInfo, | ||
token | ||
token, | ||
clientInfo, | ||
environmentInfo | ||
}); | ||
@@ -248,3 +246,3 @@ } // Shortcut for controlling the global logger's log level. | ||
}) { | ||
var _widths, _minimumHeight, _percyCSS, _ref, _enableJavaScript; | ||
var _widths, _widths2, _minimumHeight, _ref, _enableJavaScript; | ||
@@ -257,4 +255,4 @@ // required assertions | ||
widths = (_widths = widths) !== null && _widths !== void 0 ? _widths : this.config.snapshot.widths; | ||
(0, _assert.default)(widths, 'Missing required argument: widths'); | ||
widths = ((_widths = widths) === null || _widths === void 0 ? void 0 : _widths.length) ? widths : this.config.snapshot.widths; | ||
(0, _assert.default)((_widths2 = widths) === null || _widths2 === void 0 ? void 0 : _widths2.length, 'Missing required argument: widths'); | ||
(0, _assert.default)(widths.length <= 10, 'too many widths'); // normalize the URL | ||
@@ -266,3 +264,3 @@ | ||
percyCSS = `${this.config.snapshot.percyCSS}\n${(_percyCSS = percyCSS) !== null && _percyCSS !== void 0 ? _percyCSS : ''}`.trim(); // combine snapshot request headers with instance request headers | ||
percyCSS = [this.config.snapshot.percyCSS, percyCSS].filter(Boolean).join('\n'); // combine snapshot request headers with instance request headers | ||
@@ -269,0 +267,0 @@ requestHeaders = { ...this.config.snapshot.requestHeaders, |
@@ -16,13 +16,11 @@ "use strict"; | ||
var _revisions = require("puppeteer-core/lib/cjs/puppeteer/revisions"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
const { | ||
// The default Chromium revision is defined in puppeteer's package.json. | ||
chromium_revision: DEFAULT_CHROMIUM_REVISION | ||
} = require('puppeteer-core/package.json').puppeteer; // If the default Chromium revision is not yet downloaded, download it. Lazily | ||
// Get the default revisions from within puppeteer | ||
// If the default Chromium revision is not yet downloaded, download it. Lazily | ||
// requires the progress package to print a progress bar during the download. | ||
async function maybeInstallBrowser(path = process.env.PUPPETEER_EXECUTABLE_PATH) { | ||
let revision = DEFAULT_CHROMIUM_REVISION; | ||
let revision = _revisions.PUPPETEER_REVISIONS.chromium; | ||
let local = false; | ||
@@ -29,0 +27,0 @@ |
{ | ||
"name": "@percy/core", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"license": "MIT", | ||
"main": "dist/index.js", | ||
"types": "types/index.d.ts", | ||
"license": "MIT", | ||
"files": [ | ||
@@ -27,5 +27,5 @@ "dist", | ||
"dependencies": { | ||
"@percy/client": "^1.0.0-beta.2", | ||
"@percy/dom": "^1.0.0-beta.2", | ||
"@percy/logger": "^1.0.0-beta.2", | ||
"@percy/client": "^1.0.0-beta.3", | ||
"@percy/dom": "^1.0.0-beta.3", | ||
"@percy/logger": "^1.0.0-beta.3", | ||
"body-parser": "^1.19.0", | ||
@@ -36,3 +36,3 @@ "cors": "^2.8.5", | ||
"progress": "^2.0.3", | ||
"puppeteer-core": "^4.0.0" | ||
"puppeteer-core": "^5.2.1" | ||
}, | ||
@@ -43,3 +43,3 @@ "devDependencies": { | ||
}, | ||
"gitHead": "4a04251eb211d0213e04efd460c76c5834bf4914" | ||
"gitHead": "4f66b0b984ef715774002b19bd6e767a9e50d01a" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
53243
17
1135
+ Addeddevtools-protocol@0.0.818844(transitive)
+ Addedfind-up@4.1.0(transitive)
+ Addedlocate-path@5.0.0(transitive)
+ Addedp-limit@2.3.0(transitive)
+ Addedp-locate@4.1.0(transitive)
+ Addedp-try@2.2.0(transitive)
+ Addedpath-exists@4.0.0(transitive)
+ Addedpkg-dir@4.2.0(transitive)
+ Addedpuppeteer-core@5.5.0(transitive)
- Removedmime@2.6.0(transitive)
- Removedmitt@2.1.0(transitive)
- Removedpuppeteer-core@4.0.1(transitive)
Updated@percy/client@^1.0.0-beta.3
Updated@percy/dom@^1.0.0-beta.3
Updated@percy/logger@^1.0.0-beta.3
Updatedpuppeteer-core@^5.2.1