@taquito/http-utils
Advanced tools
Comparing version 14.0.0 to 14.1.0-beta-RC.0
@@ -28,2 +28,6 @@ "use strict"; | ||
const axios_1 = require("axios"); | ||
const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null; | ||
const adapterPromise = isNode | ||
? undefined | ||
: Promise.resolve().then(() => require('@vespaiach/axios-fetch-adapter')).then((mod) => mod.default).catch(() => undefined); | ||
__exportStar(require("./status_code"), exports); | ||
@@ -122,2 +126,3 @@ var version_1 = require("./version"); | ||
try { | ||
const adapter = adapterPromise && (yield adapterPromise); | ||
const response = yield axios_1.default.request({ | ||
@@ -131,2 +136,3 @@ url: url + this.serialize(query), | ||
data: data, | ||
adapter, | ||
}); | ||
@@ -133,0 +139,0 @@ return response.data; |
@@ -6,5 +6,5 @@ "use strict"; | ||
exports.VERSION = { | ||
"commitHash": "b1a433145402043facaec3519daceb21a305deef", | ||
"version": "14.0.0" | ||
"commitHash": "0b10f922029edc29cd5a922751c37db98ce3d85c", | ||
"version": "14.1.0-beta-RC.0" | ||
}; | ||
//# sourceMappingURL=version.js.map |
@@ -350,4 +350,4 @@ import axios from 'axios'; | ||
const VERSION = { | ||
"commitHash": "b1a433145402043facaec3519daceb21a305deef", | ||
"version": "14.0.0" | ||
"commitHash": "0b10f922029edc29cd5a922751c37db98ce3d85c", | ||
"version": "14.1.0-beta-RC.0" | ||
}; | ||
@@ -359,2 +359,6 @@ | ||
*/ | ||
const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null; | ||
const adapterPromise = isNode | ||
? undefined | ||
: import('@vespaiach/axios-fetch-adapter').then((mod) => mod.default).catch(() => undefined); | ||
var ResponseType; | ||
@@ -448,2 +452,3 @@ (function (ResponseType) { | ||
try { | ||
const adapter = adapterPromise && (yield adapterPromise); | ||
const response = yield axios.request({ | ||
@@ -457,2 +462,3 @@ url: url + this.serialize(query), | ||
data: data, | ||
adapter, | ||
}); | ||
@@ -459,0 +465,0 @@ return response.data; |
@@ -358,4 +358,4 @@ (function (global, factory) { | ||
const VERSION = { | ||
"commitHash": "b1a433145402043facaec3519daceb21a305deef", | ||
"version": "14.0.0" | ||
"commitHash": "0b10f922029edc29cd5a922751c37db98ce3d85c", | ||
"version": "14.1.0-beta-RC.0" | ||
}; | ||
@@ -367,2 +367,6 @@ | ||
*/ | ||
const isNode = typeof process !== 'undefined' && process.versions != null && process.versions.node != null; | ||
const adapterPromise = isNode | ||
? undefined | ||
: import('@vespaiach/axios-fetch-adapter').then((mod) => mod.default).catch(() => undefined); | ||
var ResponseType; | ||
@@ -456,2 +460,3 @@ (function (ResponseType) { | ||
try { | ||
const adapter = adapterPromise && (yield adapterPromise); | ||
const response = yield axios__default["default"].request({ | ||
@@ -465,2 +470,3 @@ url: url + this.serialize(query), | ||
data: data, | ||
adapter, | ||
}); | ||
@@ -467,0 +473,0 @@ return response.data; |
{ | ||
"name": "@taquito/http-utils", | ||
"version": "14.0.0", | ||
"version": "14.1.0-beta-RC.0", | ||
"description": "", | ||
@@ -62,2 +62,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@vespaiach/axios-fetch-adapter": "^0.3.1", | ||
"axios": "^0.26.0" | ||
@@ -94,3 +95,3 @@ }, | ||
}, | ||
"gitHead": "2419fe84099269d20a1006194767bd7e6864ba3a" | ||
"gitHead": "d7f70149f4046b169a4995c2f7455ba4a997fcca" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
171789
2003
2
2
+ Added@vespaiach/axios-fetch-adapter@0.3.1(transitive)