Skip to content

Commit f8c93ca

Browse files
committed
Remove Node big file suppport
1 parent 6821408 commit f8c93ca

File tree

3 files changed

+2
-6
lines changed

3 files changed

+2
-6
lines changed

src/SDK/Language/Node.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public function getTypeName($type)
2121
switch ($type) {
2222
case self::TYPE_INTEGER:
2323
case self::TYPE_NUMBER:
24-
return 'number | string';
24+
return 'number';
2525
break;
2626
case self::TYPE_ARRAY:
2727
return 'string[]';

templates/node/lib/client.js.twig

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
const URL = require('url').URL;
22
const axios = require('axios');
3-
const JSONbig = require("json-bigint")({ storeAsString: true });
43
const FormData = require('form-data');
54
const {{spec.title | caseUcfirst}}Exception = require('./exception.js');
65

@@ -112,8 +111,6 @@ class Client {
112111
headers: headers,
113112
data: (method.toUpperCase() === 'GET' || contentType.startsWith('multipart/form-data')) ? formData : params,
114113
json: (contentType.startsWith('application/json')),
115-
transformResponse: (data) => JSONbig.parse(data),
116-
transformRequest: method.toUpperCase() === 'GET' || contentType.startsWith('multipart/form-data') ? undefined : (data) => JSONbig.stringify(data),
117114
responseType: responseType
118115
};
119116
try {

templates/node/package.json.twig

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
"devDependencies": {},
1414
"dependencies": {
1515
"axios": "^0.27.2",
16-
"form-data": "^4.0.0",
17-
"json-bigint": "^1.0.0"
16+
"form-data": "^4.0.0"
1817
}
1918
}

0 commit comments

Comments
 (0)