Rocky_Mountain_Vending/.pnpm-store/v10/files/9a/47bbaf29c3a0fde79f25405804c0d1831e5635254644ab5c93f637ca338a7a1fdccbd23473dc9ca46ba322f108bbb0e246a75f9c473297fe6251f5cc1e48f2
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

108 lines
2.8 KiB
Text

import noop from "../mock/noop.mjs";
import { Readable } from "node:stream";
import { Deserializer, DefaultDeserializer } from "./internal/v8/deserializer.mjs";
import { Serializer, DefaultSerializer } from "./internal/v8/serializer.mjs";
import { GCProfiler } from "./internal/v8/profiler.mjs";
export { Deserializer, DefaultDeserializer } from "./internal/v8/deserializer.mjs";
export { Serializer, DefaultSerializer } from "./internal/v8/serializer.mjs";
export { GCProfiler } from "./internal/v8/profiler.mjs";
const getMockHeapSpaceStats = (name) => ({
space_name: name,
space_size: 0,
space_used_size: 0,
space_available_size: 0,
physical_space_size: 0
});
export const cachedDataVersionTag = () => 0;
export const deserialize = noop;
export const getHeapCodeStatistics = () => ({
code_and_metadata_size: 0,
bytecode_and_metadata_size: 0,
external_script_source_size: 0,
cpu_profiler_metadata_size: 0
});
export const getHeapSpaceStatistics = () => [
"read_only_space",
"new_space",
"old_space",
"code_space",
"map_space",
"large_object_space",
"code_large_object_space",
"new_large_object_space"
].map((space) => getMockHeapSpaceStats(space));
export const getHeapStatistics = () => ({
total_heap_size: 0,
total_heap_size_executable: 0,
total_physical_size: 0,
total_available_size: 0,
used_heap_size: 0,
heap_size_limit: 0,
malloced_memory: 0,
peak_malloced_memory: 0,
does_zap_garbage: 0,
number_of_native_contexts: 0,
number_of_detached_contexts: 0,
total_global_handles_size: 0,
used_global_handles_size: 0,
external_memory: 0
});
export const getHeapSnapshot = () => {
return Readable.from(`{
snapshot: {},
nodes: [],
edges: [],
trace_function_infos: [],
trace_tree: [],
samples: [],
locations: [],
strings: [],
}`);
};
export const promiseHooks = {
onInit: () => noop,
onSettled: () => noop,
onBefore: () => noop,
onAfter: () => noop,
createHook: () => noop
};
export const serialize = (value) => Buffer.from(value);
export const setFlagsFromString = noop;
export const setHeapSnapshotNearHeapLimit = noop;
export const startupSnapshot = {
addDeserializeCallback: noop,
addSerializeCallback: noop,
setDeserializeMainFunction: noop,
isBuildingSnapshot: () => false
};
export const stopCoverage = noop;
export const takeCoverage = noop;
export const writeHeapSnapshot = () => "";
export function queryObjects(_ctor, options) {
if (options?.format === "count") {
return 0;
}
return [];
}
export default {
DefaultDeserializer,
Deserializer,
GCProfiler,
DefaultSerializer,
Serializer,
cachedDataVersionTag,
deserialize,
getHeapCodeStatistics,
getHeapSnapshot,
getHeapSpaceStatistics,
getHeapStatistics,
promiseHooks,
serialize,
setFlagsFromString,
setHeapSnapshotNearHeapLimit,
startupSnapshot,
stopCoverage,
takeCoverage,
writeHeapSnapshot,
queryObjects
};