track-cli 4.0.1-rc1 → 4.0.1-rc2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/_dnt.shims.d.ts +1 -1
- package/esm/src/meta.d.ts +1 -1
- package/esm/src/meta.js +1 -1
- package/esm/src/shared/file.js +4 -1
- package/package.json +1 -1
package/esm/_dnt.shims.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { fetch, File, FormData, Headers, Request, Response } from "undici";
|
|
|
5
5
|
export { fetch, File, FormData, Headers, Request, Response, type BodyInit, type HeadersInit, type RequestInit, type ResponseInit } from "undici";
|
|
6
6
|
import { alert, confirm, prompt } from "./shim/prompts.js";
|
|
7
7
|
export { alert, confirm, prompt } from "./shim/prompts.js";
|
|
8
|
-
export declare const dntGlobalThis: Omit<typeof globalThis, "fetch" | "Request" | "Response" | "FormData" | "Headers" | "File" | "
|
|
8
|
+
export declare const dntGlobalThis: Omit<typeof globalThis, "fetch" | "Request" | "Response" | "FormData" | "Headers" | "File" | "crypto" | "Deno" | "alert" | "confirm" | "prompt"> & {
|
|
9
9
|
Deno: typeof Deno;
|
|
10
10
|
crypto: import("@deno/shim-crypto").Crypto;
|
|
11
11
|
fetch: typeof fetch;
|
package/esm/src/meta.d.ts
CHANGED
package/esm/src/meta.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as colors from "../deps/deno.land/std@0.195.0/fmt/colors.js";
|
|
2
2
|
// @ts-ignore: has no exported member
|
|
3
3
|
import { CookieJar, fetch } from "node-fetch-cookies";
|
|
4
|
-
export const VERSION = "4.0.1-
|
|
4
|
+
export const VERSION = "4.0.1-rc2";
|
|
5
5
|
export const DESCRIPTION = "A CLI for interacting with tracks.run and running code tests on track's servers";
|
|
6
6
|
const VERSION_RE = /^(\d+)\.(\d+)\.(\d+)(?:-?(.*))$/;
|
|
7
7
|
function parseSemver(s) {
|
package/esm/src/shared/file.js
CHANGED
|
@@ -15,9 +15,12 @@ export const _internals = {
|
|
|
15
15
|
export async function pathsToFilenameSet(paths, options) {
|
|
16
16
|
const files = [];
|
|
17
17
|
const root = options?.root ?? dntShim.Deno.cwd();
|
|
18
|
-
for (const p of paths.map((p) =>
|
|
18
|
+
for (const p of paths.map((p) => path.resolve(root, p))) {
|
|
19
19
|
const f = await stat(p);
|
|
20
20
|
const rp = toNixStyle(path.relative(root, p));
|
|
21
|
+
if (rp.startsWith("..")) {
|
|
22
|
+
continue;
|
|
23
|
+
}
|
|
21
24
|
if (options?.recursive && f) {
|
|
22
25
|
const dirFiles = await getAllDirFiles(p);
|
|
23
26
|
dirFiles.forEach((file) => files.push(toNixStyle(path.relative(root, file))));
|