Comparing version 1.8.7 to 1.8.8-canary-971bdd0808e58e7eb983c0e54bd7a0d59b8cc3fb
@@ -7,15 +7,20 @@ Object.defineProperty(exports, "__esModule", { | ||
var e = 0; | ||
var n = new Set; | ||
function initGraphQLTada() { | ||
function graphql(e, n) { | ||
var i = r.parse(e).definitions; | ||
var a = new Set; | ||
for (var t of n || []) { | ||
for (var s of t.definitions) { | ||
if (s.kind === r.Kind.FRAGMENT_DEFINITION && !a.has(s)) { | ||
i.push(s); | ||
a.add(s); | ||
function graphql(a, t) { | ||
var i = r.parse(a).definitions; | ||
var o = new Set; | ||
for (var s of t || []) { | ||
for (var d of s.definitions) { | ||
if (d.kind === r.Kind.FRAGMENT_DEFINITION && !o.has(d)) { | ||
i.push(d); | ||
o.add(d); | ||
} | ||
} | ||
} | ||
if (i[0].kind === r.Kind.FRAGMENT_DEFINITION && i[0].directives) { | ||
var u; | ||
if ((u = i[0].kind === r.Kind.FRAGMENT_DEFINITION) && i[0].directives) { | ||
i[0].directives = i[0].directives.filter((r => "_unmask" !== r.name.value)); | ||
@@ -25,3 +30,39 @@ } | ||
kind: r.Kind.DOCUMENT, | ||
definitions: i | ||
definitions: i, | ||
get loc() { | ||
if (u) { | ||
var r = a + function concatLocSources(r) { | ||
try { | ||
e++; | ||
var a = ""; | ||
for (var t of r) { | ||
if (!n.has(t)) { | ||
n.add(t); | ||
var {loc: i} = t; | ||
if (i) { | ||
a += i.source.body; | ||
} | ||
} | ||
} | ||
return a; | ||
} finally { | ||
if (0 == --e) { | ||
n.clear(); | ||
} | ||
} | ||
}(t || []); | ||
return { | ||
start: 0, | ||
end: r.length, | ||
source: { | ||
body: r, | ||
name: "GraphQLTada", | ||
locationOffset: { | ||
line: 1, | ||
column: 1 | ||
} | ||
} | ||
}; | ||
} | ||
} | ||
}; | ||
@@ -42,5 +83,5 @@ } | ||
var e = initGraphQLTada(); | ||
var a = initGraphQLTada(); | ||
exports.graphql = e; | ||
exports.graphql = a; | ||
@@ -47,0 +88,0 @@ exports.initGraphQLTada = initGraphQLTada; |
{ | ||
"name": "gql.tada", | ||
"description": "The spec-compliant & magical GraphQL query language engine in the TypeScript type system", | ||
"version": "1.8.7", | ||
"version": "1.8.8-canary-971bdd0808e58e7eb983c0e54bd7a0d59b8cc3fb", | ||
"author": "0no.co <hi@0no.co>", | ||
@@ -53,4 +53,4 @@ "source": "./src/index.ts", | ||
"@0no-co/graphqlsp": "^1.12.13", | ||
"@gql.tada/internal": "1.0.8", | ||
"@gql.tada/cli-utils": "1.6.2" | ||
"@gql.tada/cli-utils": "1.6.2", | ||
"@gql.tada/internal": "1.0.8" | ||
}, | ||
@@ -57,0 +57,0 @@ "peerDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
156996
2563
1