Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

worker-pouch

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

worker-pouch - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

lib/worker/pouchdb-idb-only.js

1

lib/client/core.js

@@ -372,3 +372,2 @@ 'use strict';

api.emit('destroyed');
api.constructor.emit('destroyed', api._name);
callback(null, res);

@@ -375,0 +374,0 @@ });

'use strict';
var Promise = require('pouchdb/extras/promise');
var Promise = require('pouchdb-promise');
var createWorker = require('./create-worker');

@@ -5,0 +5,0 @@

'use strict';
var Promise = require('pouchdb/extras/promise');
var Promise = require('pouchdb-promise');

@@ -14,3 +14,2 @@ exports.lastIndexOf = function lastIndexOf(str, char) {

// TODO: move to pouchdb/extras
exports.clone = require('./pouchdb-clone');

@@ -17,0 +16,0 @@

@@ -5,3 +5,3 @@ 'use strict';

var Promise = require('pouchdb/extras/promise');
var Promise = require('pouchdb-promise');
var errors = require('../shared/errors');

@@ -8,0 +8,0 @@ var workerUtils = require('./utils');

@@ -7,3 +7,3 @@ 'use strict';

var registerWorkerPouch = require('./core');
var PouchDB = require('pouchdb');
var PouchDB = require('./pouchdb-idb-only');
registerWorkerPouch(self, PouchDB);
{
"name": "worker-pouch",
"version": "1.1.0",
"version": "1.1.1",
"description": "PouchDB over a web worker",

@@ -44,5 +44,9 @@ "main": "lib/index.js",

"js-extend": "^1.0.1",
"lie": "^2.6.0",
"pouchdb": "^5.0.0",
"pouchdb-binary-util": "^1.0.0"
"pouchdb-adapter-http": "^5.4.4",
"pouchdb-adapter-idb": "^5.4.4",
"pouchdb-binary-util": "^1.0.0",
"pouchdb-core": "^5.4.4",
"pouchdb-mapreduce": "^5.4.4",
"pouchdb-promise": "5.4.4",
"pouchdb-replication": "^5.4.4"
},

@@ -64,3 +68,6 @@ "devDependencies": {

"phantomjs-prebuilt": "^2.1.7",
"pouchdb-browser": "^5.4.4",
"pouchdb-http-proxy": "^0.10.4",
"pouchdb-legacy-utils": "^1.0.0",
"pouchdb-memory": "^1.0.0",
"request": "^2.36.0",

@@ -67,0 +74,0 @@ "run-scripts": "^0.4.0",

@@ -9,3 +9,3 @@ worker-pouch [![Build Status](https://travis-ci.org/nolanlawson/worker-pouch.svg)](https://travis-ci.org/nolanlawson/worker-pouch)

Adapter plugin to use PouchDB over [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Worker) or [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API). Transparently proxies all PouchDB API requests to the Worker, so that the most expensive database operations are run in a separate thread.
Adapter plugin to use PouchDB over [Web Workers](https://developer.mozilla.org/en-US/docs/Web/API/Worker) or [Service Workers](https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API). Transparently proxies all PouchDB API requests to the worker, so that the most expensive database operations are run in a separate thread.

@@ -26,2 +26,3 @@ Basically, worker-pouch allows you use the PouchDB API like you normally would, but your UI will suffer fewer hiccups, because any blocking operations (such as IndexedDB or checksumming) are run inside of the worker.

* [FAQs](#faqs)
* [Changelog](#changelog)

@@ -75,6 +76,4 @@

Unfortunately, creating workers via Blob URLs is not supported in all browsers. In particular, IE, Edge, Safari, and iOS are not supported. Luckily, Firefox and Chrome are the browsers that [benefit the most from web workers](http://nolanlawson.com/2015/09/29/indexeddb-websql-localstorage-what-blocks-the-dom/). There is also an API to [detect browser support](#detecting-browser-support).
Unfortunately, creating workers via Blob URLs is not supported in all browsers. In particular, IE, Edge, Safari, and iOS are not supported. Luckily, Firefox and Chrome are the browsers that [benefit the most from web workers](http://nolanlawson.com/2015/09/29/indexeddb-websql-localstorage-what-blocks-the-dom/). There is also an API to [detect browser support](#fallback-for-unsupported-browsers), which you must use if you would like to support browsers other than Firefox and Chrome.
In Easy Mode, you will need to use the [isSupportedBrowser()](#fallback-for-unsupported-browsers) API if you would like to support browsers other than Firefox and Chrome.
### Custom Mode

@@ -248,2 +247,10 @@

Changelog
-----
- 1.1.0
- Adds the Custom Mode API
- 1.0.0
- Initial release
Building

@@ -250,0 +257,0 @@ ----

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc