Comparing version 0.0.1 to 0.0.2
'use strict'; | ||
// This establishes a private namespace. | ||
const namespace = new WeakMap(); | ||
function p(object) { | ||
if (!namespace.has(object)) namespace.set(object, {}); | ||
return namespace.get(object); | ||
} | ||
/** | ||
@@ -11,2 +18,4 @@ * | ||
config = config || {}; | ||
p(this).data = {}; | ||
} | ||
@@ -13,0 +22,0 @@ |
{ | ||
"name": "cachie", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Versatile cache wrapper.", | ||
"main": "index.js", | ||
"main": "Cachie.js", | ||
"scripts": { | ||
@@ -10,3 +10,6 @@ "test": "echo \"Error: no test specified\" && exit 1" | ||
"author": "Tomas Savigliano", | ||
"license": "ISC" | ||
"license": "ISC", | ||
"dependencies": { | ||
"bluebird": "^3.4.7" | ||
} | ||
} |
4246
6
150
1
+ Addedbluebird@^3.4.7
+ Addedbluebird@3.7.2(transitive)