mirror of
https://github.com/streamwall/streamwall.git
synced 2026-04-11 08:12:04 -04:00
Implement standalone control server
This commit is contained in:
6
packages/streamwall-shared/src/stateDiff.ts
Normal file
6
packages/streamwall-shared/src/stateDiff.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import * as jsondiffpatch from 'jsondiffpatch'
|
||||
|
||||
export const stateDiff = jsondiffpatch.create({
|
||||
objectHash: (obj: any, idx) => obj._id || `$$index:${idx}`,
|
||||
omitRemovedValues: true,
|
||||
})
|
||||
Reference in New Issue
Block a user