Comparing version 0.0.3 to 0.0.4
@@ -1,3 +0,2 @@ | ||
var lazy = require('lazy'), | ||
once = require('once'), | ||
var once = require('once'), | ||
db = require('../db'), | ||
@@ -8,3 +7,3 @@ tableDb = db.tableDb | ||
cb = once(cb) | ||
var opts | ||
var opts, keys | ||
@@ -14,3 +13,3 @@ if (data.ExclusiveStartTableName) | ||
var keys = lazy(tableDb.createKeyStream(opts)).on('error', cb) | ||
keys = db.lazy(tableDb.createKeyStream(opts), cb) | ||
@@ -17,0 +16,0 @@ if (data.Limit) keys = keys.take(data.Limit) |
@@ -1,2 +0,4 @@ | ||
var levelup = require('levelup'), | ||
var Readable = require('stream').Readable, | ||
lazy = require('lazy'), | ||
levelup = require('levelup'), | ||
MemDown = require('memdown'), | ||
@@ -10,2 +12,3 @@ sublevel = require('level-sublevel'), | ||
exports.lazy = lazyStream | ||
exports.tableDb = tableDb | ||
@@ -34,1 +37,11 @@ exports.itemDb = itemDb | ||
} | ||
function lazyStream(stream, errHandler) { | ||
if (Readable) { | ||
stream = new Readable().wrap(stream) | ||
stream.setEncoding('utf8') | ||
} | ||
if (errHandler) stream.on('error', errHandler) | ||
return lazy(stream) | ||
} |
{ | ||
"name": "dynalite", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "A mock implementation of Amazon's DynamoDB", | ||
@@ -5,0 +5,0 @@ "main": "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
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
226002
4749