Skip to content

Commit

Permalink
Fix array serializations
Browse files Browse the repository at this point in the history
  • Loading branch information
ofekashery committed Dec 7, 2019
1 parent 282321d commit 3c1ad5f
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@the-orange-alliance/api",
"version": "0.0.3",
"version": "0.0.4",
"description": "The Orange Alliance Library for Node.js",
"author": "The Orange Alliance, Josh Bacon",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class API {
response_data: string
): T[] {
let res: [any] = JSON.parse(response_data);
let x = res.map(value => new c().fromJSON(res) as T);
let x = res.map(value => new c().fromJSON(value) as T);
return x;
}

Expand Down
2 changes: 1 addition & 1 deletion tests/api_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import API from "../src";
import { API } from "../src";

let api: API;

Expand Down
2 changes: 1 addition & 1 deletion tests/event_test.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import API from "../src";
import { API } from "../src";

let api: API;

Expand Down

0 comments on commit 3c1ad5f

Please sign in to comment.