json-as 0.5.24 → 0.5.25

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.
@@ -39,7 +39,7 @@ export namespace JSON {
39
39
  */
40
40
  export function stringify<T>(data: T): string {
41
41
  // String
42
- if (isString<T>()) {
42
+ if (isString<T>() && data != null) {
43
43
  let result = new StringSink("\"");
44
44
  // @ts-ignore
45
45
  for (let i = 0; i < data.length; i++) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "json-as",
3
- "version": "0.5.24",
3
+ "version": "0.5.25",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "types": "assembly/index.ts",
6
6
  "author": "Jairus Tanaka",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@json-as/transform",
3
- "version": "0.5.24",
3
+ "version": "0.5.25",
4
4
  "description": "JSON encoder/decoder for AssemblyScript",
5
5
  "main": "./lib/index.js",
6
6
  "author": "Jairus Tanaka",
File without changes