From 51f05bd1dfa7fcb4976fd4db688e3d6856acc7bf Mon Sep 17 00:00:00 2001 From: Jan Halama Date: Wed, 23 Aug 2023 14:00:43 +0200 Subject: [PATCH] fix: remove explicit javascript exports --- host/javascript/package.json | 5 ----- host/javascript/src/common/index.ts | 2 +- host/javascript/src/node/index.ts | 1 + 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/host/javascript/package.json b/host/javascript/package.json index da2ccab8..55e91f22 100644 --- a/host/javascript/package.json +++ b/host/javascript/package.json @@ -7,11 +7,6 @@ "./cloudflare": "./cloudflare/index.js", "./cloudflare/index.js": "./cloudflare/index.js", "./common": "./common/index.js", - "./common/index.js": "./common/index.js", - "./common/app": "./common/app.js", - "./common/app.js": "./common/app.js", - "./node/error": "./node/error", - "./node/error.js": "./node/error.js", "./assets/core-async.wasm": "./assets/core-async.wasm" }, "type": "module", diff --git a/host/javascript/src/common/index.ts b/host/javascript/src/common/index.ts index 21e509aa..8f3e6bdf 100644 --- a/host/javascript/src/common/index.ts +++ b/host/javascript/src/common/index.ts @@ -1,4 +1,4 @@ -export { App } from './app.js'; +export { App, AsyncMutex } from './app.js'; export type { TextCoder, FileSystem, Timers, Network, WasiContext, Persistence } from './interfaces.js'; export { HandleMap } from './handle_map.js'; export { SecurityValuesMap } from './security.js'; diff --git a/host/javascript/src/node/index.ts b/host/javascript/src/node/index.ts index e61d9f0f..c0740435 100644 --- a/host/javascript/src/node/index.ts +++ b/host/javascript/src/node/index.ts @@ -20,6 +20,7 @@ import { import { fetchErrorToHostError, systemErrorToWasiError } from './error.js'; export { PerformError, UnexpectedError, ValidationError } from '../common/index.js'; +export { fetchErrorToHostError, systemErrorToWasiError } from './error.js'; const CORE_PATH = process.env.CORE_PATH ?? createRequire(import.meta.url).resolve('../assets/core-async.wasm'); const ASSETS_FOLDER = 'superface';