@forge/bundler 4.4.0-next.3 → 4.4.0-next.5
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/CHANGELOG.md +19 -0
- package/out/stubs/wrapper.js +10 -5
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,24 @@
|
|
|
1
1
|
# @forge/bundler
|
|
2
2
|
|
|
3
|
+
## 4.4.0-next.5
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- addbda1: Fix how user code error are being reported by Runtime v2
|
|
8
|
+
- Updated dependencies [addbda1]
|
|
9
|
+
- @forge/api@2.11.0-next.3
|
|
10
|
+
|
|
11
|
+
## 4.4.0-next.4
|
|
12
|
+
|
|
13
|
+
### Minor Changes
|
|
14
|
+
|
|
15
|
+
- e25c75e8: Update Node runtime response payload
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- Updated dependencies [e25c75e8]
|
|
20
|
+
- @forge/runtime@4.1.0-next.1
|
|
21
|
+
|
|
3
22
|
## 4.4.0-next.3
|
|
4
23
|
|
|
5
24
|
### Patch Changes
|
package/out/stubs/wrapper.js
CHANGED
|
@@ -113,6 +113,7 @@ const adapter = (name) => {
|
|
|
113
113
|
const result = await bundled[name](event, context);
|
|
114
114
|
emitSuccessfulFooterEvent();
|
|
115
115
|
return {
|
|
116
|
+
success: true,
|
|
116
117
|
body: result,
|
|
117
118
|
metrics: []
|
|
118
119
|
};
|
|
@@ -120,12 +121,16 @@ const adapter = (name) => {
|
|
|
120
121
|
catch (err) {
|
|
121
122
|
emitErrorEvent(err);
|
|
122
123
|
emitFailedFooterEvent();
|
|
124
|
+
const errorName = (0, api_1.isForgePlatformError)(err) ? err.name : api_1.FUNCTION_ERR;
|
|
123
125
|
return {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
126
|
+
success: false,
|
|
127
|
+
error: {
|
|
128
|
+
errorMessage: err.message,
|
|
129
|
+
errorType: errorName,
|
|
130
|
+
isHostedCodeError: (0, api_1.isHostedCodeError)(errorName),
|
|
131
|
+
stack: (err.stack || '').split('\n'),
|
|
132
|
+
serviceKey: err.serviceKey
|
|
133
|
+
},
|
|
129
134
|
metrics: []
|
|
130
135
|
};
|
|
131
136
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/bundler",
|
|
3
|
-
"version": "4.4.0-next.
|
|
3
|
+
"version": "4.4.0-next.5",
|
|
4
4
|
"description": "Default bundler for Forge apps",
|
|
5
5
|
"license": "UNLICENSED",
|
|
6
6
|
"author": "Atlassian",
|
|
@@ -18,11 +18,11 @@
|
|
|
18
18
|
"@babel/plugin-proposal-optional-chaining": "^7.16.7",
|
|
19
19
|
"@babel/plugin-transform-react-jsx": "^7.16.7",
|
|
20
20
|
"@babel/preset-typescript": "^7.16.7",
|
|
21
|
-
"@forge/api": "2.11.0-next.
|
|
21
|
+
"@forge/api": "2.11.0-next.3",
|
|
22
22
|
"@forge/babel-plugin-transform-ui": "1.1.0",
|
|
23
23
|
"@forge/cli-shared": "3.5.1",
|
|
24
24
|
"@forge/lint": "3.2.14-next.0",
|
|
25
|
-
"@forge/runtime": "4.0
|
|
25
|
+
"@forge/runtime": "4.1.0-next.1",
|
|
26
26
|
"@forge/util": "1.2.0",
|
|
27
27
|
"assert": "^1.1.1",
|
|
28
28
|
"babel-loader": "^8.2.3",
|