Fix async lifecycle ordering, add _spa_init boot phase, update to jqhtml _load_only/_load_render_only flags
🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
13
node_modules/@redis/client/dist/lib/utils/digest.d.ts
generated
vendored
Executable file
13
node_modules/@redis/client/dist/lib/utils/digest.d.ts
generated
vendored
Executable file
@@ -0,0 +1,13 @@
|
||||
import { RedisArgument } from '../RESP/types';
|
||||
/**
|
||||
* Computes a deterministic 64-bit XXH3 digest of the input.
|
||||
*
|
||||
* This produces the same digest that Redis computes internally via the `DIGEST` command,
|
||||
* allowing you to use it with conditional SET and DELEX operations (`IFDEQ`, `IFDNE`).
|
||||
*
|
||||
* @param value - The value to compute the digest for (string or Buffer)
|
||||
* @returns A 16-character lowercase hexadecimal digest
|
||||
* @throws If the `@node-rs/xxhash` package is not found
|
||||
*/
|
||||
export declare function digest(value: RedisArgument): Promise<string>;
|
||||
//# sourceMappingURL=digest.d.ts.map
|
||||
1
node_modules/@redis/client/dist/lib/utils/digest.d.ts.map
generated
vendored
Executable file
1
node_modules/@redis/client/dist/lib/utils/digest.d.ts.map
generated
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"digest.d.ts","sourceRoot":"","sources":["../../../lib/utils/digest.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAoB9C;;;;;;;;;GASG;AACH,wBAAsB,MAAM,CAAC,KAAK,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,CAAC,CAKlE"}
|
||||
34
node_modules/@redis/client/dist/lib/utils/digest.js
generated
vendored
Executable file
34
node_modules/@redis/client/dist/lib/utils/digest.js
generated
vendored
Executable file
@@ -0,0 +1,34 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.digest = void 0;
|
||||
let xxh3Cache = null;
|
||||
async function getXxh3() {
|
||||
if (!xxh3Cache) {
|
||||
try {
|
||||
const module = await import('@node-rs/xxhash');
|
||||
xxh3Cache = module.xxh3;
|
||||
}
|
||||
catch {
|
||||
throw new Error('The "digest" function requires the "@node-rs/xxhash" package, but it was not found.');
|
||||
}
|
||||
}
|
||||
return xxh3Cache;
|
||||
}
|
||||
/**
|
||||
* Computes a deterministic 64-bit XXH3 digest of the input.
|
||||
*
|
||||
* This produces the same digest that Redis computes internally via the `DIGEST` command,
|
||||
* allowing you to use it with conditional SET and DELEX operations (`IFDEQ`, `IFDNE`).
|
||||
*
|
||||
* @param value - The value to compute the digest for (string or Buffer)
|
||||
* @returns A 16-character lowercase hexadecimal digest
|
||||
* @throws If the `@node-rs/xxhash` package is not found
|
||||
*/
|
||||
async function digest(value) {
|
||||
const xxh3 = await getXxh3();
|
||||
const data = typeof value === 'string' ? value : new Uint8Array(value);
|
||||
const hash = xxh3.xxh64(data);
|
||||
return hash.toString(16).padStart(16, '0');
|
||||
}
|
||||
exports.digest = digest;
|
||||
//# sourceMappingURL=digest.js.map
|
||||
1
node_modules/@redis/client/dist/lib/utils/digest.js.map
generated
vendored
Executable file
1
node_modules/@redis/client/dist/lib/utils/digest.js.map
generated
vendored
Executable file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"digest.js","sourceRoot":"","sources":["../../../lib/utils/digest.ts"],"names":[],"mappings":";;;AAIA,IAAI,SAAS,GAAsB,IAAI,CAAC;AAExC,KAAK,UAAU,OAAO;IACpB,IAAI,CAAC,SAAS,EAAE,CAAC;QACf,IAAI,CAAC;YACH,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,iBAAiB,CAAC,CAAC;YAC/C,SAAS,GAAG,MAAM,CAAC,IAAI,CAAC;QAC1B,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,KAAK,CACb,qFAAqF,CACtF,CAAC;QACJ,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;;;;;;;;GASG;AACI,KAAK,UAAU,MAAM,CAAC,KAAoB;IAC/C,MAAM,IAAI,GAAG,MAAM,OAAO,EAAE,CAAC;IAC7B,MAAM,IAAI,GAAG,OAAO,KAAK,KAAK,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC;IACvE,MAAM,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC;IAC9B,OAAO,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;AAC7C,CAAC;AALD,wBAKC"}
|
||||
Reference in New Issue
Block a user