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.
@@ -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" | "Deno" | "crypto" | "alert" | "confirm" | "prompt"> & {
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
@@ -1,3 +1,3 @@
1
- export declare const VERSION = "4.0.1-rc1";
1
+ export declare const VERSION = "4.0.1-rc2";
2
2
  export declare const DESCRIPTION = "A CLI for interacting with tracks.run and running code tests on track's servers";
3
3
  export declare function checkUpdates(): Promise<boolean>;
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-rc1";
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) {
@@ -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) => `${root}/${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))));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "track-cli",
3
- "version": "4.0.1-rc1",
3
+ "version": "4.0.1-rc2",
4
4
  "description": "A CLI for interacting with tracks.run and running code tests on track's servers",
5
5
  "repository": {
6
6
  "type": "git",