@percy/sdk-utils 1.26.2 → 1.26.3-alpha.4

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/bundle.js +7 -11
  2. package/package.json +3 -3
package/dist/bundle.js CHANGED
@@ -1,8 +1,8 @@
1
- (function() {
1
+ (function () {
2
2
  (function (exports) {
3
3
  'use strict';
4
4
 
5
- const process = (typeof globalThis !== "undefined" && globalThis.process) || {};
5
+ const process = typeof globalThis !== "undefined" && globalThis.process || {};
6
6
  process.env = process.env || {};
7
7
  process.env.__PERCY_BROWSERIFIED__ = true;
8
8
 
@@ -151,7 +151,7 @@
151
151
  request.fetch = async function fetch(url, options) {
152
152
  let {
153
153
  default: http
154
- } = await ({});
154
+ } = await {};
155
155
  return new Promise((resolve, reject) => {
156
156
  http.request(url, options).on('response', response => {
157
157
  let body = '';
@@ -193,7 +193,6 @@
193
193
  }
194
194
  return info.enabled;
195
195
  }
196
-
197
196
  const RETRY_ERROR_CODES = ['ECONNRESET', 'ETIMEDOUT'];
198
197
  async function waitForPercyIdle() {
199
198
  try {
@@ -251,7 +250,6 @@
251
250
  await request.post('/percy/flush', options);
252
251
  }
253
252
  }
254
-
255
253
  var index = /*#__PURE__*/Object.freeze({
256
254
  __proto__: null,
257
255
  logger: logger,
@@ -265,7 +263,6 @@
265
263
  flushSnapshots: flushSnapshots,
266
264
  'default': index
267
265
  });
268
-
269
266
  exports["default"] = index;
270
267
  exports.fetchPercyDOM = fetchPercyDOM;
271
268
  exports.flushSnapshots = flushSnapshots;
@@ -276,14 +273,13 @@
276
273
  exports.postSnapshot = postSnapshot;
277
274
  exports.request = request;
278
275
  exports.waitForPercyIdle = waitForPercyIdle;
279
-
280
- Object.defineProperty(exports, '__esModule', { value: true });
281
-
276
+ Object.defineProperty(exports, '__esModule', {
277
+ value: true
278
+ });
282
279
  })(this.PercySDKUtils = this.PercySDKUtils || {});
283
280
  }).call(window);
284
-
285
281
  if (typeof define === "function" && define.amd) {
286
282
  define("@percy/sdk-utils", [], () => window.PercySDKUtils);
287
283
  } else if (typeof module === "object" && module.exports) {
288
284
  module.exports = window.PercySDKUtils;
289
- }
285
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/sdk-utils",
3
- "version": "1.26.2",
3
+ "version": "1.26.3-alpha.4",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -9,7 +9,7 @@
9
9
  },
10
10
  "publishConfig": {
11
11
  "access": "public",
12
- "tag": "latest"
12
+ "tag": "alpha"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=14"
@@ -51,5 +51,5 @@
51
51
  ]
52
52
  }
53
53
  },
54
- "gitHead": "f97b6c463109420a4045dc0396bf9d429c2dc77d"
54
+ "gitHead": "d89ab97b8d5169eafd3eb42bdbbef41a2ac624ba"
55
55
  }