Skip to content

Commit

Permalink
fix: add urlpattern-polyfill to deno.json
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsonk committed Mar 5, 2024
1 parent 828fed3 commit 25edc96
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
{
"name": "@oak/acorn",
"version": "0.5.1-alpha.2",
"version": "0.5.1-alpha.3",
"exports": {
".": "./mod.ts",
"./context": "./context.ts",
"./handlers": "./handlers.ts",
"./http_server_bun": "./http_server_bun.ts",
"./http_server_deno": "./http_server_deno.ts",
"./router": "./router.ts",
"./types": "./types.ts"
},
"imports": {
"urlpattern-polyfill": "npm:urlpattern-polyfill@10.0.0"
},
"tasks": {
"bench": "deno bench",
"example": "deno run --allow-net --allow-hrtime _examples/server.ts",
Expand Down
2 changes: 1 addition & 1 deletion router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import {
} from "./util.ts";

if (!("URLPattern" in globalThis)) {
await import("npm:urlpattern-polyfill");
await import("urlpattern-polyfill");
}

/** Valid return values from a route handler. */
Expand Down

0 comments on commit 25edc96

Please sign in to comment.