mirror of
https://github.com/MarSeventh/CloudFlare-ImgBed.git
synced 2026-05-02 18:06:37 +00:00
fix:所有模块导入/导出的兼容性问题
This commit is contained in:
@@ -393,8 +393,4 @@ D1Database.prototype.list = function(options) {
|
||||
};
|
||||
|
||||
// 导出构造函数
|
||||
if (typeof module !== 'undefined' && module.exports) {
|
||||
module.exports = { D1Database: D1Database };
|
||||
} else if (typeof exports !== 'undefined') {
|
||||
exports.D1Database = D1Database;
|
||||
}
|
||||
export { D1Database };
|
||||
|
||||
Reference in New Issue
Block a user