@esm.sh/oxide-wasm 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -11,12 +11,13 @@ import init, { extract } from "https://esm.sh/@esm.sh/oxide-wasm";
11
11
  await init();
12
12
 
13
13
  const code = `
14
- <h1 className="text-3xl font-bold underline">
14
+ <h1 class="text-3xl font-bold underline">
15
15
  Hello world!
16
16
  </h1>
17
17
  `;
18
18
  console.log(extract(code));
19
19
  // [
20
+ // "class",
20
21
  // "text-3xl",
21
22
  // "font-bold",
22
23
  // "underline"
package/index.d.ts ADDED
@@ -0,0 +1 @@
1
+ export function extract(input: string): string[];
package/index.mjs CHANGED
@@ -1,6 +1,6 @@
1
1
  import initWasm, { initSync as initWasmSync, extract as wasmExtract} from "./pkg/oxide_wasm.js";
2
2
 
3
- export function transform(input) {
3
+ export function extract(input) {
4
4
  if (typeof input !== "string" || input === "") {
5
5
  throw new Error("filename is required");
6
6
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esm.sh/oxide-wasm",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "A wasm build of the tailwindcss oxide",
5
5
  "type": "module",
6
6
  "module": "./index.mjs",