1 parent 0030a36 commit 6bc1422Copy full SHA for 6bc1422
1 file changed
apps/sim/lib/internal/oracle-fusion/request-body.ts
@@ -1,3 +1,4 @@
1
+import { isRecordLike } from '@sim/utils/object'
2
import { MAX_INLINE_MATERIALIZATION_BYTES } from '@/lib/execution/payloads/limits'
3
4
const MAX_JSON_NESTING_DEPTH = 100
@@ -170,10 +171,6 @@ function serializeJsonBodyWithinLimit(body: unknown): JsonBudgetState {
170
171
return state
172
}
173
-function isRecordLike(value: unknown): value is Record<string, unknown> {
174
- return typeof value === 'object' && value !== null && !Array.isArray(value)
175
-}
176
-
177
function rejectInheritedJsonSerialization(prototype: object | null): void {
178
for (let candidate = prototype; candidate; candidate = Object.getPrototypeOf(candidate)) {
179
if (Object.hasOwn(candidate, 'toJSON')) throwNonPlainJsonError()
0 commit comments