Skip to content

Commit

Permalink
remove use of crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
nihalbhatnagar committed Dec 9, 2024
1 parent 3e535da commit 20835ea
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ import { modernToLegacyWhereClause } from "../internal/conversions/modernToLegac
import { MinimalClient } from "../MinimalClientContext.js";
import { resolveBaseObjectSetType } from "../util/objectSetUtils.js";

let idCounter = 0;

/** @internal */
export function createDeriveObjectSet<Q extends ObjectOrInterfaceDefinition>(
objectType: Q,
Expand All @@ -56,7 +58,7 @@ export function createDeriveObjectSet<Q extends ObjectOrInterfaceDefinition>(
}, definitionMap);
},
aggregate: (aggregation: string, opt: any) => {
const definitionId = globalThis.crypto.randomUUID();
const definitionId = idCounter++;
const splitAggregation = aggregation.split(":");
invariant(splitAggregation.length === 2, "Invalid aggregation format");
const [aggregationPropertyName, aggregationOperation] = splitAggregation;
Expand Down

0 comments on commit 20835ea

Please sign in to comment.