@superfaceai/one-sdk
Advanced tools
Comparing version 3.0.0-alpha.13 to 3.0.0-alpha.14
@@ -11,3 +11,3 @@ // Based on https://github.com/GoogleChromeLabs/asyncify/blob/master/asyncify.mjs | ||
})(AsyncifyState || (AsyncifyState = {})); | ||
class Asyncify { | ||
export class Asyncify { | ||
static async instantiate(module, imports, options) { | ||
@@ -101,3 +101,2 @@ const asyncify = new Asyncify(options?.dataAddress ?? Asyncify.DEFAULT_DATA_ADDRESS); | ||
Asyncify.DEFAULT_STACK_SIZE = 8 * 1024; | ||
export { Asyncify }; | ||
//# sourceMappingURL=asyncify.js.map |
@@ -166,3 +166,3 @@ import fs from 'node:fs/promises'; | ||
await this.app.loadCore(await fs.readFile(this.corePath)); | ||
await this.app.init(new WASI({ env: process.env })); | ||
await this.app.init(new WASI({ env: process.env, version: 'preview1' })); // TODO: node typings do not include version https://github.com/DefinitelyTyped/DefinitelyTyped/blob/master/types/node/wasi.d.ts#L68-L110 | ||
this.initProcessHooks(); | ||
@@ -169,0 +169,0 @@ readyState.ready = true; |
{ | ||
"name": "@superfaceai/one-sdk", | ||
"version": "3.0.0-alpha.13", | ||
"version": "3.0.0-alpha.14", | ||
"main": "node/index.js", | ||
"type": "module", | ||
"license": "MIT", | ||
"engines": { | ||
"node": ">=18" | ||
}, | ||
"dependencies": { | ||
@@ -11,10 +14,10 @@ "@cloudflare/workers-wasi": "^0.0.5" | ||
"devDependencies": { | ||
"@types/jest": "^29.5.1", | ||
"@types/jest": "^29.5.2", | ||
"@types/mocha": "^10.0.1", | ||
"@types/node": "^20.1.7", | ||
"@types/node": "^20.3.3", | ||
"jest": "^29.5.0", | ||
"rimraf": "^5.0.0", | ||
"ts-jest": "^29.1.0", | ||
"rimraf": "^5.0.1", | ||
"ts-jest": "^29.1.1", | ||
"ts-node": "^10.9.1", | ||
"typescript": "^5.0.2" | ||
"typescript": "^5.1.6" | ||
}, | ||
@@ -21,0 +24,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3819884
1886