@membrane/graphql-request
Advanced tools
Comparing version 0.0.2 to 0.0.3
@@ -58,3 +58,3 @@ "use strict"; | ||
exports.ClientError = types_2.ClientError; | ||
var fetch = require('cross-fetch/dist/node-ponyfill'); | ||
var node_fetch_1 = require("node-fetch"); | ||
var GraphQLClient = /** @class */ (function () { | ||
@@ -76,3 +76,3 @@ function GraphQLClient(url, options) { | ||
}); | ||
return [4 /*yield*/, fetch(this.url, __assign({ method: 'POST', headers: Object.assign({ 'Content-Type': 'application/json' }, headers), body: body }, others))]; | ||
return [4 /*yield*/, node_fetch_1.default(this.url, __assign({ method: 'POST', headers: Object.assign({ 'Content-Type': 'application/json' }, headers), body: body }, others))]; | ||
case 1: | ||
@@ -106,3 +106,3 @@ response = _b.sent(); | ||
}); | ||
return [4 /*yield*/, fetch(this.url, __assign({ method: 'POST', headers: Object.assign({ 'Content-Type': 'application/json' }, headers), body: body }, others))]; | ||
return [4 /*yield*/, node_fetch_1.default(this.url, __assign({ method: 'POST', headers: Object.assign({ 'Content-Type': 'application/json' }, headers), body: body }, others))]; | ||
case 1: | ||
@@ -109,0 +109,0 @@ response = _b.sent(); |
{ | ||
"name": "@membrane/graphql-request", | ||
"version": "0.0.2", | ||
"version": "0.0.3", | ||
"main": "dist/src/index.js", | ||
@@ -5,0 +5,0 @@ "typings": "./dist/src/index.d.ts", |
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
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
0
41690