@taquito/http-utils 24.0.0 → 24.0.1

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.
@@ -29,8 +29,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
29
29
  var _a;
30
30
  Object.defineProperty(exports, "__esModule", { value: true });
31
31
  exports.HttpBackend = exports.HttpTimeoutError = exports.HttpResponseError = exports.HttpRequestFailed = exports.VERSION = void 0;
32
- const https_1 = require("https");
33
- const http_1 = require("http");
34
32
  let fetch = globalThis === null || globalThis === void 0 ? void 0 : globalThis.fetch;
35
33
  let createAgent;
36
34
  // Will only use browser fetch if we are in a browser environment,
@@ -40,13 +38,17 @@ if (isNode) {
40
38
  // Handle both ESM and CJS default export patterns for webpack compatibility
41
39
  // eslint-disable-next-line @typescript-eslint/no-var-requires
42
40
  const nodeFetch = require('node-fetch');
41
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
42
+ const https = require('https');
43
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
44
+ const http = require('http');
43
45
  fetch = nodeFetch.default || nodeFetch;
44
46
  if (Number(process.versions.node.split('.')[0]) >= 19) {
45
47
  // we need agent with keepalive false for node 19 and above
46
48
  createAgent = (url) => {
47
49
  return url.startsWith('https')
48
- ? new https_1.Agent({ keepAlive: false })
49
- : new http_1.Agent({ keepAlive: false });
50
+ ? new https.Agent({ keepAlive: false })
51
+ : new http.Agent({ keepAlive: false });
50
52
  };
51
53
  }
52
54
  }
@@ -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!
5
5
  exports.VERSION = {
6
- "commitHash": "d809b5118dbca5e61edb8228a83b4831be32903b",
7
- "version": "24.0.0"
6
+ "commitHash": "ff502b6457efd5502635c8d6fe796fe156ef82b7",
7
+ "version": "24.0.1"
8
8
  };
@@ -1,5 +1,3 @@
1
- import { Agent } from 'https';
2
- import { Agent as Agent$1 } from 'http';
3
1
  import { NetworkError } from '@taquito/core';
4
2
 
5
3
  /******************************************************************************
@@ -399,8 +397,8 @@ var STATUS_CODE;
399
397
 
400
398
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
401
399
  const VERSION = {
402
- "commitHash": "d809b5118dbca5e61edb8228a83b4831be32903b",
403
- "version": "24.0.0"
400
+ "commitHash": "ff502b6457efd5502635c8d6fe796fe156ef82b7",
401
+ "version": "24.0.1"
404
402
  };
405
403
 
406
404
  /**
@@ -417,13 +415,17 @@ if (isNode) {
417
415
  // Handle both ESM and CJS default export patterns for webpack compatibility
418
416
  // eslint-disable-next-line @typescript-eslint/no-var-requires
419
417
  const nodeFetch = require('node-fetch');
418
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
419
+ const https = require('https');
420
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
421
+ const http = require('http');
420
422
  fetch = nodeFetch.default || nodeFetch;
421
423
  if (Number(process.versions.node.split('.')[0]) >= 19) {
422
424
  // we need agent with keepalive false for node 19 and above
423
425
  createAgent = (url) => {
424
426
  return url.startsWith('https')
425
- ? new Agent({ keepAlive: false })
426
- : new Agent$1({ keepAlive: false });
427
+ ? new https.Agent({ keepAlive: false })
428
+ : new http.Agent({ keepAlive: false });
427
429
  };
428
430
  }
429
431
  }
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-http-utils.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-http-utils.es6.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('https'), require('http'), require('@taquito/core')) :
3
- typeof define === 'function' && define.amd ? define(['exports', 'https', 'http', '@taquito/core'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoHttpUtils = {}, global.https, global.http, global.core));
5
- })(this, (function (exports, https, http, core) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@taquito/core')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@taquito/core'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.taquitoHttpUtils = {}, global.core));
5
+ })(this, (function (exports, core) { 'use strict';
6
6
 
7
7
  /******************************************************************************
8
8
  Copyright (c) Microsoft Corporation.
@@ -401,8 +401,8 @@
401
401
 
402
402
  // IMPORTANT: THIS FILE IS AUTO GENERATED! DO NOT MANUALLY EDIT!
403
403
  const VERSION = {
404
- "commitHash": "d809b5118dbca5e61edb8228a83b4831be32903b",
405
- "version": "24.0.0"
404
+ "commitHash": "ff502b6457efd5502635c8d6fe796fe156ef82b7",
405
+ "version": "24.0.1"
406
406
  };
407
407
 
408
408
  /**
@@ -419,6 +419,10 @@
419
419
  // Handle both ESM and CJS default export patterns for webpack compatibility
420
420
  // eslint-disable-next-line @typescript-eslint/no-var-requires
421
421
  const nodeFetch = require('node-fetch');
422
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
423
+ const https = require('https');
424
+ // eslint-disable-next-line @typescript-eslint/no-var-requires
425
+ const http = require('http');
422
426
  fetch = nodeFetch.default || nodeFetch;
423
427
  if (Number(process.versions.node.split('.')[0]) >= 19) {
424
428
  // we need agent with keepalive false for node 19 and above
@@ -1 +1 @@
1
- {"version":3,"file":"taquito-http-utils.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"taquito-http-utils.umd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@taquito/http-utils",
3
- "version": "24.0.0",
3
+ "version": "24.0.1",
4
4
  "description": "",
5
5
  "keywords": [
6
6
  "tezos"
@@ -63,7 +63,7 @@
63
63
  ]
64
64
  },
65
65
  "dependencies": {
66
- "@taquito/core": "^24.0.0",
66
+ "@taquito/core": "^24.0.1",
67
67
  "node-fetch": "^2.7.0"
68
68
  },
69
69
  "devDependencies": {
@@ -96,5 +96,5 @@
96
96
  "ts-toolbelt": "^9.6.0",
97
97
  "typescript": "~5.5.4"
98
98
  },
99
- "gitHead": "5b08d9e0309bb2badcaec920c1ed8849f8284dfe"
99
+ "gitHead": "743aefee3aa20a047a2738d7e251141620142b60"
100
100
  }