Socket
Socket
Sign inDemoInstall

@percy/cli-snapshot

Package Overview
Dependencies
Maintainers
6
Versions
237
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@percy/cli-snapshot - npm Package Compare versions

Comparing version 1.0.0-beta.13 to 1.0.0-beta.14

13

dist/commands/snapshot.js

@@ -95,9 +95,12 @@ "use strict";

async serve(staticDir, baseUrl) {
let express = require('express');
let http = require('http');
let app = express();
app.use(require('cors')());
app.use(baseUrl, express.static(staticDir));
let serve = require('serve-handler');
return new Promise(resolve => {
this.server = app.listen(() => {
this.server = http.createServer((req, res) => {
serve(req, res, {
public: staticDir
});
}).listen(() => {
let {

@@ -104,0 +107,0 @@ port

@@ -1,1 +0,1 @@

{"version":"1.0.0-beta.13","commands":{"snapshot":{"id":"snapshot","description":"Snapshot a list of pages from a file or directory","pluginName":"@percy/cli-snapshot","pluginType":"core","aliases":[],"examples":["$ percy snapshot ./public","$ percy snapshot pages.yml"],"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},"allowed-hostname":{"name":"allowed-hostname","type":"option","char":"h","description":"allowed hostnames"},"network-idle-timeout":{"name":"network-idle-timeout","type":"option","char":"t","description":"asset discovery idle timeout"},"disable-asset-cache":{"name":"disable-asset-cache","type":"boolean","description":"disable asset discovery caches","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"configuration file path"},"base-url":{"name":"base-url","type":"option","char":"b","description":"the url path to serve the static directory from","default":"/"},"files":{"name":"files","type":"option","char":"f","description":"one or more globs matching static file paths to snapshot","default":"**/*.{html,htm}"},"ignore":{"name":"ignore","type":"option","char":"i","description":"one or more globs matching static file paths to ignore"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"prints a list of pages to snapshot without snapshotting","allowNo":false}},"args":[{"name":"pathname","description":"path to a directory or file containing a list of pages","required":true}]}}}
{"version":"1.0.0-beta.14","commands":{"snapshot":{"id":"snapshot","description":"Snapshot a list of pages from a file or directory","pluginName":"@percy/cli-snapshot","pluginType":"core","aliases":[],"examples":["$ percy snapshot ./public","$ percy snapshot pages.yml"],"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},"allowed-hostname":{"name":"allowed-hostname","type":"option","char":"h","description":"allowed hostnames"},"network-idle-timeout":{"name":"network-idle-timeout","type":"option","char":"t","description":"asset discovery idle timeout"},"disable-asset-cache":{"name":"disable-asset-cache","type":"boolean","description":"disable asset discovery caches","allowNo":false},"config":{"name":"config","type":"option","char":"c","description":"configuration file path"},"base-url":{"name":"base-url","type":"option","char":"b","description":"the url path to serve the static directory from","default":"/"},"files":{"name":"files","type":"option","char":"f","description":"one or more globs matching static file paths to snapshot","default":"**/*.{html,htm}"},"ignore":{"name":"ignore","type":"option","char":"i","description":"one or more globs matching static file paths to ignore"},"dry-run":{"name":"dry-run","type":"boolean","char":"d","description":"prints a list of pages to snapshot without snapshotting","allowNo":false}},"args":[{"name":"pathname","description":"path to a directory or file containing a list of pages","required":true}]}}}
{
"name": "@percy/cli-snapshot",
"version": "1.0.0-beta.13",
"version": "1.0.0-beta.14",
"license": "MIT",

@@ -34,13 +34,12 @@ "main": "dist/index.js",

"dependencies": {
"@percy/cli-command": "^1.0.0-beta.13",
"@percy/config": "^1.0.0-beta.13",
"@percy/core": "^1.0.0-beta.13",
"@percy/dom": "^1.0.0-beta.13",
"@percy/logger": "^1.0.0-beta.13",
"cors": "^2.8.5",
"express": "^4.17.1",
"@percy/cli-command": "^1.0.0-beta.14",
"@percy/config": "^1.0.0-beta.14",
"@percy/core": "^1.0.0-beta.14",
"@percy/dom": "^1.0.0-beta.14",
"@percy/logger": "^1.0.0-beta.14",
"globby": "^11.0.1",
"serve-handler": "^6.1.3",
"yaml": "^1.10.0"
},
"gitHead": "9e694cfb410f5736467e5dafd96e6a8e9834c77b"
"gitHead": "be425adadd5ad0f8862e9449ec8d9380961b313d"
}
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