socket-function 0.93.0 → 0.94.0
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/package.json
CHANGED
|
@@ -84,6 +84,7 @@ export class JSONLACKS {
|
|
|
84
84
|
// then it is about 2X slower (although it depends on the size and complexity of the objects!)
|
|
85
85
|
@measureFnc
|
|
86
86
|
public static parse<T>(text: string, config?: JSONLACKS_ParseConfig, hydrateState?: HydrateState): T {
|
|
87
|
+
if (text.trim() === "undefined") return undefined as T;
|
|
87
88
|
let obj: unknown;
|
|
88
89
|
|
|
89
90
|
let extendedParsing = config?.extended ?? JSONLACKS.EXTENDED_PARSER;
|