New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

gql-tools

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gql-tools - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

24

index.js

@@ -20,3 +20,5 @@ var fs = require('fs');

promise.then(createWriter(outputFileName));
promise
.then(createWriter(outputFileName))
.catch(throwError);
};

@@ -31,3 +33,4 @@

.then(toSchemaLanguage)
.then(createWriter(outputFileName));
.then(createWriter(outputFileName))
.catch(throwError);

@@ -46,4 +49,14 @@ function toSchemaLanguage(introspectionQueryResponse) {

return fetch(endpointUrl, {method: 'POST', body: body, headers: headers}).then(toJson);
return fetch(endpointUrl, {method: 'POST', body: body, headers: headers})
.then(checkStatus)
.then(toJson);
function checkStatus(response) {
if (response.status !== 200) {
return Promise.reject(response.statusText);
}
return response;
}
function toJson(response) {

@@ -65,1 +78,6 @@ return response.json();

}
function throwError(error) {
console.error(error);
process.exit(1);
}

2

package.json
{
"name": "gql-tools",
"description": "GraphQL Tools for schema handling.",
"version": "0.0.5",
"version": "0.0.6",
"author": "Alberto Mijares <almilo@almilo.es>",

@@ -6,0 +6,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc