a71f801c3f
- Prisma schema: User, Session, RepoConfig, Preview, Job, WebhookToken, NoConfigComment, AdminSettings - Backend: auth (login/logout/me/first-user setup), webhook handler with HMAC verification, EC2 service, SSH service, deploy pipeline, job queue worker, cron workers - Frontend: Login with first-user detection, Dashboard, PreviewDetail with live log streaming, Settings, Repos config, Admin panel, SetupWizard, Privacy page - Docker Compose and Dockerfile for self-hosted deployment - Uses bcryptjs for Node 24 compatibility Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
37 lines
1.0 KiB
JavaScript
37 lines
1.0 KiB
JavaScript
'use strict'
|
|
|
|
const test = require('node:test')
|
|
const assert = require('node:assert')
|
|
const { PassThrough } = require('node:stream')
|
|
|
|
const { sink, once } = require('./helper')
|
|
const pino = require('../')
|
|
|
|
test('Proxy and stream objects', async () => {
|
|
const s = new PassThrough()
|
|
s.resume()
|
|
s.write('', () => {})
|
|
const obj = { s, p: new Proxy({}, { get () { throw new Error('kaboom') } }) }
|
|
const stream = sink()
|
|
const instance = pino(stream)
|
|
instance.info({ obj })
|
|
|
|
const result = await once(stream, 'data')
|
|
|
|
assert.equal(result.obj, '[unable to serialize, circular reference is too complex to analyze]')
|
|
})
|
|
|
|
test('Proxy and stream objects', async () => {
|
|
const s = new PassThrough()
|
|
s.resume()
|
|
s.write('', () => {})
|
|
const obj = { s, p: new Proxy({}, { get () { throw new Error('kaboom') } }) }
|
|
const stream = sink()
|
|
const instance = pino(stream)
|
|
instance.info(obj)
|
|
|
|
const result = await once(stream, 'data')
|
|
|
|
assert.equal(result.p, '[unable to serialize, circular reference is too complex to analyze]')
|
|
})
|