@mw-components/ali-oss
Version:
阿里云 OSS 命令行工具 ossutil 封装 midway.js 组件,提供 TypeScript 类型定义
39 lines • 1.9 kB
JavaScript
;
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.AutoConfiguration = void 0;
require("tsconfig-paths/register");
const node_assert_1 = __importDefault(require("node:assert"));
const node_path_1 = require("node:path");
const decorator_1 = require("@midwayjs/decorator");
const index_1 = require("./lib/index");
let AutoConfiguration = class AutoConfiguration {
app;
// eslint-disable-next-line @typescript-eslint/no-unused-vars
async onReady(_container) {
(0, node_assert_1.default)(this.app, 'this.app must be set');
}
};
__decorate([
(0, decorator_1.App)(),
__metadata("design:type", Object)
], AutoConfiguration.prototype, "app", void 0);
AutoConfiguration = __decorate([
(0, decorator_1.Configuration)({
namespace: index_1.ConfigKey.namespace,
importConfigs: [(0, node_path_1.join)(__dirname, 'config')],
})
], AutoConfiguration);
exports.AutoConfiguration = AutoConfiguration;
//# sourceMappingURL=configuration.js.map