@percy/cli-upload 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/upload.js +8 -4
  2. package/package.json +4 -4
package/dist/upload.js CHANGED
@@ -1,3 +1,8 @@
1
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
5
+ function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
1
6
  import fs from 'fs';
2
7
  import path from 'path';
3
8
  import command from '@percy/cli-command';
@@ -86,11 +91,10 @@ export const upload = command('upload', {
86
91
  log.info(`Skipping unsupported file type: ${relativePath}`);
87
92
  } else {
88
93
  let absolutePath = path.resolve(args.dirname, relativePath);
89
- let img = {
94
+ let img = _objectSpread({
90
95
  relativePath,
91
- absolutePath,
92
- ...imageSize(absolutePath)
93
- };
96
+ absolutePath
97
+ }, imageSize(absolutePath));
94
98
  let {
95
99
  dir,
96
100
  name,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-upload",
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"
@@ -33,9 +33,9 @@
33
33
  ]
34
34
  },
35
35
  "dependencies": {
36
- "@percy/cli-command": "1.26.2",
36
+ "@percy/cli-command": "1.26.3-alpha.4",
37
37
  "fast-glob": "^3.2.11",
38
38
  "image-size": "^1.0.0"
39
39
  },
40
- "gitHead": "f97b6c463109420a4045dc0396bf9d429c2dc77d"
40
+ "gitHead": "d89ab97b8d5169eafd3eb42bdbbef41a2ac624ba"
41
41
  }