@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({ url, method, timeout = this.timeout, query, headers = {}, json = true }, data) {
91
- return __awaiter(this, void 0, void 0, function* () {
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),
@@ -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": "8c7737cb6ad36ea87f5f8833e012a9d472832790",
7
- "version": "20.0.2-beta.0"
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": "8c7737cb6ad36ea87f5f8833e012a9d472832790",
401
- "version": "20.0.2-beta.0"
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({ url, method, timeout = this.timeout, query, headers = {}, json = true }, data) {
460
- return __awaiter(this, void 0, void 0, function* () {
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": "8c7737cb6ad36ea87f5f8833e012a9d472832790",
405
- "version": "20.0.2-beta.0"
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({ url, method, timeout = this.timeout, query, headers = {}, json = true }, data) {
464
- return __awaiter(this, void 0, void 0, function* () {
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.0",
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.0",
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.40",
66
- "@types/jest": "^29.5.5",
67
- "@types/node": "^20",
68
- "@types/node-fetch": "^2.6.9",
69
- "@types/superagent": "^4.1.19",
70
- "@typescript-eslint/eslint-plugin": "^6.8.0",
71
- "@typescript-eslint/parser": "^6.8.0",
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.51.0",
75
+ "eslint": "^8.57.0",
76
76
  "jest": "^29.7.0",
77
77
  "jest-config": "^29.7.0",
78
- "lint-staged": "^14.0.1",
78
+ "lint-staged": "^15.2.7",
79
79
  "lodash.camelcase": "^4.3.0",
80
- "prettier": "^3.0.3",
80
+ "prettier": "^3.3.3",
81
81
  "prompt": "^1.3.0",
82
- "replace-in-file": "^7.0.1",
83
- "rimraf": "^5.0.5",
84
- "rollup": "^4.1.4",
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.1.1",
89
- "ts-node": "^10.9.1",
88
+ "ts-jest": "^29.2.3",
89
+ "ts-node": "^10.9.2",
90
90
  "ts-toolbelt": "^9.6.0",
91
- "typescript": "~5.2.2"
91
+ "typescript": "~5.5.4"
92
92
  },
93
- "gitHead": "668e57eda3f7408503646f564346704d0f979327"
93
+ "gitHead": "f0f9e4d22a374c72913abbb1991b0e5b34f4c978"
94
94
  }