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

cac

Package Overview
Dependencies
Maintainers
3
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cac - npm Package Compare versions

Comparing version 6.5.7 to 6.5.8

7

dist/index.js

@@ -284,3 +284,8 @@ 'use strict';

const deno = typeof window !== 'undefined' && window.Deno;
const processArgs = deno ? ['deno'].concat(Deno.args) : process.argv;
const denoScriptPath = deno && typeof window !== 'undefined' && window.location.pathname;
// Adds deno executable and script path to processArgs as "compatibility" layer for node
// See https://github.com/cacjs/cac/issues/69
const processArgs = deno
? ['deno', denoScriptPath].concat(Deno.args)
: process.argv;
const platformInfo = deno

@@ -287,0 +292,0 @@ ? `${Deno.build.os}-${Deno.build.arch} deno-${Deno.version.deno}`

@@ -707,3 +707,8 @@ // Copyright Joyent, Inc. and other Node contributors.

const deno = typeof window !== 'undefined' && window.Deno;
const processArgs = deno ? ['deno'].concat(Deno.args) : process.argv;
const denoScriptPath = deno && typeof window !== 'undefined' && window.location.pathname;
// Adds deno executable and script path to processArgs as "compatibility" layer for node
// See https://github.com/cacjs/cac/issues/69
const processArgs = deno
? ['deno', denoScriptPath].concat(Deno.args)
: process.argv;
const platformInfo = deno

@@ -710,0 +715,0 @@ ? `${Deno.build.os}-${Deno.build.arch} deno-${Deno.version.deno}`

2

package.json
{
"name": "cac",
"version": "6.5.7",
"version": "6.5.8",
"description": "Simple yet powerful framework for building command-line apps.",

@@ -5,0 +5,0 @@ "repository": {

@@ -84,3 +84,3 @@ /// <reference types="node" />

*/
parse(argv?: string[], {
parse(argv?: any[], {
/** Whether to run the action for matched command */

@@ -87,0 +87,0 @@ run }?: {

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

export declare const processArgs: string[];
export declare const processArgs: any[];
export declare const platformInfo: string;
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