@amoutonbrady/graphql-client
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -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", |
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
6508