Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .size-limit.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"build/globals.js",
"build/deno.js"
],
"limit": "850.20 kB",
"limit": "851.30 kB",
"brotli": false,
"gzip": false
},
Expand All @@ -47,7 +47,7 @@
{
"name": "vendor",
"path": "build/vendor-*.{cjs,d.ts}",
"limit": "803.10 kB",
"limit": "804.30 kB",
"brotli": false,
"gzip": false
},
Expand All @@ -66,7 +66,7 @@
"README.md",
"LICENSE"
],
"limit": "911.85 kB",
"limit": "913.00 kB",
"brotli": false,
"gzip": false
}
Expand Down
6 changes: 3 additions & 3 deletions build/3rd-party-licenses
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ fill-range@7.1.1
jonschlinkert/fill-range
MIT

fs-extra@11.3.3
fs-extra@11.3.4
JP Richardson <jprichardson@gmail.com>
https://github.com/jprichardson/node-fs-extra
git+https://github.com/jprichardson/node-fs-extra.git
MIT

glob-parent@5.1.2
Expand Down Expand Up @@ -145,7 +145,7 @@ which@6.0.1
git+https://github.com/npm/node-which.git
ISC

yaml@2.8.2
yaml@2.8.3
Eemeli Aro <eemeli@gmail.com>
github:eemeli/yaml
ISC
Expand Down
4 changes: 2 additions & 2 deletions build/index.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ var versions = {
depseek: "0.4.3",
dotenv: "0.2.3",
fetch: "1.6.7",
fs: "11.3.3",
fs: "11.3.4",
glob: "16.1.1",
minimist: "1.2.8",
ps: "1.0.0",
which: "6.0.1",
yaml: "2.8.2"
yaml: "2.8.3"
};

// src/goods.ts
Expand Down
1 change: 0 additions & 1 deletion build/util.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ export declare const getLast: <T>(arr: {
}) => T;
export declare function preferLocalBin(env: NodeJS.ProcessEnv, ...dirs: (string | undefined)[]): {
[x: string]: string | undefined;
TZ?: string | undefined;
};
export declare function quote(arg: string): string;
export declare function quotePowerShell(arg: string): string;
Expand Down
57 changes: 45 additions & 12 deletions build/vendor-extra.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -7816,10 +7816,19 @@ var require_symlink = __commonJS({
} catch (e) {
}
if (stats && stats.isSymbolicLink()) {
const [srcStat, dstStat] = yield Promise.all([
fs6.stat(srcpath),
fs6.stat(dstpath)
]);
let srcStat;
if (path5.isAbsolute(srcpath)) {
srcStat = yield fs6.stat(srcpath);
} else {
const dstdir = path5.dirname(dstpath);
const relativeToDst = path5.join(dstdir, srcpath);
try {
srcStat = yield fs6.stat(relativeToDst);
} catch (e) {
srcStat = yield fs6.stat(srcpath);
}
}
const dstStat = yield fs6.stat(dstpath);
if (areIdentical(srcStat, dstStat)) return;
}
const relative = yield symlinkPaths(srcpath, dstpath);
Expand All @@ -7839,7 +7848,18 @@ var require_symlink = __commonJS({
} catch (e) {
}
if (stats && stats.isSymbolicLink()) {
const srcStat = fs6.statSync(srcpath);
let srcStat;
if (path5.isAbsolute(srcpath)) {
srcStat = fs6.statSync(srcpath);
} else {
const dstdir = path5.dirname(dstpath);
const relativeToDst = path5.join(dstdir, srcpath);
try {
srcStat = fs6.statSync(relativeToDst);
} catch (e) {
srcStat = fs6.statSync(srcpath);
}
}
const dstStat = fs6.statSync(dstpath);
if (areIdentical(srcStat, dstStat)) return;
}
Expand Down Expand Up @@ -14673,6 +14693,7 @@ function createStringifyContext(doc, options) {
nullStr: "null",
simpleKeys: false,
singleQuote: null,
trailingComma: false,
trueStr: "true",
verifyAliasOrder: true
}, doc.schema.toStringOptions, options);
Expand Down Expand Up @@ -15131,12 +15152,19 @@ function stringifyFlowCollection({ items }, ctx, { flowChars, itemIndent }) {
if (comment)
reqNewline = true;
let str = stringify(item, itemCtx, () => comment = null);
if (i < items.length - 1)
reqNewline || (reqNewline = lines.length > linesAtValue || str.includes("\n"));
if (i < items.length - 1) {
str += ",";
} else if (ctx.options.trailingComma) {
if (ctx.options.lineWidth > 0) {
reqNewline || (reqNewline = lines.reduce((sum, line) => sum + line.length + 2, 2) + (str.length + 2) > ctx.options.lineWidth);
}
if (reqNewline) {
str += ",";
}
}
if (comment)
str += lineComment(str, itemIndent, commentString(comment));
if (!reqNewline && (lines.length > linesAtValue || str.includes("\n")))
reqNewline = true;
lines.push(str);
linesAtValue = lines.length;
}
Expand Down Expand Up @@ -17766,17 +17794,22 @@ function composeNode(ctx, token, props, onError) {
case "block-map":
case "block-seq":
case "flow-collection":
node = composeCollection(CN, ctx, token, props, onError);
if (anchor)
node.anchor = anchor.source.substring(1);
try {
node = composeCollection(CN, ctx, token, props, onError);
if (anchor)
node.anchor = anchor.source.substring(1);
} catch (error) {
const message = error instanceof Error ? error.message : String(error);
onError(token, "RESOURCE_EXHAUSTION", message);
}
break;
default: {
const message = token.type === "error" ? token.message : `Unsupported token (type: ${token.type})`;
onError(token, "UNEXPECTED_TOKEN", message);
node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
isSrcToken = false;
}
}
node != null ? node : node = composeEmptyNode(ctx, token.offset, void 0, null, props, onError);
if (anchor && node.anchor === "")
onError(anchor, "BAD_ALIAS", "Anchor cannot be an empty string");
if (atKey && ctx.options.stringKeys && (!isScalar(node) || typeof node.value !== "string" || node.tag && node.tag !== "tag:yaml.org,2002:str")) {
Expand Down
Loading
Loading