Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: change window to self for webworker support #18

Merged
merged 2 commits into from
Feb 8, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
"name": "idb-pull-blob-store",
"version": "0.5.1",
"description": "IndexedDB implementation for interface-pull-blob-store",
"main": "lib/index.js",
"jsnext:main": "src/index.js",
"main": "src/index.js",
"scripts": {
"lint": "aegir-lint",
"build": "aegir-build",
Expand All @@ -22,7 +21,7 @@
"author": "Friedel Ziegelmayer <[email protected]>",
"license": "MIT",
"devDependencies": {
"aegir": "^9.2.1",
"aegir": "^10.0.0",
"chai": "^3.5.0",
"interface-pull-blob-store": "^0.6.0"
},
Expand All @@ -47,4 +46,4 @@
"type": "git",
"url": "git+https://github.com/ipfs/js-idb-pull-blob-store.git"
}
}
}
8 changes: 4 additions & 4 deletions test/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
const testSuite = require('interface-pull-blob-store/lib/tests')

const IdbBlobStore = require('../src')
const indexedDB = window.indexedDB ||
window.mozIndexedDB ||
window.webkitIndexedDB ||
window.msIndexedDB
const indexedDB = self.indexedDB ||
self.mozIndexedDB ||
self.webkitIndexedDB ||
self.msIndexedDB

testSuite({
setup (cb) {
Expand Down
8 changes: 4 additions & 4 deletions test/streaming.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ const expect = require('chai').expect
const pull = require('pull-stream')

const IdbBlobStore = require('../src')
const indexedDB = window.indexedDB ||
window.mozIndexedDB ||
window.webkitIndexedDB ||
window.msIndexedDB
const indexedDB = self.indexedDB ||
self.mozIndexedDB ||
self.webkitIndexedDB ||
self.msIndexedDB

describe('streaming', () => {
let store
Expand Down