@workos/oagen 0.24.5 → 0.24.6

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.
@@ -6304,7 +6304,7 @@ async function readManifest(dir) {
6304
6304
  }
6305
6305
  try {
6306
6306
  const parsed = JSON.parse(raw);
6307
- if (typeof parsed.version !== "number" || typeof parsed.language !== "string" || typeof parsed.generatedAt !== "string" || !Array.isArray(parsed.files) || !parsed.files.every((p) => typeof p === "string")) return null;
6307
+ if (typeof parsed.version !== "number" || typeof parsed.language !== "string" || !Array.isArray(parsed.files) || !parsed.files.every((p) => typeof p === "string")) return null;
6308
6308
  if (parsed.version > MANIFEST_VERSION) {
6309
6309
  console.warn(`[oagen] ${MANIFEST_FILENAME} schema version ${parsed.version} is newer than supported (${MANIFEST_VERSION}); ignoring for pruning.`);
6310
6310
  return null;
@@ -6321,7 +6321,6 @@ async function writeManifest(dir, opts) {
6321
6321
  version: MANIFEST_VERSION,
6322
6322
  language: opts.language,
6323
6323
  ...opts.sdkName !== void 0 ? { sdkName: opts.sdkName } : {},
6324
- generatedAt: (/* @__PURE__ */ new Date()).toISOString(),
6325
6324
  ...opts.specSha !== void 0 ? { specSha: opts.specSha } : {},
6326
6325
  ...opts.specPath !== void 0 ? { specPath: opts.specPath } : {},
6327
6326
  ...opts.emitterSha !== void 0 ? { emitterSha: opts.emitterSha } : {},
@@ -6331,16 +6330,9 @@ async function writeManifest(dir, opts) {
6331
6330
  files: [...new Set(opts.files)].sort(),
6332
6331
  ...opts.operations !== void 0 ? { operations: opts.operations } : {}
6333
6332
  };
6334
- const previous = await readManifest(dir);
6335
- if (previous && sameManifestExceptGeneratedAt(previous, manifest)) manifest.generatedAt = previous.generatedAt;
6336
6333
  await fs.mkdir(dir, { recursive: true });
6337
6334
  await fs.writeFile(manifestPath, JSON.stringify(manifest, null, 2) + "\n", "utf-8");
6338
6335
  }
6339
- function sameManifestExceptGeneratedAt(a, b) {
6340
- const { generatedAt: _aGeneratedAt, ...aComparable } = a;
6341
- const { generatedAt: _bGeneratedAt, ...bComparable } = b;
6342
- return JSON.stringify(aComparable) === JSON.stringify(bComparable);
6343
- }
6344
6336
  /** Return the set of previous paths no longer present in the current emission. */
6345
6337
  function computeStalePaths(prev, currentPaths) {
6346
6338
  const current = new Set(currentPaths);