@percy/core
Advanced tools
Comparing version 1.17.0 to 1.18.0
@@ -579,2 +579,5 @@ // Common config options used in Percy commands | ||
}, | ||
sha: { | ||
type: 'string' | ||
}, | ||
statusBarHeight: { | ||
@@ -581,0 +584,0 @@ type: 'integer', |
@@ -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" | ||
} |
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
170813
4121
+ Added@percy/client@1.18.0(transitive)
+ Added@percy/config@1.18.0(transitive)
+ Added@percy/dom@1.18.0(transitive)
+ Added@percy/env@1.18.0(transitive)
+ Added@percy/logger@1.18.0(transitive)
- Removed@percy/client@1.17.0(transitive)
- Removed@percy/config@1.17.0(transitive)
- Removed@percy/dom@1.17.0(transitive)
- Removed@percy/env@1.17.0(transitive)
- Removed@percy/logger@1.17.0(transitive)
Updated@percy/client@1.18.0
Updated@percy/config@1.18.0
Updated@percy/dom@1.18.0
Updated@percy/logger@1.18.0