@forge/bundler 4.6.1-next.0 → 4.6.1-next.10

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 CHANGED
@@ -1,5 +1,83 @@
1
1
  # @forge/bundler
2
2
 
3
+ ## 4.6.1-next.10
4
+
5
+ ### Patch Changes
6
+
7
+ - Updated dependencies [0d36e724]
8
+ - @forge/cli-shared@3.8.0-next.5
9
+ - @forge/lint@3.2.17-next.5
10
+
11
+ ## 4.6.1-next.9
12
+
13
+ ### Patch Changes
14
+
15
+ - Updated dependencies [71002871]
16
+ - @forge/util@1.2.2-next.0
17
+ - @forge/cli-shared@3.8.0-next.4
18
+ - @forge/runtime@4.3.1-next.1
19
+ - @forge/lint@3.2.17-next.4
20
+
21
+ ## 4.6.1-next.8
22
+
23
+ ### Patch Changes
24
+
25
+ - @forge/cli-shared@3.8.0-next.3
26
+ - @forge/lint@3.2.17-next.3
27
+
28
+ ## 4.6.1-next.7
29
+
30
+ ### Patch Changes
31
+
32
+ - Updated dependencies [4acdb01c]
33
+ - Updated dependencies [0195732c]
34
+ - @forge/api@2.13.0-next.1
35
+
36
+ ## 4.6.1-next.6
37
+
38
+ ### Patch Changes
39
+
40
+ - Updated dependencies [6f454d7b]
41
+ - @forge/runtime@4.3.1-next.0
42
+
43
+ ## 4.6.1-next.5
44
+
45
+ ### Patch Changes
46
+
47
+ - d9ebc65d: Bumping dependencies via Renovate:
48
+
49
+ - @types/readable-stream
50
+
51
+ ## 4.6.1-next.4
52
+
53
+ ### Patch Changes
54
+
55
+ - 47a05cdc: Fix tunnel not logging errors when using node runtime
56
+
57
+ ## 4.6.1-next.3
58
+
59
+ ### Patch Changes
60
+
61
+ - Updated dependencies [081aaa9e]
62
+ - @forge/cli-shared@3.8.0-next.2
63
+ - @forge/lint@3.2.17-next.2
64
+
65
+ ## 4.6.1-next.2
66
+
67
+ ### Patch Changes
68
+
69
+ - Updated dependencies [85772008]
70
+ - @forge/api@2.13.0-next.0
71
+
72
+ ## 4.6.1-next.1
73
+
74
+ ### Patch Changes
75
+
76
+ - Updated dependencies [db2615bd]
77
+ - Updated dependencies [dc0e1983]
78
+ - @forge/cli-shared@3.8.0-next.1
79
+ - @forge/lint@3.2.17-next.1
80
+
3
81
  ## 4.6.1-next.0
4
82
 
5
83
  ### Patch Changes
