@mondaydotcomorg/atp-provenance 0.19.8 → 0.19.9

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/dist/index.js CHANGED
@@ -1,6 +1,5 @@
1
- import { nanoid } from 'nanoid';
2
- import { log } from '@mondaydotcomorg/atp-runtime';
3
1
  import crypto from 'crypto';
2
+ import { log } from '@mondaydotcomorg/atp-runtime';
4
3
  import { z } from 'zod';
5
4
  import * as acorn from 'acorn';
6
5
  import * as walk from 'acorn-walk';
@@ -107,7 +106,7 @@ async function issueProvenanceToken(metadata, value, clientId, executionId, cach
107
106
  if (!valueDigest) {
108
107
  return null;
109
108
  }
110
- const metaId = nanoid();
109
+ const metaId = crypto.randomUUID();
111
110
  const cacheKey = `prov:meta:${clientId}:${metaId}`;
112
111
  try {
113
112
  await cacheProvider.set(cacheKey, JSON.stringify(metadata), ttl);
@@ -620,7 +619,7 @@ function createProvenanceProxy(value, source, readers = {
620
619
  if (typeof value !== "object" && typeof value !== "function") {
621
620
  return value;
622
621
  }
623
- const id = nanoid();
622
+ const id = crypto.randomUUID();
624
623
  const metadata = {
625
624
  id,
626
625
  source,
@@ -1748,7 +1747,7 @@ var ASTProvenanceTracker = class {
1748
1747
  this.valueToId.set(value, id);
1749
1748
  return id;
1750
1749
  }
1751
- return `primitive_${nanoid()}`;
1750
+ return `primitive_${crypto.randomUUID()}`;
1752
1751
  }
1753
1752
  track(value, source, dependencies = []) {
1754
1753
  if (value === null || value === void 0) {