@midwayjs/process-agent
Advanced tools
Comparing version 3.19.2 to 4.0.0-alpha.1
@@ -22,3 +22,3 @@ "use strict"; | ||
async onReady() { | ||
const modules = (0, core_1.listModule)('primary:primary'); | ||
const modules = core_1.DecoratorManager.listModule('primary:primary'); | ||
const handlers = {}; | ||
@@ -57,3 +57,3 @@ let sockFile = path.join(os.tmpdir(), 'midway-primary.sock'); | ||
for (const module of modules) { | ||
const rules = (0, core_1.getClassMetadata)('primary:primary:options', module); | ||
const rules = core_1.MetadataManager.getOwnMetadata('primary:primary:options', module); | ||
for (const rule of rules) { | ||
@@ -78,7 +78,8 @@ if ((0, utils_1.isPrimary)()) { | ||
}; | ||
exports.ProcessAgentConfiguration = ProcessAgentConfiguration; | ||
__decorate([ | ||
(0, core_1.App)(), | ||
(0, core_1.MainApp)(), | ||
__metadata("design:type", Object) | ||
], ProcessAgentConfiguration.prototype, "app", void 0); | ||
ProcessAgentConfiguration = __decorate([ | ||
exports.ProcessAgentConfiguration = ProcessAgentConfiguration = __decorate([ | ||
(0, core_1.Configuration)({ | ||
@@ -88,3 +89,2 @@ namespace: 'process-agent', | ||
], ProcessAgentConfiguration); | ||
exports.ProcessAgentConfiguration = ProcessAgentConfiguration; | ||
//# sourceMappingURL=configuration.js.map |
@@ -12,3 +12,3 @@ "use strict"; | ||
return function (target, propertyKey, descriptor) { | ||
(0, core_1.saveModule)('primary:primary', target.constructor); | ||
core_1.DecoratorManager.saveModule('primary:primary', target.constructor); | ||
const sockFile = path.join(os.tmpdir(), 'midway-primary.sock'); | ||
@@ -43,3 +43,3 @@ if (!(0, utils_1.isPrimary)()) { | ||
} | ||
(0, core_1.attachClassMetadata)('primary:primary:options', { | ||
core_1.MetadataManager.attachMetadata('primary:primary:options', { | ||
name: `${target.constructor.name}_${propertyKey}`, | ||
@@ -46,0 +46,0 @@ value: descriptor.value, |
{ | ||
"name": "@midwayjs/process-agent", | ||
"version": "3.19.2", | ||
"version": "4.0.0-alpha.1", | ||
"description": "", | ||
@@ -9,4 +9,4 @@ "main": "dist/index.js", | ||
"build": "tsc", | ||
"test": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand", | ||
"cov": "node --require=ts-node/register ../../node_modules/.bin/jest --runInBand --coverage --forceExit" | ||
"test": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand", | ||
"cov": "node -r ts-node/register ../../node_modules/jest/bin/jest.js --runInBand --coverage --forceExit" | ||
}, | ||
@@ -29,5 +29,6 @@ "keywords": [ | ||
"devDependencies": { | ||
"@midwayjs/core": "^3.19.0", | ||
"@midwayjs/koa": "^3.19.2", | ||
"@midwayjs/mock": "^3.19.2" | ||
"@midwayjs/core": "^4.0.0-alpha.1", | ||
"@midwayjs/koa": "^4.0.0-alpha.1", | ||
"@midwayjs/mock": "^4.0.0-alpha.1", | ||
"koa-bodyparser": "4.4.1" | ||
}, | ||
@@ -37,3 +38,3 @@ "dependencies": { | ||
}, | ||
"gitHead": "57fd034be94897fb819b0d9ef776de0b9923ab0f" | ||
"gitHead": "14bb4da91805a1cf52f190c0d37a74b395dd6372" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
10400
4
2