@dbx-tools/shared-core 0.3.13 → 0.3.15

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/package.json CHANGED
@@ -22,7 +22,7 @@
22
22
  "publishConfig": {
23
23
  "access": "public"
24
24
  },
25
- "version": "0.3.13",
25
+ "version": "0.3.15",
26
26
  "types": "index.ts",
27
27
  "type": "module",
28
28
  "exports": {
package/src/async.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  * {@link AbortController} linker ({@link tieAbortSignal}), and a periodic
4
4
  * {@link poll} generator. Dependency-free; `poll`'s `"distinct"` filter
5
5
  * uses the local {@link deepEqual}.
6
+ *
7
+ * @module
6
8
  */
7
9
  import { deepEqual } from "./object";
8
10
 
package/src/brand.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  *
4
4
  * Asset values are intentionally strings: they may be relative file paths,
5
5
  * package exports, data URLs, or network URLs depending on the consumer.
6
+ *
7
+ * @module
6
8
  */
7
9
  import { z } from "zod";
8
10
 
package/src/error.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  * `err instanceof Error ? err.message : String(err)` dance into a single
4
4
  * call, walk `cause` / `AggregateError` chains, and coerce any thrown
5
5
  * value into a real `Error`. Dependency-free and browser-safe.
6
+ *
7
+ * @module
6
8
  */
7
9
 
8
10
  import { tokenizeWithOptions } from "./string";
package/src/hash.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * slices). All browser-safe - built on `globalThis.crypto`, no
8
8
  * `node:crypto` import. **Never** use these for tokens, signatures, or
9
9
  * anything an attacker shouldn't be able to forge.
10
+ *
11
+ * @module
10
12
  */
11
13
 
12
14
  /**
package/src/http.ts CHANGED
@@ -7,6 +7,8 @@
7
7
  * either a server or a client bundle.
8
8
  *
9
9
  * URL path matching lives in `./net.browser.ts` (`pathMatch`).
10
+ *
11
+ * @module
10
12
  */
11
13
 
12
14
  // ────────────────────────────────────────────────────────────────
package/src/log.ts CHANGED
@@ -28,6 +28,8 @@
28
28
  * through `globalThis` and guarded, and consola / `node:util` load lazily, so
29
29
  * the module works in any runtime. Consola is an optional peer; the module
30
30
  * loads fine without it.
31
+ *
32
+ * @module
31
33
  */
32
34
 
33
35
  import { memoize } from "./function";
package/src/net.ts CHANGED
@@ -10,6 +10,8 @@
10
10
  * home for anything URL-, IP-, or email-shaped that also has to run in
11
11
  * a Vite / Webpack / esbuild client bundle. Node-only network helpers
12
12
  * (e.g. DNS resolution) belong in a node-tagged package, not here.
13
+ *
14
+ * @module
13
15
  */
14
16
 
15
17
  import type { NonFunctionKeys } from "./object";
package/src/object.ts CHANGED
@@ -12,6 +12,8 @@
12
12
  * Container}s (see {@link map}, {@link filter}, {@link group}, ...); the {@link
13
13
  * Sequence} methods are thin forwarders over them so the same logic backs both
14
14
  * the free-function and the fluent/chained styles.
15
+ *
16
+ * @module
15
17
  */
16
18
 
17
19
  /** Lazy sequence over iterable source(s). See {@link sequence}. */
package/src/predicate.ts CHANGED
@@ -8,6 +8,8 @@
8
8
  * Ordinary boolean predicates are treated as narrowing to `T`, meaning they
9
9
  * do not narrow the input type by themselves. Composed predicates passed to
10
10
  * `.and()` / `.or()` may return any value; they are tested for truthiness.
11
+ *
12
+ * @module
11
13
  */
12
14
 
13
15
  /** An ordinary boolean predicate. */
package/src/string.ts CHANGED
@@ -4,6 +4,8 @@
4
4
  * header-value trimming, and a nested description-tree renderer for
5
5
  * long-form LLM prompt / tool-description text. Depends only on the
6
6
  * local {@link fnvHashWithOptions} for deterministic hash suffixes.
7
+ *
8
+ * @module
7
9
  */
8
10
  import { fnvHashWithOptions } from "./hash";
9
11
 
package/src/token.ts CHANGED
@@ -3,6 +3,8 @@
3
3
  *
4
4
  * Parses bearer tokens and `x-forwarded-access-token` payloads to read
5
5
  * OAuth scopes and other claims from incoming HTTP requests.
6
+ *
7
+ * @module
6
8
  */
7
9
 
8
10
  import { forEachHeaderValue, type HeaderLike } from "./http";