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.17.0 to 1.18.0

3

dist/config.js

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

},
sha: {
type: 'string'
},
statusBarHeight: {

@@ -581,0 +584,0 @@ type: 'integer',

10

dist/discovery.js

@@ -36,2 +36,3 @@ import logger from '@percy/logger';

debugProp(snapshot, 'discovery.disallowedHostnames');
debugProp(snapshot, 'discovery.devicePixelRatio');
debugProp(snapshot, 'discovery.requestHeaders', JSON.stringify);

@@ -263,3 +264,3 @@ debugProp(snapshot, 'discovery.authorization', JSON.stringify);

// Used to cache resources across core instances
const RESOURCE_CACHE_KEY = Symbol('resource-cache');
export const RESOURCE_CACHE_KEY = Symbol('resource-cache');

@@ -319,3 +320,8 @@ // Creates an asset discovery queue that uses the percy browser instance to create a page for each

getResource: u => snapshot.resources.get(u) || cache.get(u),
saveResource: r => snapshot.resources.set(r.url, r) && cache.set(r.url, r)
saveResource: r => {
snapshot.resources.set(r.url, r);
if (!r.root) {
cache.set(r.url, r);
}
}
}

@@ -322,0 +328,0 @@ });

@@ -49,2 +49,3 @@ import PercyClient from '@percy/client';

port = 5338,
projectType = null,
// options such as `snapshot` and `discovery` that are valid Percy config

@@ -65,2 +66,3 @@ // options which will become accessible via the `.config` property

if (loglevel) this.loglevel(loglevel);
this.projectType = projectType;
this.testing = testing ? {} : null;

@@ -67,0 +69,0 @@ this.dryRun = !!testing || !!dryRun;

@@ -124,2 +124,3 @@ import logger from '@percy/logger';

networkIdleTimeout: config.discovery.networkIdleTimeout,
devicePixelRatio: config.discovery.devicePixelRatio,
requestHeaders: config.discovery.requestHeaders,

@@ -332,3 +333,5 @@ authorization: config.discovery.authorization,

data
} = await percy.client.createBuild();
} = await percy.client.createBuild({
projectType: percy.projectType
});
let url = data.attributes['web-url'];

@@ -335,0 +338,0 @@ let number = data.attributes['build-number'];

{
"name": "@percy/core",
"version": "1.17.0",
"version": "1.18.0",
"license": "MIT",

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

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

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

},
"gitHead": "b7b2403047ea6208de71c73232df8a5375781a30"
"gitHead": "8aeb759653765fea11e8ebeb96c53a4c4ea616b2"
}
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