@angular-devkit/architect
Advanced tools
Comparing version
{ | ||
"name": "@angular-devkit/architect", | ||
"version": "0.2000.0-rc.3", | ||
"version": "0.2000.0-rc.4", | ||
"description": "Angular Build Facade", | ||
@@ -9,3 +9,3 @@ "experimental": true, | ||
"dependencies": { | ||
"@angular-devkit/core": "20.0.0-rc.3", | ||
"@angular-devkit/core": "20.0.0-rc.4", | ||
"rxjs": "7.8.2" | ||
@@ -12,0 +12,0 @@ }, |
@@ -17,10 +17,8 @@ "use strict"; | ||
const schedule_by_name_1 = require("./schedule-by-name"); | ||
const inputSchema = require('./input-schema.json'); | ||
const outputSchema = require('./output-schema.json'); | ||
function _createJobHandlerFromBuilderInfo(info, target, host, registry, baseOptions) { | ||
const jobDescription = { | ||
name: target ? `{${(0, api_1.targetStringFromTarget)(target)}}` : info.builderName, | ||
argument: { type: 'object' }, | ||
input: inputSchema, | ||
output: outputSchema, | ||
argument: true, | ||
input: true, | ||
output: true, | ||
info, | ||
@@ -183,4 +181,2 @@ }; | ||
name: '..getTargetOptions', | ||
output: { type: 'object' }, | ||
argument: inputSchema.properties.target, | ||
}); | ||
@@ -198,6 +194,2 @@ } | ||
name: '..getProjectMetadata', | ||
output: { type: 'object' }, | ||
argument: { | ||
oneOf: [{ type: 'string' }, inputSchema.properties.target], | ||
}, | ||
}); | ||
@@ -214,4 +206,2 @@ } | ||
name: '..getBuilderNameForTarget', | ||
output: { type: 'string' }, | ||
argument: inputSchema.properties.target, | ||
}); | ||
@@ -234,7 +224,2 @@ } | ||
name: '..validateOptions', | ||
output: { type: 'object' }, | ||
argument: { | ||
type: 'array', | ||
items: [{ type: 'string' }, { type: 'object' }], | ||
}, | ||
}); | ||
@@ -241,0 +226,0 @@ } |
@@ -107,7 +107,14 @@ "use strict"; | ||
}; | ||
const noopValidator = noopSchemaValidator(); | ||
const handlerWithExtra = Object.assign(handler.bind(undefined), { | ||
jobDescription: description, | ||
argumentV: this._schemaRegistry.compile(description.argument), | ||
inputV: this._schemaRegistry.compile(description.input), | ||
outputV: this._schemaRegistry.compile(description.output), | ||
argumentV: description.argument === true | ||
? noopValidator | ||
: this._schemaRegistry.compile(description.argument), | ||
inputV: description.input === true | ||
? noopValidator | ||
: this._schemaRegistry.compile(description.input), | ||
outputV: description.output === true | ||
? noopValidator | ||
: this._schemaRegistry.compile(description.output), | ||
}); | ||
@@ -383,1 +390,7 @@ this._internalJobDescriptionMap.set(name, handlerWithExtra); | ||
exports.SimpleScheduler = SimpleScheduler; | ||
async function noopSchemaValidator() { | ||
return async (data) => ({ | ||
data, | ||
success: true, | ||
}); | ||
} |
173577
-0.1%4239
-0.05%+ Added
- Removed