@bytecodealliance/jco
Advanced tools
Comparing version 1.0.0 to 1.0.1
export namespace WasiCliStderr { | ||
export function getStderr(): OutputStream; | ||
} | ||
import type { OutputStream } from '../interfaces/wasi-io-streams.js'; | ||
import type { OutputStream } from './wasi-io-streams.js'; | ||
export { OutputStream }; |
export namespace WasiCliStdin { | ||
export function getStdin(): InputStream; | ||
} | ||
import type { InputStream } from '../interfaces/wasi-io-streams.js'; | ||
import type { InputStream } from './wasi-io-streams.js'; | ||
export { InputStream }; |
export namespace WasiCliStdout { | ||
export function getStdout(): OutputStream; | ||
} | ||
import type { OutputStream } from '../interfaces/wasi-io-streams.js'; | ||
import type { OutputStream } from './wasi-io-streams.js'; | ||
export { OutputStream }; |
export namespace WasiCliTerminalStderr { | ||
export function getTerminalStderr(): TerminalOutput | undefined; | ||
} | ||
import type { TerminalOutput } from '../interfaces/wasi-cli-terminal-output.js'; | ||
import type { TerminalOutput } from './wasi-cli-terminal-output.js'; | ||
export { TerminalOutput }; |
export namespace WasiCliTerminalStdin { | ||
export function getTerminalStdin(): TerminalInput | undefined; | ||
} | ||
import type { TerminalInput } from '../interfaces/wasi-cli-terminal-input.js'; | ||
import type { TerminalInput } from './wasi-cli-terminal-input.js'; | ||
export { TerminalInput }; |
export namespace WasiCliTerminalStdout { | ||
export function getTerminalStdout(): TerminalOutput | undefined; | ||
} | ||
import type { TerminalOutput } from '../interfaces/wasi-cli-terminal-output.js'; | ||
import type { TerminalOutput } from './wasi-cli-terminal-output.js'; | ||
export { TerminalOutput }; |
export namespace WasiFilesystemPreopens { | ||
export function getDirectories(): [Descriptor, string][]; | ||
} | ||
import type { Descriptor } from '../interfaces/wasi-filesystem-types.js'; | ||
import type { Descriptor } from './wasi-filesystem-types.js'; | ||
export { Descriptor }; |
@@ -7,3 +7,3 @@ export namespace WasiFilesystemTypes { | ||
export type Filesize = bigint; | ||
import type { InputStream } from '../interfaces/wasi-io-streams.js'; | ||
import type { InputStream } from './wasi-io-streams.js'; | ||
export { InputStream }; | ||
@@ -88,3 +88,3 @@ /** | ||
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 '../interfaces/wasi-io-streams.js'; | ||
import type { OutputStream } from './wasi-io-streams.js'; | ||
export { OutputStream }; | ||
@@ -112,3 +112,3 @@ /** | ||
export type LinkCount = bigint; | ||
import type { Datetime } from '../interfaces/wasi-clocks-wall-clock.js'; | ||
import type { Datetime } from './wasi-clocks-wall-clock.js'; | ||
export { Datetime }; | ||
@@ -148,3 +148,3 @@ export interface DescriptorStat { | ||
} | ||
import type { Error } from '../interfaces/wasi-io-streams.js'; | ||
import type { Error } from './wasi-io-streams.js'; | ||
export { Error }; | ||
@@ -151,0 +151,0 @@ |
@@ -5,3 +5,3 @@ export namespace WasiIoStreams { | ||
} | ||
import type { Error } from '../interfaces/wasi-io-error.js'; | ||
import type { Error } from './wasi-io-error.js'; | ||
export { Error }; | ||
@@ -8,0 +8,0 @@ export type StreamError = StreamErrorLastOperationFailed | StreamErrorClosed; |
@@ -22,2 +22,3 @@ export type Files = [string, Uint8Array][]; | ||
noNamespacedExports?: boolean, | ||
multiMemory?: boolean, | ||
} | ||
@@ -24,0 +25,0 @@ export type Wit = WitSource | WitBinary | WitPath; |
{ | ||
"name": "@bytecodealliance/jco", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "JavaScript tooling for working with WebAssembly Components", | ||
@@ -30,3 +30,3 @@ "author": "Guy Bedford", | ||
"devDependencies": { | ||
"@bytecodealliance/componentize-js": "^0.6.0", | ||
"@bytecodealliance/componentize-js": "^0.7.0", | ||
"@types/node": "^18.11.17", | ||
@@ -59,3 +59,4 @@ "@typescript-eslint/eslint-plugin": "^5.41.0", | ||
"lint": "eslint -c eslintrc.cjs lib/**/*.js packages/*/lib/**/*.js", | ||
"test": "mocha -u tdd test/test.js --timeout 120000", | ||
"test:lts": "mocha -u tdd test/test.js --timeout 30000", | ||
"test": "node --experimental-wasm-multi-memory node_modules/mocha/bin/mocha.js -u tdd test/test.js --timeout 30000", | ||
"prepublishOnly": "cargo xtask build release && npm run test" | ||
@@ -62,0 +63,0 @@ }, |
@@ -93,2 +93,3 @@ import { $init, generate } from '../../obj/js-component-bindgen-component.js'; | ||
* namespacedExports?: bool, | ||
* multiMemory?: bool, | ||
* optArgs?: string[], | ||
@@ -143,2 +144,3 @@ * }} opts | ||
noNamespacedExports: opts.namespacedExports === false, | ||
multiMemory: opts.multiMemory === true, | ||
}); | ||
@@ -145,0 +147,0 @@ |
@@ -14,3 +14,3 @@ #!/usr/bin/env node | ||
.usage('<command> [options]') | ||
.version('1.0.0'); | ||
.version('1.0.1'); | ||
@@ -53,2 +53,3 @@ function myParseInt(value) { | ||
.option('--no-namespaced-exports', 'disable namespaced exports for typescript compatibility') | ||
.option('--multi-memory', 'optimized output for Wasm multi-memory') | ||
.option('--', 'for --optimize, custom wasm-opt arguments (defaults to best size optimization)') | ||
@@ -55,0 +56,0 @@ .action(asyncAction(transpile)); |
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 too big to display
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
8433
10047586