@bytecodealliance/jco
Advanced tools
Comparing version 0.14.0 to 0.14.1
{ | ||
"name": "@bytecodealliance/jco", | ||
"version": "0.14.0", | ||
"version": "0.14.1", | ||
"description": "JavaScript tooling for working with WebAssembly Components", | ||
@@ -21,3 +21,3 @@ "author": "Guy Bedford", | ||
"dependencies": { | ||
"@bytecodealliance/preview2-shim": "0.14.0", | ||
"@bytecodealliance/preview2-shim": "0.14.1", | ||
"binaryen": "^111.0.0", | ||
@@ -31,3 +31,3 @@ "chalk-template": "^0.4.0", | ||
"devDependencies": { | ||
"@bytecodealliance/componentize-js": "^0.4.1", | ||
"@bytecodealliance/componentize-js": "^0.5.0", | ||
"@types/node": "^18.11.17", | ||
@@ -56,6 +56,8 @@ "@typescript-eslint/eslint-plugin": "^5.41.0", | ||
"scripts": { | ||
"build": "cargo xtask build workspace", | ||
"build": "cargo xtask build debug", | ||
"build:release": "cargo xtask build release", | ||
"build:types:preview2-shim": "cargo xtask generate wasi-types", | ||
"lint": "eslint -c eslintrc.cjs lib/**/*.js packages/*/lib/**/*.js", | ||
"test": "mocha -u tdd test/test.js --timeout 120000" | ||
"test": "mocha -u tdd test/test.js --timeout 120000", | ||
"prepublishOnly": "cargo xtask build release && npm run test" | ||
}, | ||
@@ -62,0 +64,0 @@ "files": [ |
@@ -1,4 +0,3 @@ | ||
import { generate } from "../obj/js-component-bindgen-component.js"; | ||
import { generateTypes } from "../obj/js-component-bindgen-component.js"; | ||
export { generate as transpile, generateTypes }; | ||
export function transpile(...args: any[]): Promise<any>; | ||
export function generateTypes(...args: any[]): Promise<any>; | ||
//# sourceMappingURL=browser.d.ts.map |
@@ -1,3 +0,11 @@ | ||
import { $init, generate, generateTypes } from '../obj/js-component-bindgen-component.js'; | ||
await $init; | ||
export { generate as transpile, generateTypes } | ||
import { $init, generate, generateTypes as _generateTypes } from '../obj/js-component-bindgen-component.js'; | ||
export async function transpile () { | ||
await $init; | ||
return generate.apply(this, arguments); | ||
} | ||
export async function generateTypes () { | ||
await $init; | ||
return _generateTypes.apply(this, arguments); | ||
} |
@@ -11,3 +11,3 @@ export function transpile(componentPath: any, opts: any, program: any): Promise<void>; | ||
* tracing?: bool, | ||
* noNodejsCompat?: bool, | ||
* nodejsCompat?: bool, | ||
* tlaCompat?: bool, | ||
@@ -18,3 +18,3 @@ * base64Cutoff?: bool, | ||
* optimize?: bool, | ||
* noNamespacedExports?: bool, | ||
* namespacedExports?: bool, | ||
* optArgs?: string[], | ||
@@ -30,3 +30,3 @@ * }} opts | ||
tracing?: bool; | ||
noNodejsCompat?: bool; | ||
nodejsCompat?: bool; | ||
tlaCompat?: bool; | ||
@@ -37,3 +37,3 @@ base64Cutoff?: bool; | ||
optimize?: bool; | ||
noNamespacedExports?: bool; | ||
namespacedExports?: bool; | ||
optArgs?: string[]; | ||
@@ -40,0 +40,0 @@ }): Promise<{ |
@@ -100,4 +100,2 @@ import { $init, generate } from '../../obj/js-component-bindgen-component.js'; | ||
'wasi:io/*': '@bytecodealliance/preview2-shim/io#*', | ||
'wasi:logging/*': '@bytecodealliance/preview2-shim/logging#*', | ||
'wasi:poll/*': '@bytecodealliance/preview2-shim/poll#*', | ||
'wasi:random/*': '@bytecodealliance/preview2-shim/random#*', | ||
@@ -104,0 +102,0 @@ 'wasi:sockets/*': '@bytecodealliance/preview2-shim/sockets#*', |
@@ -14,3 +14,3 @@ #!/usr/bin/env node | ||
.usage('<command> [options]') | ||
.version('0.14.0'); | ||
.version('0.14.1'); | ||
@@ -17,0 +17,0 @@ function myParseInt(value) { |
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
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
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
7465
10022095
+ Added@bytecodealliance/preview2-shim@0.14.1(transitive)
- Removed@bytecodealliance/preview2-shim@0.14.0(transitive)