Skip to content

Commit

Permalink
Patch dexie-react-hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
petervmeijgaard committed Feb 2, 2025
1 parent 197ce84 commit 60efe9c
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 2 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,11 @@
"vite": "^6.0.11",
"vite-tsconfig-paths": "^5.1.4"
},
"pnpm": {
"patchedDependencies": {
"dexie-react-hooks": "patches/dexie-react-hooks.patch"
}
},
"engines": {
"node": ">=22.13.1"
},
Expand Down
25 changes: 25 additions & 0 deletions patches/dexie-react-hooks.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
diff --git a/dist/dexie-react-hooks.mjs b/dist/dexie-react-hooks.mjs
index 7b201dd378e790a3e8de5b4c9d7f2f4b0e5166ff..ae473dc6ad40cbf725ef3d6e9cf59c0436b469a8 100644
--- a/dist/dexie-react-hooks.mjs
+++ b/dist/dexie-react-hooks.mjs
@@ -1,4 +1,4 @@
-import { liveQuery, Dexie } from 'dexie';
+import Dexie, { liveQuery } from 'dexie';
import React from 'react';

function useObservable(observableFactory, arg2, arg3) {
diff --git a/package.json b/package.json
index b98023319abd8c549a67bf28135c948cf86d901c..57256653d199e8781e608966eae78318a8c7d4a8 100644
--- a/package.json
+++ b/package.json
@@ -3,8 +3,10 @@
"version": "1.1.7",
"description": "React hooks for reactive data fetching using Dexie.js",
"main": "dist/dexie-react-hooks.js",
+ "module": "dist/dexie-react-hooks.mjs",
"typings": "dist/dexie-react-hooks.d.ts",
"exports": {
+ "types": "./dist/dexie-react-hooks.d.ts",
"import": "./dist/dexie-react-hooks.mjs",
"require": "./dist/dexie-react-hooks.js",
"default": "./dist/dexie-react-hooks.js"
9 changes: 7 additions & 2 deletions pnpm-lock.yaml

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

0 comments on commit 60efe9c

Please sign in to comment.