inibase 1.1.0 → 1.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/file.js +3 -1
- package/package.json +1 -1
package/dist/file.js
CHANGED
|
@@ -106,7 +106,9 @@ const secureString = (input) => {
|
|
|
106
106
|
* @returns The secured and/or joined string.
|
|
107
107
|
*/
|
|
108
108
|
export const encode = (input) => Array.isArray(input)
|
|
109
|
-
? input.every((_input) =>
|
|
109
|
+
? input.every((_input) => _input === null ||
|
|
110
|
+
_input === undefined ||
|
|
111
|
+
(typeof _input === "string" && isStringified(_input)))
|
|
110
112
|
? `[${input.join(",")}]`
|
|
111
113
|
: Inison.stringify(input)
|
|
112
114
|
: secureString(input);
|