jdb.js
jdb.js copied to clipboard
jdb.js on Chrome and Firefox
付属のデモと、自作の簡単なサンプル(DBをopenしてputしてobjectstore.allするだけのもの)を作ってみたのですが、Chrome、Firefoxでは動作しないようです。 Chromiumでは問題なく動作するようなので、Indexed Database API自体に差異があるのかもしれません。 (すみません、深追いしませんでした)
ちなみに現在の最新バージョンのChromeではversionの初期値は0ではなく"" (空文字)になってます。 そういう微妙な差異が影響しているかもしれません。
ご報告ありがとうございます!おかしいなあ、ぼく、MacのChromeで開発しているんだけど。今最優先でやろうとしているのは自動テストの作成なので、それが出来上がったら色々なブラウザで試してみますね。 本当に助かります。もし良ければ、自作のデモをpull requestしてください!よければコミッタの一人になっていただけると心強いです。
OSに関する記述が抜けていましたが、私の環境はWindows7(32/64両環境)です。同じブラウザでもOSによって挙動が違うんですね。 自作のデモの方はもう少し作り込んだらpull requestしたいと思います。
ありがとうございます!よろしくお願いいたします!
The security team in charge of the ‘npm’ repository used for JavaScript libraries has removed two of the npm packages on Monday after they were found to contain malicious code that installed a remote access trojan (RAT) onto computers of developers who were working on JavaScript projects.
The names of the packages were jdb.js and db-json.js, and they were both created by the same author. The packages were described as tools which help developers work with JSON files generated by database applications. The packages were uploaded to the npm package registry last week and were downloaded over 100 times before their flaws were detected by Sonatype.