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

pouchdb-adapter-utils

Package Overview
Dependencies
Maintainers
5
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pouchdb-adapter-utils - npm Package Compare versions

Comparing version 6.2.0 to 6.2.1-prerelease

src/index.js

14

lib/index.es.js

@@ -1,2 +0,2 @@

import { invalidIdError, normalizeDdocFunctionName, parseDdocFunctionName, uuid } from 'pouchdb-utils';
import { invalidIdError, normalizeDdocFunctionName, parseDdocFunctionName, rev, uuid } from 'pouchdb-utils';
import { BAD_ARG, DOC_VALIDATION, INVALID_REV, MISSING_DOC, REV_CONFLICT, createError } from 'pouchdb-errors';

@@ -47,9 +47,9 @@ import { isDeleted, isLocalId, merge, revExists, winningRev } from 'pouchdb-merge';

function parseRevisionInfo(rev) {
if (!/^\d+\-./.test(rev)) {
function parseRevisionInfo(rev$$1) {
if (!/^\d+-./.test(rev$$1)) {
return createError(INVALID_REV);
}
var idx = rev.indexOf('-');
var left = rev.substring(0, idx);
var right = rev.substring(idx + 1);
var idx = rev$$1.indexOf('-');
var left = rev$$1.substring(0, idx);
var right = rev$$1.substring(idx + 1);
return {

@@ -93,3 +93,3 @@ prefix: parseInt(left, 10),

}
newRevId = uuid(32, 16).toLowerCase();
newRevId = rev();
if (doc._rev) {

@@ -96,0 +96,0 @@ revInfo = parseRevisionInfo(doc._rev);

@@ -51,9 +51,9 @@ 'use strict';

function parseRevisionInfo(rev) {
if (!/^\d+\-./.test(rev)) {
function parseRevisionInfo(rev$$1) {
if (!/^\d+-./.test(rev$$1)) {
return pouchdbErrors.createError(pouchdbErrors.INVALID_REV);
}
var idx = rev.indexOf('-');
var left = rev.substring(0, idx);
var right = rev.substring(idx + 1);
var idx = rev$$1.indexOf('-');
var left = rev$$1.substring(0, idx);
var right = rev$$1.substring(idx + 1);
return {

@@ -97,3 +97,3 @@ prefix: parseInt(left, 10),

}
newRevId = pouchdbUtils.uuid(32, 16).toLowerCase();
newRevId = pouchdbUtils.rev();
if (doc._rev) {

@@ -100,0 +100,0 @@ revInfo = parseRevisionInfo(doc._rev);

{
"name": "pouchdb-adapter-utils",
"version": "6.2.0",
"version": "6.2.1-prerelease",
"description": "Utilities for PouchDB adapters.",

@@ -10,16 +10,3 @@ "main": "./lib/index.js",

"repository": "https://github.com/pouchdb/pouchdb",
"jsnext:main": "./lib/index.es.js",
"dependencies": {
"pouchdb-binary-utils": "6.2.0",
"pouchdb-collections": "6.2.0",
"pouchdb-errors": "6.2.0",
"pouchdb-md5": "6.2.0",
"pouchdb-merge": "6.2.0",
"pouchdb-utils": "6.2.0"
},
"files": [
"lib",
"dist",
"tonic-example.js"
]
"jsnext:main": "./src/index.js"
}
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