Comparing version 0.2.3 to 0.2.4
@@ -1,2 +0,2 @@ | ||
import { loadWasm } from './runtime/index.js'; | ||
import { loadWasm } from './runtime/node.js'; | ||
import './wasm/wasm_exec.js'; | ||
@@ -29,3 +29,3 @@ const go = new globalThis.Go(); | ||
} | ||
export default async function parse(content) { | ||
export async function parse(content) { | ||
await initWasm(); | ||
@@ -32,0 +32,0 @@ const { document } = await globalThis.GetDocument(content); |
{ | ||
"name": "runme", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"author": "Christian Bromann <christian@stateful.com>", | ||
@@ -5,0 +5,0 @@ "license": "Apache-2.0", |
@@ -30,8 +30,4 @@ # Runme.js [![Test Changes](https://github.com/stateful/runmejs/actions/workflows/test.yaml/badge.svg)](https://github.com/stateful/runmejs/actions/workflows/test.yaml) [![npm version](https://badge.fury.io/js/runme.svg)](https://badge.fury.io/js/runme) [![deno module](https://shield.deno.dev/x/runme)](https://deno.land/x/runme) | ||
You can import the module directly through e.g. esm.sh: | ||
You can import the module directly from the Deno module hosting service via `https://deno.land/x/runme@0.2.3/mod.ts`. | ||
```ts | ||
import { parse } from 'https://esm.sh/runme@0.1.0' | ||
``` | ||
## Usage | ||
@@ -47,2 +43,4 @@ | ||
import { parse } from 'runme' | ||
// or when using Deno: | ||
// import { parse } from 'https://deno.land/x/runme@0.2.3/mod.ts' | ||
@@ -49,0 +47,0 @@ console.log(await parse('## Hello World\n')) |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
3
6211549
14
677
55