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]>
32 lines
918 B
JavaScript
32 lines
918 B
JavaScript
'use strict'
|
|
|
|
const { createJsonExportHealDelegateMixin } = require('pearcord-json-export-mixin')
|
|
|
|
const oauthJsonMixin = createJsonExportHealDelegateMixin({
|
|
gossipEntries: [
|
|
{
|
|
method: '_shouldGossipOAuthGrantJson',
|
|
keysField: '_oauthGrantRegistryJsonGossipKeys',
|
|
initMethod: '_initOAuthGrantJsonMixinState'
|
|
},
|
|
{
|
|
method: '_shouldGossipOAuthInstallTokenExportJson',
|
|
gossipHashPrefix: 'install:',
|
|
keysField: '_oauthInstallTokenRegistryJsonGossipKeys',
|
|
initMethod: '_initOAuthInstallTokenJsonMixinState'
|
|
}
|
|
],
|
|
delegates: [
|
|
{
|
|
legacyHeal: '_healOAuthGrantExportCursorOnPartition',
|
|
dedicatedHeal: '_healOAuthGrantJsonExportCursorOnPartition'
|
|
},
|
|
{
|
|
legacyHeal: '_healOAuthInstallTokenExportCursorOnPartition',
|
|
dedicatedHeal: '_healOAuthInstallTokenJsonExportCursorOnPartition'
|
|
}
|
|
]
|
|
})
|
|
|
|
module.exports = { oauthJsonMixin }
|