@lark-codem/codem-cli 0.1.280-dev.100104461059.0.g5cd3e64 → 0.1.280-dev.100104470452.0.gda9e327
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/bin/tt-env.js +1 -1
- package/bin/worker-runtime-telemetry.js +1 -2
- package/package.json +9 -11
- package/profile/credential-errors.js +2 -1
- package/profile/profile-snapshot.js +1 -2
- package/profile/runtime-logs.js +10 -159
- package/auth/index.d.ts +0 -19
- package/auth/index.js +0 -5878
- package/profile/realtime-log-id.js +0 -9
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Base bounds the JSON encoding of RPC IDs at 1024 bytes. Printable route
|
|
2
|
-
// keys include Go QueryEscape's percent escapes and plus sign. Only record
|
|
3
|
-
// identifier characters; never truncate two different IDs to the same value.
|
|
4
|
-
export function realtimeLogID(value) {
|
|
5
|
-
if (Number.isSafeInteger(value)) return value;
|
|
6
|
-
if (typeof value === "string" && value.length <= 1022 &&
|
|
7
|
-
/^[\p{L}\p{N}_.:%~+-]+$/u.test(value) && Buffer.byteLength(value) <= 1022) return value;
|
|
8
|
-
return undefined;
|
|
9
|
-
}
|