@@ -1 +1 @@
1
- {"version":3,"file":"log-events.d.ts","sourceRoot":"","sources":["../../src/stubs/log-events.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,wBAAwB,gBAAgB,CAAC;AACtD,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C,wBAAgB,cAAc,IAAI,MAAM,CAavC;AA4CD,aAAK,SAAS;IACZ,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AA8BD,wBAAgB,eAAe,CAAC,WAAW,EAAE,GAAG;;;;EAE/C;AAED,wBAAgB,yBAAyB;;;;EAExC;AAED,wBAAgB,qBAAqB;;;;EAEpC;AAED,wBAAgB,cAAc,CAAC,YAAY,EAAE,GAAG;;;;EAE/C"}
1
+ {"version":3,"file":"log-events.d.ts","sourceRoot":"","sources":["../../src/stubs/log-events.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,wBAAwB,gBAAgB,CAAC;AACtD,eAAO,MAAM,qBAAqB,SAAS,CAAC;AAE5C,wBAAgB,cAAc,IAAI,MAAM,CAavC;AA4CD,aAAK,SAAS;IACZ,MAAM,WAAW;IACjB,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ;AA0CD,wBAAgB,eAAe,CAAC,WAAW,EAAE,GAAG;;;;EAE/C;AAED,wBAAgB,yBAAyB;;;;EAExC;AAED,wBAAgB,qBAAqB;;;;EAEpC;AAED,wBAAgB,cAAc,CAAC,YAAY,EAAE,GAAG;;;;EAG/C"}
@@ -4,6 +4,7 @@ exports.emitErrorEvent = exports.emitFailedFooterEvent = exports.emitSuccessfulF
4
4
  const api_1 = require("@forge/api");
5
5
  const bunyan_1 = require("bunyan");
6
6
  const console_1 = require("./console");
7
+ const runtime_1 = require("@forge/runtime");
7
8
  exports.AWS_EXECUTION_ENV_PREFIX = 'AWS_Lambda_';
8
9
  exports.RUNTIME_NAME_FALLBACK = 'node';
9
10
  function getRuntimeName() {
@@ -81,6 +82,16 @@ function simpleBunyanLogEvent(eventType, eventLevel, data) {
81
82
  process.stdout.write(JSON.stringify(logEvent) + '\n');
82
83
  return logEvent;
83
84
  }
85
+ function logErrorToTunnelProcess(caughtObject) {
86
+ if (global.__forge_tunnel__) {
87
+ const logEventData = {
88
+ invocationId: (0, api_1.getRuntime)().lambdaContext.awsRequestId,
89
+ logLevel: runtime_1.LogLevel.ERROR,
90
+ logArguments: [caughtObject]
91
+ };
92
+ process.stdout.write(JSON.stringify((0, console_1.starSerializer)(logEventData)) + '\n');
93
+ }
94
+ }
84
95
  function emitHeaderEvent(lambdaEvent) {
85
96
  return simpleBunyanLogEvent(EventType.HEADER, bunyan_1.levelFromName.info, invocationHeaderLogs(lambdaEvent));
86
97
  }
@@ -94,6 +105,7 @@ function emitFailedFooterEvent() {
94
105
  }
95
106
  exports.emitFailedFooterEvent = emitFailedFooterEvent;
96
107
  function emitErrorEvent(caughtObject) {
108
+ logErrorToTunnelProcess(caughtObject);
97
109
  return simpleBunyanLogEvent(EventType.LOG, bunyan_1.levelFromName.error, caughtObject);
98
110
  }
99
111
  exports.emitErrorEvent = emitErrorEvent;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/bundler",
3
- "version": "4.6.1-next.0",
3
+ "version": "4.6.1-next.10",
4
4
  "description": "Default bundler for Forge apps",
5
5
  "license": "UNLICENSED",
6
6
  "author": "Atlassian",
@@ -18,12 +18,12 @@
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.12.0",
21
+ "@forge/api": "2.13.0-next.1",
22
22
  "@forge/babel-plugin-transform-ui": "1.1.1",
23
- "@forge/cli-shared": "3.7.1-next.0",
24
- "@forge/lint": "3.2.17-next.0",
25
- "@forge/runtime": "4.3.0",
26
- "@forge/util": "1.2.1",
23
+ "@forge/cli-shared": "3.8.0-next.5",
24
+ "@forge/lint": "3.2.17-next.5",
25
+ "@forge/runtime": "4.3.1-next.1",
26
+ "@forge/util": "1.2.2-next.0",
27
27
  "assert": "^1.1.1",
28
28
  "babel-loader": "^8.2.3",
29
29
  "browserify-zlib": "^0.2.0",
@@ -58,7 +58,7 @@
58
58
  "@types/jest": "^29.1.2",
59
59
  "@types/node": "^12.12.63",
60
60
  "@types/react": "^17.0.53",
61
- "@types/readable-stream": "^2.3.5",
61
+ "@types/readable-stream": "^2.3.15",
62
62
  "@types/webpack-bundle-analyzer": "^4.6.0",
63
63
  "@typescript-eslint/eslint-plugin": "^5.40.0",
64
64
  "@typescript-eslint/parser": "^5.40.0",