reactive-localstorage
Advanced tools
Comparing version 0.1.0-beta.0 to 0.1.0-beta.1
@@ -1,1 +0,1 @@ | ||
export declare const version = "0.1.0-beta.0"; | ||
export declare const version = "0.1.0-beta.1"; |
@@ -1,2 +0,2 @@ | ||
export const version = '0.1.0-beta.0'; | ||
export const version = '0.1.0-beta.1'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2Vudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxNQUFNLENBQUMsTUFBTSxPQUFPLEdBQUcsYUFBYSxDQUFBIn0= |
@@ -21,3 +21,3 @@ declare const $injectMark: unique symbol; | ||
off<K extends keyof ReactiveLocalStorageEventMap>(name: K, fn: ReactiveLocalStorageEventMap[K]): void; | ||
feed(key: string, newValue: string | null, oldValue: string | null): void; | ||
feed(key: string | null, newValue: string | null, oldValue: string | null): void; | ||
protected set(key: string, value: string | null): void; | ||
@@ -28,9 +28,10 @@ protected emit<K extends keyof ReactiveLocalStorageEventMap>(name: K, ...args: ArgumentsType<ReactiveLocalStorageEventMap[K]>): void; | ||
export interface ReactiveLocalStorageEventMap { | ||
change(key: string, newValue: string | null, oldValue: string | null): void; | ||
change(key: string | null, newValue: string | null, oldValue: string | null): void; | ||
} | ||
interface Handler { | ||
injector: LocalStorage; | ||
getItem?(this: Storage, key: string): void; | ||
setItem?(this: Storage, key: string, value: unknown): void; | ||
getItem?(this: Storage, key: string, value: string | null): void; | ||
setItem?(this: Storage, key: string, value: string): void; | ||
removeItem?(this: Storage, key: string): void; | ||
clear?(this: Storage): void; | ||
} | ||
@@ -52,7 +53,7 @@ declare var Storage: { | ||
*/ | ||
clear(): void; | ||
clear(this: Storage): void; | ||
/** | ||
* value = storage[key] | ||
*/ | ||
getItem(key: string): string | null; | ||
getItem(this: Storage, key: string): string | null; | ||
/** | ||
@@ -66,9 +67,9 @@ * Returns the name of the nth key in the list, or null if n is greater | ||
*/ | ||
removeItem(key: string): void; | ||
removeItem(this: Storage, key: string): void; | ||
/** | ||
* storage[key] = value | ||
*/ | ||
setItem(key: string, value: string): void; | ||
setItem(this: Storage, key: string, value: string): void; | ||
} | ||
declare type ArgumentsType<T> = T extends (...args: infer A) => any ? A : []; | ||
export {}; |
import { version } from './env'; | ||
const $injectMark = Symbol.for('reactive-localstorage-inject-mark'); | ||
const $handlers = Symbol.for('reactive-localstorage-handlers'); | ||
const { getItem, setItem, removeItem } = Storage.prototype; | ||
export class LocalStorage { | ||
@@ -21,4 +20,2 @@ constructor(window, storage) { | ||
listen(window, ({ key, newValue, oldValue }) => { | ||
if (!key) | ||
return; | ||
this.feed(key, newValue, oldValue); | ||
@@ -40,3 +37,3 @@ }); | ||
return cache.get(key); | ||
const value = getItem.call(this.native, key); | ||
const value = getNative('getItem').call(this.native, key); | ||
cache.set(key, value); | ||
@@ -52,3 +49,3 @@ return value; | ||
clear() { | ||
this.native.clear(); | ||
getNative('clear').call(this.native); | ||
const cache = this._cache; | ||
@@ -73,4 +70,16 @@ for (const key of cache.keys()) { | ||
feed(key, newValue, oldValue) { | ||
this._cache.set(key, newValue); | ||
if (newValue !== oldValue) { | ||
if (typeof key === 'string') { | ||
this._cache.set(key, newValue); | ||
if (newValue !== oldValue) { | ||
try { | ||
this.emit('change', key, newValue, oldValue); | ||
} | ||
catch (e) { | ||
// tslint:disable-next-line no-console | ||
console.error(e); | ||
} | ||
} | ||
} | ||
else { | ||
this._cache.clear(); | ||
try { | ||
@@ -87,8 +96,8 @@ this.emit('change', key, newValue, oldValue); | ||
const cache = this._cache; | ||
const oldValue = cache.has(key) ? cache.get(key) : this.native.getItem(key); | ||
const oldValue = cache.has(key) ? cache.get(key) : getNative('getItem').call(this.native, key); | ||
if (typeof value === 'string') { | ||
setItem.call(this.native, key, value); | ||
getNative('setItem').call(this.native, key, value); | ||
} | ||
else { | ||
removeItem.call(this.native, key); | ||
getNative('removeItem').call(this.native, key); | ||
} | ||
@@ -112,23 +121,15 @@ cache.set(key, value); | ||
injector: this, | ||
getItem(key) { | ||
const value = getItem.call(this, key); | ||
cache.set(key, value); | ||
getItem(key, value) { | ||
cache.set(key, String(value)); | ||
}, | ||
setItem(key, value) { | ||
set.call(this, key, String(value)); | ||
me.feed(key, String(value), me.getItem(key)); | ||
}, | ||
removeItem(key) { | ||
set.call(this, key, null); | ||
me.feed(key, null, me.getItem(key)); | ||
}, | ||
clear() { | ||
me.feed(null, null, null); | ||
}, | ||
}); | ||
function set(key, newValue) { | ||
const oldValue = me.getItem(key); | ||
if (newValue === null) { | ||
removeItem.call(this, key); | ||
} | ||
else { | ||
setItem.call(this, key, newValue); | ||
} | ||
me.feed(key, newValue, oldValue); | ||
} | ||
} | ||
@@ -157,2 +158,52 @@ } | ||
} | ||
const { getItem: nativeGetItem, setItem: nativeSetItem, removeItem: nativeRemoveItem, clear: nativeClear, } = Storage.prototype; | ||
function injectedGetItem(key) { | ||
const value = nativeGetItem.call(this, key); | ||
const handlers = this[$handlers]; | ||
if (handlers) { | ||
for (const { getItem: fn } of handlers) { | ||
if (typeof fn === 'function') { | ||
fn.call(this, key, value); | ||
} | ||
} | ||
} | ||
return value; | ||
} | ||
injectedGetItem.native = nativeGetItem; | ||
function injectedSetItem(key, value) { | ||
const handlers = this[$handlers]; | ||
if (handlers) { | ||
for (const { setItem: fn } of handlers) { | ||
if (typeof fn === 'function') { | ||
fn.call(this, key, value); | ||
} | ||
} | ||
} | ||
return nativeSetItem.call(this, key, value); | ||
} | ||
injectedSetItem.native = nativeSetItem; | ||
function injectedRemoveItem(key) { | ||
const handlers = this[$handlers]; | ||
if (handlers) { | ||
for (const { removeItem: fn } of handlers) { | ||
if (typeof fn === 'function') { | ||
fn.call(this, key); | ||
} | ||
} | ||
} | ||
return nativeRemoveItem.call(this, key); | ||
} | ||
injectedRemoveItem.native = nativeRemoveItem; | ||
function injectedClear() { | ||
const handlers = this[$handlers]; | ||
if (handlers) { | ||
for (const { clear: fn } of handlers) { | ||
if (typeof fn === 'function') { | ||
fn.call(this); | ||
} | ||
} | ||
} | ||
return nativeClear.call(this); | ||
} | ||
injectedRemoveItem.native = nativeRemoveItem; | ||
Object.defineProperties(Storage.prototype, { | ||
@@ -175,13 +226,3 @@ [$injectMark]: { | ||
writable: true, | ||
value(key) { | ||
const handlers = this[$handlers]; | ||
if (handlers) { | ||
for (const { getItem: fn } of handlers) { | ||
if (typeof fn === 'function') { | ||
fn.call(this, key); | ||
} | ||
} | ||
} | ||
return getItem.call(this, key); | ||
}, | ||
value: injectedGetItem, | ||
}, | ||
@@ -192,13 +233,3 @@ setItem: { | ||
writable: true, | ||
value(key, value) { | ||
const handlers = this[$handlers]; | ||
if (handlers) { | ||
for (const { setItem: fn } of handlers) { | ||
if (typeof fn === 'function') { | ||
fn.call(this, key, value); | ||
} | ||
} | ||
} | ||
return setItem.call(this, key, value); | ||
}, | ||
value: injectedSetItem, | ||
}, | ||
@@ -209,16 +240,16 @@ removeItem: { | ||
writable: true, | ||
value(key) { | ||
const handlers = this[$handlers]; | ||
if (handlers) { | ||
for (const { removeItem: fn } of handlers) { | ||
if (typeof fn === 'function') { | ||
fn.call(this, key); | ||
} | ||
} | ||
} | ||
return removeItem.call(this, key); | ||
}, | ||
} | ||
value: injectedRemoveItem, | ||
}, | ||
clear: { | ||
configurable: true, | ||
enumerable: false, | ||
writable: true, | ||
value: injectedClear, | ||
}, | ||
}); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxzdG9yYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2xvY2Fsc3RvcmFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsT0FBTyxFQUFFLE1BQU0sT0FBTyxDQUFBO0FBRS9CLE1BQU0sV0FBVyxHQUFHLE1BQU0sQ0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BQUMsQ0FBQTtBQUNKLENBQUM7QUFFRCxTQUFTLFNBQVMsQ0FBMEIsR0FBTTtJQUNoRCxNQUFNLEVBQUUsR0FBRyxPQUFPLENBQUMsU0FBUyxDQUFDLEdBQUcsQ0FBQyxDQUFBO0lBQ2pDLE9BQU8sRUFBRSxJQUFLLEVBQVUsQ0FBQyxNQUFNLElBQUksRUFBRSxDQUFBO0FBQ3ZDLENBQUMifQ== |
@@ -1,1 +0,1 @@ | ||
export declare const version = "0.1.0-beta.0"; | ||
export declare const version = "0.1.0-beta.1"; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.version = '0.1.0-beta.0'; | ||
exports.version = '0.1.0-beta.1'; | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW52LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2Vudi50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFhLFFBQUEsT0FBTyxHQUFHLGFBQWEsQ0FBQSJ9 |
@@ -21,3 +21,3 @@ declare const $injectMark: unique symbol; | ||
off<K extends keyof ReactiveLocalStorageEventMap>(name: K, fn: ReactiveLocalStorageEventMap[K]): void; | ||
feed(key: string, newValue: string | null, oldValue: string | null): void; | ||
feed(key: string | null, newValue: string | null, oldValue: string | null): void; | ||
protected set(key: string, value: string | null): void; | ||
@@ -28,9 +28,10 @@ protected emit<K extends keyof ReactiveLocalStorageEventMap>(name: K, ...args: ArgumentsType<ReactiveLocalStorageEventMap[K]>): void; | ||
export interface ReactiveLocalStorageEventMap { | ||
change(key: string, newValue: string | null, oldValue: string | null): void; | ||
change(key: string | null, newValue: string | null, oldValue: string | null): void; | ||
} | ||
interface Handler { | ||
injector: LocalStorage; | ||
getItem?(this: Storage, key: string): void; | ||
setItem?(this: Storage, key: string, value: unknown): void; | ||
getItem?(this: Storage, key: string, value: string | null): void; | ||
setItem?(this: Storage, key: string, value: string): void; | ||
removeItem?(this: Storage, key: string): void; | ||
clear?(this: Storage): void; | ||
} | ||
@@ -52,7 +53,7 @@ declare var Storage: { | ||
*/ | ||
clear(): void; | ||
clear(this: Storage): void; | ||
/** | ||
* value = storage[key] | ||
*/ | ||
getItem(key: string): string | null; | ||
getItem(this: Storage, key: string): string | null; | ||
/** | ||
@@ -66,9 +67,9 @@ * Returns the name of the nth key in the list, or null if n is greater | ||
*/ | ||
removeItem(key: string): void; | ||
removeItem(this: Storage, key: string): void; | ||
/** | ||
* storage[key] = value | ||
*/ | ||
setItem(key: string, value: string): void; | ||
setItem(this: Storage, key: string, value: string): void; | ||
} | ||
declare type ArgumentsType<T> = T extends (...args: infer A) => any ? A : []; | ||
export {}; |
@@ -16,3 +16,2 @@ "use strict"; | ||
var $handlers = Symbol.for('reactive-localstorage-handlers'); | ||
var _a = Storage.prototype, getItem = _a.getItem, setItem = _a.setItem, removeItem = _a.removeItem; | ||
var LocalStorage = /** @class */ (function () { | ||
@@ -36,4 +35,2 @@ function LocalStorage(window, storage) { | ||
var key = _a.key, newValue = _a.newValue, oldValue = _a.oldValue; | ||
if (!key) | ||
return; | ||
_this.feed(key, newValue, oldValue); | ||
@@ -63,3 +60,3 @@ }); | ||
return cache.get(key); | ||
var value = getItem.call(this.native, key); | ||
var value = getNative('getItem').call(this.native, key); | ||
cache.set(key, value); | ||
@@ -76,3 +73,3 @@ return value; | ||
var e_1, _a; | ||
this.native.clear(); | ||
getNative('clear').call(this.native); | ||
var cache = this._cache; | ||
@@ -107,4 +104,16 @@ try { | ||
LocalStorage.prototype.feed = function (key, newValue, oldValue) { | ||
this._cache.set(key, newValue); | ||
if (newValue !== oldValue) { | ||
if (typeof key === 'string') { | ||
this._cache.set(key, newValue); | ||
if (newValue !== oldValue) { | ||
try { | ||
this.emit('change', key, newValue, oldValue); | ||
} | ||
catch (e) { | ||
// tslint:disable-next-line no-console | ||
console.error(e); | ||
} | ||
} | ||
} | ||
else { | ||
this._cache.clear(); | ||
try { | ||
@@ -121,8 +130,8 @@ this.emit('change', key, newValue, oldValue); | ||
var cache = this._cache; | ||
var oldValue = cache.has(key) ? cache.get(key) : this.native.getItem(key); | ||
var oldValue = cache.has(key) ? cache.get(key) : getNative('getItem').call(this.native, key); | ||
if (typeof value === 'string') { | ||
setItem.call(this.native, key, value); | ||
getNative('setItem').call(this.native, key, value); | ||
} | ||
else { | ||
removeItem.call(this.native, key); | ||
getNative('removeItem').call(this.native, key); | ||
} | ||
@@ -161,23 +170,15 @@ cache.set(key, value); | ||
injector: this, | ||
getItem: function (key) { | ||
var value = getItem.call(this, key); | ||
cache.set(key, value); | ||
getItem: function (key, value) { | ||
cache.set(key, String(value)); | ||
}, | ||
setItem: function (key, value) { | ||
set.call(this, key, String(value)); | ||
me.feed(key, String(value), me.getItem(key)); | ||
}, | ||
removeItem: function (key) { | ||
set.call(this, key, null); | ||
me.feed(key, null, me.getItem(key)); | ||
}, | ||
clear: function () { | ||
me.feed(null, null, null); | ||
}, | ||
}); | ||
function set(key, newValue) { | ||
var oldValue = me.getItem(key); | ||
if (newValue === null) { | ||
removeItem.call(this, key); | ||
} | ||
else { | ||
setItem.call(this, key, newValue); | ||
} | ||
me.feed(key, newValue, oldValue); | ||
} | ||
}; | ||
@@ -209,2 +210,96 @@ return LocalStorage; | ||
} | ||
var _b = Storage.prototype, nativeGetItem = _b.getItem, nativeSetItem = _b.setItem, nativeRemoveItem = _b.removeItem, nativeClear = _b.clear; | ||
function injectedGetItem(key) { | ||
var e_3, _a; | ||
var value = nativeGetItem.call(this, key); | ||
var handlers = this[$handlers]; | ||
if (handlers) { | ||
try { | ||
for (var handlers_1 = __values(handlers), handlers_1_1 = handlers_1.next(); !handlers_1_1.done; handlers_1_1 = handlers_1.next()) { | ||
var fn = handlers_1_1.value.getItem; | ||
if (typeof fn === 'function') { | ||
fn.call(this, key, value); | ||
} | ||
} | ||
} | ||
catch (e_3_1) { e_3 = { error: e_3_1 }; } | ||
finally { | ||
try { | ||
if (handlers_1_1 && !handlers_1_1.done && (_a = handlers_1.return)) _a.call(handlers_1); | ||
} | ||
finally { if (e_3) throw e_3.error; } | ||
} | ||
} | ||
return value; | ||
} | ||
injectedGetItem.native = nativeGetItem; | ||
function injectedSetItem(key, value) { | ||
var e_4, _a; | ||
var handlers = this[$handlers]; | ||
if (handlers) { | ||
try { | ||
for (var handlers_2 = __values(handlers), handlers_2_1 = handlers_2.next(); !handlers_2_1.done; handlers_2_1 = handlers_2.next()) { | ||
var fn = handlers_2_1.value.setItem; | ||
if (typeof fn === 'function') { | ||
fn.call(this, key, value); | ||
} | ||
} | ||
} | ||
catch (e_4_1) { e_4 = { error: e_4_1 }; } | ||
finally { | ||
try { | ||
if (handlers_2_1 && !handlers_2_1.done && (_a = handlers_2.return)) _a.call(handlers_2); | ||
} | ||
finally { if (e_4) throw e_4.error; } | ||
} | ||
} | ||
return nativeSetItem.call(this, key, value); | ||
} | ||
injectedSetItem.native = nativeSetItem; | ||
function injectedRemoveItem(key) { | ||
var e_5, _a; | ||
var handlers = this[$handlers]; | ||
if (handlers) { | ||
try { | ||
for (var handlers_3 = __values(handlers), handlers_3_1 = handlers_3.next(); !handlers_3_1.done; handlers_3_1 = handlers_3.next()) { | ||
var fn = handlers_3_1.value.removeItem; | ||
if (typeof fn === 'function') { | ||
fn.call(this, key); | ||
} | ||
} | ||
} | ||
catch (e_5_1) { e_5 = { error: e_5_1 }; } | ||
finally { | ||
try { | ||
if (handlers_3_1 && !handlers_3_1.done && (_a = handlers_3.return)) _a.call(handlers_3); | ||
} | ||
finally { if (e_5) throw e_5.error; } | ||
} | ||
} | ||
return nativeRemoveItem.call(this, key); | ||
} | ||
injectedRemoveItem.native = nativeRemoveItem; | ||
function injectedClear() { | ||
var e_6, _a; | ||
var handlers = this[$handlers]; | ||
if (handlers) { | ||
try { | ||
for (var handlers_4 = __values(handlers), handlers_4_1 = handlers_4.next(); !handlers_4_1.done; handlers_4_1 = handlers_4.next()) { | ||
var fn = handlers_4_1.value.clear; | ||
if (typeof fn === 'function') { | ||
fn.call(this); | ||
} | ||
} | ||
} | ||
catch (e_6_1) { e_6 = { error: e_6_1 }; } | ||
finally { | ||
try { | ||
if (handlers_4_1 && !handlers_4_1.done && (_a = handlers_4.return)) _a.call(handlers_4); | ||
} | ||
finally { if (e_6) throw e_6.error; } | ||
} | ||
} | ||
return nativeClear.call(this); | ||
} | ||
injectedRemoveItem.native = nativeRemoveItem; | ||
Object.defineProperties(Storage.prototype, (_a = {}, | ||
@@ -227,24 +322,3 @@ _a[$injectMark] = { | ||
writable: true, | ||
value: function (key) { | ||
var e_3, _a; | ||
var handlers = this[$handlers]; | ||
if (handlers) { | ||
try { | ||
for (var handlers_1 = __values(handlers), handlers_1_1 = handlers_1.next(); !handlers_1_1.done; handlers_1_1 = handlers_1.next()) { | ||
var fn = handlers_1_1.value.getItem; | ||
if (typeof fn === 'function') { | ||
fn.call(this, key); | ||
} | ||
} | ||
} | ||
catch (e_3_1) { e_3 = { error: e_3_1 }; } | ||
finally { | ||
try { | ||
if (handlers_1_1 && !handlers_1_1.done && (_a = handlers_1.return)) _a.call(handlers_1); | ||
} | ||
finally { if (e_3) throw e_3.error; } | ||
} | ||
} | ||
return getItem.call(this, key); | ||
}, | ||
value: injectedGetItem, | ||
}, | ||
@@ -255,24 +329,3 @@ _a.setItem = { | ||
writable: true, | ||
value: function (key, value) { | ||
var e_4, _a; | ||
var handlers = this[$handlers]; | ||
if (handlers) { | ||
try { | ||
for (var handlers_2 = __values(handlers), handlers_2_1 = handlers_2.next(); !handlers_2_1.done; handlers_2_1 = handlers_2.next()) { | ||
var fn = handlers_2_1.value.setItem; | ||
if (typeof fn === 'function') { | ||
fn.call(this, key, value); | ||
} | ||
} | ||
} | ||
catch (e_4_1) { e_4 = { error: e_4_1 }; } | ||
finally { | ||
try { | ||
if (handlers_2_1 && !handlers_2_1.done && (_a = handlers_2.return)) _a.call(handlers_2); | ||
} | ||
finally { if (e_4) throw e_4.error; } | ||
} | ||
} | ||
return setItem.call(this, key, value); | ||
}, | ||
value: injectedSetItem, | ||
}, | ||
@@ -283,27 +336,16 @@ _a.removeItem = { | ||
writable: true, | ||
value: function (key) { | ||
var e_5, _a; | ||
var handlers = this[$handlers]; | ||
if (handlers) { | ||
try { | ||
for (var handlers_3 = __values(handlers), handlers_3_1 = handlers_3.next(); !handlers_3_1.done; handlers_3_1 = handlers_3.next()) { | ||
var fn = handlers_3_1.value.removeItem; | ||
if (typeof fn === 'function') { | ||
fn.call(this, key); | ||
} | ||
} | ||
} | ||
catch (e_5_1) { e_5 = { error: e_5_1 }; } | ||
finally { | ||
try { | ||
if (handlers_3_1 && !handlers_3_1.done && (_a = handlers_3.return)) _a.call(handlers_3); | ||
} | ||
finally { if (e_5) throw e_5.error; } | ||
} | ||
} | ||
return removeItem.call(this, key); | ||
}, | ||
value: injectedRemoveItem, | ||
}, | ||
_a.clear = { | ||
configurable: true, | ||
enumerable: false, | ||
writable: true, | ||
value: injectedClear, | ||
}, | ||
_a)); | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxzdG9yYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2xvY2Fsc3RvcmFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSw2QkFBK0I7QUFFL0IsSUFBTSxXQUFXLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBQ25FLElBQU0sU0FBUyxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsZ0NBQWdDLENBQUMsQ0FBQTtBQUV4RCxJQUFBLHNCQUFvRCxFQUFsRCxvQkFBTyxFQUFFLG9CQUFPLEVBQUUsMEJBQWdDLENBQUE7QUFFMUQ7SUFVRSxzQkFBWSxNQUFlLEVBQUUsT0FBaUI7UUFBOUMsaUJBZUM7UUFyQ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NKLENBQUMifQ== | ||
function getNative(key) { | ||
var fn = Storage.prototype[key]; | ||
return fn && fn.native || fn; | ||
} | ||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibG9jYWxzdG9yYWdlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vc3JjL2xvY2Fsc3RvcmFnZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7QUFBQSw2QkFBK0I7QUFFL0IsSUFBTSxXQUFXLEdBQUcsTUFBTSxDQUFDLEdBQUcsQ0FBQyxtQ0FBbUMsQ0FBQyxDQUFBO0FBQ25FLElBQU0sU0FBUyxHQUFHLE1BQU0sQ0FBQyxHQUFHLENBQUMsZ0NBQWdDLENBQUMsQ0FBQTtBQUU5RDtJQVVFLHNCQUFZLE1BQWUsRUFBRSxPQUFpQjtRQUE5QyxpQkFjQztRQXBCUyxZQUFPLEdBRWIsRUFBRSxDQUFBO1FBRUksWUFBTyxHQUFHLENBQUMsQ0FBQTtRQUduQix1QkFBdUI7UUFDdkIsSUFBSSxNQUFNLEVBQUU7WUFDVixJQUFJLENBQUMsU0FBUyxHQUFHLElBQUksQ0FBQTtTQUN0QjthQUFNO1lBQ0wsSUFBSSxDQUFDLFNBQVMsR0FBRyxLQUFLLENBQUE7WUFDdEIsTUFBTSxHQUFHLElBQUksTUFBTSxFQUFFLENBQUE7U0FDdEI7UUFDRCxJQUFJLENBQUMsTUFBTSxHQUFHLE9BQU8sSUFBSSxNQUFNLENBQUMsWUFBWSxDQUFBO1FBQzVDLElBQUksQ0FBQyxNQUFNLEdBQUcsSUFBSSxHQUFHLEVBQUUsQ0FBQTtRQUN2QixJQUFJLENBQUMsTUFBTSxDQUFDLElBQUksQ0FBQyxNQUFNLENBQUMsQ0FBQTtRQUN4QixNQUFNLENBQUMsTUFBTSxFQUFFLFVBQUMsRUFBMkI7Z0JBQXpCLFlBQUcsRUFBRSxz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FBRSxJQUFJO1lBQ2xCLFVBQVUsRUFBRSxLQUFLO1lBQ2pCLFFBQVEsRUFBRSxJQUFJO1lBQ2QsS0FBSyxFQUFFLGVBQWU7U0FDdkI7UUFDRCxVQUFPLEdBQUU7WUFDUCxZQUFZLEVBQUUsSUFBSTtZQUNsQixVQUFVLEVBQUUsS0FBSztZQUNqQixRQUFRLEVBQUUsSUFBSTtZQUNkLEtBQUssRUFBRSxlQUFlO1NBQ3ZCO1FBQ0QsYUFBVSxHQUFFO1lBQ1YsWUFBWSxFQUFFLElBQUk7WUFDbEIsVUFBVSxFQUFFLEtBQUs7WUFDakIsUUFBUSxFQUFFLElBQUk7WUFDZCxLQUFLLEVBQUUsa0JBQWtCO1NBQzFCO1FBQ0QsUUFBSyxHQUFFO1lBQ0wsWUFBWSxFQUFFLElBQUk7WUFDbEIsVUFBVSxFQUFFLEtBQUs7WUFDakIsUUFBUSxFQUFFLElBQUk7WUFDZCxLQUFLLEVBQUUsYUFBYTtTQUNyQjtZQUNELENBQUE7QUFDSixDQUFDO0FBRUQsU0FBUyxTQUFTLENBQTBCLEdBQU07SUFDaEQsSUFBTSxFQUFFLEdBQUcsT0FBTyxDQUFDLFNBQVMsQ0FBQyxHQUFHLENBQUMsQ0FBQTtJQUNqQyxPQUFPLEVBQUUsSUFBSyxFQUFVLENBQUMsTUFBTSxJQUFJLEVBQUUsQ0FBQTtBQUN2QyxDQUFDIn0= |
{ | ||
"name": "reactive-localstorage", | ||
"version": "0.1.0-beta.0", | ||
"version": "0.1.0-beta.1", | ||
"description": "A reactive localStorage with no dependency", | ||
@@ -5,0 +5,0 @@ "main": "lib/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
51188
768