| author | |
| committer | |
| log | 29751666e4e62269bc3f48767bf726ac5789ced7 |
| tree | 065e876727e7762ec9dad33abd216fd4fda7233a |
| parent | 007faa93832e5bec64a5b9f2fc647902d84d3490 |
| signature | Commit is signed but in an unrecognized format. |
this allows usage of `@clo/lib` via HTTPs imports.17 files changed, 30 insertions(+), 33 deletions(-)
lib/Lru.test.ts+1-1| ... | @@ -135,4 +135,4 @@ test("throws on evicting a locked item", () => { | ... | @@ -135,4 +135,4 @@ test("throws on evicting a locked item", () => { |
| 135 | 135 | ||
| 136 | import assert from "node:assert"; | 136 | import assert from "node:assert"; |
| 137 | import { test } from "node:test"; | 137 | import { test } from "node:test"; |
| 138 | import { Lru } from "lib/Lru.ts"; | 138 | import { Lru } from "./Lru.ts"; |
lib/Lru.ts+2-2| ... | @@ -269,5 +269,5 @@ export declare namespace Lru { | ... | @@ -269,5 +269,5 @@ export declare namespace Lru { |
| 269 | const none: unique symbol = Symbol(); | 269 | const none: unique symbol = Symbol(); |
| 270 | type none = typeof none; | 270 | type none = typeof none; |
| 271 | 271 | ||
| 272 | import { ASSERT, UNWRAP } from "lib/assert.ts"; | 272 | import { ASSERT, UNWRAP } from "./assert.ts"; |
| 273 | import * as ts from "lib/ts.ts"; | 273 | import * as ts from "./ts.ts"; |
lib/async.ts+1-1| ... | @@ -204,4 +204,4 @@ export class PromiseAggregator { | ... | @@ -204,4 +204,4 @@ export class PromiseAggregator { |
| 204 | } | 204 | } |
| 205 | } | 205 | } |
| 206 | 206 | ||
| 207 | import { ASSERT } from "lib/assert.ts"; | 207 | import { ASSERT } from "./assert.ts"; |
lib/deno.json-2| ... | @@ -29,7 +29,6 @@ | ... | @@ -29,7 +29,6 @@ |
| 29 | "jsxImportSource": "lib/render" | 29 | "jsxImportSource": "lib/render" |
| 30 | }, | 30 | }, |
| 31 | "imports": { | 31 | "imports": { |
| 32 | "lib/": "./", | ||
| 33 | "lib/render/jsx-runtime": "./render/jsx-runtime.ts", | 32 | "lib/render/jsx-runtime": "./render/jsx-runtime.ts", |
| 34 | "lib/render/jsx-dev-runtime": "./render/jsx-runtime.ts" | 33 | "lib/render/jsx-dev-runtime": "./render/jsx-runtime.ts" |
| 35 | }, | 34 | }, |
| ... | @@ -38,4 +37,3 @@ | ... | @@ -38,4 +37,3 @@ |
| 38 | "deno.lock" | 37 | "deno.lock" |
| 39 | ] | 38 | ] |
| 40 | } | 39 | } |
| 41 |
lib/error.ts+1-1| ... | @@ -47,4 +47,4 @@ export function rethrowWithMetadata( | ... | @@ -47,4 +47,4 @@ export function rethrowWithMetadata( |
| 47 | throw error; | 47 | throw error; |
| 48 | } | 48 | } |
| 49 | 49 | ||
| 50 | import type * as node from "lib/node.ts"; | 50 | import type * as node from "./node.ts"; |
lib/log.test.ts+1-1| ... | @@ -161,4 +161,4 @@ class TestWidgetHost implements headless.WidgetHost { | ... | @@ -161,4 +161,4 @@ class TestWidgetHost implements headless.WidgetHost { |
| 161 | } | 161 | } |
| 162 | } | 162 | } |
| 163 | 163 | ||
| 164 | import * as ansi from "lib/string/ansi.ts"; | 164 | import * as ansi from "./string/ansi.ts"; |
lib/log.ts+6-6| ... | @@ -626,9 +626,9 @@ export interface DispatchFunction { | ... | @@ -626,9 +626,9 @@ export interface DispatchFunction { |
| 626 | (message: Message): void; | 626 | (message: Message): void; |
| 627 | } | 627 | } |
| 628 | 628 | ||
| 629 | import * as ansi from "lib/string/ansi.ts"; | 629 | import * as ansi from "./string/ansi.ts"; |
| 630 | import * as node from "lib/node.ts"; | 630 | import * as node from "./node.ts"; |
| 631 | import * as stack from "lib/log/stack.ts"; | 631 | import * as stack from "./log/stack.ts"; |
| 632 | import * as string from "lib/string.ts"; | 632 | import * as string from "./string.ts"; |
| 633 | import * as ts from "lib/ts.ts"; | 633 | import * as ts from "./ts.ts"; |
| 634 | import { UNWRAP } from "lib/assert.ts"; | 634 | import { UNWRAP } from "./assert.ts"; |
lib/log/stack.ts+2-2| ... | @@ -426,5 +426,5 @@ const regexFunctionName = /((.*".+"[^@]*)?[^@]*)(?:@)/; | ... | @@ -426,5 +426,5 @@ const regexFunctionName = /((.*".+"[^@]*)?[^@]*)(?:@)/; |
| 426 | const regexV8Stack = /^\s*at .*(\S+:\d+|\(native\))/m; | 426 | const regexV8Stack = /^\s*at .*(\S+:\d+|\(native\))/m; |
| 427 | const regexLocation = /(.+?)(?::(\d+))?(?::(\d+))?$/; | 427 | const regexLocation = /(.+?)(?::(\d+))?(?::(\d+))?$/; |
| 428 | 428 | ||
| 429 | import * as ansi from "lib/string/ansi.ts"; | 429 | import * as ansi from "../string/ansi.ts"; |
| 430 | import * as node from "lib/node.ts"; | 430 | import * as node from "../node.ts"; |
lib/progress.ts+4-5| ... | @@ -407,8 +407,7 @@ export class Headless { | ... | @@ -407,8 +407,7 @@ export class Headless { |
| 407 | 407 | ||
| 408 | const global = /** @__PURE__ */ new Headless(log); | 408 | const global = /** @__PURE__ */ new Headless(log); |
| 409 | 409 | ||
| 410 | import * as process from "node:process"; | 410 | import * as log from "./log.ts"; |
| 411 | import * as log from "lib/log.ts"; | 411 | import * as ansi from "./string/ansi.ts"; |
| 412 | import * as ansi from "lib/string/ansi.ts"; | 412 | import * as string from "./string.ts"; |
| 413 | import * as string from "lib/string.ts"; | 413 | import { ASSERT, UNWRAP } from "./assert.ts"; |
| 414 | import { ASSERT, UNWRAP } from "lib/assert.ts"; |
lib/queue.ts+1-1| ... | @@ -176,4 +176,4 @@ function insertSorted<T extends { priority: number }>(arr: T[], item: T) { | ... | @@ -176,4 +176,4 @@ function insertSorted<T extends { priority: number }>(arr: T[], item: T) { |
| 176 | declare var navigator: { hardwareConcurrency: number }; | 176 | declare var navigator: { hardwareConcurrency: number }; |
| 177 | const global = new PriorityQueue(navigator.hardwareConcurrency); | 177 | const global = new PriorityQueue(navigator.hardwareConcurrency); |
| 178 | 178 | ||
| 179 | import { UNWRAP } from "lib/assert.ts"; | 179 | import { UNWRAP } from "./assert.ts"; |
lib/render.ts+1-1| ... | @@ -464,4 +464,4 @@ const kRaw = Symbol("Raw"); | ... | @@ -464,4 +464,4 @@ const kRaw = Symbol("Raw"); |
| 464 | /** secret key to facilitate {@linkcode init} with a `ContextValue[]` */ | 464 | /** secret key to facilitate {@linkcode init} with a `ContextValue[]` */ |
| 465 | const kContext: unique symbol = Symbol(); | 465 | const kContext: unique symbol = Symbol(); |
| 466 | 466 | ||
| 467 | import { ASSERT, UNWRAP } from "lib/assert.ts"; | 467 | import { ASSERT, UNWRAP } from "./assert.ts"; |
lib/render/jsx-runtime.ts+2-2| ... | @@ -75,5 +75,5 @@ export type Element = render.Element; | ... | @@ -75,5 +75,5 @@ export type Element = render.Element; |
| 75 | export type ElementType = keyof IntrinsicElements | render.Component; | 75 | export type ElementType = keyof IntrinsicElements | render.Component; |
| 76 | export type ElementClass = ReturnType<render.Component>; | 76 | export type ElementClass = ReturnType<render.Component>; |
| 77 | 77 | ||
| 78 | import * as render from "lib/render.ts"; | 78 | import * as render from "../render.ts"; |
| 79 | import { ASSERT } from "lib/assert.ts"; | 79 | import { ASSERT } from "../assert.ts"; |
lib/render/meta.test.tsx+1-1| ... | @@ -46,4 +46,4 @@ test("automatic embed with '{}'", () => | ... | @@ -46,4 +46,4 @@ test("automatic embed with '{}'", () => |
| 46 | 46 | ||
| 47 | import { test } from "node:test"; | 47 | import { test } from "node:test"; |
| 48 | import assert from "node:assert"; | 48 | import assert from "node:assert"; |
| 49 | import * as meta from "lib/render/meta.ts"; | 49 | import * as meta from "./meta.ts"; |
lib/render/meta.ts+2-2| ... | @@ -251,5 +251,5 @@ function attr(value: string) { | ... | @@ -251,5 +251,5 @@ function attr(value: string) { |
| 251 | return render.quoteIfNeeded(esc(value)); | 251 | return render.quoteIfNeeded(esc(value)); |
| 252 | } | 252 | } |
| 253 | 253 | ||
| 254 | import { escapeHtmlContent as esc } from "lib/render.ts"; | 254 | import { escapeHtmlContent as esc } from "../render.ts"; |
| 255 | import * as render from "lib/render.ts"; | 255 | import * as render from "../render.ts"; |
lib/string.test.ts+1-1| ... | @@ -32,4 +32,4 @@ test("escapeShellArgument", () => { | ... | @@ -32,4 +32,4 @@ test("escapeShellArgument", () => { |
| 32 | 32 | ||
| 33 | import { test } from "node:test"; | 33 | import { test } from "node:test"; |
| 34 | import assert from "node:assert"; | 34 | import assert from "node:assert"; |
| 35 | import * as string from "lib/string.ts"; | 35 | import * as string from "./string.ts"; |
lib/string/ansi.ts+2-2| ... | @@ -378,5 +378,5 @@ function segmentWidth(segment: string) { | ... | @@ -378,5 +378,5 @@ function segmentWidth(segment: string) { |
| 378 | ); | 378 | ); |
| 379 | } | 379 | } |
| 380 | 380 | ||
| 381 | import * as self from "lib/string/ansi.ts"; | 381 | import * as self from "./ansi.ts"; |
| 382 | import { UNWRAP } from "lib/assert.ts"; | 382 | import { UNWRAP } from "../assert.ts"; |
lib/subprocess/ffmpeg.ts+2-2| ... | @@ -194,5 +194,5 @@ import * as readline from "node:readline"; | ... | @@ -194,5 +194,5 @@ import * as readline from "node:readline"; |
| 194 | import * as process from "node:process"; | 194 | import * as process from "node:process"; |
| 195 | import events from "node:events"; | 195 | import events from "node:events"; |
| 196 | import * as path from "node:path"; | 196 | import * as path from "node:path"; |
| 197 | import type * as progress from "lib/progress.ts"; | 197 | import type * as progress from "../progress.ts"; |
| 198 | import * as string from "lib/string.ts"; | 198 | import * as string from "../string.ts"; |