cursedbelt-core 2.1.0 → 2.1.1
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/dist/core/activity/index.d.ts +2 -2
- package/dist/core/activity/index.js +1 -1
- package/dist/core/activity/model.d.ts +2 -2
- package/dist/core/analytics/index.d.ts +2 -2
- package/dist/core/analytics/index.js +2 -2
- package/dist/core/category/index.d.ts +3 -3
- package/dist/core/category/index.js +2 -2
- package/dist/core/category/memoryStore.d.ts +1 -1
- package/dist/core/category/memoryStore.js +1 -1
- package/dist/core/category/tree.d.ts +1 -1
- package/dist/core/colorScheme/index.d.ts +1 -1
- package/dist/core/colorScheme/index.js +1 -1
- package/dist/core/folder-tree/actions.d.ts +1 -1
- package/dist/core/folder-tree/actions.js +1 -1
- package/dist/core/folder-tree/index.d.ts +3 -3
- package/dist/core/folder-tree/index.js +3 -3
- package/dist/core/folder-tree/tree.js +1 -1
- package/dist/core/master-lock/index.d.ts +4 -4
- package/dist/core/master-lock/index.js +4 -4
- package/dist/core/master-lock/wire.d.ts +1 -1
- package/dist/core/media/ffmpeg.d.ts +1 -1
- package/dist/core/media/format.d.ts +1 -1
- package/dist/core/media/index.d.ts +12 -12
- package/dist/core/media/index.js +11 -11
- package/dist/core/media/mediaItem.d.ts +1 -1
- package/dist/core/media/renderPlan.d.ts +1 -1
- package/dist/core/media/renderPlan.js +1 -1
- package/dist/core/media/validate.d.ts +1 -1
- package/dist/core/media/validate.js +1 -1
- package/dist/core/navigation/coverageTest.d.ts +1 -1
- package/dist/core/navigation/coverageTest.js +1 -1
- package/dist/core/navigation/index.d.ts +6 -6
- package/dist/core/navigation/index.js +6 -6
- package/dist/core/navigation/migrateNavPreferences.d.ts +1 -1
- package/dist/core/navigation/navigationSelectors.d.ts +1 -1
- package/dist/core/navigation/navigationSelectors.js +1 -1
- package/dist/core/navigation/searchCatalogue.d.ts +1 -1
- package/dist/core/palette/fuzzyRank.d.ts +1 -1
- package/dist/core/palette/index.d.ts +3 -3
- package/dist/core/palette/index.js +3 -3
- package/dist/core/sharing/index.d.ts +2 -2
- package/dist/core/sharing/index.js +1 -1
- package/dist/core/tokens/registry.d.ts +2 -2
- package/dist/core/tokens/registry.js +1 -1
- package/dist/core/uiScale/index.d.ts +2 -2
- package/dist/core/uiScale/index.js +2 -2
- package/dist/core/uiScale/uiScaleStore.js +1 -1
- package/dist/core/wire/__fixtures__/rowsMarshalWorker.js +1 -1
- package/dist/core/wire/index.d.ts +4 -4
- package/dist/core/wire/index.js +4 -4
- package/dist/core/wire/ingress.d.ts +1 -1
- package/dist/core/wire/ingress.js +3 -3
- package/dist/core/wire/marshalWorker.d.ts +1 -1
- package/dist/core/wire/marshalWorker.js +2 -2
- package/dist/core/wire/marshalling.js +1 -1
- package/dist/ctgr/chunkAccumulator.d.ts +1 -1
- package/dist/ctgr/chunkAccumulator.js +2 -2
- package/dist/ctgr/chunkStore.d.ts +1 -1
- package/dist/ctgr/chunkStore.js +2 -2
- package/dist/ctgr/codec.d.ts +1 -1
- package/dist/ctgr/codec.js +5 -5
- package/dist/ctgr/index.d.ts +9 -9
- package/dist/ctgr/index.js +9 -9
- package/dist/ctgr/v0compat.d.ts +1 -1
- package/dist/ctgr/v0compat.js +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +2 -2
- package/dist/testing/index.d.ts +3 -3
- package/dist/testing/index.js +3 -3
- package/package.json +2 -2
- package/src/config/appConfig.spec.ts +1 -1
- package/src/core/activity/index.ts +2 -2
- package/src/core/activity/model.ts +2 -2
- package/src/core/analytics/index.ts +2 -2
- package/src/core/analytics/range.spec.ts +1 -1
- package/src/core/analytics/schedule.spec.ts +1 -1
- package/src/core/category/category.spec.ts +1 -1
- package/src/core/category/index.ts +3 -3
- package/src/core/category/memoryStore.ts +2 -2
- package/src/core/category/tree.ts +1 -1
- package/src/core/color.spec.ts +1 -1
- package/src/core/colorScheme/colorScheme.spec.ts +1 -1
- package/src/core/colorScheme/index.ts +1 -1
- package/src/core/download.spec.ts +1 -1
- package/src/core/duplicates/index.spec.ts +1 -1
- package/src/core/events/ccEventBus.spec.ts +1 -1
- package/src/core/file-tree/fileTreeModel.spec.ts +1 -1
- package/src/core/folder-tree/actions.spec.ts +2 -2
- package/src/core/folder-tree/actions.ts +2 -2
- package/src/core/folder-tree/index.ts +3 -3
- package/src/core/folder-tree/path.spec.ts +1 -1
- package/src/core/folder-tree/tree.spec.ts +1 -1
- package/src/core/folder-tree/tree.ts +1 -1
- package/src/core/master-lock/index.ts +4 -4
- package/src/core/master-lock/kdf.spec.ts +2 -2
- package/src/core/master-lock/presence.spec.ts +1 -1
- package/src/core/master-lock/wire.spec.ts +1 -1
- package/src/core/master-lock/wire.ts +1 -1
- package/src/core/media/bgRemoval.spec.ts +1 -1
- package/src/core/media/ffmpeg.spec.ts +2 -2
- package/src/core/media/ffmpeg.ts +1 -1
- package/src/core/media/format.spec.ts +1 -1
- package/src/core/media/format.ts +1 -1
- package/src/core/media/index.ts +12 -12
- package/src/core/media/mediaItem.spec.ts +2 -2
- package/src/core/media/mediaItem.ts +1 -1
- package/src/core/media/renderPlan.spec.ts +1 -1
- package/src/core/media/renderPlan.ts +2 -2
- package/src/core/media/segment.spec.ts +1 -1
- package/src/core/media/size.spec.ts +1 -1
- package/src/core/media/trim.spec.ts +1 -1
- package/src/core/media/validate.spec.ts +2 -2
- package/src/core/media/validate.ts +2 -2
- package/src/core/media/videoCuts.spec.ts +1 -1
- package/src/core/navigation/coverageTest.ts +2 -2
- package/src/core/navigation/index.ts +6 -6
- package/src/core/navigation/migrateNavPreferences.ts +1 -1
- package/src/core/navigation/navigation.spec.ts +1 -1
- package/src/core/navigation/navigationSelectors.ts +1 -1
- package/src/core/navigation/searchCatalogue.ts +1 -1
- package/src/core/net/reconnectSchedule.spec.ts +1 -1
- package/src/core/palette/fuzzyRank.ts +1 -1
- package/src/core/palette/index.ts +3 -3
- package/src/core/palette/palette.spec.ts +4 -4
- package/src/core/schema/projection.spec.ts +1 -1
- package/src/core/sharing/index.ts +2 -2
- package/src/core/sharing/model.spec.ts +1 -1
- package/src/core/tokens/registry.spec.ts +1 -1
- package/src/core/tokens/registry.ts +2 -2
- package/src/core/uiScale/index.ts +2 -2
- package/src/core/uiScale/uiScale.spec.ts +1 -1
- package/src/core/uiScale/uiScaleStore.ts +1 -1
- package/src/core/wire/__fixtures__/rowsMarshalWorker.ts +1 -1
- package/src/core/wire/index.ts +4 -4
- package/src/core/wire/ingress.spec.ts +2 -2
- package/src/core/wire/ingress.ts +3 -3
- package/src/core/wire/marshalWorker.spec.ts +2 -2
- package/src/core/wire/marshalWorker.ts +2 -2
- package/src/core/wire/marshalling.spec.ts +1 -1
- package/src/core/wire/marshalling.ts +1 -1
- package/src/core/wire/wireHub.spec.ts +1 -1
- package/src/ctgr/chunkAccumulator.ts +3 -3
- package/src/ctgr/chunkStore.spec.ts +2 -2
- package/src/ctgr/chunkStore.ts +3 -3
- package/src/ctgr/codec.spec.ts +4 -4
- package/src/ctgr/codec.ts +5 -5
- package/src/ctgr/index.ts +9 -9
- package/src/ctgr/v0compat.spec.ts +2 -2
- package/src/ctgr/v0compat.ts +3 -3
- package/src/index.ts +2 -2
- package/src/testTmpRoot.spec.ts +1 -1
- package/src/testing/index.ts +3 -3
package/src/ctgr/codec.ts
CHANGED
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
* double-base64'd and whose swap/reverse was trivially-reversible obfuscation, not
|
|
12
12
|
* protection — the real protection (getOnly JWT claim + CSRF guard) is unchanged.
|
|
13
13
|
*/
|
|
14
|
-
import { fromBase64, fromBase64url, toBase64url } from './base64url';
|
|
15
|
-
import { gunzip, gzip } from './compress';
|
|
16
|
-
import { crc32 } from './crc32';
|
|
17
|
-
import { sha256Hex } from './digest';
|
|
14
|
+
import { fromBase64, fromBase64url, toBase64url } from './base64url.js';
|
|
15
|
+
import { gunzip, gzip } from './compress.js';
|
|
16
|
+
import { crc32 } from './crc32.js';
|
|
17
|
+
import { sha256Hex } from './digest.js';
|
|
18
18
|
import {
|
|
19
19
|
ABBREV_TO_METHOD,
|
|
20
20
|
CTGR_WIRE_VERSION,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
METHOD_TO_ABBREV,
|
|
28
28
|
type SerializedFile,
|
|
29
29
|
type UploadedFile,
|
|
30
|
-
} from './types';
|
|
30
|
+
} from './types.js';
|
|
31
31
|
|
|
32
32
|
const DEFAULT_CHUNK_SIZE = 1800;
|
|
33
33
|
const DEFAULT_GZIP_THRESHOLD = 1024;
|
package/src/ctgr/index.ts
CHANGED
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
* The ChunkAccumulator is the primary abstraction for multi-chunk payload assembly;
|
|
7
7
|
* ChunkStore is kept for backward compatibility (they are identical implementations).
|
|
8
8
|
*/
|
|
9
|
-
export { fromBase64, fromBase64url, toBase64, toBase64url } from './base64url';
|
|
9
|
+
export { fromBase64, fromBase64url, toBase64, toBase64url } from './base64url.js';
|
|
10
10
|
export {
|
|
11
11
|
ChunkAccumulator,
|
|
12
12
|
type ChunkAccumulatorConfig,
|
|
13
|
-
} from './chunkAccumulator';
|
|
14
|
-
export { ChunkStore, type ChunkStoreOpts } from './chunkStore';
|
|
13
|
+
} from './chunkAccumulator.js';
|
|
14
|
+
export { ChunkStore, type ChunkStoreOpts } from './chunkStore.js';
|
|
15
15
|
export {
|
|
16
16
|
decodePayload,
|
|
17
17
|
decodeRequest,
|
|
@@ -19,10 +19,10 @@ export {
|
|
|
19
19
|
extractFiles,
|
|
20
20
|
type ParsedChunk,
|
|
21
21
|
parseChunk,
|
|
22
|
-
} from './codec';
|
|
23
|
-
export { gunzip, gzip } from './compress';
|
|
24
|
-
export { crc32 } from './crc32';
|
|
25
|
-
export { sha256Hex } from './digest';
|
|
22
|
+
} from './codec.js';
|
|
23
|
+
export { gunzip, gzip } from './compress.js';
|
|
24
|
+
export { crc32 } from './crc32.js';
|
|
25
|
+
export { sha256Hex } from './digest.js';
|
|
26
26
|
export {
|
|
27
27
|
ABBREV_TO_METHOD,
|
|
28
28
|
CTGR_WIRE_VERSION,
|
|
@@ -35,5 +35,5 @@ export {
|
|
|
35
35
|
METHOD_TO_ABBREV,
|
|
36
36
|
type SerializedFile,
|
|
37
37
|
type UploadedFile,
|
|
38
|
-
} from './types';
|
|
39
|
-
export { decodeV0Payload, V0ChunkStore, type V0ChunkStoreOpts } from './v0compat';
|
|
38
|
+
} from './types.js';
|
|
39
|
+
export { decodeV0Payload, V0ChunkStore, type V0ChunkStoreOpts } from './v0compat.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, test } from 'bun:test';
|
|
2
|
-
import { toBase64 } from './base64url';
|
|
3
|
-
import { decodeV0Payload, V0ChunkStore } from './v0compat';
|
|
2
|
+
import { toBase64 } from './base64url.js';
|
|
3
|
+
import { decodeV0Payload, V0ChunkStore } from './v0compat.js';
|
|
4
4
|
|
|
5
5
|
// Mirror the legacy client encode pipeline exactly: encode→reverse→swap→encode→swap,
|
|
6
6
|
// where `encode` is standard base64 of the UTF-8 bytes. Used to prove the v1 server's
|
package/src/ctgr/v0compat.ts
CHANGED
|
@@ -9,9 +9,9 @@
|
|
|
9
9
|
* heuristic, since v1 always sets `_cv=1`. v0 carried the method only in the path
|
|
10
10
|
* (`/ctgr<XX>`), so the middleware passes the path-derived method in.
|
|
11
11
|
*/
|
|
12
|
-
import { fromBase64 } from './base64url';
|
|
13
|
-
import { extractFiles } from './codec';
|
|
14
|
-
import type { CtgrDecoded, CtgrMethod } from './types';
|
|
12
|
+
import { fromBase64 } from './base64url.js';
|
|
13
|
+
import { extractFiles } from './codec.js';
|
|
14
|
+
import type { CtgrDecoded, CtgrMethod } from './types.js';
|
|
15
15
|
|
|
16
16
|
const decodeBase64Utf8 = (str: string): string => new TextDecoder().decode(fromBase64(str));
|
|
17
17
|
const reverseString = (str: string): string => str.split('').reverse().join('');
|
package/src/index.ts
CHANGED
|
@@ -14,7 +14,7 @@ export const VERSION = '1.0.0';
|
|
|
14
14
|
|
|
15
15
|
// The two root-level conveniences the pre-split "." barrel actually served:
|
|
16
16
|
// the WCAG readable-foreground picker and the baked marketing-copy contract.
|
|
17
|
-
export { contrastText } from './core/color';
|
|
17
|
+
export { contrastText } from './core/color.js';
|
|
18
18
|
export {
|
|
19
19
|
isSiteCopyKey,
|
|
20
20
|
SITE_COPY_BAKED_ONLY,
|
|
@@ -22,4 +22,4 @@ export {
|
|
|
22
22
|
SITE_COPY_KEYS,
|
|
23
23
|
SITE_COPY_MAX_VALUE_LENGTH,
|
|
24
24
|
type SiteCopyKey,
|
|
25
|
-
} from './core/site/siteCopy';
|
|
25
|
+
} from './core/site/siteCopy.js';
|
package/src/testTmpRoot.spec.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { describe, expect, it } from 'bun:test';
|
|
2
2
|
import { isAbsolute, resolve, sep } from 'node:path';
|
|
3
|
-
import { resolveTestTmpRoot } from '../scripts/testTmpRoot';
|
|
3
|
+
import { resolveTestTmpRoot } from '../scripts/testTmpRoot.js';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* 🔴 THE CHECKER CANNOT SEE THIS ONE, WHICH IS WHY IT IS A TEST.
|
package/src/testing/index.ts
CHANGED
|
@@ -6,6 +6,6 @@
|
|
|
6
6
|
// can `import { installCheapDomInspect } from "cursedbelt-core/testing"` instead of
|
|
7
7
|
// keeping a ~60-line hand-port of domInspect.ts — the file already lived here,
|
|
8
8
|
// it just had no export.
|
|
9
|
-
export { installCheapDomInspect } from "./domInspect";
|
|
10
|
-
export { asBody, bytesResponse, bytesStream } from "./bytes";
|
|
11
|
-
export { type FetchImpl, fakeFetch } from "./fakeFetch";
|
|
9
|
+
export { installCheapDomInspect } from "./domInspect.js";
|
|
10
|
+
export { asBody, bytesResponse, bytesStream } from "./bytes.js";
|
|
11
|
+
export { type FetchImpl, fakeFetch } from "./fakeFetch.js";
|