Files
pearcord-platform/mixins/json-export/slash-json-mixin.js
T
Raven ScottandCursor a5dba86570 refactor(platform): organize mixins into category directories
Move 136 prototype mixins under mixins/domain, json-export, and
runtime/* so the package root stays navigable. Manifest assign order
is unchanged; apply-platform-mixins and runtime registry paths updated.

Co-authored-by: Cursor <[email protected]>
2026-06-03 17:42:26 -04:00

32 lines
925 B
JavaScript

'use strict'
const { createJsonExportHealDelegateMixin } = require('pearcord-json-export-mixin')
const slashJsonMixin = createJsonExportHealDelegateMixin({
gossipEntries: [
{
method: '_shouldGossipSlashRegistryJson',
keysField: '_slashRegistryExportJsonGossipKeys',
initMethod: '_initSlashRegistryJsonMixinState'
},
{
method: '_shouldGossipSlashInvokeAuditExportJson',
gossipHashPrefix: 'invoke:',
keysField: '_slashInvokeAuditRegistryJsonGossipKeys',
initMethod: '_initSlashInvokeAuditJsonMixinState'
}
],
delegates: [
{
legacyHeal: '_healSlashRegistryExportCursorOnPartition',
dedicatedHeal: '_healSlashRegistryJsonExportCursorOnPartition'
},
{
legacyHeal: '_healSlashInvokeAuditExportCursorOnPartition',
dedicatedHeal: '_healSlashInvokeAuditJsonExportCursorOnPartition'
}
]
})
module.exports = { slashJsonMixin }