diff options
Diffstat (limited to 'packages/idb-bridge/src/util/validateKeyPath.ts')
-rw-r--r-- | packages/idb-bridge/src/util/validateKeyPath.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/packages/idb-bridge/src/util/validateKeyPath.ts b/packages/idb-bridge/src/util/validateKeyPath.ts index 3bbe653b6..1c614fcca 100644 --- a/packages/idb-bridge/src/util/validateKeyPath.ts +++ b/packages/idb-bridge/src/util/validateKeyPath.ts @@ -14,7 +14,7 @@ permissions and limitations under the License. */ -import { IDBKeyPath } from "../idbtypes"; +import { IDBKeyPath } from "../idbtypes.js"; // http://www.w3.org/TR/2015/REC-IndexedDB-20150108/#dfn-valid-key-path export const validateKeyPath = ( @@ -46,7 +46,7 @@ export const validateKeyPath = ( if (myKeyPath.length >= 1 && validIdentifierRegex.test(myKeyPath)) { return; } - } catch (err) { + } catch (err: any) { throw new SyntaxError(err.message); } if (myKeyPath.indexOf(" ") >= 0) { |