@moonbit/moonpad-monaco
Advanced tools
Comparing version 0.1.202412020 to 0.1.202412060
@@ -1,3 +0,9 @@ | ||
declare function compile(content: string): Promise<CompileResult>; | ||
declare function compile(params: CompileParams): Promise<CompileResult>; | ||
declare type CompileParams = { | ||
libContents: string[]; | ||
testContents?: string[]; | ||
target?: "wasm-gc" | "js"; | ||
}; | ||
declare type CompileResult = { | ||
@@ -36,3 +42,4 @@ kind: "success"; | ||
init_2 as init, | ||
run | ||
run, | ||
test | ||
} | ||
@@ -48,2 +55,18 @@ } | ||
declare function test(wasm: Uint8Array): Promise<ReadableStream<TestOutput>>; | ||
declare type TestOutput = { | ||
kind: "stdout"; | ||
stdout: string; | ||
} | ({ | ||
kind: "result"; | ||
} & TestResult); | ||
declare type TestResult = { | ||
package: string; | ||
filename: string; | ||
test_name: string; | ||
message: string; | ||
}; | ||
export { } |
{ | ||
"name": "@moonbit/moonpad-monaco", | ||
"version": "0.1.202412020", | ||
"version": "0.1.202412060", | ||
"type": "module", | ||
@@ -10,15 +10,25 @@ "files": [ | ||
".": { | ||
"default": "./dist/moonpad-monaco.js", | ||
"import": "./dist/moonpad-monaco.js", | ||
"types": "./dist/moonpad-monaco.d.ts" | ||
}, | ||
"./umd": { | ||
"default": "./dist/moonpad-monaco.umd.js", | ||
"require": "./dist/moonpad-monaco.umd.js", | ||
"types": "./dist/moonpad-monaco.d.ts" | ||
}, | ||
"./moonc-worker.js": { | ||
"default": "./dist/moonc-worker.js" | ||
}, | ||
"./lsp-server.js": { | ||
"default": "./dist/lsp-server.js" | ||
}, | ||
"./onig.wasm": { | ||
"default": "./dist/onig.wasm" | ||
} | ||
}, | ||
"devDependencies": { | ||
"prettier": "^3.4.1", | ||
"@types/node": "^22.10.1", | ||
"prettier": "^3.4.2", | ||
"prettier-plugin-organize-imports": "^4.1.0", | ||
"typescript": "~5.6.3", | ||
"vite": "^5.4.11", | ||
"typescript": "~5.7.2", | ||
"vite": "^6.0.2", | ||
"vite-plugin-dts": "^4.3.0", | ||
@@ -28,4 +38,4 @@ "core": "^1.0.0" | ||
"dependencies": { | ||
"@moonbit/analyzer": "^0.1.202412020", | ||
"@moonbit/moonc-worker": "^0.1.202412020", | ||
"@moonbit/analyzer": "^0.1.202412040", | ||
"@moonbit/moonc-worker": "^0.1.202412040", | ||
"comlink": "^4.4.2", | ||
@@ -32,0 +42,0 @@ "vscode-jsonrpc": "^8.2.1", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
15339345
7
7
18774
1