@percy/core 1.28.8-beta.1 → 1.28.8-beta.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/api.js +2 -2
  2. package/package.json +7 -7
package/dist/api.js CHANGED
@@ -93,7 +93,7 @@ export function createPercyServer(percy, port) {
93
93
  })
94
94
  // legacy agent wrapper for @percy/dom
95
95
  .route('get', '/percy-agent.js', async (req, res) => {
96
- logger('core:server').deprecated(['It looks like you’re using @percy/cli with an older SDK.', 'Please upgrade to the latest version to fix this warning.', 'See these docs for more info: https:docs.percy.io/docs/migrating-to-percy-cli'].join(' '));
96
+ logger('core:server').deprecated(['It looks like you’re using @percy/cli with an older SDK.', 'Please upgrade to the latest version to fix this warning.', 'See these docs for more info: https://www.browserstack.com/docs/percy/migration/migrate-to-cli'].join(' '));
97
97
  let content = await fs.promises.readFile(PERCY_DOM, 'utf-8');
98
98
  let wrapper = '(window.PercyAgent = class { snapshot(n, o) { return PercyDOM.serialize(o); } });';
99
99
  return res.send(200, 'applicaton/javascript', content.concat(wrapper));
@@ -159,7 +159,7 @@ export function createPercyServer(percy, port) {
159
159
  })).route('post', '/percy/automateScreenshot', async (req, res) => {
160
160
  let data;
161
161
  percyAutomateRequestHandler(req, percy);
162
- let comparisonData = await WebdriverUtils.automateScreenshot(req.body);
162
+ let comparisonData = await WebdriverUtils.captureScreenshot(req.body);
163
163
  if (percy.syncMode(comparisonData)) {
164
164
  const snapshotPromise = new Promise((resolve, reject) => percy.upload(comparisonData, {
165
165
  resolve,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/core",
3
- "version": "1.28.8-beta.1",
3
+ "version": "1.28.8-beta.3",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -43,11 +43,11 @@
43
43
  "test:types": "tsd"
44
44
  },
45
45
  "dependencies": {
46
- "@percy/client": "1.28.8-beta.1",
47
- "@percy/config": "1.28.8-beta.1",
48
- "@percy/dom": "1.28.8-beta.1",
49
- "@percy/logger": "1.28.8-beta.1",
50
- "@percy/webdriver-utils": "1.28.8-beta.1",
46
+ "@percy/client": "1.28.8-beta.3",
47
+ "@percy/config": "1.28.8-beta.3",
48
+ "@percy/dom": "1.28.8-beta.3",
49
+ "@percy/logger": "1.28.8-beta.3",
50
+ "@percy/webdriver-utils": "1.28.8-beta.3",
51
51
  "content-disposition": "^0.5.4",
52
52
  "cross-spawn": "^7.0.3",
53
53
  "extract-zip": "^2.0.1",
@@ -60,5 +60,5 @@
60
60
  "ws": "^8.0.0",
61
61
  "yaml": "^2.4.1"
62
62
  },
63
- "gitHead": "d31a9746c7be6d74db284b8f30c3248d2bba916e"
63
+ "gitHead": "60fcc0cc0e65b1dd9f81286a3a3cd7383f1f6220"
64
64
  }