@gql.tada/cli-utils
Advanced tools
Comparing version 1.5.3-canary-4a7844f26350f978df066aae25c8310229bcfc1d to 1.5.3-canary-e7d4d4bc7caaa0b1857bbf0cd17eb9c59d8f89ac
# @gql.tada/cli-utils | ||
## 1.5.3-canary-4a7844f26350f978df066aae25c8310229bcfc1d | ||
## 1.5.3-canary-e7d4d4bc7caaa0b1857bbf0cd17eb9c59d8f89ac | ||
### Patch Changes | ||
- Prevent `NodeNext` module resolution from being used over `Bundler` mode, since this is almost always a mistake | ||
Submitted by [@kitten](https://github.com/kitten) (See [#356](https://github.com/0no-co/gql.tada/pull/356)) | ||
- Support breaking changes in `@vue/language-core@2.0.28` (`getBasePlugins` renamed to `createPlugins`) | ||
Submitted by [@kitten](https://github.com/kitten) (See [#353](https://github.com/0no-co/gql.tada/pull/353)) | ||
- Bump stack trace limit to 25 when TypeScript is used, which requires a larger stack depths to debug properly | ||
Submitted by [@kitten](https://github.com/kitten) (See [#355](https://github.com/0no-co/gql.tada/pull/355)) | ||
@@ -10,0 +14,0 @@ ## 1.5.2 |
@@ -183,3 +183,3 @@ var e = require("typescript"); | ||
var g = !0; | ||
var u = !0; | ||
@@ -189,3 +189,3 @@ var f = 0; | ||
c.setTracking = function setTracking(e) { | ||
g = e; | ||
u = e; | ||
}; | ||
@@ -204,3 +204,3 @@ | ||
get(e, t, r) { | ||
if (g) { | ||
if (u) { | ||
if ("push" === t) { | ||
@@ -279,7 +279,7 @@ return push; | ||
o = s + 1; | ||
var g = l.length; | ||
var u = l.length; | ||
l.length = r - c; | ||
t.splice(o, 0, { | ||
stack: l.stack, | ||
length: g - l.length | ||
length: u - l.length | ||
}); | ||
@@ -293,4 +293,4 @@ break; | ||
var f = i; | ||
for (var u = o; u < t.length; u++) { | ||
var d = t[u]; | ||
for (var g = o; g < t.length; g++) { | ||
var d = t[g]; | ||
while (f > 0 && d.length > 0) { | ||
@@ -338,5 +338,5 @@ d.length--; | ||
var u = {}; | ||
var g = {}; | ||
Object.defineProperty(u, "__esModule", { | ||
Object.defineProperty(g, "__esModule", { | ||
value: !0 | ||
@@ -379,3 +379,3 @@ }); | ||
var a = c; | ||
r(u, e); | ||
r(g, e); | ||
r(c, e); | ||
@@ -441,4 +441,4 @@ function getLength(e) { | ||
} | ||
for (var g of n) { | ||
c.push(g); | ||
for (var u of n) { | ||
c.push(u); | ||
} | ||
@@ -471,8 +471,8 @@ if (i < l) { | ||
var c = e[l]; | ||
var g = o[s]; | ||
var u = o[s]; | ||
var f = o[l]; | ||
var u = o[l] + ("string" == typeof c ? c.length : c[0].length); | ||
var g = o[l] + ("string" == typeof c ? c.length : c[0].length); | ||
var d = []; | ||
if (t > g) { | ||
d.push(trimSegmentEnd(e[s], t - g)); | ||
if (t > u) { | ||
d.push(trimSegmentEnd(e[s], t - u)); | ||
} | ||
@@ -482,3 +482,3 @@ for (var v of n) { | ||
} | ||
if (r < u) { | ||
if (r < g) { | ||
d.push(trimSegmentStart(c, r - f)); | ||
@@ -638,4 +638,4 @@ } | ||
var c = (0, m.binarySearch)(a, o[e][s] + o.lengths[s]).match; | ||
for (var g = l; g <= c; g++) { | ||
n[g].add(o); | ||
for (var u = l; u <= c; u++) { | ||
n[u].add(o); | ||
} | ||
@@ -1032,9 +1032,9 @@ } | ||
var O = a.parentPort; | ||
var M = a.parentPort; | ||
if (!a.isMainThread && !O) { | ||
if (!a.isMainThread && !M) { | ||
throw new ReferenceError("Failed to receive parent message port"); | ||
} | ||
var M = function(e) { | ||
var O = function(e) { | ||
e.Start = "START"; | ||
@@ -1044,3 +1044,3 @@ e.Close = "CLOSE"; | ||
return e; | ||
}(M || {}); | ||
}(O || {}); | ||
@@ -1096,7 +1096,7 @@ var P = function(e) { | ||
var c = !1; | ||
var g; | ||
var u; | ||
var f; | ||
function cleanup() { | ||
l = !0; | ||
g = void 0; | ||
u = void 0; | ||
f = void 0; | ||
@@ -1128,4 +1128,4 @@ t.removeListener("message", receiveMessage); | ||
cleanup(); | ||
} else if (g && t.kind === P.Return) { | ||
g({ | ||
} else if (u && t.kind === P.Return) { | ||
u({ | ||
done: !0, | ||
@@ -1135,5 +1135,5 @@ value: t.data | ||
cleanup(); | ||
} else if (g && t.kind === P.Next) { | ||
} else if (u && t.kind === P.Next) { | ||
c = !1; | ||
g({ | ||
u({ | ||
done: !1, | ||
@@ -1158,3 +1158,3 @@ value: t.data | ||
id: n, | ||
kind: M.Start, | ||
kind: O.Start, | ||
data: i | ||
@@ -1169,3 +1169,3 @@ }); | ||
c = !0; | ||
sendMessage(M.Pull); | ||
sendMessage(O.Pull); | ||
} | ||
@@ -1189,4 +1189,4 @@ var e = o.shift(); | ||
return new Promise(((e, t) => { | ||
g = t => { | ||
g = void 0; | ||
u = t => { | ||
u = void 0; | ||
f = void 0; | ||
@@ -1196,3 +1196,3 @@ e(t); | ||
f = e => { | ||
g = void 0; | ||
u = void 0; | ||
f = void 0; | ||
@@ -1207,3 +1207,3 @@ t(e); | ||
cleanup(); | ||
sendMessage(M.Close); | ||
sendMessage(O.Close); | ||
} | ||
@@ -1221,7 +1221,7 @@ return { | ||
} else { | ||
O.addListener("message", (t => { | ||
M.addListener("message", (t => { | ||
var r = t && "object" == typeof t && "kind" in t ? t : null; | ||
if (r) { | ||
!function thread(e, t) { | ||
if (e.kind !== M.Start) { | ||
if (e.kind !== O.Start) { | ||
return; | ||
@@ -1236,7 +1236,7 @@ } | ||
a = !0; | ||
O.removeListener("message", receiveMessage); | ||
M.removeListener("message", receiveMessage); | ||
} | ||
async function sendMessage(e, t) { | ||
try { | ||
O.postMessage({ | ||
M.postMessage({ | ||
id: r, | ||
@@ -1266,3 +1266,3 @@ kind: e, | ||
return; | ||
} else if (t.kind === M.Close) { | ||
} else if (t.kind === O.Close) { | ||
cleanup(); | ||
@@ -1272,5 +1272,5 @@ if (i.return) { | ||
} | ||
} else if (t.kind === M.Pull && o) { | ||
} else if (t.kind === O.Pull && o) { | ||
n = !0; | ||
} else if (t.kind === M.Pull) { | ||
} else if (t.kind === O.Pull) { | ||
for (n = o = !0; n && !a; ) { | ||
@@ -1296,3 +1296,3 @@ try { | ||
} | ||
O.addListener("message", receiveMessage); | ||
M.addListener("message", receiveMessage); | ||
}(r, e); | ||
@@ -1384,3 +1384,6 @@ } | ||
}; | ||
var g = createVirtualCompilerHost(o, c, e); | ||
if ("Bundler" in e.ModuleResolutionKind && (c.moduleResolution === e.ModuleResolutionKind.NodeNext || c.moduleResolution === e.ModuleResolutionKind.Node16)) { | ||
c.moduleResolution = e.ModuleResolutionKind.Bundler; | ||
} | ||
var u = createVirtualCompilerHost(o, c, e); | ||
var f = { | ||
@@ -1405,10 +1408,10 @@ get projectPath() { | ||
} | ||
for (var g of s) { | ||
for (var u of o.readDirectory(g, r, [ "**/node_modules" ])) { | ||
if (!a.has(u)) { | ||
a.add(u); | ||
var d = o.readFile(u, "utf8"); | ||
for (var u of s) { | ||
for (var g of o.readDirectory(u, r, [ "**/node_modules" ])) { | ||
if (!a.has(g)) { | ||
a.add(g); | ||
var d = o.readFile(g, "utf8"); | ||
if (d) { | ||
i.push(f.createSourceFile({ | ||
fileId: u, | ||
fileId: g, | ||
sourceText: d | ||
@@ -1424,3 +1427,3 @@ }, e.ScriptKind.External)); | ||
var i = "fileName" in t ? t : f.createSourceFile(t, e.ScriptKind.TSX); | ||
g.updateFile(i); | ||
u.updateFile(i); | ||
if (r) { | ||
@@ -1462,2 +1465,7 @@ l.add(i.fileName); | ||
build() { | ||
(() => { | ||
if ("stackTraceLimit" in Error && Error.stackTraceLimit < 25) { | ||
Error.stackTraceLimit = 25; | ||
} | ||
})(); | ||
i.init({ | ||
@@ -1532,3 +1540,3 @@ typescript: e | ||
projectRoot: t.rootPath, | ||
compilerHost: g.compilerHost, | ||
compilerHost: u.compilerHost, | ||
rootNames: [ ...l ], | ||
@@ -1535,0 +1543,0 @@ options: c, |
{ | ||
"name": "@gql.tada/cli-utils", | ||
"version": "1.5.3-canary-4a7844f26350f978df066aae25c8310229bcfc1d", | ||
"version": "1.5.3-canary-e7d4d4bc7caaa0b1857bbf0cd17eb9c59d8f89ac", | ||
"public": true, | ||
@@ -5,0 +5,0 @@ "description": "Main logic for gql.tada’s CLI tool.", |
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
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
1987764
19598