From 2df535c67c245cd32941e4d8370657437c498d70 Mon Sep 17 00:00:00 2001 From: myl7 Date: Fri, 20 Oct 2023 16:11:08 +0800 Subject: [PATCH] Lock brotli-wasm ver and add default to exports for drop-in replacement --- .github/workflows/ci.yaml | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3c6bfad..a9dd0b4 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -30,7 +30,7 @@ jobs: uses: actions/checkout@v3 with: repository: httptoolkit/brotli-wasm - # ref: v1.3.1 + ref: v2.0.1 path: test/brotli-wasm - name: Modify brotli-wasm for tests run: | diff --git a/package.json b/package.json index 2927756..5e752c8 100644 --- a/package.json +++ b/package.json @@ -36,7 +36,8 @@ "exports": { ".": { "import": "./index.js", - "types": "./index.d.ts" + "types": "./index.d.ts", + "default": "./index.js" }, "./sync": { "import": "./sync.js",