File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -279,9 +279,9 @@ export function decodeDotPropertyNames(properties: Record<string, unknown>): Rec
279279 return decodedProperties ;
280280}
281281
282- export function transformActorInputSchemaProperties ( input : IActorInputSchema ) : ActorInputSchemaProperties {
282+ export function transformActorInputSchemaProperties ( input : Readonly < IActorInputSchema > ) : ActorInputSchemaProperties {
283283 // Deep clone input to avoid mutating the original object
284- const inputClone : IActorInputSchema = JSON . parse ( JSON . stringify ( input ) ) ;
284+ const inputClone : IActorInputSchema = structuredClone ( input ) ;
285285 let transformedProperties = markInputPropertiesAsRequired ( inputClone ) ;
286286 transformedProperties = buildApifySpecificProperties ( transformedProperties ) ;
287287 transformedProperties = filterSchemaProperties ( transformedProperties ) ;
You can’t perform that action at this time.
0 commit comments