chromascope
Advanced tools
Comparing version 0.1.0 to 0.1.2
# chromascope | ||
## 0.1.2 | ||
### Patch Changes | ||
- cde9303: try publishing new release | ||
## 0.1.1 | ||
### Patch Changes | ||
- parse url and log it | ||
## 0.1.0 | ||
@@ -4,0 +16,0 @@ |
@@ -594,6 +594,19 @@ #!/usr/bin/env node | ||
// src/utils.ts | ||
var urlRegex = /^(?:(?:https?|ftp):\/\/)?(?:localhost|\S+(?:\.[^\s.]+)+|\[?[0-9a-fA-F:]+\]?)(?::\d+)?(?:\/[\w#!:.?+=&%@!\-\/]*)?(?:\?[\w&=]+)?$/i; | ||
var isUrl = (url) => urlRegex.test(url); | ||
// src/index.ts | ||
var cli = dist_default(); | ||
cli.command("<link>", "Diff the url in various browsers").action((link) => { | ||
cli.command("diff <link>", "Diff the url in various browsers").action((link) => { | ||
if (!link || !isUrl(link)) { | ||
console.error("Please provide a valid url"); | ||
process.exit(1); | ||
} | ||
if (!link.startsWith("http")) { | ||
link = `https://${link}`; | ||
} | ||
console.log(link); | ||
}); | ||
cli.help(); | ||
cli.parse(); |
{ | ||
"name": "chromascope", | ||
"version": "0.1.0", | ||
"version": "0.1.2", | ||
"description": "Diff the same page in different browsers", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
41294
1290
0