@taquito/http-utils 20.0.2-beta.0 → 20.0.2-beta.2
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.
|
@@ -87,8 +87,8 @@ class HttpBackend {
|
|
|
87
87
|
* @param options contains options to be passed for the HTTP request (url, method and timeout)
|
|
88
88
|
* @throws {@link HttpRequestFailed} | {@link HttpResponseError} | {@link HttpTimeoutError}
|
|
89
89
|
*/
|
|
90
|
-
createRequest(
|
|
91
|
-
return __awaiter(this,
|
|
90
|
+
createRequest(_a, data_1) {
|
|
91
|
+
return __awaiter(this, arguments, void 0, function* ({ url, method, timeout = this.timeout, query, headers = {}, json = true }, data) {
|
|
92
92
|
// Serializes query params
|
|
93
93
|
const urlWithQuery = url + this.serialize(query);
|
|
94
94
|
// Adds default header entry if there aren't any Content-Type header
|
|
@@ -100,7 +100,7 @@ class HttpBackend {
|
|
|
100
100
|
const t = setTimeout(() => controller.abort(), timeout);
|
|
101
101
|
try {
|
|
102
102
|
const response = yield fetch(urlWithQuery, {
|
|
103
|
-
keepalive: false,
|
|
103
|
+
keepalive: false, // Disable keepalive (keepalive defaults to true starting from Node 19 & 20)
|
|
104
104
|
method,
|
|
105
105
|
headers,
|
|
106
106
|
body: JSON.stringify(data),
|
package/dist/lib/version.js
CHANGED
|
@@ -3,6 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.VERSION = void 0;
|
|
4
4
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
5
5
|
exports.VERSION = {
|
|
6
|
-
"commitHash": "
|
|
7
|
-
"version": "20.0.2-beta.
|
|
6
|
+
"commitHash": "943d5fd11790da35f4a3e6ecfcaae3c4f0399a97",
|
|
7
|
+
"version": "20.0.2-beta.2"
|
|
8
8
|
};
|
|
@@ -397,8 +397,8 @@ var STATUS_CODE;
|
|
|
397
397
|
|
|
398
398
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
399
399
|
const VERSION = {
|
|
400
|
-
"commitHash": "
|
|
401
|
-
"version": "20.0.2-beta.
|
|
400
|
+
"commitHash": "943d5fd11790da35f4a3e6ecfcaae3c4f0399a97",
|
|
401
|
+
"version": "20.0.2-beta.2"
|
|
402
402
|
};
|
|
403
403
|
|
|
404
404
|
/**
|
|
@@ -456,8 +456,8 @@ class HttpBackend {
|
|
|
456
456
|
* @param options contains options to be passed for the HTTP request (url, method and timeout)
|
|
457
457
|
* @throws {@link HttpRequestFailed} | {@link HttpResponseError} | {@link HttpTimeoutError}
|
|
458
458
|
*/
|
|
459
|
-
createRequest(
|
|
460
|
-
return __awaiter(this,
|
|
459
|
+
createRequest(_a, data_1) {
|
|
460
|
+
return __awaiter(this, arguments, void 0, function* ({ url, method, timeout = this.timeout, query, headers = {}, json = true }, data) {
|
|
461
461
|
// Serializes query params
|
|
462
462
|
const urlWithQuery = url + this.serialize(query);
|
|
463
463
|
// Adds default header entry if there aren't any Content-Type header
|
|
@@ -469,7 +469,7 @@ class HttpBackend {
|
|
|
469
469
|
const t = setTimeout(() => controller.abort(), timeout);
|
|
470
470
|
try {
|
|
471
471
|
const response = yield fetch(urlWithQuery, {
|
|
472
|
-
keepalive: false,
|
|
472
|
+
keepalive: false, // Disable keepalive (keepalive defaults to true starting from Node 19 & 20)
|
|
473
473
|
method,
|
|
474
474
|
headers,
|
|
475
475
|
body: JSON.stringify(data),
|
|
@@ -401,8 +401,8 @@
|
|
|
401
401
|
|
|
402
402
|
// IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT OR CHECKIN!
|
|
403
403
|
const VERSION = {
|
|
404
|
-
"commitHash": "
|
|
405
|
-
"version": "20.0.2-beta.
|
|
404
|
+
"commitHash": "943d5fd11790da35f4a3e6ecfcaae3c4f0399a97",
|
|
405
|
+
"version": "20.0.2-beta.2"
|
|
406
406
|
};
|
|
407
407
|
|
|
408
408
|
/**
|
|
@@ -460,8 +460,8 @@
|
|
|
460
460
|
* @param options contains options to be passed for the HTTP request (url, method and timeout)
|
|
461
461
|
* @throws {@link HttpRequestFailed} | {@link HttpResponseError} | {@link HttpTimeoutError}
|
|
462
462
|
*/
|
|
463
|
-
createRequest(
|
|
464
|
-
return __awaiter(this,
|
|
463
|
+
createRequest(_a, data_1) {
|
|
464
|
+
return __awaiter(this, arguments, void 0, function* ({ url, method, timeout = this.timeout, query, headers = {}, json = true }, data) {
|
|
465
465
|
// Serializes query params
|
|
466
466
|
const urlWithQuery = url + this.serialize(query);
|
|
467
467
|
// Adds default header entry if there aren't any Content-Type header
|
|
@@ -473,7 +473,7 @@
|
|
|
473
473
|
const t = setTimeout(() => controller.abort(), timeout);
|
|
474
474
|
try {
|
|
475
475
|
const response = yield fetch(urlWithQuery, {
|
|
476
|
-
keepalive: false,
|
|
476
|
+
keepalive: false, // Disable keepalive (keepalive defaults to true starting from Node 19 & 20)
|
|
477
477
|
method,
|
|
478
478
|
headers,
|
|
479
479
|
body: JSON.stringify(data),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@taquito/http-utils",
|
|
3
|
-
"version": "20.0.2-beta.
|
|
3
|
+
"version": "20.0.2-beta.2",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"tezos"
|
|
@@ -58,37 +58,37 @@
|
|
|
58
58
|
]
|
|
59
59
|
},
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@taquito/core": "^20.0.2-beta.
|
|
61
|
+
"@taquito/core": "^20.0.2-beta.2",
|
|
62
62
|
"node-fetch": "^2.7.0"
|
|
63
63
|
},
|
|
64
64
|
"devDependencies": {
|
|
65
|
-
"@types/bluebird": "^3.5.
|
|
66
|
-
"@types/jest": "^29.5.
|
|
67
|
-
"@types/node": "^
|
|
68
|
-
"@types/node-fetch": "^2.6.
|
|
69
|
-
"@types/superagent": "^
|
|
70
|
-
"@typescript-eslint/eslint-plugin": "^6.
|
|
71
|
-
"@typescript-eslint/parser": "^6.
|
|
65
|
+
"@types/bluebird": "^3.5.42",
|
|
66
|
+
"@types/jest": "^29.5.12",
|
|
67
|
+
"@types/node": "^22",
|
|
68
|
+
"@types/node-fetch": "^2.6.11",
|
|
69
|
+
"@types/superagent": "^8.1.8",
|
|
70
|
+
"@typescript-eslint/eslint-plugin": "^6.21.0",
|
|
71
|
+
"@typescript-eslint/parser": "^6.21.0",
|
|
72
72
|
"colors": "^1.4.0",
|
|
73
73
|
"coveralls": "^3.1.1",
|
|
74
74
|
"cross-env": "^7.0.3",
|
|
75
|
-
"eslint": "^8.
|
|
75
|
+
"eslint": "^8.57.0",
|
|
76
76
|
"jest": "^29.7.0",
|
|
77
77
|
"jest-config": "^29.7.0",
|
|
78
|
-
"lint-staged": "^
|
|
78
|
+
"lint-staged": "^15.2.7",
|
|
79
79
|
"lodash.camelcase": "^4.3.0",
|
|
80
|
-
"prettier": "^3.
|
|
80
|
+
"prettier": "^3.3.3",
|
|
81
81
|
"prompt": "^1.3.0",
|
|
82
|
-
"replace-in-file": "^
|
|
83
|
-
"rimraf": "^
|
|
84
|
-
"rollup": "^4.1
|
|
82
|
+
"replace-in-file": "^8.1.0",
|
|
83
|
+
"rimraf": "^6.0.1",
|
|
84
|
+
"rollup": "^4.19.1",
|
|
85
85
|
"rollup-plugin-json": "^4.0.0",
|
|
86
86
|
"rollup-plugin-typescript2": "^0.36.0",
|
|
87
87
|
"shelljs": "^0.8.5",
|
|
88
|
-
"ts-jest": "^29.
|
|
89
|
-
"ts-node": "^10.9.
|
|
88
|
+
"ts-jest": "^29.2.3",
|
|
89
|
+
"ts-node": "^10.9.2",
|
|
90
90
|
"ts-toolbelt": "^9.6.0",
|
|
91
|
-
"typescript": "~5.
|
|
91
|
+
"typescript": "~5.5.4"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "f0f9e4d22a374c72913abbb1991b0e5b34f4c978"
|
|
94
94
|
}
|