dumbmatter / indexeddb-getall-shim Goto Github PK
View Code? Open in Web Editor NEWShim/polyfill for IDBObjectStore.getAll, IDBIndex.getAll, IDBObjectStore.getAllKeys, and IDBIndex.getAllKeys
License: MIT License
Shim/polyfill for IDBObjectStore.getAll, IDBIndex.getAll, IDBObjectStore.getAllKeys, and IDBIndex.getAllKeys
License: MIT License
Hi,
When using your library, I noticed that the values returned by the getAllKeys method when used on an index returned the key of the records, instead of returning the primaryKey like it seems to be implemented on all modern browsers.
Let me know your thoughts
Hello,
Maybe I am blind, but I could not find how to use this with my angular app.
I did
yarn add indexeddb-getall-shim
and then I imported it in my app.module:
import "indexeddb-getall-shim";
Is this supposed to be enough? I am still getting this error with Microsoft Edge 44.19041.1.0 when startiing my app:
Isn't this the error IndexedDB-getAll-shim is supposed to fix?
I also tried including it in the scripts part of my angular.json, but to no avail...
What am I missing?
Cheers
Hi,
I have a case that the polyfill doesn't correctly patch when I use it with webpack.
I have a test case here. The problem is here :
typeof window === "undefined" ? GLOBAL : this
this
doesn't point to window object
Thanks for fixing this
testcase.zip
At the usage section, the instructions suggest to save as a dev dependency. Shouldn't it be a production dependency though?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.