Files
directus/packages/utils/shared/is-object.ts
Pascal Jufer a708ec79d8 Redact additional keys in logs of Flows (#18534)
* Redact additional keys in logs of Flows

* Create moody-poems-pump.md

* Move REDACTED_TEXT to constants package & update tests

* Revert "Move REDACTED_TEXT to constants package & update tests"

This reverts commit 0f5b227253.

* Update redacted value in blackbox test

* Use own redact implementation

* Move REDACTED_TEXT to constants package

* Replace outdated comment

* Fix misleading return type

Since values might change (redacted), output isn't necessarily the same type anymore
2023-05-19 09:41:04 -04:00

6 lines
202 B
TypeScript

import type { UnknownObject } from '@directus/types';
export function isObject(input: unknown): input is UnknownObject {
return typeof input === 'object' && input !== null && !Array.isArray(input);
}