@percy/cli-upload
Advanced tools
Comparing version 1.0.0-beta.31 to 1.0.0-beta.32
@@ -6,2 +6,3 @@ "use strict"; | ||
}); | ||
exports.migration = migration; | ||
exports.schema = void 0; | ||
@@ -38,2 +39,13 @@ const schema = { | ||
}; | ||
exports.schema = schema; | ||
exports.schema = schema; | ||
function migration(input, set) { | ||
/* eslint-disable curly */ | ||
if (input.version < 2) { | ||
var _input$imageSnapshots, _input$imageSnapshots2; | ||
// image-snapshots and options were renamed | ||
if (((_input$imageSnapshots = input.imageSnapshots) === null || _input$imageSnapshots === void 0 ? void 0 : _input$imageSnapshots.files) != null) set('upload.files', input.imageSnapshots.files); | ||
if (((_input$imageSnapshots2 = input.imageSnapshots) === null || _input$imageSnapshots2 === void 0 ? void 0 : _input$imageSnapshots2.ignore) != null) set('upload.ignore', input.imageSnapshots.ignore); | ||
} | ||
} |
@@ -16,2 +16,4 @@ "use strict"; | ||
_config.default.addSchema(_config2.schema); | ||
_config.default.addMigration(_config2.migration); | ||
} |
@@ -1,1 +0,1 @@ | ||
{"version":"1.0.0-beta.31","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"},"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}]}}} | ||
{"version":"1.0.0-beta.32","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"},"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}]}}} |
{ | ||
"name": "@percy/cli-upload", | ||
"version": "1.0.0-beta.31", | ||
"version": "1.0.0-beta.32", | ||
"license": "MIT", | ||
@@ -10,2 +10,5 @@ "main": "dist/index.js", | ||
], | ||
"engines": { | ||
"node": ">=12" | ||
}, | ||
"scripts": { | ||
@@ -16,3 +19,3 @@ "build": "babel --root-mode upward src --out-dir dist", | ||
"readme": "oclif-dev readme", | ||
"test": "cross-env NODE_ENV=test mocha", | ||
"test": "cross-env NODE_ENV=test mocha --recursive", | ||
"test:coverage": "nyc yarn test" | ||
@@ -34,10 +37,10 @@ }, | ||
"dependencies": { | ||
"@percy/cli-command": "^1.0.0-beta.31", | ||
"@percy/client": "^1.0.0-beta.31", | ||
"@percy/config": "^1.0.0-beta.31", | ||
"@percy/logger": "^1.0.0-beta.31", | ||
"@percy/cli-command": "^1.0.0-beta.32", | ||
"@percy/client": "^1.0.0-beta.32", | ||
"@percy/config": "^1.0.0-beta.32", | ||
"@percy/logger": "^1.0.0-beta.32", | ||
"globby": "^11.0.1", | ||
"image-size": "^0.9.1" | ||
}, | ||
"gitHead": "6971cd1f6cf69c8516a091ee59bf6dabf8780820" | ||
"gitHead": "edbef4c5ded9427447b25c13dda0ecd2639fc370" | ||
} |
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
13641
236