diff --git a/packages/apollo-cli/src/utils.ts b/packages/apollo-cli/src/utils.ts index 41a74815..ba494b34 100644 --- a/packages/apollo-cli/src/utils.ts +++ b/packages/apollo-cli/src/utils.ts @@ -123,7 +123,7 @@ export async function getAssembly( const assemblies = (await res.json()) as ApolloAssemblySnapshot[] for (const x of assemblies) { if (x._id === assemblyId[0]) { - return structuredClone(x) + return JSON.parse(JSON.stringify(x)) as ApolloAssemblySnapshot } } throw new Error(`Assembly "${assemblyNameOrId}" not found`) diff --git a/packages/apollo-shared/src/Changes/AddFeatureChange.ts b/packages/apollo-shared/src/Changes/AddFeatureChange.ts index 7f4dd213..e250d909 100644 --- a/packages/apollo-shared/src/Changes/AddFeatureChange.ts +++ b/packages/apollo-shared/src/Changes/AddFeatureChange.ts @@ -1,5 +1,5 @@ /* eslint-disable @typescript-eslint/restrict-template-expressions */ - +/* eslint-disable @typescript-eslint/no-unsafe-assignment */ /* eslint-disable @typescript-eslint/require-await */ /* eslint-disable @typescript-eslint/no-unnecessary-condition */ import { @@ -143,7 +143,7 @@ export class AddFeatureChange extends FeatureChange { } attributes = { _id: [parentFeature._id.toString()], - ...structuredClone(attributes), + ...JSON.parse(JSON.stringify(attributes)), } parentFeature.attributes = attributes }