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

@gql.tada/cli-utils

Package Overview
Dependencies
Maintainers
1
Versions
184
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gql.tada/cli-utils - npm Package Compare versions

Comparing version

to
1.5.0-canary-010a4f32e6564430e68daa85b29e87cfdacdea8a

12

CHANGELOG.md
# @gql.tada/cli-utils
## 1.5.0-canary-010a4f32e6564430e68daa85b29e87cfdacdea8a
### Minor Changes
- Disable field-usage tracking and the co-located fragment checking for vue/svelte
Submitted by [@JoviDeCroock](https://github.com/JoviDeCroock) (See [#334](https://github.com/0no-co/gql.tada/pull/334))
### Patch Changes
- Updated dependencies (See [#334](https://github.com/0no-co/gql.tada/pull/334))
- @gql.tada/internal@1.0.3-canary-010a4f32e6564430e68daa85b29e87cfdacdea8a
## 1.4.0

@@ -4,0 +16,0 @@

78

dist/chunks/thread-chunk3.js
var e = require("typescript");
var r = require("node:path");
var a = require("node:path");
var a = require("@gql.tada/internal");
var r = require("@gql.tada/internal");

@@ -12,11 +12,11 @@ var i = require("@0no-co/graphqlsp/api");

function _interopNamespaceDefault(e) {
var r = Object.create(null);
var a = Object.create(null);
if (e) {
Object.keys(e).forEach((function(a) {
if ("default" !== a) {
var i = Object.getOwnPropertyDescriptor(e, a);
Object.defineProperty(r, a, i.get ? i : {
Object.keys(e).forEach((function(r) {
if ("default" !== r) {
var i = Object.getOwnPropertyDescriptor(e, r);
Object.defineProperty(a, r, i.get ? i : {
enumerable: !0,
get: function() {
return e[a];
return e[r];
}

@@ -27,11 +27,11 @@ });

}
r.default = e;
return r;
a.default = e;
return a;
}
var n = _interopNamespaceDefault(r);
var n = _interopNamespaceDefault(a);
var o = t.expose((async function* _runDiagnostics(r) {
var o = n.dirname(r.configPath);
var l = t.programFactory(r);
var o = t.expose((async function* _runDiagnostics(a) {
var o = n.dirname(a.configPath);
var l = t.programFactory(a);
var s = l.createExternalFiles();

@@ -44,40 +44,46 @@ if (s.length) {

}
var g = await a.loadRef(r.pluginConfig).load({
var g = await r.loadRef(a.pluginConfig).load({
rootPath: o
});
var f = l.build();
var u = f.buildPluginInfo(r.pluginConfig);
var c = f.getSourceFiles();
var c = l.build();
var f = c.buildPluginInfo(a.pluginConfig);
var u = c.getSourceFiles();
yield {
kind: "FILE_COUNT",
fileCount: c.length
fileCount: u.length
};
for (var v of c) {
var d = v.fileName;
var p = i.getGraphQLDiagnostics(d, g, u);
for (var d of u) {
var v = d.fileName.endsWith(".vue.ts") || d.fileName.endsWith(".svelte.ts");
var p = d.fileName;
f.config = {
...f.config,
shouldCheckForColocatedFragments: v ? !1 : f.config.shouldCheckForColocatedFragments ?? !1,
trackFieldUsage: v ? !1 : f.config.trackFieldUsage ?? !1
};
var h = i.getGraphQLDiagnostics(p, g, f);
var m = [];
if (p && p.length) {
for (var y of p) {
if (h && h.length) {
for (var y of h) {
if (!("messageText" in y) || "string" != typeof y.messageText || !y.file) {
continue;
}
var h = "info";
var C = "info";
if (y.category === e.DiagnosticCategory.Error) {
h = "error";
C = "error";
} else if (y.category === e.DiagnosticCategory.Warning) {
h = "warn";
C = "warn";
}
var N = f.getSourcePosition(v, {
var F = c.getSourcePosition(d, {
start: y.start || 1,
length: y.length || 1
});
d = N.fileName;
p = F.fileName;
m.push({
severity: h,
severity: C,
message: y.messageText,
file: N.fileName,
line: N.line,
col: N.col,
endLine: N.endLine,
endColumn: N.endColumn
file: F.fileName,
line: F.line,
col: F.col,
endLine: F.endLine,
endColumn: F.endColumn
});

@@ -88,3 +94,3 @@ }

kind: "FILE_DIAGNOSTICS",
filePath: d,
filePath: p,
messages: m

@@ -91,0 +97,0 @@ };

{
"name": "@gql.tada/cli-utils",
"version": "1.4.0",
"version": "1.5.0-canary-010a4f32e6564430e68daa85b29e87cfdacdea8a",
"public": true,

@@ -59,3 +59,3 @@ "description": "Main logic for gql.tada’s CLI tool.",

"svelte2tsx": "^0.7.6",
"@gql.tada/internal": "1.0.2"
"@gql.tada/internal": "1.0.3-canary-010a4f32e6564430e68daa85b29e87cfdacdea8a"
},

@@ -62,0 +62,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