Comparing version 1.0.6 to 1.0.7
@@ -5,3 +5,2 @@ "use strict"; | ||
var pubit = require("pubit-as-promised"); | ||
var publishLogger = require("./utils").publishLogger; | ||
var whatsDifferent = require("./utils").whatsDifferent; | ||
@@ -29,3 +28,3 @@ var isObject = require("./utils").isObject; | ||
function Storeit(namespace, storageProvider, logger) { | ||
function Storeit(namespace, storageProvider) { | ||
var that = this; | ||
@@ -44,3 +43,2 @@ var cache = {}; | ||
var publish = pubit.makeEmitter(that, events); // Mixin `on`, `off`, `once`. | ||
publish = publishLogger(publish, logger || _.noop, namespace); // Make the logger function optional. | ||
var originalPublish = publish; | ||
@@ -47,0 +45,0 @@ |
@@ -5,10 +5,2 @@ "use strict"; | ||
exports.publishLogger = function publishLogger(publish, logger, message) { | ||
return function() { | ||
var args = Array.prototype.slice.call(arguments, 0); | ||
logger(message, args); | ||
publish.apply(null, args); | ||
}; | ||
}; | ||
function isObject(object) { | ||
@@ -15,0 +7,0 @@ return !!object && typeof object === "object" && !(object instanceof Array) && !(object instanceof Date); |
{ | ||
"name": "storeit", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "A key/value storage system that publishes events.", | ||
@@ -41,3 +41,3 @@ "main": "./lib/Storeit.js", | ||
"dependencies": { | ||
"pubit-as-promised": "~1.0.1", | ||
"pubit-as-promised": "~1.1.0", | ||
"underscore": "~1.7.0" | ||
@@ -44,0 +44,0 @@ }, |
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
44917
333
+ Addedpubit-as-promised@1.1.2(transitive)
- Removedpubit-as-promised@1.0.1(transitive)
Updatedpubit-as-promised@~1.1.0