refactor: don't expose CallbacksRegistry as an internal module (#14389)
This commit is contained in:
parent
0c4e7104cf
commit
3a79eacb6f
6 changed files with 4 additions and 9 deletions
|
@ -48,7 +48,6 @@
|
|||
'lib/browser/init.js',
|
||||
'lib/browser/objects-registry.js',
|
||||
'lib/browser/rpc-server.js',
|
||||
'lib/common/api/callbacks-registry.js',
|
||||
'lib/common/api/clipboard.js',
|
||||
'lib/common/api/crash-reporter.js',
|
||||
'lib/common/api/deprecate.js',
|
||||
|
@ -63,6 +62,7 @@
|
|||
'lib/common/init.js',
|
||||
'lib/common/parse-features-string.js',
|
||||
'lib/common/reset-search-paths.js',
|
||||
'lib/renderer/callbacks-registry.js',
|
||||
'lib/renderer/chrome-api.js',
|
||||
'lib/renderer/content-scripts-injector.js',
|
||||
'lib/renderer/init.js',
|
||||
|
|
|
@ -5,7 +5,6 @@ module.exports = [
|
|||
{name: 'nativeImage', file: 'native-image'},
|
||||
{name: 'shell', file: 'shell'},
|
||||
// The internal modules, invisible unless you know their names.
|
||||
{name: 'CallbacksRegistry', file: 'callbacks-registry', private: true},
|
||||
{name: 'deprecate', file: 'deprecate', private: true},
|
||||
{name: 'deprecations', file: 'deprecations', private: true},
|
||||
{name: 'isPromise', file: 'is-promise', private: true}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
'use strict'
|
||||
|
||||
const v8Util = process.atomBinding('v8_util')
|
||||
const {ipcRenderer, isPromise, CallbacksRegistry} = require('electron')
|
||||
const {ipcRenderer, isPromise} = require('electron')
|
||||
const resolvePromise = Promise.resolve.bind(Promise)
|
||||
|
||||
const CallbacksRegistry = require('../callbacks-registry')
|
||||
const bufferUtils = require('../../common/buffer-utils')
|
||||
|
||||
const callbacksRegistry = new CallbacksRegistry()
|
||||
|
|
|
@ -1,11 +1,6 @@
|
|||
const features = process.atomBinding('features')
|
||||
|
||||
module.exports = [
|
||||
{
|
||||
name: 'CallbacksRegistry',
|
||||
load: () => require('../../common/api/callbacks-registry'),
|
||||
private: true
|
||||
},
|
||||
{
|
||||
name: 'crashReporter',
|
||||
load: () => require('../../common/api/crash-reporter')
|
||||
|
|
|
@ -4,7 +4,7 @@ const dirtyChai = require('dirty-chai')
|
|||
const {expect} = chai
|
||||
chai.use(dirtyChai)
|
||||
|
||||
const {CallbacksRegistry} = require('electron')
|
||||
const CallbacksRegistry = require('../lib/renderer/callbacks-registry')
|
||||
|
||||
describe('CallbacksRegistry module', () => {
|
||||
let registry = null
|
||||
|
|
Loading…
Add table
Reference in a new issue