Comparing version 0.8.6 to 0.8.7
@@ -20,4 +20,8 @@ "use strict"; | ||
}; | ||
var __importDefault = (this && this.__importDefault) || function (mod) { | ||
return (mod && mod.__esModule) ? mod : { "default": mod }; | ||
}; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var emotion_1 = require("emotion"); | ||
var object_hash_1 = __importDefault(require("object-hash")); | ||
var flattenArg = function (arg) { | ||
@@ -67,5 +71,4 @@ var allArgs = []; | ||
} | ||
var hashKey = JSON.stringify(args); | ||
var hashKey = object_hash_1.default(args); | ||
if (_this._cache[hashKey]) { | ||
// console.log(`cache hit`); | ||
return _this._cache[hashKey]; | ||
@@ -78,2 +81,16 @@ } | ||
}; | ||
// _css = <T extends keyof ObjectInterpolation<undefined>>(key: T, arg: ObjectInterpolation<undefined>[T]) => { | ||
// // const hashKey = JSON.stringify(args); | ||
// if (this._cache[hashKey]) { | ||
// // console.log(`cache hit`); | ||
// return this._cache[hashKey] as any; | ||
// } | ||
// // this.params.cssArray = [...this.params.cssArray, ...args]; | ||
// const newInstance = new (this as any).constructor(this.theme, { | ||
// ...this.params, | ||
// cssArray: [...this.params.cssArray, ...args], | ||
// }); | ||
// this._cache[hashKey] = newInstance; | ||
// return newInstance; | ||
// }; | ||
// cx = (...args: CxArgs): this => { | ||
@@ -80,0 +97,0 @@ // return new (this as any).constructor(this.theme, { |
{ | ||
"name": "gwen", | ||
"version": "0.8.6", | ||
"version": "0.8.7", | ||
"description": "A utility-first CSS library designed for brevity", | ||
@@ -23,3 +23,5 @@ "main": "./lib/src/index.js", | ||
"@types/color": "^3.0.1", | ||
"color": "^3.1.2" | ||
"@types/object-hash": "^1.3.3", | ||
"color": "^3.1.2", | ||
"object-hash": "^2.0.3" | ||
}, | ||
@@ -26,0 +28,0 @@ "tags": [], |
Sorry, the diff of this file is not supported yet
1007700
18121
5
+ Added@types/object-hash@^1.3.3
+ Addedobject-hash@^2.0.3
+ Added@types/object-hash@1.3.4(transitive)
+ Addedobject-hash@2.2.0(transitive)