Comparing version 6.5.7 to 6.5.8
@@ -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}` |
{ | ||
"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; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
83224
1990