mirror of
https://github.com/morluto/rea.git
synced 2026-11-19 05:02:40 +00:00
refactor(kernel): migrate the remaining SHA-256 hex digests to sha256Hex and move isRecord into src/kernel (#11571)
* refactor(kernel): migrate the remaining one-shot SHA-256 hex digests to sha256Hex * refactor(kernel): move isRecord into src/kernel and replace its inline copies (#11574) * fix(scripts): import isRecord from src/kernel in the managed manifest parser
This commit is contained in:
1 parent
9ecfb109e8
commit
b51ed4c3ec
157 files changed
+397
-589
No files matched your search
@@ -83,13 +83,12 @@ import { V8InspectorProvider } from "./V8InspectorProvider.js";
|
||||
import { startFakeCdpBrowser } from "../../tests/fixtures/fakeCdpBrowser.js";
|
||||
import { startFakeV8Inspector } from "../../tests/fixtures/inspector/fakeV8Inspector.js";
|
||||
import { createNodeDiscoveryTempDirectory } from "../../tests/fixtures/temporaryDirectory.js";
|
||||
import { isRecord } from "../kernel/isRecord.js";
|
||||
|
||||
const fixtures: { close(): Promise<void> }[] = [];
|
||||
|
||||
const record = (value: unknown): Record<string, unknown> | undefined =>
|
||||
typeof value === "object" && value !== null && !Array.isArray(value)
|
||||
? (value as Record<string, unknown>)
|
||||
: undefined;
|
||||
isRecord(value) ? (value as Record<string, unknown>) : undefined;
|
||||
|
||||
afterEach(async () => {
|
||||
fileAccess.path = undefined;
|
||||
|
||||
Reference in new issue
Block a user