Comparing version 0.39.0 to 0.39.1
@@ -8,2 +8,2 @@ /// <reference types="node" /> | ||
*/ | ||
export declare function isSubdir(src: string | URL, dest: string | URL, sep?: "/" | "\\"): boolean; | ||
export declare function isSubdir(src: string | URL, dest: string | URL, sep?: "\\" | "/"): boolean; |
export declare const DELIMITER: ";" | ":"; | ||
export declare const SEPARATOR: "/" | "\\"; | ||
export declare const SEPARATOR: "\\" | "/"; | ||
export declare const SEPARATOR_PATTERN: RegExp; |
@@ -40,3 +40,3 @@ /** | ||
*/ | ||
export declare const sep: "/" | "\\"; | ||
export declare const sep: "\\" | "/"; | ||
/** | ||
@@ -43,0 +43,0 @@ * @deprecated (will be removed in 0.215.0) Use {@linkcode DELIMITER} instead. |
@@ -20,3 +20,3 @@ import * as dntShim from "../../../../_dnt.shims.js"; | ||
statSync(path: string): dntShim.Deno.FileInfo; | ||
get os(): "darwin" | "linux" | "windows" | "freebsd" | "netbsd" | "aix" | "solaris" | "illumos" | "android"; | ||
get os(): "aix" | "android" | "darwin" | "freebsd" | "linux" | "netbsd" | "windows" | "solaris" | "illumos"; | ||
} | ||
@@ -23,0 +23,0 @@ /** Finds the path to the specified command asynchronously. */ |
@@ -64,2 +64,17 @@ /// <reference types="node" /> | ||
} | ||
/** | ||
* `outdent` from the https://deno.land/x/outdent module. | ||
* @internal | ||
*/ | ||
type Outdent = typeof import("./src/deps.js").outdent; | ||
/** | ||
* `which` from the https://deno.land/x/which module. | ||
* @internal | ||
*/ | ||
type Which = typeof import("./src/deps.js").which; | ||
/** | ||
* `whichSync` from the https://deno.land/x/which module. | ||
* @internal | ||
*/ | ||
type WhichSync = typeof import("./src/deps.js").whichSync; | ||
/** Collection of built-in properties that come with a `$`. */ | ||
@@ -428,2 +443,4 @@ export interface $BuiltInProperties<TExtras extends ExtrasObject = {}> { | ||
} | ||
/** @internal */ | ||
type ExtrasObject = Record<string, (...args: any[]) => unknown>; | ||
/** Options for creating a custom `$`. */ | ||
@@ -430,0 +447,0 @@ export interface Create$Options<TExtras extends ExtrasObject> { |
@@ -7,5 +7,7 @@ /// <reference types="node" /> | ||
import { Delay } from "./common.js"; | ||
import { Reader, ShellPipeReaderKind, ShellPipeWriterKind } from "./pipes.js"; | ||
import { Buffer } from "./deps.js"; | ||
import { PipedBuffer, Reader, ShellPipeReaderKind, ShellPipeWriterKind } from "./pipes.js"; | ||
import { Path } from "./path.js"; | ||
import { StreamFds } from "./shell.js"; | ||
type BufferStdio = "inherit" | "null" | "streamed" | Buffer; | ||
declare class Deferred<T> { | ||
@@ -40,2 +42,6 @@ #private; | ||
} | ||
/** @internal */ | ||
export declare const getRegisteredCommandNamesSymbol: unique symbol; | ||
/** @internal */ | ||
export declare const setCommandTextStateSymbol: unique symbol; | ||
/** | ||
@@ -229,5 +235,15 @@ * Underlying builder API for executing commands. | ||
json<TResult = any>(): Promise<TResult>; | ||
/** @internal */ | ||
[getRegisteredCommandNamesSymbol](): string[]; | ||
/** @internal */ | ||
[setCommandTextStateSymbol](textState: CommandBuilderStateCommand): CommandBuilder; | ||
} | ||
export declare class CommandChild extends Promise<CommandResult> { | ||
#private; | ||
/** @internal */ | ||
constructor(executor: (resolve: (value: CommandResult) => void, reject: (reason?: any) => void) => void, options?: { | ||
pipedStdoutBuffer: PipedBuffer | undefined; | ||
pipedStderrBuffer: PipedBuffer | undefined; | ||
killSignalController: KillSignalController | undefined; | ||
}); | ||
/** Send a signal to the executing command's child process. Note that SIGTERM, | ||
@@ -250,2 +266,4 @@ * SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP will cause the entire command | ||
readonly code: number; | ||
/** @internal */ | ||
constructor(code: number, stdout: BufferStdio, stderr: BufferStdio, combined: Buffer | undefined); | ||
/** Raw decoded stdout text. */ | ||
@@ -277,2 +295,6 @@ get stdout(): string; | ||
export declare function escapeArg(arg: string): string; | ||
interface KillSignalState { | ||
abortedCode: number | undefined; | ||
listeners: ((signal: dntShim.Deno.Signal) => void)[]; | ||
} | ||
/** Similar to an AbortController, but for sending signals to commands. */ | ||
@@ -301,2 +323,4 @@ export declare class KillSignalController { | ||
#private; | ||
/** @internal */ | ||
constructor(symbol: Symbol, state: KillSignalState); | ||
/** Returns if the command signal has ever received a SIGTERM, | ||
@@ -303,0 +327,0 @@ * SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP |
@@ -21,2 +21,4 @@ import { ConsoleSize, TextItem } from "../utils.js"; | ||
#private; | ||
/** @internal */ | ||
constructor(onLog: (...data: any[]) => void, opts: ProgressOptions); | ||
/** Sets the prefix message/word, which will be displayed in green. */ | ||
@@ -23,0 +25,0 @@ prefix(prefix: string | undefined): this; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import * as dntShim from "../_dnt.shims.js"; | ||
/** | ||
* `ExpandGlobOptions` from https://deno.land/std/fs/expand_glob.ts | ||
* @internal | ||
*/ | ||
type DenoStdExpandGlobOptions = import("./deps.js").ExpandGlobOptions; | ||
export type ExpandGlobOptions = DenoStdExpandGlobOptions; | ||
/** | ||
* `WalkOptions` from https://deno.land/std/fs/walk.ts | ||
* @internal | ||
*/ | ||
type DenoStdWalkOptions = import("./deps.js").WalkOptions; | ||
export type WalkOptions = DenoStdWalkOptions; | ||
/** @internal */ | ||
export declare function createPath(path: string | URL | ImportMeta | Path): Path; | ||
export interface WalkEntry extends dntShim.Deno.DirEntry { | ||
@@ -22,3 +34,12 @@ path: Path; | ||
#private; | ||
/** This is a special symbol that allows different versions of | ||
* Dax's `Path` API to match on `instanceof` checks. Ideally | ||
* people shouldn't be mixing versions, but if it happens then | ||
* this will maybe reduce some bugs (or cause some... tbd). | ||
* @internal | ||
*/ | ||
private static instanceofSymbol; | ||
constructor(path: string | URL | ImportMeta | Path); | ||
/** @internal */ | ||
static [Symbol.hasInstance](instance: any): boolean; | ||
/** Gets the string representation of this path. */ | ||
@@ -304,1 +325,2 @@ toString(): string; | ||
} | ||
export {}; |
@@ -28,2 +28,4 @@ /// <reference types="node" /> | ||
} | ||
/** @internal */ | ||
export declare const withProgressBarFactorySymbol: unique symbol; | ||
/** | ||
@@ -74,2 +76,4 @@ * Builder API for downloading files. | ||
mode(value: dntShim.RequestMode): RequestBuilder; | ||
/** @internal */ | ||
[withProgressBarFactorySymbol](factory: (message: string) => ProgressBar): RequestBuilder; | ||
redirect(value: dntShim.RequestRedirect): RequestBuilder; | ||
@@ -123,5 +127,17 @@ referrer(value: string | undefined): RequestBuilder; | ||
} | ||
interface RequestAbortController { | ||
controller: AbortController; | ||
/** Clears the timeout that may be set if there's a delay */ | ||
clearTimeout(): void; | ||
} | ||
/** Response of making a request where the body can be read. */ | ||
export declare class RequestResponse { | ||
#private; | ||
/** @internal */ | ||
constructor(opts: { | ||
response: Response; | ||
originalUrl: string; | ||
progressBar: ProgressBar | undefined; | ||
abortController: RequestAbortController; | ||
}); | ||
/** Raw response. */ | ||
@@ -128,0 +144,0 @@ get response(): Response; |
{ | ||
"name": "dax-sh", | ||
"version": "0.39.0", | ||
"version": "0.39.1", | ||
"description": "Cross platform shell tools inspired by zx.", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -8,2 +8,2 @@ /// <reference types="node" /> | ||
*/ | ||
export declare function isSubdir(src: string | URL, dest: string | URL, sep?: "/" | "\\"): boolean; | ||
export declare function isSubdir(src: string | URL, dest: string | URL, sep?: "\\" | "/"): boolean; |
export declare const DELIMITER: ";" | ":"; | ||
export declare const SEPARATOR: "/" | "\\"; | ||
export declare const SEPARATOR: "\\" | "/"; | ||
export declare const SEPARATOR_PATTERN: RegExp; |
@@ -40,3 +40,3 @@ /** | ||
*/ | ||
export declare const sep: "/" | "\\"; | ||
export declare const sep: "\\" | "/"; | ||
/** | ||
@@ -43,0 +43,0 @@ * @deprecated (will be removed in 0.215.0) Use {@linkcode DELIMITER} instead. |
@@ -20,3 +20,3 @@ import * as dntShim from "../../../../_dnt.shims.js"; | ||
statSync(path: string): dntShim.Deno.FileInfo; | ||
get os(): "darwin" | "linux" | "windows" | "freebsd" | "netbsd" | "aix" | "solaris" | "illumos" | "android"; | ||
get os(): "aix" | "android" | "darwin" | "freebsd" | "linux" | "netbsd" | "windows" | "solaris" | "illumos"; | ||
} | ||
@@ -23,0 +23,0 @@ /** Finds the path to the specified command asynchronously. */ |
@@ -64,2 +64,17 @@ /// <reference types="node" /> | ||
} | ||
/** | ||
* `outdent` from the https://deno.land/x/outdent module. | ||
* @internal | ||
*/ | ||
type Outdent = typeof import("./src/deps.js").outdent; | ||
/** | ||
* `which` from the https://deno.land/x/which module. | ||
* @internal | ||
*/ | ||
type Which = typeof import("./src/deps.js").which; | ||
/** | ||
* `whichSync` from the https://deno.land/x/which module. | ||
* @internal | ||
*/ | ||
type WhichSync = typeof import("./src/deps.js").whichSync; | ||
/** Collection of built-in properties that come with a `$`. */ | ||
@@ -428,2 +443,4 @@ export interface $BuiltInProperties<TExtras extends ExtrasObject = {}> { | ||
} | ||
/** @internal */ | ||
type ExtrasObject = Record<string, (...args: any[]) => unknown>; | ||
/** Options for creating a custom `$`. */ | ||
@@ -430,0 +447,0 @@ export interface Create$Options<TExtras extends ExtrasObject> { |
@@ -7,5 +7,7 @@ /// <reference types="node" /> | ||
import { Delay } from "./common.js"; | ||
import { Reader, ShellPipeReaderKind, ShellPipeWriterKind } from "./pipes.js"; | ||
import { Buffer } from "./deps.js"; | ||
import { PipedBuffer, Reader, ShellPipeReaderKind, ShellPipeWriterKind } from "./pipes.js"; | ||
import { Path } from "./path.js"; | ||
import { StreamFds } from "./shell.js"; | ||
type BufferStdio = "inherit" | "null" | "streamed" | Buffer; | ||
declare class Deferred<T> { | ||
@@ -40,2 +42,6 @@ #private; | ||
} | ||
/** @internal */ | ||
export declare const getRegisteredCommandNamesSymbol: unique symbol; | ||
/** @internal */ | ||
export declare const setCommandTextStateSymbol: unique symbol; | ||
/** | ||
@@ -229,5 +235,15 @@ * Underlying builder API for executing commands. | ||
json<TResult = any>(): Promise<TResult>; | ||
/** @internal */ | ||
[getRegisteredCommandNamesSymbol](): string[]; | ||
/** @internal */ | ||
[setCommandTextStateSymbol](textState: CommandBuilderStateCommand): CommandBuilder; | ||
} | ||
export declare class CommandChild extends Promise<CommandResult> { | ||
#private; | ||
/** @internal */ | ||
constructor(executor: (resolve: (value: CommandResult) => void, reject: (reason?: any) => void) => void, options?: { | ||
pipedStdoutBuffer: PipedBuffer | undefined; | ||
pipedStderrBuffer: PipedBuffer | undefined; | ||
killSignalController: KillSignalController | undefined; | ||
}); | ||
/** Send a signal to the executing command's child process. Note that SIGTERM, | ||
@@ -250,2 +266,4 @@ * SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP will cause the entire command | ||
readonly code: number; | ||
/** @internal */ | ||
constructor(code: number, stdout: BufferStdio, stderr: BufferStdio, combined: Buffer | undefined); | ||
/** Raw decoded stdout text. */ | ||
@@ -277,2 +295,6 @@ get stdout(): string; | ||
export declare function escapeArg(arg: string): string; | ||
interface KillSignalState { | ||
abortedCode: number | undefined; | ||
listeners: ((signal: dntShim.Deno.Signal) => void)[]; | ||
} | ||
/** Similar to an AbortController, but for sending signals to commands. */ | ||
@@ -301,2 +323,4 @@ export declare class KillSignalController { | ||
#private; | ||
/** @internal */ | ||
constructor(symbol: Symbol, state: KillSignalState); | ||
/** Returns if the command signal has ever received a SIGTERM, | ||
@@ -303,0 +327,0 @@ * SIGKILL, SIGABRT, SIGQUIT, SIGINT, or SIGSTOP |
@@ -21,2 +21,4 @@ import { ConsoleSize, TextItem } from "../utils.js"; | ||
#private; | ||
/** @internal */ | ||
constructor(onLog: (...data: any[]) => void, opts: ProgressOptions); | ||
/** Sets the prefix message/word, which will be displayed in green. */ | ||
@@ -23,0 +25,0 @@ prefix(prefix: string | undefined): this; |
/// <reference types="node" /> | ||
/// <reference types="node" /> | ||
import * as dntShim from "../_dnt.shims.js"; | ||
/** | ||
* `ExpandGlobOptions` from https://deno.land/std/fs/expand_glob.ts | ||
* @internal | ||
*/ | ||
type DenoStdExpandGlobOptions = import("./deps.js").ExpandGlobOptions; | ||
export type ExpandGlobOptions = DenoStdExpandGlobOptions; | ||
/** | ||
* `WalkOptions` from https://deno.land/std/fs/walk.ts | ||
* @internal | ||
*/ | ||
type DenoStdWalkOptions = import("./deps.js").WalkOptions; | ||
export type WalkOptions = DenoStdWalkOptions; | ||
/** @internal */ | ||
export declare function createPath(path: string | URL | ImportMeta | Path): Path; | ||
export interface WalkEntry extends dntShim.Deno.DirEntry { | ||
@@ -22,3 +34,12 @@ path: Path; | ||
#private; | ||
/** This is a special symbol that allows different versions of | ||
* Dax's `Path` API to match on `instanceof` checks. Ideally | ||
* people shouldn't be mixing versions, but if it happens then | ||
* this will maybe reduce some bugs (or cause some... tbd). | ||
* @internal | ||
*/ | ||
private static instanceofSymbol; | ||
constructor(path: string | URL | ImportMeta | Path); | ||
/** @internal */ | ||
static [Symbol.hasInstance](instance: any): boolean; | ||
/** Gets the string representation of this path. */ | ||
@@ -304,1 +325,2 @@ toString(): string; | ||
} | ||
export {}; |
@@ -28,2 +28,4 @@ /// <reference types="node" /> | ||
} | ||
/** @internal */ | ||
export declare const withProgressBarFactorySymbol: unique symbol; | ||
/** | ||
@@ -74,2 +76,4 @@ * Builder API for downloading files. | ||
mode(value: dntShim.RequestMode): RequestBuilder; | ||
/** @internal */ | ||
[withProgressBarFactorySymbol](factory: (message: string) => ProgressBar): RequestBuilder; | ||
redirect(value: dntShim.RequestRedirect): RequestBuilder; | ||
@@ -123,5 +127,17 @@ referrer(value: string | undefined): RequestBuilder; | ||
} | ||
interface RequestAbortController { | ||
controller: AbortController; | ||
/** Clears the timeout that may be set if there's a delay */ | ||
clearTimeout(): void; | ||
} | ||
/** Response of making a request where the body can be read. */ | ||
export declare class RequestResponse { | ||
#private; | ||
/** @internal */ | ||
constructor(opts: { | ||
response: Response; | ||
originalUrl: string; | ||
progressBar: ProgressBar | undefined; | ||
abortController: RequestAbortController; | ||
}); | ||
/** Raw response. */ | ||
@@ -128,0 +144,0 @@ get response(): Response; |
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
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
1682223
34665
4