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.1.3 to 0.1.4

5

index.js

@@ -31,4 +31,5 @@ 'use strict';

this.cacheData = {};
const { url, defaultCache, credentials } = options !== null && options !== void 0 ? options : {};
const { url, defaultCache, credentials, headers } = options !== null && options !== void 0 ? options : {};
this.url = url;
this.headers = headers !== null && headers !== void 0 ? headers : {};
this.cache = defaultCache !== null && defaultCache !== void 0 ? defaultCache : 1000 * 60 * 3;

@@ -94,3 +95,3 @@ this.credentials = credentials;

credentials: this.credentials,
headers: { 'Content-Type': this.headersContentType },
headers: { ...this.headers, 'Content-Type': this.headersContentType },
body: JSON.stringify({

@@ -97,0 +98,0 @@ query: graphql.print(document),

@@ -7,2 +7,8 @@ export declare type ClientSettings = {

/**
* @name headers
* @description Headers of your requests to graphql endpoint
* @default {}
*/
headers?: Record<string, string>;
/**
* Default Cache in miliseconds (can be overwritten at Query level, so `cache:0` force a network call)

@@ -66,2 +72,3 @@ */

private url;
private headers;
private cache;

@@ -68,0 +75,0 @@ private credentials;

2

package.json
{
"name": "@kitql/client",
"version": "0.1.3",
"version": "0.1.4",
"dependencies": {

@@ -5,0 +5,0 @@ "@kitql/helper": "0.1.3",

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