From a1934b1630ea562b8f37c46bf646a5f6756e793c Mon Sep 17 00:00:00 2001 From: wss-git Date: Fri, 16 Jul 2021 17:20:05 +0800 Subject: [PATCH] refactor: v0.0.12 --- doc/classes/default.html | 6 +-- doc/doc.json | 2 +- lib/common/help.d.ts | 21 ++++++++--- lib/common/help.js | 10 +++-- lib/index.js | 36 ++++++++---------- lib/interface/entity.d.ts | 1 + lib/interface/entity.js | 7 +++- lib/lib/remote-invoke.d.ts | 5 ++- lib/lib/remote-invoke.js | 77 ++++++++++++++++++++++++-------------- package.json | 2 +- publish.yaml | 2 +- src/index.ts | 2 +- 12 files changed, 102 insertions(+), 69 deletions(-) diff --git a/doc/classes/default.html b/doc/classes/default.html index 62629b9..5919d3f 100644 --- a/doc/classes/default.html +++ b/doc/classes/default.html @@ -123,7 +123,7 @@
  • Parameters

    @@ -146,7 +146,7 @@
  • @@ -174,7 +174,7 @@
  • Parameters

    diff --git a/doc/doc.json b/doc/doc.json index 8972273..704a96a 100644 --- a/doc/doc.json +++ b/doc/doc.json @@ -91,7 +91,7 @@ "sources": [ { "fileName": "index.ts", - "line": 101, + "line": 93, "character": 21 } ], diff --git a/lib/common/help.d.ts b/lib/common/help.d.ts index 9adf0ef..f5a0817 100644 --- a/lib/common/help.d.ts +++ b/lib/common/help.d.ts @@ -5,21 +5,30 @@ declare const _default: ({ } | { header: string; optionList: ({ + name: string; + description: string; + type: StringConstructor; + alias?: undefined; + } | { name: string; description: string; alias: string; type: StringConstructor; } | { + name: string; + description: string; + type: BooleanConstructor; + alias?: undefined; + })[]; + content?: undefined; +} | { + header: string; + optionList: { name: string; description: string; alias: string; type: BooleanConstructor; - } | { - name: string; - description: string; - type: StringConstructor; - alias?: undefined; - })[]; + }[]; content?: undefined; } | { header: string; diff --git a/lib/common/help.js b/lib/common/help.js index 410c83e..494a2f9 100644 --- a/lib/common/help.js +++ b/lib/common/help.js @@ -15,13 +15,11 @@ exports.default = [ { name: 'invocation-type', description: 'Invocation type: optional value "async"|"sync", default value "sync" (default: "sync")', - alias: 't', type: String, }, { name: 'event', description: 'Event data (strings) passed to the function during invocation (default: "").Http function format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]', - alias: 'e', type: String, }, { @@ -33,7 +31,6 @@ exports.default = [ { name: 'event-stdin', description: 'Read from standard input, to support script pipeline.Http function format refers to [https://github.com/devsapp/fc-remote-invoke#特别说明]', - alias: 's', type: Boolean, }, { @@ -51,6 +48,11 @@ exports.default = [ description: 'Specify function name in cli mode', type: String, }, + { + name: 'domain-name', + description: 'Specify custom domain name in cli mode', + type: String, + }, ], }, { @@ -98,4 +100,4 @@ exports.default = [ ], }, ]; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaGVscC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9jb21tb24vaGVscC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOztBQUFBLGtCQUFlO0lBQ2I7UUFDRSxNQUFNLEVBQUUsUUFBUTtRQUNoQixPQUFPLEVBQUUsa0NBQWtDO0tBQzVDO0lBQ0Q7UUFDRSxNQUFNLEVBQUUsT0FBTztRQUNmLE9BQU8sRUFBRSxzQkFBc0I7S0FDaEM7SUFDRDtRQUNFLE1BQU0sRUFBRSxTQUFTO1FBQ2pCLFVBQVUsRUFBRTtZQUNWO2dCQUNFLElBQUksRUFBRSxpQkFBaUI7Z0JBQ3ZCLFdBQVcsRUFBRSx3RkFBd0Y7Z0JBQ3JHLEtBQUssRUFBRSxHQUFHO2dCQUNWLElBQUksRUFBRSxNQUFNO2FBQ2I7WUFDRDtnQkFDRSxJQUFJLEVBQUUsT0FBTztnQkFDYixXQUFXLEVBQUUsK0pBQStKO2dCQUM1SyxLQUFLLEVBQUUsR0FBRztnQkFDVixJQUFJLEVBQUUsTUFBTTthQUNiO1lBQ0Q7Z0JBQ0UsSUFBSSxFQUFFLFlBQVk7Z0JBQ2xCLFdBQVcsR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1A7Z0JBQ0UsT0FBTyxFQUFFLGlHQUFpRzthQUMzRztZQUNEO2dCQUNFLE9BQU8sRUFBRSx3R0FBd0c7YUFDbEg7WUFDRDtnQkFDRSxPQUFPLEVBQUUsNkZBQTZGO2FBQ3ZHO1lBQ0Q7Z0JBQ0UsT0FBTyxFQUFFLHdIQUF3SDthQUNsSTtTQUNGO0tBQ0Y7Q0FDRixDQUFBIn0= \ No newline at end of file diff --git a/lib/index.js b/lib/index.js index ea80a37..d96fbeb 100644 --- a/lib/index.js +++ b/lib/index.js @@ -48,33 +48,29 @@ class FcRemoteInvoke { }); } handlerInputs(inputs) { - var _a, _b; + var _a, _b, _c, _d, _e, _f; return __awaiter(this, void 0, void 0, function* () { - const credentials = yield core.getCredential((_a = inputs === null || inputs === void 0 ? void 0 : inputs.project) === null || _a === void 0 ? void 0 : _a.access); // 去除 args 的行首以及行尾的空格 const args = ((inputs === null || inputs === void 0 ? void 0 : inputs.args) || '').replace(/(^\s*)|(\s*$)/g, ''); logger_1.default.debug(`input args: ${args}`); const parsedArgs = core.commandParse({ args }, { boolean: ['help', 'event-stdin'], - string: ['invocation-type', 'event', 'event-file', 'region', 'service-name', 'function-name', 'qualifier'], + string: ['invocation-type', 'event', 'event-file', 'region', 'domain-name', 'service-name', 'function-name', 'qualifier'], alias: { 'help': 'h', 'event': 'e', - 'invocation-type': 't', 'event-file': 'f', - 'event-stdin': 's', } }); const argsData = (parsedArgs === null || parsedArgs === void 0 ? void 0 : parsedArgs.data) || {}; logger_1.default.debug(`command parse: ${JSON.stringify(argsData)}`); if (argsData.help) { return { - credentials, + credentials: inputs.credentials, isHelp: true, }; } - // await StdoutFormatter.initStdout(); - const { e: event, f: eventFile, s: eventStdin, t: invocationType = 'sync', } = argsData; + const { e: event, f: eventFile, 'event-file': eventStdin, 'invocation-type': invocationType = 'sync', 'domain-name': domainName, } = argsData; const eventPayload = { event, eventFile, eventStdin }; // @ts-ignore: 判断三个值有几个真 const eventFlag = !!event + !!eventFile + !!eventStdin; @@ -87,24 +83,24 @@ class FcRemoteInvoke { if (!['sync', 'async'].includes(invocationType)) { throw new Error('invocation-type enum value sync, async.'); } + if (!domainName && !(inputs === null || inputs === void 0 ? void 0 : inputs.credentials)) { + inputs.credentials = yield core.getCredential((_a = inputs === null || inputs === void 0 ? void 0 : inputs.project) === null || _a === void 0 ? void 0 : _a.access); + } logger_1.default.debug(`input props: ${JSON.stringify(inputs.props)}`); - let props = { - region: argsData.region, - serviceName: argsData['service-name'], - functionName: argsData['function-name'], + const props = { + region: argsData.region || ((_b = inputs.props) === null || _b === void 0 ? void 0 : _b.region), + serviceName: argsData['service-name'] || ((_c = inputs.props) === null || _c === void 0 ? void 0 : _c.serviceName), + functionName: argsData['function-name'] || ((_d = inputs.props) === null || _d === void 0 ? void 0 : _d.functionName), + domainName: domainName || ((_e = inputs.props) === null || _e === void 0 ? void 0 : _e.domainName), + qualifier: argsData.qualifier || ((_f = inputs.props) === null || _f === void 0 ? void 0 : _f.qualifier), }; logger_1.default.debug(`input args props: ${JSON.stringify(props)}`); - if (!entity_1.isProperties(props)) { - props = inputs.props; - } - logger_1.default.debug(`props: ${JSON.stringify(props)}`); if (!entity_1.isProperties(props)) { throw new Error('region/serviceName(service-name)/functionName(function-name) can not be empty.'); } - props.qualifier = argsData.qualifier || ((_b = inputs.props) === null || _b === void 0 ? void 0 : _b.qualifier); return { props, - credentials, + credentials: inputs.credentials, eventPayload, isHelp: false, invocationType: lodash_1.default.upperFirst(invocationType), @@ -124,10 +120,10 @@ class FcRemoteInvoke { core.help(help_1.default); return; } - const remoteInvoke = new remote_invoke_1.default(props.region, credentials); + const remoteInvoke = new remote_invoke_1.default(props.region, credentials, props.domainName); yield remoteInvoke.invoke(props, eventPayload, { invocationType }); }); } } exports.default = FcRemoteInvoke; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zc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RUFBRSxZQUFZLEVBQUUsRUFBRSxjQUFjLEVBQUUsQ0FBQyxDQUFDO1FBQ3JFLENBQUM7S0FBQTtDQUNGO0FBdEdELGlDQXNHQyJ9 \ No newline at end of file diff --git a/lib/interface/entity.d.ts b/lib/interface/entity.d.ts index 76599c0..6c07118 100644 --- a/lib/interface/entity.d.ts +++ b/lib/interface/entity.d.ts @@ -24,6 +24,7 @@ export interface IProperties { serviceName: string; functionName: string; qualifier?: string; + domainName?: string; } export declare function isProperties(args: any): args is IProperties; export interface IEventPayload { diff --git a/lib/interface/entity.js b/lib/interface/entity.js index 1796d88..8cc5fac 100644 --- a/lib/interface/entity.js +++ b/lib/interface/entity.js @@ -2,7 +2,10 @@ Object.defineProperty(exports, "__esModule", { value: true }); exports.isProperties = void 0; function isProperties(args) { - return args && args.region && args.serviceName && args.functionName; + if (!args) { + return false; + } + return args.domainName || (args.region && args.serviceName && args.functionName); } exports.isProperties = isProperties; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVyZmFjZS9lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBNkJBLFNBQWdCLFlBQVksQ0FBQyxJQUFTO0lBQ3BDLE9BQU8sSUFBSSxJQUFJLElBQUksQ0FBQyxNQUFNLElBQUksSUFBSSxDQUFDLFdBQVcsSUFBSSxJQUFJLENBQUMsWUFBWSxDQUFDO0FBQ3RFLENBQUM7QUFGRCxvQ0FFQyJ9 \ No newline at end of file +//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZW50aXR5LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2ludGVyZmFjZS9lbnRpdHkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBOEJBLFNBQWdCLFlBQVksQ0FBQyxJQUFTO0lBQ3BDLElBQUksQ0FBQyxJQUFJLEVBQUU7UUFDVCxPQUFPLEtBQUssQ0FBQztLQUNkO0lBQ0QsT0FBTyxJQUFJLENBQUMsVUFBVSxJQUFJLENBQUMsSUFBSSxDQUFDLE1BQU0sSUFBSSxJQUFJLENBQUMsV0FBVyxJQUFJLElBQUksQ0FBQyxZQUFZLENBQUMsQ0FBRTtBQUNwRixDQUFDO0FBTEQsb0NBS0MifQ== \ No newline at end of file diff --git a/lib/lib/remote-invoke.d.ts b/lib/lib/remote-invoke.d.ts index bae89fc..7fede48 100644 --- a/lib/lib/remote-invoke.d.ts +++ b/lib/lib/remote-invoke.d.ts @@ -2,10 +2,11 @@ import { IProperties, IEventPayload } from '../interface/entity'; export default class RemoteInvoke { fcClient: any; accountId: string; - constructor(region: string, credentials: any); + constructor(region: string, credentials: any, domainName: any); invoke(props: IProperties, eventPayload: IEventPayload, { invocationType }: { invocationType: any; }): Promise; + requestDomain(url: string, event: string): Promise; getHttpTrigger(serviceName: any, functionName: any): Promise; eventInvoke({ serviceName, functionName, event, qualifier, invocationType }: { serviceName: any; @@ -33,4 +34,6 @@ export default class RemoteInvoke { path: any; body: any; }; + private showLog; + private getJsonEvent; } diff --git a/lib/lib/remote-invoke.js b/lib/lib/remote-invoke.js index 1b9950f..94661bc 100644 --- a/lib/lib/remote-invoke.js +++ b/lib/lib/remote-invoke.js @@ -13,19 +13,25 @@ var __importDefault = (this && this.__importDefault) || function (mod) { }; Object.defineProperty(exports, "__esModule", { value: true }); const lodash_1 = __importDefault(require("lodash")); +const got_1 = __importDefault(require("got")); const client_1 = __importDefault(require("./client")); const event_1 = __importDefault(require("./event")); const logger_1 = __importDefault(require("../common/logger")); class RemoteInvoke { - constructor(region, credentials) { - this.accountId = credentials.AccountID; - this.fcClient = client_1.default.buildFcClient(region, credentials); + constructor(region, credentials, domainName) { + if (!domainName) { + this.accountId = credentials.AccountID; + this.fcClient = client_1.default.buildFcClient(region, credentials); + } } invoke(props, eventPayload, { invocationType }) { return __awaiter(this, void 0, void 0, function* () { const event = yield event_1.default.eventPriority(eventPayload); logger_1.default.debug(`event: ${event}`); - const { region, serviceName, functionName, qualifier, } = props; + const { region, serviceName, functionName, domainName, qualifier, } = props; + if (domainName) { + return this.requestDomain(domainName, event); + } const httpTriggers = yield this.getHttpTrigger(serviceName, functionName); const payload = { event, serviceName, functionName, qualifier }; if (lodash_1.default.isEmpty(httpTriggers)) { @@ -35,17 +41,25 @@ class RemoteInvoke { } else { payload.region = region; - try { - payload.event = event ? JSON.parse(event) : {}; - } - catch (ex) { - logger_1.default.debug(ex); - throw new Error('handler event error. Example: https://github.com/devsapp/fc-remote-invoke/blob/master/example/http.json'); - } + payload.event = this.getJsonEvent(event); yield this.httpInvoke(payload); } }); } + requestDomain(url, event) { + return __awaiter(this, void 0, void 0, function* () { + const payload = this.getJsonEvent(event); + if (lodash_1.default.isEmpty(payload.headers)) { + payload.headers = {}; + } + payload.headers['X-Fc-Log-Type'] = 'Tail'; + const { body, headers } = yield got_1.default(url, payload); + this.showLog(headers['x-fc-log-result']); + logger_1.default.log('\nFC Invoke Result:', 'green'); + console.log(body); + logger_1.default.log('\n'); + }); + } getHttpTrigger(serviceName, functionName) { return __awaiter(this, void 0, void 0, function* () { const { data } = yield this.fcClient.listTriggers(serviceName, functionName); @@ -67,16 +81,10 @@ class RemoteInvoke { 'X-Fc-Log-Type': 'Tail', 'X-Fc-Invocation-Type': invocationType }, qualifier); - const log = rs.headers['x-fc-log-result']; - if (log) { - logger_1.default.log('========= FC invoke Logs begin =========', 'yellow'); - const decodedLog = Buffer.from(log, 'base64'); - logger_1.default.log(decodedLog.toString()); - logger_1.default.log('========= FC invoke Logs end =========', 'yellow'); - logger_1.default.log('\nFC Invoke Result:', 'green'); - console.log(rs.data); - console.log('\n'); - } + this.showLog(rs.headers['x-fc-log-result']); + logger_1.default.log('\nFC Invoke Result:', 'green'); + console.log(rs.data); + console.log('\n'); } else { const { headers } = yield this.fcClient.invokeFunction(serviceName, functionName, event, { @@ -137,13 +145,7 @@ class RemoteInvoke { } logger_1.default.debug(`end invoke.`); if (resp) { - const log = resp.headers['x-fc-log-result']; - if (log) { - logger_1.default.log('\n========= FC invoke Logs begin =========', 'yellow'); - const decodedLog = Buffer.from(log, 'base64'); - logger_1.default.log(decodedLog.toString()); - logger_1.default.log('========= FC invoke Logs end =========', 'yellow'); - } + this.showLog(resp.headers['x-fc-log-result']); logger_1.default.log('\nFC Invoke Result:', 'green'); console.log(resp.data); console.log('\n'); @@ -184,6 +186,23 @@ class RemoteInvoke { body: postBody }; } + showLog(log) { + if (log) { + logger_1.default.log('========= FC invoke Logs begin =========', 'yellow'); + const decodedLog = Buffer.from(log, 'base64'); + logger_1.default.log(decodedLog.toString()); + logger_1.default.log('========= FC invoke Logs end =========', 'yellow'); + } + } + getJsonEvent(event) { + try { + return event ? JSON.parse(event) : {}; + } + catch (ex) { + logger_1.default.debug(ex); + throw new Error('handler event error. Example: https://github.com/devsapp/fc-remote-invoke/blob/master/example/http.json'); + } + } } exports.default = RemoteInvoke; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVtb3RlLWludm9rZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy9saWIvcmVtb3RlLWludm9rZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7OztBQUFBLG9EQUF1QjtBQUN2QixzREFBOEI7QUFFOUIsb0RBQTRCO0FBQzVCLDhEQUFzQztBQUV0QyxNQUFxQixZQUFZO0lBSS9CLFlBQVksTUFBYyxFQUFFLFdBQVc7UUFDckMsSUFBSSxDQUFDLFNBQVMsR0FBRyxXQUFXLENBQUMsU0FBUyxDQUFDO1FBQ3ZDLElBQUksQ0FBQyxRQUFRLEdBQUcsZ0JBQU0sQ0FBQyxhQUFhLENBQUMsTUFBTSxFQUFF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0FBQyxFQUFFO1lBQzdCLE9BQU8sQ0FBQyxlQUFlLENBQUMsR0FBRyxNQUFNLENBQUM7U0FDbkM7UUFFRCxPQUFPO1lBQ0wsT0FBTztZQUNQLE9BQU87WUFDUCxNQUFNO1lBQ04sSUFBSSxFQUFFLENBQUM7WUFDUCxJQUFJLEVBQUUsUUFBUTtTQUNmLENBQUE7SUFDSCxDQUFDO0lBRU8sT0FBTyxDQUFDLEdBQUc7UUFDakIsSUFBSSxHQUFHLEVBQUU7WUFDUCxnQkFBTSxDQUFDLEdBQUcsQ0FBQywwQ0FBMEMsRUFBRSxRQUFRLENBQUMsQ0FBQztZQUNqRSxNQUFNLFVBQVUsR0FBRyxNQUFNLENBQUMsSUFBSSxDQUFDLEdBQUcsRUFBRSxRQUFRLENBQUMsQ0FBQztZQUM5QyxnQkFBTSxDQUFDLEdBQUcsQ0FBQyxVQUFVLENBQUMsUUFBUSxFQUFFLENBQUMsQ0FBQztZQUNsQyxnQkFBTSxDQUFDLEdBQUcsQ0FBQyx3Q0FBd0MsRUFBRSxRQUFRLENBQUMsQ0FBQztTQUNoRTtJQUNILENBQUM7SUFFTyxZQUFZLENBQUMsS0FBYTtRQUNoQyxJQUFJO1lBQ0YsT0FBTyxLQUFLLENBQUMsQ0FBQyxDQUFDLElBQUksQ0FBQyxLQUFLLENBQUMsS0FBSyxDQUFDLENBQUMsQ0FBQyxDQUFDLEVBQUUsQ0FBQztTQUN2QztRQUFDLE9BQU8sRUFBRSxFQUFFO1lBQ1gsZ0JBQU0sQ0FBQyxLQUFLLENBQUMsRUFBRSxDQUFDLENBQUM7WUFDakIsTUFBTSxJQUFJLEtBQUssQ0FBQyx5R0FBeUcsQ0FBQyxDQUFDO1NBQzVIO0lBQ0gsQ0FBQztDQUNGO0FBek1ELCtCQXlNQyJ9 \ No newline at end of file diff --git a/package.json b/package.json index 50d1b49..26cb28b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "fc-remote-invoke", - "version": "0.0.11", + "version": "0.0.12", "description": "This is a component demo for Serverless Devs Tool ", "keywords": [ "Serverless", diff --git a/publish.yaml b/publish.yaml index d412d08..5af48a6 100644 --- a/publish.yaml +++ b/publish.yaml @@ -2,7 +2,7 @@ Type: Component Name: fc-remote-invoke Provider: - 其它 -Version: 0.0.11 +Version: 0.0.12 Description: 初始化component模板 HomePage: https://www.serverless-devs.com Tags: #标签详情 diff --git a/src/index.ts b/src/index.ts index 623935c..c929644 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import _ from 'lodash'; import * as core from '@serverless-devs/core'; import logger from './common/logger'; import HELP from './common/help'; -import { InputProps, ICredentials, isProperties, IProperties } from './interface/entity'; +import { InputProps, isProperties, IProperties } from './interface/entity'; // import StdoutFormatter from './common/stdout-formatter'; import RemoteInvoke from './lib/remote-invoke';