refactor: v0.0.14

This commit is contained in:
wss-git 2021-08-03 10:33:18 +08:00
parent ea689b8623
commit 653a70dfc0
15 changed files with 152 additions and 80 deletions

View File

@ -1 +1 @@
window.searchData = {"kinds":{"128":"Class","512":"Constructor","2048":"Method"},"rows":[{"id":0,"kind":128,"name":"default","url":"classes/default.html","classes":"tsd-kind-class"},{"id":1,"kind":512,"name":"constructor","url":"classes/default.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"default"},{"id":2,"kind":2048,"name":"report","url":"classes/default.html#report","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":3,"kind":2048,"name":"handlerInputs","url":"classes/default.html#handlerinputs","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":4,"kind":2048,"name":"invoke","url":"classes/default.html#invoke","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,0.87]],["parent/0",[]],["name/1",[1,13.863]],["parent/1",[0,0.079]],["name/2",[2,13.863]],["parent/2",[0,0.079]],["name/3",[3,13.863]],["parent/3",[0,0.079]],["name/4",[4,13.863]],["parent/4",[0,0.079]]],"invertedIndex":[["constructor",{"_index":1,"name":{"1":{}},"parent":{}}],["default",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{}}}],["handlerinputs",{"_index":3,"name":{"3":{}},"parent":{}}],["invoke",{"_index":4,"name":{"4":{}},"parent":{}}],["report",{"_index":2,"name":{"2":{}},"parent":{}}]],"pipeline":[]}}
window.searchData = {"kinds":{"128":"Class","512":"Constructor","2048":"Method"},"rows":[{"id":0,"kind":128,"name":"default","url":"classes/default.html","classes":"tsd-kind-class"},{"id":1,"kind":512,"name":"constructor","url":"classes/default.html#constructor","classes":"tsd-kind-constructor tsd-parent-kind-class","parent":"default"},{"id":2,"kind":2048,"name":"invoke","url":"classes/default.html#invoke","classes":"tsd-kind-method tsd-parent-kind-class","parent":"default"},{"id":3,"kind":2048,"name":"report","url":"classes/default.html#report","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"},{"id":4,"kind":2048,"name":"handlerInputs","url":"classes/default.html#handlerinputs","classes":"tsd-kind-method tsd-parent-kind-class tsd-is-private","parent":"default"}],"index":{"version":"2.3.9","fields":["name","parent"],"fieldVectors":[["name/0",[0,0.87]],["parent/0",[]],["name/1",[1,13.863]],["parent/1",[0,0.079]],["name/2",[2,13.863]],["parent/2",[0,0.079]],["name/3",[3,13.863]],["parent/3",[0,0.079]],["name/4",[4,13.863]],["parent/4",[0,0.079]]],"invertedIndex":[["constructor",{"_index":1,"name":{"1":{}},"parent":{}}],["default",{"_index":0,"name":{"0":{}},"parent":{"1":{},"2":{},"3":{},"4":{}}}],["handlerinputs",{"_index":4,"name":{"4":{}},"parent":{}}],["invoke",{"_index":2,"name":{"2":{}},"parent":{}}],["report",{"_index":3,"name":{"3":{}},"parent":{}}]],"pipeline":[]}}

View File

@ -86,9 +86,9 @@
<section class="tsd-index-section ">
<h3>Methods</h3>
<ul class="tsd-index-list">
<li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#handlerinputs" class="tsd-kind-icon">handler<wbr>Inputs</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="default.html#handlerinputs" class="tsd-kind-icon">handler<wbr>Inputs</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#invoke" class="tsd-kind-icon">invoke</a></li>
<li class="tsd-kind-method tsd-parent-kind-class"><a href="default.html#report" class="tsd-kind-icon">report</a></li>
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><a href="default.html#report" class="tsd-kind-icon">report</a></li>
</ul>
</section>
</div>
@ -113,17 +113,17 @@
</section>
<section class="tsd-panel-group tsd-member-group ">
<h2>Methods</h2>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="handlerinputs" class="tsd-anchor"></a>
<h3>handler<wbr>Inputs</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<h3><span class="tsd-flag ts-flagPrivate">Private</span> handler<wbr>Inputs</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">handler<wbr>Inputs<span class="tsd-signature-symbol">(</span>inputs<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">InputProps</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">any</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/devsapp/fc-remote-invoke/blob/a1934b1/src/index.ts#L17">index.ts:17</a></li>
<li>Defined in <a href="https://github.com/devsapp/fc-remote-invoke/blob/ea689b8/src/index.ts#L46">index.ts:46</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -146,7 +146,7 @@
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/devsapp/fc-remote-invoke/blob/a1934b1/src/index.ts#L93">index.ts:93</a></li>
<li>Defined in <a href="https://github.com/devsapp/fc-remote-invoke/blob/ea689b8/src/index.ts#L16">index.ts:16</a></li>
</ul>
</aside>
<div class="tsd-comment tsd-typography">
@ -164,17 +164,17 @@
</li>
</ul>
</section>
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class">
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a name="report" class="tsd-anchor"></a>
<h3>report</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class">
<h3><span class="tsd-flag ts-flagPrivate">Private</span> report</h3>
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-class tsd-is-private">
<li class="tsd-signature tsd-kind-icon">report<span class="tsd-signature-symbol">(</span>componentName<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, command<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span>, accountID<span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">string</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">Promise</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">&gt;</span></li>
</ul>
<ul class="tsd-descriptions">
<li class="tsd-description">
<aside class="tsd-sources">
<ul>
<li>Defined in <a href="https://github.com/devsapp/fc-remote-invoke/blob/a1934b1/src/index.ts#L10">index.ts:10</a></li>
<li>Defined in <a href="https://github.com/devsapp/fc-remote-invoke/blob/ea689b8/src/index.ts#L39">index.ts:39</a></li>
</ul>
</aside>
<h4 class="tsd-parameters-title">Parameters</h4>
@ -213,13 +213,13 @@
<li class=" tsd-kind-constructor tsd-parent-kind-class">
<a href="default.html#constructor" class="tsd-kind-icon">constructor</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="default.html#handlerinputs" class="tsd-kind-icon">handler<wbr>Inputs</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<a href="default.html#invoke" class="tsd-kind-icon">invoke</a>
</li>
<li class=" tsd-kind-method tsd-parent-kind-class">
<li class=" tsd-kind-method tsd-parent-kind-class tsd-is-private">
<a href="default.html#report" class="tsd-kind-icon">report</a>
</li>
</ul>
@ -239,6 +239,9 @@
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
</ul>
</div>
</div>
</footer>

View File

@ -35,28 +35,30 @@
]
},
{
"id": 9,
"id": 12,
"name": "handlerInputs",
"kind": 2048,
"kindString": "Method",
"flags": {},
"flags": {
"isPrivate": true
},
"sources": [
{
"fileName": "index.ts",
"line": 17,
"character": 21
"line": 46,
"character": 29
}
],
"signatures": [
{
"id": 10,
"id": 13,
"name": "handlerInputs",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 11,
"id": 14,
"name": "inputs",
"kind": 32768,
"kindString": "Parameter",
@ -81,23 +83,21 @@
]
},
{
"id": 12,
"id": 4,
"name": "invoke",
"kind": 2048,
"kindString": "Method",
"flags": {
"isPublic": true
},
"flags": {},
"sources": [
{
"fileName": "index.ts",
"line": 93,
"character": 21
"line": 16,
"character": 14
}
],
"signatures": [
{
"id": 13,
"id": 5,
"name": "invoke",
"kind": 4096,
"kindString": "Call signature",
@ -108,7 +108,7 @@
},
"parameters": [
{
"id": 14,
"id": 6,
"name": "inputs",
"kind": 32768,
"kindString": "Parameter",
@ -134,28 +134,30 @@
]
},
{
"id": 4,
"id": 7,
"name": "report",
"kind": 2048,
"kindString": "Method",
"flags": {},
"flags": {
"isPrivate": true
},
"sources": [
{
"fileName": "index.ts",
"line": 10,
"character": 14
"line": 39,
"character": 22
}
],
"signatures": [
{
"id": 5,
"id": 8,
"name": "report",
"kind": 4096,
"kindString": "Call signature",
"flags": {},
"parameters": [
{
"id": 6,
"id": 9,
"name": "componentName",
"kind": 32768,
"kindString": "Parameter",
@ -166,7 +168,7 @@
}
},
{
"id": 7,
"id": 10,
"name": "command",
"kind": 32768,
"kindString": "Parameter",
@ -177,7 +179,7 @@
}
},
{
"id": 8,
"id": 11,
"name": "accountID",
"kind": 32768,
"kindString": "Parameter",
@ -214,16 +216,16 @@
"title": "Methods",
"kind": 2048,
"children": [
9,
12,
4
4,
7
]
}
],
"sources": [
{
"fileName": "index.ts",
"line": 9,
"line": 10,
"character": 35
}
]

View File

@ -139,6 +139,9 @@
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
</ul>
</div>
</div>
</footer>

View File

@ -97,6 +97,9 @@
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
</ul>
<ul class="tsd-legend">
<li class="tsd-kind-method tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private method</span></li>
</ul>
</div>
</div>
</footer>

View File

@ -7,5 +7,5 @@ services:
props:
region: cn-shenzhen
serviceName: guide
# functionName: guide-hello_world-nodejs12
functionName: hhh
functionName: guide-hello_world-nodejs12
# functionName: hhh

4
lib/index.d.ts vendored
View File

@ -1,11 +1,11 @@
import { InputProps } from './interface/entity';
export default class FcRemoteInvoke {
report(componentName: string, command: string, accountID: string): Promise<void>;
handlerInputs(inputs: InputProps): Promise<any>;
/**
* event
* @param inputs
* @returns
*/
invoke(inputs: InputProps): Promise<any>;
private report;
private handlerInputs;
}

View File

@ -38,7 +38,29 @@ const help_1 = __importDefault(require("./common/help"));
const entity_1 = require("./interface/entity");
// import StdoutFormatter from './common/stdout-formatter';
const remote_invoke_1 = __importDefault(require("./lib/remote-invoke"));
const client_1 = __importDefault(require("./lib/client"));
class FcRemoteInvoke {
/**
* event 函数本地调试
* @param inputs
* @returns
*/
invoke(inputs) {
return __awaiter(this, void 0, void 0, function* () {
const { props, eventPayload, credentials, isHelp, invocationType, } = yield this.handlerInputs(inputs);
yield this.report('fc-remote-invoke', 'invoke', credentials === null || credentials === void 0 ? void 0 : credentials.AccountID);
if (isHelp) {
core.help(help_1.default);
return;
}
let fcClient;
if (!props.domainName) {
fcClient = yield client_1.default.buildFcClient(props.region, credentials);
}
const remoteInvoke = new remote_invoke_1.default(fcClient, credentials.AccountID);
yield remoteInvoke.invoke(props, eventPayload, { invocationType });
});
}
report(componentName, command, accountID) {
return __awaiter(this, void 0, void 0, function* () {
core.reportComponent(componentName, {
@ -107,23 +129,6 @@ class FcRemoteInvoke {
};
});
}
/**
* event 函数本地调试
* @param inputs
* @returns
*/
invoke(inputs) {
return __awaiter(this, void 0, void 0, function* () {
const { props, eventPayload, credentials, isHelp, invocationType, } = yield this.handlerInputs(inputs);
yield this.report('fc-remote-invoke', 'invoke', credentials === null || credentials === void 0 ? void 0 : credentials.AccountID);
if (isHelp) {
core.help(help_1.default);
return;
}
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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsb0RBQXVCO0FBQ3ZCLDREQUE4QztBQUM5Qyw2REFBcUM7QUFDckMseURBQWlDO0FBQ2pDLCtDQUEyRTtBQUMzRSwyREFBMkQ7QUFDM0Qsd0VBQStDO0FBRS9DLE1BQXFCLGNBQWM7SUFDM0IsTUFBTSxDQUFDLGFBQXFCLEVBQUUsT0FBZSxFQUFFLFNBQWlCOztZQUNwRSxJQUFJLENBQUMsZUFBZSxDQUFDLGFBQWEsRUFBRTtnQkFDbEMsT0FBTztnQkFDUCxHQUFHLEVBQUUsU0FBUzthQUNmLENBQUMsQ0FBQztRQUNMLENBQUM7S0FBQTtJQUVLLGFBQWEsQ0FBQyxNQUFrQjs7O1lBQ3BDLHFCQUFxQjtZQUNyQixNQUFNLElBQUksR0FBVyxDQUFDLENBQUEsTUFBTSxhQUFOLE1B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WdCO2dCQUN6QixNQUFNLEVBQUUsUUFBUSxDQUFDLE1BQU0sV0FBSSxNQUFNLENBQUMsS0FBSywwQ0FBRSxNQUFNLENBQUE7Z0JBQy9DLFdBQVcsRUFBRSxRQUFRLENBQUMsY0FBYyxDQUFDLFdBQUksTUFBTSxDQUFDLEtBQUssMENBQUUsV0FBVyxDQUFBO2dCQUNsRSxZQUFZLEVBQUUsUUFBUSxDQUFDLGVBQWUsQ0FBQyxXQUFJLE1BQU0sQ0FBQyxLQUFLLDBDQUFFLFlBQVksQ0FBQTtnQkFDckUsVUFBVSxFQUFFLFVBQVUsV0FBSSxNQUFNLENBQUMsS0FBSywwQ0FBRSxVQUFVLENBQUE7Z0JBQ2xELFNBQVMsRUFBRSxRQUFRLENBQUMsU0FBUyxXQUFJLE1BQU0sQ0FBQyxLQUFLLDBDQUFFLFNBQVMsQ0FBQTthQUN6RCxDQUFDO1lBQ0YsZ0JBQU0sQ0FBQyxLQUFLLENBQUMscUJBQXFCLElBQUksQ0FBQyxTQUFTLENBQUMsS0FBSyxDQUFDLEVBQUUsQ0FBQyxDQUFDO1lBQzNELElBQUksQ0FBQyxxQkFBWSxDQUFDLEtBQUssQ0FBQyxFQUFFO2dCQUN4QixNQUFNLElBQUksS0FBSyxDQUFDLGdGQUFnRixDQUFDLENBQUM7YUFDbkc7WUFFRCxPQUFPO2dCQUNMLEtBQUs7Z0JBQ0wsV0FBVyxFQUFFLE1BQU0sQ0FBQyxXQUFXO2dCQUMvQixZQUFZO2dCQUNaLE1BQU0sRUFBRSxLQUFLO2dCQUNiLGNBQWMsRUFBRSxnQkFBQyxDQUFDLFVBQVUsQ0FBQyxjQUFjLENBQUM7YUFDN0MsQ0FBQzs7S0FDSDtDQUVGO0FBM0dELGlDQTJHQyJ9

3
lib/lib/client.d.ts vendored
View File

@ -1,4 +1,5 @@
import { ICredentials } from '../interface/entity';
export default class Client {
static buildFcClient(region: string, credentials: ICredentials): any;
static buildFcClient(region: string, credentials: ICredentials): Promise<any>;
private static getFcEndpoint;
}

View File

@ -1,19 +1,62 @@
"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
o["default"] = v;
});
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const fc2_1 = __importDefault(require("@alicloud/fc2"));
const core = __importStar(require("@serverless-devs/core"));
class Client {
static buildFcClient(region, credentials) {
return __awaiter(this, void 0, void 0, function* () {
return new fc2_1.default(credentials.AccountID, {
accessKeyID: credentials.AccessKeyID,
accessKeySecret: credentials.AccessKeySecret,
securityToken: credentials.SecurityToken,
region,
endpoint: yield this.getFcEndpoint(),
timeout: 6000000,
});
});
}
static getFcEndpoint() {
return __awaiter(this, void 0, void 0, function* () {
const fcDefault = yield core.loadComponent('devsapp/fc-default');
const fcEndpoint = yield fcDefault.get({ args: 'fc-endpoint' });
if (!fcEndpoint) {
return undefined;
}
const enableFcEndpoint = yield fcDefault.get({ args: 'enable-fc-endpoint' });
return (enableFcEndpoint === true || enableFcEndpoint === 'true') ? fcEndpoint : undefined;
});
}
}
exports.default = Client;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpYi9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7QUFBQSx3REFBK0I7QUFHL0IsTUFBcUIsTUFBTTtJQUN6QixNQUFNLENBQUMsYUFBYSxDQUFDLE1BQWMsRUFBRSxXQUF5QjtRQUM1RCxPQUFPLElBQUksYUFBRSxDQUFDLFdBQVcsQ0FBQyxTQUFTLEVBQUU7WUFDbkMsV0FBVyxFQUFFLFdBQVcsQ0FBQyxXQUFXO1lBQ3BDLGVBQWUsRUFBRSxXQUFXLENBQUMsZUFBZTtZQUM1QyxhQUFhLEVBQUUsV0FBVyxDQUFDLGFBQWE7WUFDeEMsTUFBTTtZQUNOLE9BQU8sRUFBRSxPQUFPO1NBQ2pCLENBQUMsQ0FBQTtJQUNKLENBQUM7Q0FDRjtBQVZELHlCQVVDIn0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2xpZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vc3JjL2xpYi9jbGllbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsd0RBQStCO0FBQy9CLDREQUE4QztBQUc5QyxNQUFxQixNQUFNO0lBQ3pCLE1BQU0sQ0FBTyxhQUFhLENBQUMsTUFBYyxFQUFFLFdBQXlCOztZQUNsRSxPQUFPLElBQUksYUFBRSxDQUFDLFdBQVcsQ0FBQyxTQUFTLEVBQUU7Z0JBQ25DLFdBQVcsRUFBRSxXQUFXLENBQUMsV0FBVztnQkFDcEMsZUFBZSxFQUFFLFdBQVcsQ0FBQyxlQUFlO2dCQUM1QyxhQUFhLEVBQUUsV0FBVyxDQUFDLGFBQWE7Z0JBQ3hDLE1BQU07Z0JBQ04sUUFBUSxFQUFFLE1BQU0sSUFBSSxDQUFDLGFBQWEsRUFBRTtnQkFDcEMsT0FBTyxFQUFFLE9BQU87YUFDakIsQ0FBQyxDQUFBO1FBQ0osQ0FBQztLQUFBO0lBRU8sTUFBTSxDQUFPLGFBQWE7O1lBQ2hDLE1BQU0sU0FBUyxHQUFHLE1BQU0sSUFBSSxDQUFDLGFBQWEsQ0FBQyxvQkFBb0IsQ0FBQyxDQUFDO1lBQ2pFLE1BQU0sVUFBVSxHQUFXLE1BQU0sU0FBUyxDQUFDLEdBQUcsQ0FBQyxFQUFFLElBQUksRUFBRSxhQUFhLEVBQUUsQ0FBQyxDQUFDO1lBQ3hFLElBQUksQ0FBQyxVQUFVLEVBQUU7Z0JBQUUsT0FBTyxTQUFTLENBQUM7YUFBRTtZQUN0QyxNQUFNLGdCQUFnQixHQUFRLE1BQU0sU0FBUyxDQUFDLEdBQUcsQ0FBQyxFQUFFLElBQUksRUFBRSxvQkFBb0IsRUFBRSxDQUFDLENBQUM7WUFDbEYsT0FBTyxDQUFDLGdCQUFnQixLQUFLLElBQUksSUFBSSxnQkFBZ0IsS0FBSyxNQUFNLENBQUMsQ0FBQyxDQUFDLENBQUMsVUFBVSxDQUFDLENBQUMsQ0FBQyxTQUFTLENBQUM7UUFDN0YsQ0FBQztLQUFBO0NBQ0Y7QUFuQkQseUJBbUJDIn0=

View File

@ -2,7 +2,7 @@ import { IProperties, IEventPayload } from '../interface/entity';
export default class RemoteInvoke {
fcClient: any;
accountId: string;
constructor(region: string, credentials: any, domainName: any);
constructor(fcClient: any, accountId: string);
invoke(props: IProperties, eventPayload: IEventPayload, { invocationType }: {
invocationType: any;
}): Promise<void>;

File diff suppressed because one or more lines are too long

View File

@ -16,5 +16,20 @@
"guide/guide-hello_world-nodejs12 async invoke success.\n request id: c30c8868-333e-4bd1-ab33-8ed5ef74873f": "guide/guide-hello_world-nodejs12 async invoke success.\n request id: c30c8868-333e-4bd1-ab33-8ed5ef74873f",
"guide/guide-hello_world-nodejs12 async invoke success.\nrequest id: d4dde5e2-236f-4572-9f15-58adac0d5ed1": "guide/guide-hello_world-nodejs12 async invoke success.\nrequest id: d4dde5e2-236f-4572-9f15-58adac0d5ed1",
"guide/guide-hello_world-nodejs12 async invoke success.\nrequest id: 27872d4f-44aa-4b4c-8deb-3a1295965791\n": "guide/guide-hello_world-nodejs12 async invoke success.\nrequest id: 27872d4f-44aa-4b4c-8deb-3a1295965791\n",
"\nguide/guide-hello_world-nodejs12 async invoke success.\nrequest id: f1798899-985a-4d02-9556-d0882d0d6ccf\n": "\nguide/guide-hello_world-nodejs12 async invoke success.\nrequest id: f1798899-985a-4d02-9556-d0882d0d6ccf\n"
"\nguide/guide-hello_world-nodejs12 async invoke success.\nrequest id: f1798899-985a-4d02-9556-d0882d0d6ccf\n": "\nguide/guide-hello_world-nodejs12 async invoke success.\nrequest id: f1798899-985a-4d02-9556-d0882d0d6ccf\n",
"input args: ": "input args: ",
"command parse: {}": "command parse: {}",
"input props: {\"region\":\"cn-shenzhen\",\"serviceName\":\"guide\",\"functionName\":\"hhh\"}": "input props: {\"region\":\"cn-shenzhen\",\"serviceName\":\"guide\",\"functionName\":\"hhh\"}",
"input args props: {\"region\":\"cn-shenzhen\",\"serviceName\":\"guide\",\"functionName\":\"hhh\"}": "input args props: {\"region\":\"cn-shenzhen\",\"serviceName\":\"guide\",\"functionName\":\"hhh\"}",
"get listTriggers: {\"triggers\":[{\"triggerName\":\"defaultTrigger\",\"description\":\"\",\"triggerId\":\"0c824580-2f4f-4c88-b45c-f953bc71181a\",\"sourceArn\":null,\"triggerType\":\"http\",\"invocationRole\":null,\"qualifier\":null,\"triggerConfig\":{\"methods\":[\"GET\",\"POST\"],\"authType\":\"anonymous\"},\"createdTime\":\"2021-04-02T07:34:07Z\",\"lastModifiedTime\":\"2021-07-16T08:47:37Z\"}]}": "get listTriggers: {\"triggers\":[{\"triggerName\":\"defaultTrigger\",\"description\":\"\",\"triggerId\":\"0c824580-2f4f-4c88-b45c-f953bc71181a\",\"sourceArn\":null,\"triggerType\":\"http\",\"invocationRole\":null,\"qualifier\":null,\"triggerConfig\":{\"methods\":[\"GET\",\"POST\"],\"authType\":\"anonymous\"},\"createdTime\":\"2021-04-02T07:34:07Z\",\"lastModifiedTime\":\"2021-07-16T08:47:37Z\"}]}",
"https://1899690531354629.cn-shenzhen.fc.aliyuncs.com/2016-08-15/proxy/guide/hhh/": "https://1899690531354629.cn-shenzhen.fc.aliyuncs.com/2016-08-15/proxy/guide/hhh/",
"method is GET.": "method is GET.",
"start invoke.": "start invoke.",
"end invoke.": "end invoke.",
"========= FC invoke Logs begin =========": "========= FC invoke Logs begin =========",
"FC Invoke Start RequestId: 56c854f8-b34c-4a2a-a578-64ea26ea022b\r\nload code for handler:index.handler\r\nFC Invoke End RequestId: 56c854f8-b34c-4a2a-a578-64ea26ea022b\r\n\nDuration: 24.77 ms, Billed Duration: 25 ms, Memory Size: 128 MB, Max Memory Used: 49.52 MB": "FC Invoke Start RequestId: 56c854f8-b34c-4a2a-a578-64ea26ea022b\r\nload code for handler:index.handler\r\nFC Invoke End RequestId: 56c854f8-b34c-4a2a-a578-64ea26ea022b\r\n\nDuration: 24.77 ms, Billed Duration: 25 ms, Memory Size: 128 MB, Max Memory Used: 49.52 MB",
"========= FC invoke Logs end =========": "========= FC invoke Logs end =========",
"\nFC Invoke Result:": "\nFC Invoke Result:",
"input args props: {\"region\":\"cn-shenzhen\",\"serviceName\":\"guide\",\"functionName\":\"guide-hello_world-nodejs12\"}": "input args props: {\"region\":\"cn-shenzhen\",\"serviceName\":\"guide\",\"functionName\":\"guide-hello_world-nodejs12\"}",
"FC Invoke Start RequestId: 59635ac4-38ab-48e2-a7fe-c56e435e46ee\r\nload code for handler:index.handler\r\n2021-07-29T01:40:22.922Z 59635ac4-38ab-48e2-a7fe-c56e435e46ee [verbose] \r\nFC Invoke End RequestId: 59635ac4-38ab-48e2-a7fe-c56e435e46ee\r\n\nDuration: 14.06 ms, Billed Duration: 15 ms, Memory Size: 128 MB, Max Memory Used: 49.02 MB": "FC Invoke Start RequestId: 59635ac4-38ab-48e2-a7fe-c56e435e46ee\r\nload code for handler:index.handler\r\n2021-07-29T01:40:22.922Z 59635ac4-38ab-48e2-a7fe-c56e435e46ee [verbose] \r\nFC Invoke End RequestId: 59635ac4-38ab-48e2-a7fe-c56e435e46ee\r\n\nDuration: 14.06 ms, Billed Duration: 15 ms, Memory Size: 128 MB, Max Memory Used: 49.02 MB"
}

View File

@ -1,6 +1,6 @@
{
"name": "fc-remote-invoke",
"version": "0.0.13",
"version": "0.0.14",
"description": "This is a component demo for Serverless Devs Tool ",
"keywords": [
"Serverless",

View File

@ -2,7 +2,7 @@ Type: Component
Name: fc-remote-invoke
Provider:
- 其它
Version: 0.0.13
Version: 0.0.14
Description: 初始化component模板
HomePage: https://www.serverless-devs.com
Tags: #标签详情