@faasjs/func 0.0.2-beta.393 → 0.0.2-beta.396

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -16,7 +16,7 @@ FaasJS's function module.
16
16
 
17
17
  - [Func](classes/Func.md)
18
18
 
19
- ### Type aliases
19
+ ### Type Aliases
20
20
 
21
21
  - [Config](#config)
22
22
  - [DeployData](#deploydata)
@@ -36,7 +36,7 @@ FaasJS's function module.
36
36
  - [useFunc](#usefunc)
37
37
  - [usePlugin](#useplugin)
38
38
 
39
- ## Type aliases
39
+ ## Type Aliases
40
40
 
41
41
  ### Config
42
42
 
@@ -239,10 +239,10 @@ ___
239
239
  | Name | Type |
240
240
  | :------ | :------ |
241
241
  | `name` | `string` |
242
- | `type` | `string` |
243
242
  | `onDeploy?` | (`data`: [`DeployData`](#deploydata), `next`: [`Next`](#next)) => `void` \| `Promise`<`void`\> |
244
- | `onInvoke?` | (`data`: [`InvokeData`](#invokedata)<`any`, `any`, `any`\>, `next`: [`Next`](#next)) => `void` \| `Promise`<`void`\> |
243
+ | `onInvoke?` | (`data`: [`InvokeData`](#invokedata), `next`: [`Next`](#next)) => `void` \| `Promise`<`void`\> |
245
244
  | `onMount?` | (`data`: [`MountData`](#mountdata), `next`: [`Next`](#next)) => `void` \| `Promise`<`void`\> |
245
+ | `type` | `string` |
246
246
 
247
247
  ___
248
248
 
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ "use strict";
1
2
  var __defProp = Object.defineProperty;
2
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -60,10 +61,9 @@ var RunHandler = class {
60
61
  var startedAt = Date.now();
61
62
  var Func = class {
62
63
  constructor(config) {
63
- var _a;
64
64
  this.logger = new import_logger.Logger("Func");
65
65
  this.handler = config.handler;
66
- this.plugins = (_a = config.plugins) != null ? _a : [];
66
+ this.plugins = config.plugins || [];
67
67
  this.plugins.push(new RunHandler());
68
68
  this.config = {
69
69
  providers: /* @__PURE__ */ Object.create(null),
package/dist/index.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ "use strict";
2
+
1
3
  // src/index.ts
2
4
  import { Logger } from "@faasjs/logger";
3
5
 
@@ -35,10 +37,9 @@ var RunHandler = class {
35
37
  var startedAt = Date.now();
36
38
  var Func = class {
37
39
  constructor(config) {
38
- var _a;
39
40
  this.logger = new Logger("Func");
40
41
  this.handler = config.handler;
41
- this.plugins = (_a = config.plugins) != null ? _a : [];
42
+ this.plugins = config.plugins || [];
42
43
  this.plugins.push(new RunHandler());
43
44
  this.config = {
44
45
  providers: /* @__PURE__ */ Object.create(null),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@faasjs/func",
3
- "version": "0.0.2-beta.393",
3
+ "version": "0.0.2-beta.396",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,8 +22,8 @@
22
22
  "dist"
23
23
  ],
24
24
  "peerDependencies": {
25
- "@faasjs/deep_merge": "^0.0.2-beta.393",
26
- "@faasjs/logger": "^0.0.2-beta.393"
25
+ "@faasjs/deep_merge": "^0.0.2-beta.396",
26
+ "@faasjs/logger": "^0.0.2-beta.396"
27
27
  },
28
28
  "devDependencies": {
29
29
  "tsup": "*",