New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@0no-co/graphql.web

Package Overview
Dependencies
Maintainers
2
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@0no-co/graphql.web - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-canary-9e9501690a46b249a2d9c7301b91ad7382b5e2b3

175

dist/graphql.web.js

@@ -167,11 +167,11 @@ Object.defineProperty(exports, "__esModule", {

} else {
var u = r;
var s;
var s = r;
var u;
r++;
var c = !1;
for (s = 0 | e.charCodeAt(r++); 92 === s && (r++, c = !0) || 10 !== s && 13 !== s && 34 !== s && s; s = 0 | e.charCodeAt(r++)) {}
if (34 !== s) {
for (u = 0 | e.charCodeAt(r++); 92 === u && (r++, c = !0) || 10 !== u && 13 !== u && 34 !== u && u; u = 0 | e.charCodeAt(r++)) {}
if (34 !== u) {
throw error("StringValue");
}
return a = e.slice(u, r), ignored(), {
return a = e.slice(s, r), ignored(), {
kind: "StringValue",

@@ -448,2 +448,47 @@ value: c ? JSON.parse(a) : a.slice(1, -1),

function definitions() {
var i = [];
do {
if (123 === e.charCodeAt(r)) {
r++, ignored(), i.push({
kind: "OperationDefinition",
operation: "query",
name: void 0,
variableDefinitions: void 0,
directives: void 0,
selectionSet: selectionSet()
});
} else {
var n = name();
switch (n) {
case "fragment":
i.push(fragmentDefinition());
break;
case "query":
case "mutation":
case "subscription":
var t;
var a = void 0;
if (40 !== (t = e.charCodeAt(r)) && 64 !== t && 123 !== t) {
a = nameNode();
}
i.push({
kind: "OperationDefinition",
operation: n,
name: a,
variableDefinitions: variableDefinitions(),
directives: directives(!1),
selectionSet: selectionSetStart()
});
break;
default:
throw error("Document");
}
}
} while (r < e.length);
return i;
}
var a = {};

@@ -658,79 +703,27 @@

}, exports.parse = function parse(i, n) {
return r = 0, function document(e, i) {
ignored();
var n = [];
do {
if (123 === e.charCodeAt(r)) {
n.push({
kind: "OperationDefinition",
operation: "query",
name: void 0,
variableDefinitions: void 0,
directives: void 0,
selectionSet: selectionSetStart()
});
} else {
var t = name();
switch (t) {
case "fragment":
n.push(fragmentDefinition());
break;
case "query":
case "mutation":
case "subscription":
var a;
var o = void 0;
if (40 !== (a = e.charCodeAt(r)) && 64 !== a && 123 !== a) {
o = nameNode();
if (e = i.body ? i.body : i, r = 0, ignored(), n && n.noLocation) {
return {
kind: "Document",
definitions: definitions()
};
} else {
return {
kind: "Document",
definitions: definitions(),
loc: {
start: 0,
end: e.length,
startToken: void 0,
endToken: void 0,
source: {
body: e,
name: "graphql.web",
locationOffset: {
line: 1,
column: 1
}
n.push({
kind: "OperationDefinition",
operation: t,
name: o,
variableDefinitions: variableDefinitions(),
directives: directives(!1),
selectionSet: selectionSetStart()
});
break;
default:
throw error("Document");
}
}
} while (r < e.length);
if (!i) {
var l;
return {
kind: "Document",
definitions: n,
set loc(e) {
l = e;
},
get loc() {
if (!l) {
l = {
start: 0,
end: e.length,
startToken: void 0,
endToken: void 0,
source: {
body: e,
name: "graphql.web",
locationOffset: {
line: 1,
column: 1
}
}
};
}
return l;
}
};
}
return {
kind: "Document",
definitions: n
};
}(e = i.body ? i.body : i, n && n.noLocation);
}
}, exports.parseType = function parseType(i, n) {

@@ -782,11 +775,11 @@ return e = i.body ? i.body : i, r = 0, type();

var d = r[e.kind] && r[e.kind].enter || r[e.kind] || r.enter;
var u = d && d.call(r, e, t, o, n, i);
if (!1 === u) {
var s = d && d.call(r, e, t, o, n, i);
if (!1 === s) {
return e;
} else if (null === u) {
} else if (null === s) {
return null;
} else if (u === a) {
} else if (s === a) {
throw a;
} else if (u && "string" == typeof u.kind) {
l = u !== e, e = u;
} else if (s && "string" == typeof s.kind) {
l = s !== e, e = s;
}

@@ -796,3 +789,3 @@ if (o) {

}
var s;
var u;
var c = {

@@ -808,6 +801,6 @@ ...e

if (null != f[m] && "string" == typeof f[m].kind) {
if (i.push(e), n.push(m), s = traverse(f[m], m, f), n.pop(), i.pop(), null == s) {
if (i.push(e), n.push(m), u = traverse(f[m], m, f), n.pop(), i.pop(), null == u) {
l = !0;
} else {
l = l || s !== f[m], p.push(s);
l = l || u !== f[m], p.push(u);
}

@@ -818,4 +811,4 @@ }

} else if (null != f && "string" == typeof f.kind) {
if (void 0 !== (s = traverse(f, v, e))) {
l = l || f !== s, f = s;
if (void 0 !== (u = traverse(f, v, e))) {
l = l || f !== u, f = u;
}

@@ -836,4 +829,4 @@ }

return g;
} else if (void 0 !== u) {
return l ? c : u;
} else if (void 0 !== s) {
return l ? c : s;
} else {

@@ -840,0 +833,0 @@ return l ? c : e;

{
"name": "@0no-co/graphql.web",
"description": "A spec-compliant client-side GraphQL implementation",
"version": "1.1.0",
"version": "1.1.1-canary-9e9501690a46b249a2d9c7301b91ad7382b5e2b3",
"author": "0no.co <hi@0no.co>",

@@ -6,0 +6,0 @@ "source": "./src/index.ts",

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

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