pouchdb-replication
Advanced tools
Comparing version 6.2.0 to 6.2.1-prerelease
@@ -265,3 +265,15 @@ import Promise from 'pouchdb-promise'; | ||
repId = res; | ||
checkpointer = new Checkpointer(src, target, repId, returnValue); | ||
var checkpointOpts = {}; | ||
if (opts.checkpoint === false) { | ||
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: false }; | ||
} else if (opts.checkpoint === 'source') { | ||
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: false }; | ||
} else if (opts.checkpoint === 'target') { | ||
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: true }; | ||
} else { | ||
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: true }; | ||
} | ||
checkpointer = new Checkpointer(src, target, repId, returnValue, checkpointOpts); | ||
}); | ||
@@ -268,0 +280,0 @@ } |
@@ -269,3 +269,15 @@ 'use strict'; | ||
repId = res; | ||
checkpointer = new Checkpointer(src, target, repId, returnValue); | ||
var checkpointOpts = {}; | ||
if (opts.checkpoint === false) { | ||
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: false }; | ||
} else if (opts.checkpoint === 'source') { | ||
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: false }; | ||
} else if (opts.checkpoint === 'target') { | ||
checkpointOpts = { writeSourceCheckpoint: false, writeTargetCheckpoint: true }; | ||
} else { | ||
checkpointOpts = { writeSourceCheckpoint: true, writeTargetCheckpoint: true }; | ||
} | ||
checkpointer = new Checkpointer(src, target, repId, returnValue, checkpointOpts); | ||
}); | ||
@@ -272,0 +284,0 @@ } |
{ | ||
"name": "pouchdb-replication", | ||
"version": "6.2.0", | ||
"version": "6.2.1-prerelease", | ||
"description": "PouchDB's replication and sync algorithm, as a plugin.", | ||
@@ -10,16 +10,3 @@ "main": "./lib/index.js", | ||
"repository": "https://github.com/pouchdb/pouchdb", | ||
"jsnext:main": "./lib/index.es.js", | ||
"dependencies": { | ||
"inherits": "2.0.3", | ||
"pouchdb-checkpointer": "6.2.0", | ||
"pouchdb-errors": "6.2.0", | ||
"pouchdb-generate-replication-id": "6.2.0", | ||
"pouchdb-promise": "6.2.0", | ||
"pouchdb-utils": "6.2.0" | ||
}, | ||
"files": [ | ||
"lib", | ||
"dist", | ||
"tonic-example.js" | ||
] | ||
"jsnext:main": "./src/index.js" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
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
98280
0
12
2718
2
- Removedinherits@2.0.3
- Removedpouchdb-checkpointer@6.2.0
- Removedpouchdb-errors@6.2.0
- Removedpouchdb-promise@6.2.0
- Removedpouchdb-utils@6.2.0
- Removedargsarray@0.0.1(transitive)
- Removedattempt-x@1.1.3(transitive)
- Removedbuffer-from@0.1.1(transitive)
- Removedcached-constructors-x@1.0.2(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)
- Removedcall-bound@1.0.3(transitive)
- Removedclone-buffer@1.0.0(transitive)
- Removeddunder-proto@1.0.1(transitive)
- Removedes-define-property@1.0.1(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedes-object-atoms@1.0.0(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.6(transitive)
- Removedgopd@1.2.0(transitive)
- Removedhas-own-property-x@3.2.0(transitive)
- Removedhas-symbol-support-x@1.4.2(transitive)
- Removedhas-symbols@1.1.0(transitive)
- Removedhas-to-string-tag-x@1.4.1(transitive)
- Removedhas-tostringtag@1.0.2(transitive)
- Removedhasown@2.0.2(transitive)
- Removedimmediate@3.0.6(transitive)
- Removedinfinity-x@1.0.2(transitive)
- Removedinherits@2.0.3(transitive)
- Removedis-array-buffer-x@1.7.0(transitive)
- Removedis-date-object@1.1.0(transitive)
- Removedis-falsey-x@1.0.3(transitive)
- Removedis-finite-x@3.0.4(transitive)
- Removedis-function-x@3.3.0(transitive)
- Removedis-index-x@1.1.0(transitive)
- Removedis-nan-x@1.0.3(transitive)
- Removedis-nil-x@1.4.2(transitive)
- Removedis-object-like-x@1.7.1(transitive)
- Removedis-primitive@2.0.03.0.1(transitive)
- Removedis-regex@1.2.1(transitive)
- Removedis-string@1.1.1(transitive)
- Removedis-symbol@1.1.1(transitive)
- Removedlie@3.1.1(transitive)
- Removedlodash.isnull@3.0.0(transitive)
- Removedmath-clamp-x@1.2.0(transitive)
- Removedmath-intrinsics@1.1.0(transitive)
- Removedmath-sign-x@3.0.0(transitive)
- Removedmax-safe-integer@1.0.1(transitive)
- Removednan-x@1.0.2(transitive)
- Removednormalize-space-x@3.0.0(transitive)
- Removedobject-get-own-property-descriptor-x@3.2.0(transitive)
- Removedparse-int-x@2.0.0(transitive)
- Removedpouchdb-binary-utils@6.2.0(transitive)
- Removedpouchdb-checkpointer@6.2.0(transitive)
- Removedpouchdb-collate@6.2.0(transitive)
- Removedpouchdb-collections@6.2.0(transitive)
- Removedpouchdb-errors@6.2.0(transitive)
- Removedpouchdb-generate-replication-id@6.2.0(transitive)
- Removedpouchdb-md5@6.2.0(transitive)
- Removedpouchdb-promise@6.2.0(transitive)
- Removedpouchdb-utils@6.2.0(transitive)
- Removedproperty-is-enumerable-x@1.1.0(transitive)
- Removedreplace-comments-x@2.0.0(transitive)
- Removedrequire-coercible-to-string-x@1.0.2(transitive)
- Removedrequire-object-coercible-x@1.4.3(transitive)
- Removedsafe-regex-test@1.1.0(transitive)
- Removedspark-md5@3.0.0(transitive)
- Removedto-boolean-x@1.0.3(transitive)
- Removedto-integer-x@3.0.0(transitive)
- Removedto-number-x@2.0.0(transitive)
- Removedto-object-x@1.5.0(transitive)
- Removedto-primitive-x@1.1.0(transitive)
- Removedto-property-key-x@2.0.2(transitive)
- Removedto-string-symbols-supported-x@1.0.2(transitive)
- Removedto-string-tag-x@1.4.3(transitive)
- Removedto-string-x@1.4.5(transitive)
- Removedtrim-left-x@3.0.0(transitive)
- Removedtrim-right-x@3.0.0(transitive)
- Removedtrim-x@3.0.0(transitive)
- Removedvalidate.io-undefined@1.0.3(transitive)
- Removedwhite-space-x@3.0.1(transitive)