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

@amoutonbrady/graphql-client

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@amoutonbrady/graphql-client - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

dist/graphql-client.esm.js

@@ -21,3 +21,3 @@ // src/graphql-client.ts

}
const gql = (query) => query.join(" ").replace(/\r?\n|\r/g, "").replace(/\s{2,}/g, " ").trim();
const gql = (query) => query.join(" ").replace(/#.+\r?\n|\r/g, "").replace(/\r?\n|\r/g, "").replace(/\s{2,}/g, " ").trim();
export {

@@ -24,0 +24,0 @@ GraphQLClient,

@@ -35,2 +35,2 @@ var __defineProperty = Object.defineProperty;

}
const gql = (query) => query.join(" ").replace(/\r?\n|\r/g, "").replace(/\s{2,}/g, " ").trim();
const gql = (query) => query.join(" ").replace(/#.+\r?\n|\r/g, "").replace(/\r?\n|\r/g, "").replace(/\s{2,}/g, " ").trim();

@@ -1,1 +0,1 @@

var GraphClient=(()=>{var s=Object.defineProperty,g=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports),q=e=>s(e,"__esModule",{value:!0}),y=(e,t)=>{q(e);for(var r in t)s(e,r,{get:t[r],enumerable:!0})};var l=g(m=>{y(m,{GraphQLClient:()=>i,gql:()=>h});function i(e,t=""){let r=t;const u=a=>r=a,p=(a,c)=>fetch(e,{method:"POST",body:JSON.stringify({query:a,variables:c}),headers:{authorization:r,"content-type":"application/json"}}).then(n=>n.json()).then(({data:n,errors:o})=>{if(o)throw o;return n});return{request:p,setAuth:u}}const h=e=>e.join(" ").replace(/\r?\n|\r/g,"").replace(/\s{2,}/g," ").trim()});return l();})();
var GraphClient=(()=>{var s=Object.defineProperty,g=(e,t)=>()=>(t||(t={exports:{}},e(t.exports,t)),t.exports),q=e=>s(e,"__esModule",{value:!0}),y=(e,t)=>{q(e);for(var r in t)s(e,r,{get:t[r],enumerable:!0})};var l=g(m=>{y(m,{GraphQLClient:()=>i,gql:()=>h});function i(e,t=""){let r=t;const u=a=>r=a,p=(a,c)=>fetch(e,{method:"POST",body:JSON.stringify({query:a,variables:c}),headers:{authorization:r,"content-type":"application/json"}}).then(n=>n.json()).then(({data:n,errors:o})=>{if(o)throw o;return n});return{request:p,setAuth:u}}const h=e=>e.join(" ").replace(/#.+\r?\n|\r/g,"").replace(/\r?\n|\r/g,"").replace(/\s{2,}/g," ").trim()});return l();})();
{
"version": "0.0.3",
"version": "0.0.4",
"name": "@amoutonbrady/graphql-client",

@@ -26,3 +26,3 @@ "description": "Minimalistic GraphQL client",

"format": "prettier --write \"{src,tests}/**/*.ts\"",
"test": "uvu -r ts-node/register tests",
"test": "pnpm build && uvu -r ts-node/register tests",
"test:coverage": "c8 --include=src npm test",

@@ -29,0 +29,0 @@ "test:report": "c8 report --reporter=text-lcov > coverage.lcov",

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