@nejs/basic-extensions
Advanced tools
Comparing version 2.14.0 to 2.15.0
@@ -257,5 +257,8 @@ "use strict"; | ||
if ((count === 1 && nonFn(get)) || (isTrue(set) || isFalse(set))) { | ||
let skipSet = isFalse(set); | ||
storage = { [key]: get }; | ||
const skipSet = isFalse(set); | ||
if (!storage || !(storage instanceof Map) || !isObject(storage)) { | ||
storage = {}; | ||
} | ||
const _ = liaison(storage, key); | ||
_.set(get); | ||
let _get = function () { return _.get(); }; | ||
@@ -262,0 +265,0 @@ let _set = function (value) { _.set(value); }; |
@@ -254,5 +254,8 @@ /** @typedef {string|symbol|number} PropertyKey */ | ||
if ((count === 1 && nonFn(get)) || (isTrue(set) || isFalse(set))) { | ||
let skipSet = isFalse(set); | ||
storage = { [key]: get }; | ||
const skipSet = isFalse(set); | ||
if (!storage || !(storage instanceof Map) || !isObject(storage)) { | ||
storage = {}; | ||
} | ||
const _ = liaison(storage, key); | ||
_.set(get); | ||
let _get = function () { return _.get(); }; | ||
@@ -259,0 +262,0 @@ let _set = function (value) { _.set(value); }; |
{ | ||
"author": "Brielle Harrison <nyteshade at gmail.com>", | ||
"browser": "dist/@nejs/basic-extensions.bundle.2.14.0.js", | ||
"browser": "dist/@nejs/basic-extensions.bundle.2.15.0.js", | ||
"description": "Basic but commonly used extensions", | ||
@@ -67,4 +67,4 @@ "dependencies": { | ||
"type": "module", | ||
"version": "2.14.0", | ||
"version": "2.15.0", | ||
"packageManager": "pnpm@9.9.0+sha512.60c18acd138bff695d339be6ad13f7e936eea6745660d4cc4a776d5247c540d0edee1a563695c183a66eb917ef88f2b4feb1fc25f32a7adcadc7aaf3438e99c1" | ||
} |
@@ -279,5 +279,10 @@ /** @typedef {string|symbol|number} PropertyKey */ | ||
if ((count === 1 && nonFn(get)) || (isTrue(set) || isFalse(set))) { | ||
let skipSet = isFalse(set) | ||
storage = { [key]: get } | ||
const skipSet = isFalse(set) | ||
if (!storage || !(storage instanceof Map) || !isObject(storage)) { | ||
storage = {} | ||
} | ||
const _ = liaison(storage, key) | ||
_.set(get) | ||
@@ -284,0 +289,0 @@ let _get = function() { return _.get() } |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
3600505
50721