json-as 0.5.15 → 0.5.16
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/assembly/src/json.ts +7 -5
- package/package.json +1 -1
- package/transform/package.json +1 -1
package/assembly/src/json.ts
CHANGED
|
@@ -394,13 +394,15 @@ function parseArray<T extends unknown[]>(data: string): T {
|
|
|
394
394
|
// @ts-ignore
|
|
395
395
|
return parseArrayArray<T>(data);
|
|
396
396
|
// @ts-ignore
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
// @ts-ignore
|
|
400
|
-
if (isDefined(type.__JSON_Set_Key)) {
|
|
397
|
+
} else if (isManaged<valueof<T>>() || isReference<valueof<T>>()) {
|
|
398
|
+
const type = changetype<nonnull<valueof<T>>>(__new(offsetof<nonnull<valueof<T>>>(), idof <nonnull<valueof<T>>>()));
|
|
401
399
|
// @ts-ignore
|
|
402
|
-
|
|
400
|
+
if (isDefined(type.__JSON_Set_Key)) {
|
|
401
|
+
// @ts-ignore
|
|
402
|
+
return parseObjectArray<T>(data);
|
|
403
|
+
}
|
|
403
404
|
}
|
|
405
|
+
return unreachable();
|
|
404
406
|
}
|
|
405
407
|
|
|
406
408
|
// @ts-ignore
|
package/package.json
CHANGED