@percy/cli-upload 1.0.0-beta.67 → 1.0.0-beta.70

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.
@@ -74,7 +74,8 @@ class Upload extends _cliCommand.default {
74
74
  if (!l) this.error(`No matching files found in '${dirname}'`);
75
75
  paths.sort();
76
76
  this.client = new _client.default({
77
- clientInfo: `${_package.default.name}/${_package.default.version}`
77
+ clientInfo: `${_package.default.name}/${_package.default.version}`,
78
+ environmentInfo: `node/${process.version}`
78
79
  });
79
80
 
80
81
  if (dry) {
@@ -139,8 +140,8 @@ class Upload extends _cliCommand.default {
139
140
  if (error) this.queue.close(true);
140
141
  if (this.closing) return;
141
142
  this.closing = true;
142
- await this.queue.empty(len => {
143
- this.log.progress(`Uploading ${len}` + ` snapshot${len !== 1 ? 's' : ''}...`, !!len);
143
+ await this.queue.empty(s => {
144
+ this.log.progress(`Uploading ${s} snapshot${s !== 1 ? 's' : ''}...`, !!s);
144
145
  });
145
146
  await this.client.finalizeBuild(this.build.id);
146
147
  this.log.info(`Finalized build #${this.build.number}: ${this.build.url}`);
@@ -1 +1 @@
1
- {"version":"1.0.0-beta.67","commands":{"upload":{"id":"upload","description":"Upload a directory of images to Percy","pluginName":"@percy/cli-upload","pluginType":"core","aliases":[],"examples":["$ percy upload ./images"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"log everything","allowNo":false},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"log errors only","allowNo":false},"silent":{"name":"silent","type":"boolean","description":"log nothing","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"configuration file path"},"files":{"name":"files","type":"option","char":"f","description":"one or more globs matching image file paths to upload","default":"**/*.{png,jpg,jpeg}"},"ignore":{"name":"ignore","type":"option","char":"i","description":"one or more globs matching image file paths to ignore"},"strip-extensions":{"name":"strip-extensions","type":"boolean","char":"e","description":"strips file extensions from snapshot names","allowNo":false},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"prints a list of matching images to upload without uploading","allowNo":false}},"args":[{"name":"dirname","description":"directory of images to upload","required":true}]}}}
1
+ {"version":"1.0.0-beta.70","commands":{"upload":{"id":"upload","description":"Upload a directory of images to Percy","pluginName":"@percy/cli-upload","pluginType":"core","aliases":[],"examples":["$ percy upload ./images"],"flags":{"verbose":{"name":"verbose","type":"boolean","char":"v","description":"log everything","allowNo":false},"quiet":{"name":"quiet","type":"boolean","char":"q","description":"log errors only","allowNo":false},"silent":{"name":"silent","type":"boolean","description":"log nothing","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"configuration file path"},"files":{"name":"files","type":"option","char":"f","description":"one or more globs matching image file paths to upload","default":"**/*.{png,jpg,jpeg}"},"ignore":{"name":"ignore","type":"option","char":"i","description":"one or more globs matching image file paths to ignore"},"strip-extensions":{"name":"strip-extensions","type":"boolean","char":"e","description":"strips file extensions from snapshot names","allowNo":false},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"prints a list of matching images to upload without uploading","allowNo":false}},"args":[{"name":"dirname","description":"directory of images to upload","required":true}]}}}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@percy/cli-upload",
3
- "version": "1.0.0-beta.67",
3
+ "version": "1.0.0-beta.70",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -29,10 +29,10 @@
29
29
  }
30
30
  },
31
31
  "dependencies": {
32
- "@percy/cli-command": "1.0.0-beta.67",
33
- "@percy/client": "1.0.0-beta.67",
34
- "@percy/config": "1.0.0-beta.67",
35
- "@percy/logger": "1.0.0-beta.67",
32
+ "@percy/cli-command": "1.0.0-beta.70",
33
+ "@percy/client": "1.0.0-beta.70",
34
+ "@percy/config": "1.0.0-beta.70",
35
+ "@percy/logger": "1.0.0-beta.70",
36
36
  "globby": "^11.0.4",
37
37
  "image-size": "^1.0.0"
38
38
  },
@@ -41,5 +41,5 @@
41
41
  "url": "https://github.com/percy/cli",
42
42
  "directory": "packages/cli-upload"
43
43
  },
44
- "gitHead": "8b6d0d9f332e2d9055927a6ca780e246a7698ede"
44
+ "gitHead": "34f37a98ff71281cebadd39e53bb55a65b0d3456"
45
45
  }