pouchdb-core
Advanced tools
Comparing version
@@ -7,7 +7,7 @@ import { Map } from 'pouchdb-collections'; | ||
import inherits from 'inherits'; | ||
import { EventEmitter } from 'events'; | ||
import EE from 'events'; | ||
import { fetch } from 'pouchdb-fetch'; | ||
import pouchChangesFilter from 'pouchdb-changes-filter'; | ||
inherits(Changes, EventEmitter); | ||
inherits(Changes, EE); | ||
@@ -24,3 +24,3 @@ function tryCatchInChangeListener(self, change, pending, lastSeq) { | ||
function Changes(db, opts, callback) { | ||
EventEmitter.call(this); | ||
EE.call(this); | ||
var self = this; | ||
@@ -334,6 +334,6 @@ this.db = db; | ||
inherits(AbstractPouchDB, EventEmitter); | ||
inherits(AbstractPouchDB, EE); | ||
function AbstractPouchDB() { | ||
EventEmitter.call(this); | ||
EE.call(this); | ||
@@ -1317,7 +1317,7 @@ // re-bind prototyped methods | ||
var eventEmitter = new EventEmitter(); | ||
var eventEmitter = new EE(); | ||
function setUpEventEmitter(Pouch) { | ||
Object.keys(EventEmitter.prototype).forEach(function (key) { | ||
if (typeof EventEmitter.prototype[key] === 'function') { | ||
Object.keys(EE.prototype).forEach(function (key) { | ||
if (typeof EE.prototype[key] === 'function') { | ||
Pouch[key] = eventEmitter[key].bind(eventEmitter); | ||
@@ -1436,3 +1436,3 @@ } | ||
// managed automatically by set-version.js | ||
var version = "7.2.1"; | ||
var version = "7.2.2"; | ||
@@ -1439,0 +1439,0 @@ // TODO: remove from pouchdb-core (breaking) |
@@ -11,7 +11,7 @@ 'use strict'; | ||
var inherits = _interopDefault(require('inherits')); | ||
var events = require('events'); | ||
var EE = _interopDefault(require('events')); | ||
var pouchdbFetch = require('pouchdb-fetch'); | ||
var pouchChangesFilter = _interopDefault(require('pouchdb-changes-filter')); | ||
inherits(Changes, events.EventEmitter); | ||
inherits(Changes, EE); | ||
@@ -28,3 +28,3 @@ function tryCatchInChangeListener(self, change, pending, lastSeq) { | ||
function Changes(db, opts, callback) { | ||
events.EventEmitter.call(this); | ||
EE.call(this); | ||
var self = this; | ||
@@ -338,6 +338,6 @@ this.db = db; | ||
inherits(AbstractPouchDB, events.EventEmitter); | ||
inherits(AbstractPouchDB, EE); | ||
function AbstractPouchDB() { | ||
events.EventEmitter.call(this); | ||
EE.call(this); | ||
@@ -1321,7 +1321,7 @@ // re-bind prototyped methods | ||
var eventEmitter = new events.EventEmitter(); | ||
var eventEmitter = new EE(); | ||
function setUpEventEmitter(Pouch) { | ||
Object.keys(events.EventEmitter.prototype).forEach(function (key) { | ||
if (typeof events.EventEmitter.prototype[key] === 'function') { | ||
Object.keys(EE.prototype).forEach(function (key) { | ||
if (typeof EE.prototype[key] === 'function') { | ||
Pouch[key] = eventEmitter[key].bind(eventEmitter); | ||
@@ -1440,3 +1440,3 @@ } | ||
// managed automatically by set-version.js | ||
var version = "7.2.1"; | ||
var version = "7.2.2"; | ||
@@ -1443,0 +1443,0 @@ // TODO: remove from pouchdb-core (breaking) |
{ | ||
"name": "pouchdb-core", | ||
"version": "7.2.1", | ||
"version": "7.2.2", | ||
"description": "The core of PouchDB as a standalone package.", | ||
@@ -14,8 +14,8 @@ "main": "./lib/index.js", | ||
"inherits": "2.0.4", | ||
"pouchdb-changes-filter": "7.2.1", | ||
"pouchdb-collections": "7.2.1", | ||
"pouchdb-errors": "7.2.1", | ||
"pouchdb-fetch": "7.2.1", | ||
"pouchdb-merge": "7.2.1", | ||
"pouchdb-utils": "7.2.1" | ||
"pouchdb-changes-filter": "7.2.2", | ||
"pouchdb-collections": "7.2.2", | ||
"pouchdb-errors": "7.2.2", | ||
"pouchdb-fetch": "7.2.2", | ||
"pouchdb-merge": "7.2.2", | ||
"pouchdb-utils": "7.2.2" | ||
}, | ||
@@ -22,0 +22,0 @@ "module": "./lib/index.es.js", |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1
-50%91529
-0.21%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated
Updated
Updated
Updated