@superfaceai/one-sdk
Advanced tools
Comparing version 3.0.0-beta.16 to 3.0.0-beta.17
@@ -9,2 +9,3 @@ import fs from 'node:fs/promises'; | ||
import { fetchErrorToHostError, systemErrorToWasiError } from './error.js'; | ||
import { fileURLToPath } from 'node:url'; | ||
function corePathURL() { | ||
@@ -195,3 +196,3 @@ return new URL('../assets/core-async.wasm', import.meta.url); | ||
} | ||
await this.app.loadCore(await fs.readFile(process.env.CORE_PATH ?? corePathURL().pathname)); | ||
await this.app.loadCore(await fs.readFile(process.env.CORE_PATH ?? fileURLToPath(corePathURL()))); | ||
await this.app.init(new WASI({ | ||
@@ -198,0 +199,0 @@ env: { |
{ | ||
"name": "@superfaceai/one-sdk", | ||
"version": "3.0.0-beta.16", | ||
"version": "3.0.0-beta.17", | ||
"exports": { | ||
@@ -5,0 +5,0 @@ ".": "./dist/index.js", |
Sorry, the diff of this file is not supported yet
5326292
1573