object-input-stream 0.2.2 → 0.2.4

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/dist/ois-ast.js CHANGED
@@ -728,9 +728,9 @@ function cstToAstNode(node, children) {
728
728
  return { type: "object", objectType: "prev-object", span: node.span, value: { epoch: node.value, handle: ref.value }, children: [tc, ref] };
729
729
  }
730
730
  case "object/class": {
731
- assert(children.length === 1);
731
+ assert(children.length === 2);
732
732
  const tc = children[0];
733
- const desc = children[0];
733
+ const desc = children[1];
734
734
  assert(tc.type === "tc" && tc.value === _1.default.TC_CLASS);
735
735
  assertDescNode(desc);
736
736
  assert(node.handle !== undefined);
package/package.json CHANGED
@@ -1,13 +1,14 @@
1
1
  {
2
2
  "name": "object-input-stream",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "description": "ObjectInputStream for JavaScript. Read Java serialized objects in Node and the browser.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.js",
7
7
  "scripts": {
8
8
  "pretest": "cross-env MAVEN_OPTS='--add-opens java.base/java.io=ALL-UNNAMED' mvn -f ./tests/generatetests/pom.xml clean compile exec:java -Dexec.mainClass=com.o11k.GenerateTests",
9
9
  "test": "jest",
10
- "build": "tsc"
10
+ "build": "tsc",
11
+ "pipeline": "npm install && npm run build && npm test && npm publish"
11
12
  },
12
13
  "repository": {
13
14
  "type": "git",
package/src/ois-ast.ts CHANGED
@@ -649,9 +649,9 @@ function cstToAstNode(node: CSTNode, children: ast.Node[]): ast.Node {
649
649
  return {type: "object", objectType: "prev-object", span: node.span, value: {epoch: node.value, handle: ref.value}, children: [tc, ref]}
650
650
  }
651
651
  case "object/class": {
652
- assert(children.length === 1);
652
+ assert(children.length === 2);
653
653
  const tc = children[0];
654
- const desc = children[0];
654
+ const desc = children[1];
655
655
  assert(tc.type === "tc" && tc.value === ObjectInputStream.TC_CLASS);
656
656
  assertDescNode(desc);
657
657
  assert(node.handle !== undefined);