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

dax-sh

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

dax-sh - npm Package Compare versions

Comparing version 0.40.1 to 0.41.0

esm/deps/jsr.io/@david/which/0.4.1/mod.d.ts

6

esm/mod.d.ts

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

*/
type Which = typeof import("./deps/jsr.io/@david/which/0.3.0/mod.js").which;
type Which = typeof import("./deps/jsr.io/@david/which/0.4.1/mod.js").which;
/**

@@ -81,3 +81,3 @@ * `whichSync` from the https://deno.land/x/which module.

*/
type WhichSync = typeof import("./deps/jsr.io/@david/which/0.3.0/mod.js").whichSync;
type WhichSync = typeof import("./deps/jsr.io/@david/which/0.4.1/mod.js").whichSync;
/** Collection of built-in properties that come with a `$`. */

@@ -441,3 +441,3 @@ export interface $BuiltInProperties<TExtras extends ExtrasObject = {}> {

withRetries<TReturn>(opts: RetryOptions<TReturn>): Promise<TReturn>;
/** Re-export of `deno_which` for getting the path to an executable. */
/** Re-export of `jsr:@david/which` for getting the path to an executable. */
which: Which;

@@ -444,0 +444,0 @@ /** Similar to `which`, but synchronously. */

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

cwd: string | undefined;
clearEnv: boolean;
exportEnv: boolean;

@@ -160,2 +161,9 @@ printCommand: boolean;

/**
* Clear environmental variables from parent process.
*
* Doesn't guarantee that only `env` variables are present, as the OS may
* set environmental variables for processes.
*/
clearEnv(value?: boolean): CommandBuilder;
/**
* Prints the command text before executing the command.

@@ -162,0 +170,0 @@ *

@@ -137,15 +137,23 @@ /// <reference types="node" />

*/
createSymlinkTo(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): Promise<void>;
symlinkTo(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): Promise<void>;
/**
* Creates a symlink at the provided path with the provided target text.
*/
createSymlinkTo(target: string, opts?: SymlinkOptions): Promise<void>;
symlinkTo(target: string, opts?: SymlinkOptions): Promise<void>;
/**
* Synchronously creates a symlink to the provided target path.
*/
createSymlinkToSync(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): void;
symlinkToSync(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): void;
/**
* Synchronously creates a symlink at the provided path with the provided target text.
*/
createSymlinkToSync(target: string, opts?: SymlinkOptions): void;
symlinkToSync(target: string, opts?: SymlinkOptions): void;
/**
* Creates a hardlink to the provided target path.
*/
linkTo(targetPath: string | URL | Path): Promise<void>;
/**
* Synchronously creates a hardlink to the provided target path.
*/
linkToSync(targetPath: string | URL | Path): void;
/** Reads the entries in the directory. */

@@ -152,0 +160,0 @@ readDir(): AsyncIterable<WalkEntry>;

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

import { RealEnvironment as DenoWhichRealEnvironment } from "../deps/jsr.io/@david/which/0.4.1/mod.js";
import type { KillSignal } from "./command.js";

@@ -164,2 +165,3 @@ import type { CommandContext, CommandHandler, CommandPipeReader } from "./command_handler.js";

exportEnv: boolean;
clearedEnv: boolean;
signal: KillSignal;

@@ -169,2 +171,6 @@ fds: StreamFds | undefined;

export declare function spawn(list: SequentialList, opts: SpawnOpts): Promise<number>;
declare class WhichEnv extends DenoWhichRealEnvironment {
requestPermission(folderPath: string): void;
}
export declare const denoWhichRealEnv: WhichEnv;
export declare function whichFromContext(commandName: string, context: {

@@ -171,0 +177,0 @@ getVar(key: string): string | undefined;

{
"name": "dax-sh",
"version": "0.40.1",
"version": "0.41.0",
"description": "Cross platform shell tools inspired by zx.",

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

@@ -194,2 +194,6 @@ # dax

await $.raw`echo ${args}`; // executes as: echo arg1 arg2 arg3
// or escape a specific argument while using $.raw
const args2 = "arg1 arg2";
await $.raw`echo ${$.escape(args2)} ${args2}`; // executes as: echo "arg1 arg2" arg1 arg2
```

@@ -612,3 +616,3 @@

The path API offers an immutable [`Path`](https://deno.land/x/dax/src/path.ts?s=Path) class, which is a similar concept to Rust's `PathBuf` struct.
The path API offers an immutable [`Path`](https://jsr.io/@david/dax/doc/~/Path) class, which is a similar concept to Rust's `PathBuf` struct.

@@ -660,3 +664,3 @@ ```ts

There are a lot of helper methods here, so check the [documentation on Path](https://deno.land/x/dax/src/path.ts?s=Path) for more details.
There are a lot of helper methods here, so check the [documentation on Path](https://jsr.io/@david/dax/doc/~/Path) for more details.

@@ -773,3 +777,3 @@ ## Helper functions

See the [documentation on `RequestBuilder`](https://deno.land/x/dax/src/request.ts?s=RequestBuilder) for more details. It should be as flexible as `fetch`, but uses a builder API (ex. set headers via `.header(...)`).
See the [documentation on `RequestBuilder`](https://jsr.io/@david/dax/doc/~/RequestBuilder) for more details. It should be as flexible as `fetch`, but uses a builder API (ex. set headers via `.header(...)`).

@@ -910,3 +914,3 @@ ### Showing progress

```ts
import { CommandBuilder } from "https://deno.land/x/dax/mod.ts";
import { CommandBuilder } from "@david/dax";

@@ -952,3 +956,3 @@ const commandBuilder = new CommandBuilder()

```ts
import { RequestBuilder } from "https://deno.land/x/dax/mod.ts";
import { RequestBuilder } from "@david/dax";

@@ -969,3 +973,3 @@ const requestBuilder = new RequestBuilder()

```ts
import { build$, CommandBuilder, RequestBuilder } from "https://deno.land/x/dax/mod.ts";
import { build$, CommandBuilder, RequestBuilder } from "@david/dax";

@@ -972,0 +976,0 @@ // creates a $ object with the provided starting environment

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

*/
type Which = typeof import("./deps/jsr.io/@david/which/0.3.0/mod.js").which;
type Which = typeof import("./deps/jsr.io/@david/which/0.4.1/mod.js").which;
/**

@@ -81,3 +81,3 @@ * `whichSync` from the https://deno.land/x/which module.

*/
type WhichSync = typeof import("./deps/jsr.io/@david/which/0.3.0/mod.js").whichSync;
type WhichSync = typeof import("./deps/jsr.io/@david/which/0.4.1/mod.js").whichSync;
/** Collection of built-in properties that come with a `$`. */

@@ -441,3 +441,3 @@ export interface $BuiltInProperties<TExtras extends ExtrasObject = {}> {

withRetries<TReturn>(opts: RetryOptions<TReturn>): Promise<TReturn>;
/** Re-export of `deno_which` for getting the path to an executable. */
/** Re-export of `jsr:@david/which` for getting the path to an executable. */
which: Which;

@@ -444,0 +444,0 @@ /** Similar to `which`, but synchronously. */

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

cwd: string | undefined;
clearEnv: boolean;
exportEnv: boolean;

@@ -160,2 +161,9 @@ printCommand: boolean;

/**
* Clear environmental variables from parent process.
*
* Doesn't guarantee that only `env` variables are present, as the OS may
* set environmental variables for processes.
*/
clearEnv(value?: boolean): CommandBuilder;
/**
* Prints the command text before executing the command.

@@ -162,0 +170,0 @@ *

@@ -137,15 +137,23 @@ /// <reference types="node" />

*/
createSymlinkTo(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): Promise<void>;
symlinkTo(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): Promise<void>;
/**
* Creates a symlink at the provided path with the provided target text.
*/
createSymlinkTo(target: string, opts?: SymlinkOptions): Promise<void>;
symlinkTo(target: string, opts?: SymlinkOptions): Promise<void>;
/**
* Synchronously creates a symlink to the provided target path.
*/
createSymlinkToSync(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): void;
symlinkToSync(targetPath: URL | Path, opts: Partial<dntShim.Deno.SymlinkOptions> & PathSymlinkOptions): void;
/**
* Synchronously creates a symlink at the provided path with the provided target text.
*/
createSymlinkToSync(target: string, opts?: SymlinkOptions): void;
symlinkToSync(target: string, opts?: SymlinkOptions): void;
/**
* Creates a hardlink to the provided target path.
*/
linkTo(targetPath: string | URL | Path): Promise<void>;
/**
* Synchronously creates a hardlink to the provided target path.
*/
linkToSync(targetPath: string | URL | Path): void;
/** Reads the entries in the directory. */

@@ -152,0 +160,0 @@ readDir(): AsyncIterable<WalkEntry>;

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

import { RealEnvironment as DenoWhichRealEnvironment } from "../deps/jsr.io/@david/which/0.4.1/mod.js";
import type { KillSignal } from "./command.js";

@@ -164,2 +165,3 @@ import type { CommandContext, CommandHandler, CommandPipeReader } from "./command_handler.js";

exportEnv: boolean;
clearedEnv: boolean;
signal: KillSignal;

@@ -169,2 +171,6 @@ fds: StreamFds | undefined;

export declare function spawn(list: SequentialList, opts: SpawnOpts): Promise<number>;
declare class WhichEnv extends DenoWhichRealEnvironment {
requestPermission(folderPath: string): void;
}
export declare const denoWhichRealEnv: WhichEnv;
export declare function whichFromContext(commandName: string, context: {

@@ -171,0 +177,0 @@ getVar(key: string): string | undefined;

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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