Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kitql/client

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kitql/client - npm Package Compare versions

Comparing version 0.0.13 to 0.0.14

6

index.js

@@ -33,2 +33,3 @@ 'use strict';

this.credentials = credentials;
this.astMode = options.astMode || false;
}

@@ -59,3 +60,6 @@ async request({ skFetch, document, variables, cacheKey, cacheMs }) {

headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({ query: graphql.print(document), variables })
body: JSON.stringify({
query: this.astMode ? document : graphql.print(document),
variables
})
});

@@ -62,0 +66,0 @@ if (res.status !== 200) {

@@ -5,2 +5,3 @@ export declare type ClientSettings = {

credentials?: 'include' | string;
astMode?: boolean;
};

@@ -47,2 +48,3 @@ export declare type RequestSettings = {

private credentials;
private astMode;
private cache;

@@ -49,0 +51,0 @@ constructor(options: ClientSettings);

2

package.json
{
"name": "@kitql/client",
"version": "0.0.13",
"version": "0.0.14",
"dependencies": {

@@ -5,0 +5,0 @@ "graphql": "16.2.0"

Sorry, the diff of this file is not supported yet

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