Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

chromascope

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

chromascope - npm Package Compare versions

Comparing version 0.1.0 to 0.1.2

12

CHANGELOG.md
# 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 @@

15

dist/index.js

@@ -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();

2

package.json
{
"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

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