Socket
Socket
Sign inDemoInstall

@percy/cli-upload

Package Overview
Dependencies
Maintainers
6
Versions
238
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/cli-upload - npm Package Compare versions

Comparing version 1.0.0-beta.71 to 1.0.0-beta.72

dist/upload.js

12

dist/resources.js

@@ -6,3 +6,4 @@ "use strict";

});
exports.default = createImageResources;
exports.createImageResources = createImageResources;
exports.default = void 0;

@@ -39,3 +40,3 @@ var _path = _interopRequireDefault(require("path"));

function createImageResources(filename, content, width, height) {
function createImageResources(filename, content, size) {
let {

@@ -63,6 +64,9 @@ dir,

<body>
<img src="${imageUrl}" width="${width}px" height="${height}px"/>
<img src="${imageUrl}" width="${size.width}px" height="${size.height}px"/>
</body>
</html>
`), createImageResource(imageUrl, content, mimetype)];
}
}
var _default = createImageResources;
exports.default = _default;
{
"name": "@percy/cli-upload",
"version": "1.0.0-beta.71",
"version": "1.0.0-beta.72",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/percy/cli",
"directory": "packages/cli-upload"
},
"publishConfig": {
"access": "public"
},
"main": "dist/index.js",
"files": [
"dist",
"oclif.manifest.json"
"dist"
],

@@ -16,31 +23,19 @@ "engines": {

"lint": "eslint --ignore-path ../../.gitignore .",
"postbuild": "oclif-dev manifest",
"readme": "oclif-dev readme",
"readme": "percy-cli-readme",
"test": "node ../../scripts/test",
"test:coverage": "yarn test --coverage"
},
"publishConfig": {
"access": "public"
"@percy/cli": {
"commands": [
"./dist/upload.js"
]
},
"oclif": {
"bin": "percy",
"commands": "./dist/commands",
"hooks": {
"init": "./dist/hooks/init"
}
},
"dependencies": {
"@percy/cli-command": "1.0.0-beta.71",
"@percy/client": "1.0.0-beta.71",
"@percy/config": "1.0.0-beta.71",
"@percy/logger": "1.0.0-beta.71",
"@percy/cli-command": "1.0.0-beta.72",
"@percy/client": "1.0.0-beta.72",
"@percy/logger": "1.0.0-beta.72",
"globby": "^11.0.4",
"image-size": "^1.0.0"
},
"repository": {
"type": "git",
"url": "https://github.com/percy/cli",
"directory": "packages/cli-upload"
},
"gitHead": "364d1df717fb19a26ccb024458df6e78a9c11f99"
"gitHead": "6219287e18a0cacb609d0c2696a5785abc9009b9"
}

@@ -7,5 +7,5 @@ # @percy/cli-upload

<!-- commands -->
* [`percy upload DIRNAME`](#percy-upload-dirname)
* [`percy upload`](#percy-upload)
## `percy upload DIRNAME`
### `percy upload`

@@ -15,19 +15,25 @@ Upload a directory of images to Percy

```
USAGE
$ percy upload DIRNAME
Usage:
$ percy upload [options] <dirname>
ARGUMENTS
DIRNAME directory of images to upload
Arguments:
dirname Directory of images to upload
OPTIONS
-c, --config=config configuration file path
-d, --dry-run prints a list of matching images to upload without uploading
-e, --strip-extensions strips file extensions from snapshot names
-f, --files=files [default: **/*.{png,jpg,jpeg}] one or more globs matching image file paths to upload
-i, --ignore=ignore one or more globs matching image file paths to ignore
-q, --quiet log errors only
-v, --verbose log everything
--silent log nothing
Options:
-f, --files [pattern] One or more globs matching image file paths to upload (default:
"**/*.{png,jpg,jpeg}")
-i, --ignore <pattern> One or more globs matching image file paths to ignore
-e, --strip-extensions Strips file extensions from snapshot names
EXAMPLE
Percy options:
-c, --config <file> Config file path
-d, --dry-run Print snapshot names only
Global options:
-v, --verbose Log everything
-q, --quiet Log errors only
-s, --silent Log nothing
-h, --help Display command help
Examples:
$ percy upload ./images

@@ -34,0 +40,0 @@ ```

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc