Skip to content

Commit

Permalink
build: add errors and base64url submodule exports
Browse files Browse the repository at this point in the history
Refs #609

Use e.g.:

import * as errors from 'jose/errors'
import * as base64url from 'jose/base64url'
  • Loading branch information
panva committed Nov 30, 2023
1 parent 9bbe5fb commit 564412d
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,24 @@
"import": "./dist/node/esm/index.js",
"require": "./dist/node/cjs/index.js"
},
"./errors": {
"types": "./dist/types/util/errors.d.ts",
"bun": "./dist/browser/util/errors.js",
"deno": "./dist/browser/util/errors.js",
"browser": "./dist/browser/util/errors.js",
"worker": "./dist/browser/util/errors.js",
"import": "./dist/node/esm/util/errors.js",
"require": "./dist/node/cjs/util/errors.js"
},
"./base64url": {
"types": "./dist/types/util/base64url.d.ts",
"bun": "./dist/browser/util/base64url.js",
"deno": "./dist/browser/util/base64url.js",
"browser": "./dist/browser/util/base64url.js",
"worker": "./dist/browser/util/base64url.js",
"import": "./dist/node/esm/util/base64url.js",
"require": "./dist/node/cjs/util/base64url.js"
},
"./package.json": "./package.json"
},
"main": "./dist/node/cjs/index.js",
Expand Down

0 comments on commit 564412d

Please sign in to comment.