Skip to content

Commit

Permalink
fix: remove explicit javascript exports
Browse files Browse the repository at this point in the history
  • Loading branch information
janhalama committed Aug 23, 2023
1 parent 3e894c2 commit 51f05bd
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
5 changes: 0 additions & 5 deletions host/javascript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion host/javascript/src/common/index.ts
Original file line number Diff line number Diff line change
@@ -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';
Expand Down
1 change: 1 addition & 0 deletions host/javascript/src/node/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 51f05bd

Please sign in to comment.