🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

json-as

Package Overview
Dependencies
Maintainers
1
Versions
194
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-as - npm Package Compare versions

Comparing version

to
0.5.21

7

asconfig.json

@@ -15,4 +15,7 @@ {

"./transform"
]
}
],
"bindings": "esm",
"exportStart": "_start"
},
"extends": "./node_modules/@assemblyscript/wasi-shim/asconfig.json"
}

@@ -489,3 +489,3 @@ import { u128, u128Safe, u256, u256Safe, i128, i128Safe } from "as-bignum/assembly";

let lastPos = 0;
let depth = 1;
let depth = 0;
let i = 1;

@@ -498,10 +498,10 @@ // Find start of bracket

if (char === leftBracketCode) {
if (depth === 1) {
if (depth === 0) {
lastPos = i;
}
// Shifting is 6% faster than incrementing
depth = depth << 1;
depth++;
} else if (char === rightBracketCode) {
depth = depth >> 1;
if (depth === 1) {
depth--;
if (depth === 0) {
i++;

@@ -508,0 +508,0 @@ result.push(JSON.parse<valueof<T>>(data.slice(lastPos, i)));

{
"name": "json-as",
"version": "0.5.20",
"version": "0.5.21",
"description": "JSON encoder/decoder for AssemblyScript",

@@ -30,3 +30,3 @@ "types": "assembly/index.ts",

"assemblyscript-prettier": "^1.0.7",
"prettier": "^2.8.3",
"prettier": "^2.8.4",
"typescript": "^4.9.5",

@@ -36,5 +36,5 @@ "visitor-as": "^0.11.4"

"dependencies": {
"as-string-sink": "^0.5.0",
"as-variant": "^0.4.1",
"as-bignum": "^0.2.23"
"as-bignum": "^0.2.23",
"as-string-sink": "^0.5.3",
"as-variant": "^0.4.1"
},

@@ -41,0 +41,0 @@ "repository": {

@@ -88,3 +88,5 @@ import { getName, toString, isStdlib } from "visitor-as/dist/utils.js";

}
this.visit(node.members);
const parentSchema = this.schemasList.find((v) => v.name == this.currentClass.parent);
const members = [...node.members, ...(parentSchema ? parentSchema.node.members : [])];
this.visit(members);
let serializeFunc = "";

@@ -91,0 +93,0 @@ if (this.currentClass.encodeStmts.length > 0) {

{
"name": "@json-as/transform",
"version": "0.5.20",
"version": "0.5.21",
"description": "JSON encoder/decoder for AssemblyScript",

@@ -5,0 +5,0 @@ "main": "./lib/index.js",

@@ -97,3 +97,5 @@ import {

this.visit(node.members);
const parentSchema = this.schemasList.find((v) => v.name == this.currentClass.parent);
const members = [...node.members, ...(parentSchema ? parentSchema.node.members : [])]
this.visit(members);

@@ -100,0 +102,0 @@ let serializeFunc = "";

Sorry, the diff of this file is not supported yet