Socket
Socket
Sign inDemoInstall

@percy/core

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/core - npm Package Compare versions

Comparing version 1.10.3 to 1.10.4

58

dist/config.js

@@ -31,5 +31,2 @@ // Common config options used in Percy commands

type: 'string'
},
devicePixelRatio: {
type: 'integer'
}

@@ -133,2 +130,5 @@ }

},
devicePixelRatio: {
type: 'integer'
},
concurrency: {

@@ -185,5 +185,2 @@ type: 'integer',

},
devicePixelRatio: {
$ref: '/config/snapshot#/properties/devicePixelRatio'
},
discovery: {

@@ -210,2 +207,5 @@ type: 'object',

$ref: '/config/discovery#/properties/userAgent'
},
devicePixelRatio: {
$ref: '/config/discovery#/properties/devicePixelRatio'
}

@@ -492,15 +492,7 @@ }

} else {
let notice = {
util.deprecate('snapshot.devicePixelRatio', {
map: 'discovery.devicePixelRatio',
type: 'config',
until: '1.0.0'
}; // snapshot discovery options have moved
util.deprecate('snapshot.authorization', {
map: 'discovery.authorization',
...notice
until: '2.0.0'
});
util.deprecate('snapshot.requestHeaders', {
map: 'discovery.requestHeaders',
...notice
});
}

@@ -510,21 +502,9 @@ } // Snapshot option migrate function

export function snapshotMigration(config, util, root = '') {
let notice = {
// discovery options have moved
util.deprecate(`${root}.devicePixelRatio`, {
map: `${root}.discovery.devicePixelRatio`,
type: 'snapshot',
until: '1.0.0',
until: '2.0.0',
warn: true
}; // discovery options have moved
util.deprecate(`${root}.authorization`, {
map: `${root}.discovery.authorization`,
...notice
});
util.deprecate(`${root}.requestHeaders`, {
map: `${root}.discovery.requestHeaders`,
...notice
}); // snapshots option was renamed
util.deprecate(`${root}.snapshots`, {
map: `${root}.additionalSnapshots`,
...notice
});
} // Snapshot list options migrate function

@@ -540,15 +520,5 @@

}
} // overrides option was renamed
} // migrate options
let notice = {
type: 'snapshot',
until: '1.0.0',
warn: true
};
util.deprecate('overrides', {
map: 'options',
...notice
}); // migrate options
if (Array.isArray(config.options)) {

@@ -555,0 +525,0 @@ for (let i in config.options) {

@@ -407,7 +407,7 @@ import logger from '@percy/logger';

if (snapshot.devicePixelRatio) {
if (snapshot.discovery.devicePixelRatio) {
// wait for any existing pending resource requests first
yield waitForDiscoveryNetworkIdle(page, snapshot.discovery);
yield* triggerResourceRequests(page, snapshot, {
deviceScaleFactor: snapshot.devicePixelRatio,
deviceScaleFactor: snapshot.discovery.devicePixelRatio,
mobile: true

@@ -414,0 +414,0 @@ });

{
"name": "@percy/core",
"version": "1.10.3",
"version": "1.10.4",
"license": "MIT",

@@ -42,6 +42,6 @@ "repository": {

"dependencies": {
"@percy/client": "1.10.3",
"@percy/config": "1.10.3",
"@percy/dom": "1.10.3",
"@percy/logger": "1.10.3",
"@percy/client": "1.10.4",
"@percy/config": "1.10.4",
"@percy/dom": "1.10.4",
"@percy/logger": "1.10.4",
"content-disposition": "^0.5.4",

@@ -57,3 +57,3 @@ "cross-spawn": "^7.0.3",

},
"gitHead": "a9858d20a9b9708da0464c0617b32b2ee1c97433"
"gitHead": "16a9a410bfcb8eab51b86a08cff12d8d35e4747e"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc