jakearchibald / idb-keyval

A super-simple-small promise-based keyval store implemented with IndexedDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error in require() in version 5.1.0

tomdrewes opened this issue · comments

We are building a project that uses idb-keyval via require()/browserify and we recently noticed this error that seemed to come along with the changes in 5.1.0:

Error: Cannot find module 'dist/cjs-compat/index.js' from '/Users/tdrewes/Code/serenity-clean/inara/node_modules/idb-keyval/dist/cjs-compat'

In looking at dist/cjs-compat/index.js it appears that on line 9:
var safariFix = require('dist/cjs-compat/index.js');

there may be a typo which is supposed to be referencing the source for the recent Safari bug workaround.

Ugh, sorry, schoolboy error from me. I'll ship a fix tomorrow.

Thank you for filing an issue on this!

Should be fixed in 5.1.1. Let me know if there are any issues.

Closed in a2f76a4