Skip to content

Commit

Permalink
fix property names to match the json structure
Browse files Browse the repository at this point in the history
  • Loading branch information
mhmd-azeez committed Jun 26, 2024
1 parent d3e0dbc commit 5f658d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/interfaces.ts
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ export type ManifestWasm = (
export interface Manifest {
wasm: Array<ManifestWasm>;
config?: PluginConfigLike;
allowedPaths?: { [key: string]: string } | undefined;
allowed_paths?: { [key: string]: string } | undefined;

/**
* A list of allowed hostnames. Wildcard subdomains are supported via `*`.
Expand All @@ -306,7 +306,7 @@ export interface Manifest {
* })
* ```
*/
allowedHosts?: string[] | undefined;
allowed_hosts?: string[] | undefined;
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,8 @@ export async function toWasmModuleData(

const manifest = await intoManifest(input, _fetch);
const manifestOpts : ManifestOptions = {
allowedPaths: manifest.allowedPaths,
allowedHosts: manifest.allowedHosts,
allowedPaths: manifest.allowed_paths,
allowedHosts: manifest.allowed_hosts,
config: manifest.config,
};

Expand Down

0 comments on commit 5f658d4

Please sign in to comment.