@midwayjs/fc-starter 4.0.0-beta.7 → 4.0.0-beta.8

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/dist/index.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { AbstractBootstrapStarter } from '@midwayjs/faas';
3
2
  import { InitializeContext } from './interface';
4
3
  export * from './mock';
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  interface SingleOSSEvent {
3
2
  eventName: string;
4
3
  eventSource: string;
package/dist/mock.d.ts CHANGED
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  export declare function mockContext(): {
3
2
  requestId: string;
4
3
  credentials: {
package/dist/mock.js CHANGED
@@ -1,6 +1,12 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.mockTimerEvent = exports.mockTableStoreEvent = exports.mockSLSEvent = exports.mockOSSEvent = exports.mockMNSEvent = exports.mockCDNEvent = exports.mockContext = void 0;
3
+ exports.mockContext = mockContext;
4
+ exports.mockCDNEvent = mockCDNEvent;
5
+ exports.mockMNSEvent = mockMNSEvent;
6
+ exports.mockOSSEvent = mockOSSEvent;
7
+ exports.mockSLSEvent = mockSLSEvent;
8
+ exports.mockTableStoreEvent = mockTableStoreEvent;
9
+ exports.mockTimerEvent = mockTimerEvent;
4
10
  function mockContext() {
5
11
  return {
6
12
  requestId: 'b1c5100f-819d-c421-3a5e-7782a27d8a33',
@@ -29,7 +35,6 @@ function mockContext() {
29
35
  logger: console,
30
36
  };
31
37
  }
32
- exports.mockContext = mockContext;
33
38
  function mockCDNEvent() {
34
39
  return {
35
40
  events: [
@@ -57,7 +62,6 @@ function mockCDNEvent() {
57
62
  ],
58
63
  };
59
64
  }
60
- exports.mockCDNEvent = mockCDNEvent;
61
65
  function mockMNSEvent() {
62
66
  return {
63
67
  Context: 'user custom info',
@@ -71,7 +75,6 @@ function mockMNSEvent() {
71
75
  MessageId: '2F5B3C281B283D4EAC694B7425288675',
72
76
  };
73
77
  }
74
- exports.mockMNSEvent = mockMNSEvent;
75
78
  function mockOSSEvent() {
76
79
  return {
77
80
  events: [
@@ -110,7 +113,6 @@ function mockOSSEvent() {
110
113
  ],
111
114
  };
112
115
  }
113
- exports.mockOSSEvent = mockOSSEvent;
114
116
  function mockSLSEvent() {
115
117
  return {
116
118
  parameter: {},
@@ -127,7 +129,6 @@ function mockSLSEvent() {
127
129
  cursorTime: 1529486425,
128
130
  };
129
131
  }
130
- exports.mockSLSEvent = mockSLSEvent;
131
132
  function mockTableStoreEvent() {
132
133
  return {
133
134
  Version: 'string',
@@ -155,7 +156,6 @@ function mockTableStoreEvent() {
155
156
  ],
156
157
  };
157
158
  }
158
- exports.mockTableStoreEvent = mockTableStoreEvent;
159
159
  function mockTimerEvent() {
160
160
  return {
161
161
  triggerTime: new Date().toJSON(),
@@ -163,5 +163,4 @@ function mockTimerEvent() {
163
163
  payload: '',
164
164
  };
165
165
  }
166
- exports.mockTimerEvent = mockTimerEvent;
167
166
  //# sourceMappingURL=mock.js.map
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@midwayjs/fc-starter",
3
- "version": "4.0.0-beta.7",
3
+ "version": "4.0.0-beta.8",
4
4
  "main": "dist/index.js",
5
5
  "typings": "index.d.ts",
6
6
  "dependencies": {
7
- "@midwayjs/faas": "^4.0.0-beta.7",
7
+ "@midwayjs/faas": "^4.0.0-beta.8",
8
8
  "raw-body": "2.5.2"
9
9
  },
10
10
  "devDependencies": {
11
- "@midwayjs/core": "^4.0.0-beta.7"
11
+ "@midwayjs/core": "^4.0.0-beta.8"
12
12
  },
13
13
  "engines": {
14
14
  "node": ">=12"
@@ -28,5 +28,5 @@
28
28
  "url": "git@github.com:midwayjs/midway.git"
29
29
  },
30
30
  "license": "MIT",
31
- "gitHead": "6a221788112b4d998b3958e0a275579f42816c59"
31
+ "gitHead": "355e55949fdd132b0bdcb4830222a0a027e92ded"
32
32
  }