@digshare/script
Advanced tools
Comparing version 0.2.3 to 0.2.4
@@ -30,3 +30,3 @@ "use strict"; | ||
setItem(key, value) { | ||
this.changed || (this.changed = this.data[key] !== value); | ||
this.changed = true; | ||
this.data[key] = value; | ||
@@ -33,0 +33,0 @@ } |
{ | ||
"name": "@digshare/script", | ||
"version": "0.2.3", | ||
"version": "0.2.4", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "author": "Chengdu Mufan Technology Co., Ltd.", |
@@ -20,3 +20,3 @@ const hasOwnProperty = Object.prototype.hasOwnProperty; | ||
setItem<TKey extends keyof TData>(key: TKey, value: TData[TKey]): void { | ||
this.changed ||= this.data[key] !== value; | ||
this.changed = true; | ||
this.data[key] = value; | ||
@@ -23,0 +23,0 @@ } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
67407