@bytecodealliance/componentize-js
Advanced tools
@@ -1,5 +0,4 @@ | ||
| export namespace LocalSpidermonkeyEmbeddingSplicerSplicer { | ||
| export function stubWasi(engine: Uint8Array, features: Array<Feature>, witWorld: string | undefined, witPath: string | undefined, worldName: string | undefined): Uint8Array; | ||
| export function spliceBindings(spidermonkeyEngine: Uint8Array, features: Array<Feature>, witWorld: string | undefined, witPath: string | undefined, worldName: string | undefined, debug: boolean): SpliceResult; | ||
| } | ||
| /** @module Interface local:spidermonkey-embedding-splicer/splicer **/ | ||
| export function stubWasi(engine: Uint8Array, features: Array<Feature>, witWorld: string | undefined, witPath: string | undefined, worldName: string | undefined): Uint8Array; | ||
| export function spliceBindings(spidermonkeyEngine: Uint8Array, features: Array<Feature>, witWorld: string | undefined, witPath: string | undefined, worldName: string | undefined, debug: boolean): SpliceResult; | ||
| /** | ||
@@ -6,0 +5,0 @@ * # Variants |
@@ -1,3 +0,2 @@ | ||
| export namespace WasiCliEnvironment { | ||
| export function getEnvironment(): Array<[string, string]>; | ||
| } | ||
| /** @module Interface wasi:cli/environment@0.2.3 **/ | ||
| export function getEnvironment(): Array<[string, string]>; |
@@ -1,4 +0,3 @@ | ||
| export namespace WasiCliExit { | ||
| export function exit(status: Result<void, void>): void; | ||
| } | ||
| /** @module Interface wasi:cli/exit@0.2.3 **/ | ||
| export function exit(status: Result<void, void>): void; | ||
| export type Result<T, E> = { tag: 'ok', val: T } | { tag: 'err', val: E }; |
@@ -1,5 +0,3 @@ | ||
| export namespace WasiCliStderr { | ||
| export function getStderr(): OutputStream; | ||
| } | ||
| import type { OutputStream } from './wasi-io-streams.js'; | ||
| export { OutputStream }; | ||
| /** @module Interface wasi:cli/stderr@0.2.3 **/ | ||
| export function getStderr(): OutputStream; | ||
| export type OutputStream = import('./wasi-io-streams.js').OutputStream; |
@@ -1,5 +0,3 @@ | ||
| export namespace WasiCliStdin { | ||
| export function getStdin(): InputStream; | ||
| } | ||
| import type { InputStream } from './wasi-io-streams.js'; | ||
| export { InputStream }; | ||
| /** @module Interface wasi:cli/stdin@0.2.3 **/ | ||
| export function getStdin(): InputStream; | ||
| export type InputStream = import('./wasi-io-streams.js').InputStream; |
@@ -1,5 +0,3 @@ | ||
| export namespace WasiCliStdout { | ||
| export function getStdout(): OutputStream; | ||
| } | ||
| import type { OutputStream } from './wasi-io-streams.js'; | ||
| export { OutputStream }; | ||
| /** @module Interface wasi:cli/stdout@0.2.3 **/ | ||
| export function getStdout(): OutputStream; | ||
| export type OutputStream = import('./wasi-io-streams.js').OutputStream; |
@@ -1,6 +0,8 @@ | ||
| export namespace WasiCliTerminalInput { | ||
| export { TerminalInput }; | ||
| } | ||
| /** @module Interface wasi:cli/terminal-input@0.2.3 **/ | ||
| export class TerminalInput { | ||
| /** | ||
| * This type does not have a public constructor. | ||
| */ | ||
| private constructor(); | ||
| } |
@@ -1,6 +0,8 @@ | ||
| export namespace WasiCliTerminalOutput { | ||
| export { TerminalOutput }; | ||
| } | ||
| /** @module Interface wasi:cli/terminal-output@0.2.3 **/ | ||
| export class TerminalOutput { | ||
| /** | ||
| * This type does not have a public constructor. | ||
| */ | ||
| private constructor(); | ||
| } |
@@ -1,5 +0,3 @@ | ||
| export namespace WasiCliTerminalStderr { | ||
| export function getTerminalStderr(): TerminalOutput | undefined; | ||
| } | ||
| import type { TerminalOutput } from './wasi-cli-terminal-output.js'; | ||
| export { TerminalOutput }; | ||
| /** @module Interface wasi:cli/terminal-stderr@0.2.3 **/ | ||
| export function getTerminalStderr(): TerminalOutput | undefined; | ||
| export type TerminalOutput = import('./wasi-cli-terminal-output.js').TerminalOutput; |
@@ -1,5 +0,3 @@ | ||
| export namespace WasiCliTerminalStdin { | ||
| export function getTerminalStdin(): TerminalInput | undefined; | ||
| } | ||
| import type { TerminalInput } from './wasi-cli-terminal-input.js'; | ||
| export { TerminalInput }; | ||
| /** @module Interface wasi:cli/terminal-stdin@0.2.3 **/ | ||
| export function getTerminalStdin(): TerminalInput | undefined; | ||
| export type TerminalInput = import('./wasi-cli-terminal-input.js').TerminalInput; |
@@ -1,5 +0,3 @@ | ||
| export namespace WasiCliTerminalStdout { | ||
| export function getTerminalStdout(): TerminalOutput | undefined; | ||
| } | ||
| import type { TerminalOutput } from './wasi-cli-terminal-output.js'; | ||
| export { TerminalOutput }; | ||
| /** @module Interface wasi:cli/terminal-stdout@0.2.3 **/ | ||
| export function getTerminalStdout(): TerminalOutput | undefined; | ||
| export type TerminalOutput = import('./wasi-cli-terminal-output.js').TerminalOutput; |
@@ -1,4 +0,3 @@ | ||
| export namespace WasiClocksMonotonicClock { | ||
| export function now(): Instant; | ||
| } | ||
| /** @module Interface wasi:clocks/monotonic-clock@0.2.3 **/ | ||
| export function now(): Instant; | ||
| export type Instant = bigint; |
@@ -1,4 +0,3 @@ | ||
| export namespace WasiClocksWallClock { | ||
| export function now(): Datetime; | ||
| } | ||
| /** @module Interface wasi:clocks/wall-clock@0.2.3 **/ | ||
| export function now(): Datetime; | ||
| export interface Datetime { | ||
@@ -5,0 +4,0 @@ seconds: bigint, |
@@ -1,5 +0,3 @@ | ||
| export namespace WasiFilesystemPreopens { | ||
| export function getDirectories(): Array<[Descriptor, string]>; | ||
| } | ||
| import type { Descriptor } from './wasi-filesystem-types.js'; | ||
| export { Descriptor }; | ||
| /** @module Interface wasi:filesystem/preopens@0.2.3 **/ | ||
| export function getDirectories(): Array<[Descriptor, string]>; | ||
| export type Descriptor = import('./wasi-filesystem-types.js').Descriptor; |
@@ -1,12 +0,26 @@ | ||
| export namespace WasiFilesystemTypes { | ||
| export { Descriptor }; | ||
| export { DirectoryEntryStream }; | ||
| export function filesystemErrorCode(err: Error): ErrorCode | undefined; | ||
| } | ||
| export type Filesize = bigint; | ||
| import type { InputStream } from './wasi-io-streams.js'; | ||
| export { InputStream }; | ||
| /** @module Interface wasi:filesystem/types@0.2.3 **/ | ||
| export function filesystemErrorCode(err: Error): ErrorCode | undefined; | ||
| /** | ||
| * # Variants | ||
| * | ||
| * ## `"unknown"` | ||
| * | ||
| * ## `"block-device"` | ||
| * | ||
| * ## `"character-device"` | ||
| * | ||
| * ## `"directory"` | ||
| * | ||
| * ## `"fifo"` | ||
| * | ||
| * ## `"symbolic-link"` | ||
| * | ||
| * ## `"regular-file"` | ||
| * | ||
| * ## `"socket"` | ||
| */ | ||
| export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket'; | ||
| /** | ||
| * # Variants | ||
| * | ||
| * ## `"access"` | ||
@@ -87,27 +101,15 @@ * | ||
| export type ErrorCode = 'access' | 'would-block' | 'already' | 'bad-descriptor' | 'busy' | 'deadlock' | 'quota' | 'exist' | 'file-too-large' | 'illegal-byte-sequence' | 'in-progress' | 'interrupted' | 'invalid' | 'io' | 'is-directory' | 'loop' | 'too-many-links' | 'message-size' | 'name-too-long' | 'no-device' | 'no-entry' | 'no-lock' | 'insufficient-memory' | 'insufficient-space' | 'not-directory' | 'not-empty' | 'not-recoverable' | 'unsupported' | 'no-tty' | 'no-such-device' | 'overflow' | 'not-permitted' | 'pipe' | 'read-only' | 'invalid-seek' | 'text-file-busy' | 'cross-device'; | ||
| import type { OutputStream } from './wasi-io-streams.js'; | ||
| export { OutputStream }; | ||
| /** | ||
| * # Variants | ||
| * | ||
| * ## `"unknown"` | ||
| * | ||
| * ## `"block-device"` | ||
| * | ||
| * ## `"character-device"` | ||
| * | ||
| * ## `"directory"` | ||
| * | ||
| * ## `"fifo"` | ||
| * | ||
| * ## `"symbolic-link"` | ||
| * | ||
| * ## `"regular-file"` | ||
| * | ||
| * ## `"socket"` | ||
| */ | ||
| export type DescriptorType = 'unknown' | 'block-device' | 'character-device' | 'directory' | 'fifo' | 'symbolic-link' | 'regular-file' | 'socket'; | ||
| export interface MetadataHashValue { | ||
| lower: bigint, | ||
| upper: bigint, | ||
| } | ||
| export type Error = import('./wasi-io-streams.js').Error; | ||
| export interface PathFlags { | ||
| symlinkFollow?: boolean, | ||
| } | ||
| export type Filesize = bigint; | ||
| export type InputStream = import('./wasi-io-streams.js').InputStream; | ||
| export type OutputStream = import('./wasi-io-streams.js').OutputStream; | ||
| export type LinkCount = bigint; | ||
| import type { Datetime } from './wasi-clocks-wall-clock.js'; | ||
| export { Datetime }; | ||
| export type Datetime = import('./wasi-clocks-wall-clock.js').Datetime; | ||
| export interface DescriptorStat { | ||
@@ -121,5 +123,2 @@ type: DescriptorType, | ||
| } | ||
| export interface PathFlags { | ||
| symlinkFollow?: boolean, | ||
| } | ||
| export interface OpenFlags { | ||
@@ -139,6 +138,2 @@ create?: boolean, | ||
| } | ||
| export interface MetadataHashValue { | ||
| lower: bigint, | ||
| upper: bigint, | ||
| } | ||
| export interface DirectoryEntry { | ||
@@ -148,6 +143,8 @@ type: DescriptorType, | ||
| } | ||
| import type { Error } from './wasi-io-streams.js'; | ||
| export { Error }; | ||
| export class Descriptor { | ||
| /** | ||
| * This type does not have a public constructor. | ||
| */ | ||
| private constructor(); | ||
| readViaStream(offset: Filesize): InputStream; | ||
@@ -166,3 +163,7 @@ writeViaStream(offset: Filesize): OutputStream; | ||
| export class DirectoryEntryStream { | ||
| /** | ||
| * This type does not have a public constructor. | ||
| */ | ||
| private constructor(); | ||
| readDirectoryEntry(): DirectoryEntry | undefined; | ||
| } |
@@ -1,6 +0,8 @@ | ||
| export namespace WasiIoError { | ||
| export { Error }; | ||
| } | ||
| /** @module Interface wasi:io/error@0.2.3 **/ | ||
| export class Error { | ||
| /** | ||
| * This type does not have a public constructor. | ||
| */ | ||
| private constructor(); | ||
| } |
@@ -1,7 +0,3 @@ | ||
| export namespace WasiIoStreams { | ||
| export { InputStream }; | ||
| export { OutputStream }; | ||
| } | ||
| import type { Error } from './wasi-io-error.js'; | ||
| export { Error }; | ||
| /** @module Interface wasi:io/streams@0.2.3 **/ | ||
| export type Error = import('./wasi-io-error.js').Error; | ||
| export type StreamError = StreamErrorLastOperationFailed | StreamErrorClosed; | ||
@@ -17,2 +13,6 @@ export interface StreamErrorLastOperationFailed { | ||
| export class InputStream { | ||
| /** | ||
| * This type does not have a public constructor. | ||
| */ | ||
| private constructor(); | ||
| read(len: bigint): Uint8Array; | ||
@@ -23,2 +23,6 @@ blockingRead(len: bigint): Uint8Array; | ||
| export class OutputStream { | ||
| /** | ||
| * This type does not have a public constructor. | ||
| */ | ||
| private constructor(); | ||
| checkWrite(): bigint; | ||
@@ -25,0 +29,0 @@ write(contents: Uint8Array): void; |
@@ -1,3 +0,2 @@ | ||
| export namespace WasiRandomRandom { | ||
| export function getRandomBytes(len: bigint): Uint8Array; | ||
| } | ||
| /** @module Interface wasi:random/random@0.2.3 **/ | ||
| export function getRandomBytes(len: bigint): Uint8Array; |
@@ -1,19 +0,19 @@ | ||
| import { WasiCliEnvironment } from './interfaces/wasi-cli-environment.js'; | ||
| import { WasiCliExit } from './interfaces/wasi-cli-exit.js'; | ||
| import { WasiCliStderr } from './interfaces/wasi-cli-stderr.js'; | ||
| import { WasiCliStdin } from './interfaces/wasi-cli-stdin.js'; | ||
| import { WasiCliStdout } from './interfaces/wasi-cli-stdout.js'; | ||
| import { WasiCliTerminalInput } from './interfaces/wasi-cli-terminal-input.js'; | ||
| import { WasiCliTerminalOutput } from './interfaces/wasi-cli-terminal-output.js'; | ||
| import { WasiCliTerminalStderr } from './interfaces/wasi-cli-terminal-stderr.js'; | ||
| import { WasiCliTerminalStdin } from './interfaces/wasi-cli-terminal-stdin.js'; | ||
| import { WasiCliTerminalStdout } from './interfaces/wasi-cli-terminal-stdout.js'; | ||
| import { WasiClocksMonotonicClock } from './interfaces/wasi-clocks-monotonic-clock.js'; | ||
| import { WasiClocksWallClock } from './interfaces/wasi-clocks-wall-clock.js'; | ||
| import { WasiFilesystemPreopens } from './interfaces/wasi-filesystem-preopens.js'; | ||
| import { WasiFilesystemTypes } from './interfaces/wasi-filesystem-types.js'; | ||
| import { WasiIoError } from './interfaces/wasi-io-error.js'; | ||
| import { WasiIoStreams } from './interfaces/wasi-io-streams.js'; | ||
| import { WasiRandomRandom } from './interfaces/wasi-random-random.js'; | ||
| import { LocalSpidermonkeyEmbeddingSplicerSplicer } from './interfaces/local-spidermonkey-embedding-splicer-splicer.js'; | ||
| export const splicer: typeof LocalSpidermonkeyEmbeddingSplicerSplicer; | ||
| // world root:component/root | ||
| export type * as WasiCliEnvironment023 from './interfaces/wasi-cli-environment.js'; // import wasi:cli/environment@0.2.3 | ||
| export type * as WasiCliExit023 from './interfaces/wasi-cli-exit.js'; // import wasi:cli/exit@0.2.3 | ||
| export type * as WasiCliStderr023 from './interfaces/wasi-cli-stderr.js'; // import wasi:cli/stderr@0.2.3 | ||
| export type * as WasiCliStdin023 from './interfaces/wasi-cli-stdin.js'; // import wasi:cli/stdin@0.2.3 | ||
| export type * as WasiCliStdout023 from './interfaces/wasi-cli-stdout.js'; // import wasi:cli/stdout@0.2.3 | ||
| export type * as WasiCliTerminalInput023 from './interfaces/wasi-cli-terminal-input.js'; // import wasi:cli/terminal-input@0.2.3 | ||
| export type * as WasiCliTerminalOutput023 from './interfaces/wasi-cli-terminal-output.js'; // import wasi:cli/terminal-output@0.2.3 | ||
| export type * as WasiCliTerminalStderr023 from './interfaces/wasi-cli-terminal-stderr.js'; // import wasi:cli/terminal-stderr@0.2.3 | ||
| export type * as WasiCliTerminalStdin023 from './interfaces/wasi-cli-terminal-stdin.js'; // import wasi:cli/terminal-stdin@0.2.3 | ||
| export type * as WasiCliTerminalStdout023 from './interfaces/wasi-cli-terminal-stdout.js'; // import wasi:cli/terminal-stdout@0.2.3 | ||
| export type * as WasiClocksMonotonicClock023 from './interfaces/wasi-clocks-monotonic-clock.js'; // import wasi:clocks/monotonic-clock@0.2.3 | ||
| export type * as WasiClocksWallClock023 from './interfaces/wasi-clocks-wall-clock.js'; // import wasi:clocks/wall-clock@0.2.3 | ||
| export type * as WasiFilesystemPreopens023 from './interfaces/wasi-filesystem-preopens.js'; // import wasi:filesystem/preopens@0.2.3 | ||
| export type * as WasiFilesystemTypes023 from './interfaces/wasi-filesystem-types.js'; // import wasi:filesystem/types@0.2.3 | ||
| export type * as WasiIoError023 from './interfaces/wasi-io-error.js'; // import wasi:io/error@0.2.3 | ||
| export type * as WasiIoStreams023 from './interfaces/wasi-io-streams.js'; // import wasi:io/streams@0.2.3 | ||
| export type * as WasiRandomRandom023 from './interfaces/wasi-random-random.js'; // import wasi:random/random@0.2.3 | ||
| export * as splicer from './interfaces/local-spidermonkey-embedding-splicer-splicer.js'; // export local:spidermonkey-embedding-splicer/splicer |
+2
-2
| { | ||
| "name": "@bytecodealliance/componentize-js", | ||
| "version": "0.19.2", | ||
| "version": "0.19.3", | ||
| "homepage": "https://github.com/bytecodealliance/componentize-js#readme", | ||
@@ -24,3 +24,3 @@ "description": "ESM -> WebAssembly Component creator, via a SpiderMonkey JS engine embedding", | ||
| "dependencies": { | ||
| "@bytecodealliance/jco": "^1.9.1", | ||
| "@bytecodealliance/jco": "^1.15.1", | ||
| "@bytecodealliance/wizer": "^10.0.0", | ||
@@ -27,0 +27,0 @@ "es-module-lexer": "^1.6.0", |
+1
-1
@@ -24,3 +24,3 @@ #! /usr/bin/env node | ||
| program | ||
| .version('0.19.2') | ||
| .version('0.19.3') | ||
| .description('Create a component from a JavaScript module') | ||
@@ -27,0 +27,0 @@ .usage('<js-source> --wit wit-world.wit -o <component-path>') |
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 too big to display
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
27740207
1.62%5886
15.82%10
150%- Removed