@mihanizm56/fetch-api
Advanced tools
Comparing version 3.10.0-beta.2 to 3.10.0
@@ -65,3 +65,2 @@ "use strict"; | ||
exports.BaseRequest = void 0; | ||
var node_fetch_1 = __importDefault(require("node-fetch")); | ||
var query_string_1 = __importDefault(require("query-string")); | ||
@@ -184,6 +183,6 @@ var is_node_1 = require("../utils/is-node"); | ||
}); | ||
if (isNode) { | ||
if (isNode || typeof fetch === 'undefined') { | ||
var requestFetch_1 = ( | ||
// TODO fix any type | ||
function () { return (0, node_fetch_1.default)(endpoint, requestParams); }); | ||
function () { return require('node-fetch')(endpoint, requestParams); }); | ||
return { requestFetch: requestFetch_1 }; | ||
@@ -190,0 +189,0 @@ } |
{ | ||
"name": "@mihanizm56/fetch-api", | ||
"version": "3.10.0-beta.2", | ||
"version": "3.10.0", | ||
"description": "api servise", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
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
Network access
Supply chain riskThis module accesses the network.
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
0
303760
5529
1