Socket
Socket
Sign inDemoInstall

couchdb-collate

Package Overview
Dependencies
1
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.0 to 1.0.0

4

index.js
var pouchCollate = require('pouchdb-collate');
exports.collate = function(list) {
exports.toIndexableString = function(list) {
return pouchCollate.toIndexableString(list).replace(/\u0000/g, '\u0001');
};
exports.uncollate = function(str) {
exports.parseIndexableString = function(str) {
return pouchCollate.parseIndexableString(str.replace(/\u0001/g, '\u0000'));
};
{
"name": "couchdb-collate",
"version": "0.0.0",
"version": "1.0.0",
"description": "pouchdb-collate but with a dirty fix for a bug in how Chrome parses URLs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -8,6 +8,6 @@ var assert = require('assert');

var input = ['a', 1];
var a = couchdbCollate.collate(input);
var b = couchdbCollate.uncollate(a);
var a = couchdbCollate.toIndexableString(input);
var b = couchdbCollate.parseIndexableString(a);
assert.deepEqual(input, b);
});
});
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc