couchdb-collate
Advanced tools
Comparing version 0.0.0 to 1.0.0
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); | ||
}); | ||
}); |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
13502
0