refactor(core): Move isObjectLiteral to @n8n/backend-common (#15414)

This commit is contained in:
Iván Ovejero
2025-05-15 12:31:58 +02:00
committed by GitHub
parent eecaea15f7
commit 226f1c73ce
15 changed files with 28 additions and 23 deletions

View File

@@ -1,3 +1,4 @@
import { isObjectLiteral } from '@n8n/backend-common';
import { Container } from '@n8n/di';
import type { ICredentialDataDecryptedObject, ICredentialsEncrypted } from 'n8n-workflow';
import { ApplicationError, ICredentials, jsonParse } from 'n8n-workflow';
@@ -5,7 +6,6 @@ import * as a from 'node:assert';
import { CREDENTIAL_ERRORS } from '@/constants';
import { Cipher } from '@/encryption/cipher';
import { isObjectLiteral } from '@/utils';
export class CredentialDataError extends ApplicationError {
constructor({ name, type, id }: Credentials<object>, message: string, cause?: unknown) {