feat: 调整API引入结构
This commit is contained in:
parent
6f1a103aca
commit
39d9c67c75
@ -1,2 +1,2 @@
|
|||||||
/*global Java, base, module, exports, require*/
|
/*global Java, base, module, exports, require*/
|
||||||
module.exports = require('./msp.js').command;
|
module.exports = requireInternal('command');
|
@ -1,2 +1,2 @@
|
|||||||
/*global Java, base, module, exports, require*/
|
/*global Java, base, module, exports, require*/
|
||||||
module.exports = require('./msp.js').item;
|
module.exports = requireInternal('item');
|
@ -1,14 +0,0 @@
|
|||||||
/*global Java, base, module, exports, require*/
|
|
||||||
function impl(name) {
|
|
||||||
return require('../internal/' + DetectServerType + '/' + name, {warnNotFound: false});
|
|
||||||
}
|
|
||||||
|
|
||||||
exports = module.exports = {
|
|
||||||
command: impl('command'),
|
|
||||||
event: impl('event'),
|
|
||||||
permission: impl('permission'),
|
|
||||||
server: impl('server'),
|
|
||||||
task: impl('task'),
|
|
||||||
item: impl('item'),
|
|
||||||
chat: impl('chat')
|
|
||||||
};
|
|
@ -1,2 +1,2 @@
|
|||||||
/*global Java, base, module, exports, require*/
|
/*global Java, base, module, exports, require*/
|
||||||
module.exports = require('./msp.js').permission;
|
module.exports = requireInternal('permission', {warnNotFound: false});
|
@ -1,2 +1,2 @@
|
|||||||
/*global Java, base, module, exports, require*/
|
/*global Java, base, module, exports, require*/
|
||||||
module.exports = require('./msp.js').server;
|
module.exports = requireInternal('server');
|
@ -1,2 +1,2 @@
|
|||||||
/*global Java, base, module, exports, require*/
|
/*global Java, base, module, exports, require*/
|
||||||
module.exports = require('./msp.js').task;
|
module.exports = requireInternal('task');
|
Loading…
Reference in New Issue
Block a user