json-as 1.0.0-beta.13 → 1.0.0-beta.15
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/CHANGELOG +8 -0
- package/README.md +2 -2
- package/assembly/index.ts +1 -1
- package/package.json +1 -1
package/CHANGELOG
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## 2025-03-04 - 1.0.0-beta.15
|
|
4
|
+
|
|
5
|
+
- fix: deserialize custom should take in string
|
|
6
|
+
|
|
7
|
+
## 2025-03-04 - 1.0.0-beta.14
|
|
8
|
+
|
|
9
|
+
- fix: reference to nonexistent variable during custom deserialization layer 2
|
|
10
|
+
|
|
3
11
|
## 2025-03-04 - 1.0.0-beta.13
|
|
4
12
|
|
|
5
13
|
- fix: forgot to actually build the transform
|
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
██ ██ ██ ██ ██ ██ ██ ██ ██ ██ ██
|
|
7
7
|
█████ ███████ ██████ ██ ████ ██ ██ ███████
|
|
8
8
|
</span>
|
|
9
|
-
AssemblyScript - v1.0.0-beta.
|
|
9
|
+
AssemblyScript - v1.0.0-beta.15
|
|
10
10
|
</pre>
|
|
11
11
|
</h5>
|
|
12
12
|
|
|
@@ -31,7 +31,7 @@ JSON is the de-facto serialization format of modern web applications, but its se
|
|
|
31
31
|
## 💾 Installation
|
|
32
32
|
|
|
33
33
|
```bash
|
|
34
|
-
npm install json-as@1.0.0-beta.
|
|
34
|
+
npm install json-as@1.0.0-beta.15
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Add the `--transform` to your `asc` command (e.g. in package.json)
|
package/assembly/index.ts
CHANGED
|
@@ -588,7 +588,7 @@ export namespace JSON {
|
|
|
588
588
|
// @ts-ignore: Defined by transform
|
|
589
589
|
if (isDefined(type.__INITIALIZE)) changetype<nonnull<T>>(out).__INITIALIZE();
|
|
590
590
|
// @ts-ignore
|
|
591
|
-
return changetype<nonnull<T>>(out).__DESERIALIZE_CUSTOM(ptrToStr(
|
|
591
|
+
return changetype<nonnull<T>>(out).__DESERIALIZE_CUSTOM(ptrToStr(srcStart, srcEnd));
|
|
592
592
|
// @ts-ignore: Defined by transform
|
|
593
593
|
} else if (isDefined(type.__DESERIALIZE)) {
|
|
594
594
|
return deserializeStruct<T>(srcStart, srcEnd, dst);
|