Skip to content

Commit

Permalink
🐛 Fix middlewares and addons subpath exports
Browse files Browse the repository at this point in the history
should solve #160

Importing from `wretch/middlewares` and `wretch/addons` should work properly now.
  • Loading branch information
elbywan committed Jan 7, 2023
1 parent ad0a102 commit bfd2542
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,19 @@
"require": "./dist/bundle/wretch.all.min.cjs",
"import": "./dist/index.all.js"
},
"./addons": {
"types": "./dist/addons/index.d.ts",
"import": "./dist/addons/index.js"
},
"./addons/*": {
"types": "./dist/addons/*.d.ts",
"require": "./dist/bundle/addons/*.min.cjs",
"import": "./dist/addons/*.js"
},
"./middlewares": {
"types": "./dist/middlewares/index.d.ts",
"import": "./dist/middlewares/index.js"
},
"./middlewares/*": {
"types": "./dist/middlewares/*.d.ts",
"require": "./dist/bundle/middlewares/*.min.cjs",
Expand Down
8 changes: 4 additions & 4 deletions src/middlewares/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from "./delay"
export * from "./dedupe"
export * from "./throttlingCache"
export * from "./retry"
export * from "./delay.js"
export * from "./dedupe.js"
export * from "./throttlingCache.js"
export * from "./retry.js"

0 comments on commit bfd2542

Please sign in to comment.