@forge/tunnel 0.0.0-experimental-e1cefc4 → 0.0.0-experimental-29a2cc1

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,6 +1,295 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 0.0.0-experimental-e1cefc4
3
+ ## 0.0.0-experimental-29a2cc1
4
+
5
+ ### Minor Changes
6
+
7
+ - 4d1c111: Add keytar to shrinkwrap package list
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [69f42bd]
12
+ - Updated dependencies [e0f6a1c]
13
+ - Updated dependencies [4d1c111]
14
+ - @forge/cli-shared@0.0.0-experimental-29a2cc1
15
+ - @forge/bundler@0.0.0-experimental-29a2cc1
16
+ - @forge/runtime@0.0.0-experimental-29a2cc1
17
+
18
+ ## 1.8.2-next.5
19
+
20
+ ### Patch Changes
21
+
22
+ - @forge/bundler@3.0.9-next.5
23
+
24
+ ## 1.8.2-next.4
25
+
26
+ ### Patch Changes
27
+
28
+ - @forge/cli-shared@2.6.0-next.3
29
+ - @forge/bundler@3.0.9-next.4
30
+
31
+ ## 1.8.2-next.3
32
+
33
+ ### Patch Changes
34
+
35
+ - @forge/cli-shared@2.6.0-next.2
36
+ - @forge/bundler@3.0.9-next.3
37
+
38
+ ## 1.8.2-next.2
39
+
40
+ ### Patch Changes
41
+
42
+ - @forge/cli-shared@2.6.0-next.1
43
+ - @forge/bundler@3.0.9-next.2
44
+
45
+ ## 1.8.2-next.1
46
+
47
+ ### Patch Changes
48
+
49
+ - Updated dependencies [e0f6a1c9]
50
+ - @forge/bundler@3.0.9-next.1
51
+
52
+ ## 1.8.2-next.0
53
+
54
+ ### Patch Changes
55
+
56
+ - Updated dependencies [69f42bdc]
57
+ - @forge/cli-shared@2.6.0-next.0
58
+ - @forge/bundler@3.0.9-next.0
59
+
60
+ ## 1.8.1
61
+
62
+ ### Patch Changes
63
+
64
+ - Updated dependencies [ca42ff8b]
65
+ - Updated dependencies [6c49ac44]
66
+ - Updated dependencies [1baef1d5]
67
+ - Updated dependencies [671a6a63]
68
+ - @forge/runtime@2.2.0
69
+ - @forge/csp@1.11.0
70
+ - @forge/cli-shared@2.5.1
71
+ - @forge/bundler@3.0.8
72
+
73
+ ## 1.8.1-next.4
74
+
75
+ ### Patch Changes
76
+
77
+ - @forge/cli-shared@2.5.1-next.1
78
+ - @forge/bundler@3.0.8-next.2
79
+
80
+ ## 1.8.1-next.3
81
+
82
+ ### Patch Changes
83
+
84
+ - Updated dependencies [6c49ac4]
85
+ - @forge/runtime@2.2.0-next.3
86
+
87
+ ## 1.8.1-next.2
88
+
89
+ ### Patch Changes
90
+
91
+ - Updated dependencies [ca42ff8b]
92
+ - @forge/runtime@2.2.0-next.2
93
+
94
+ ## 1.8.1-next.1
95
+
96
+ ### Patch Changes
97
+
98
+ - Updated dependencies [1baef1d]
99
+ - @forge/runtime@2.2.0-next.1
100
+ - @forge/cli-shared@2.5.1-next.0
101
+ - @forge/bundler@3.0.8-next.1
102
+
103
+ ## 1.8.1-next.0
104
+
105
+ ### Patch Changes
106
+
107
+ - Updated dependencies [671a6a6]
108
+ - @forge/csp@1.11.0-next.0
109
+ - @forge/runtime@2.1.1-next.0
110
+ - @forge/bundler@3.0.8-next.0
111
+
112
+ ## 1.8.0
113
+
114
+ ### Minor Changes
115
+
116
+ - 44def0a: Derive the memory limit of the Isolate based on the Lambda memory available
117
+
118
+ ### Patch Changes
119
+
120
+ - Updated dependencies [44def0a]
121
+ - Updated dependencies [4f86661]
122
+ - Updated dependencies [6d7a574e]
123
+ - @forge/runtime@2.1.0
124
+ - @forge/cli-shared@2.5.0
125
+ - @forge/bundler@3.0.7
126
+
127
+ ## 1.8.0-next.5
128
+
129
+ ### Minor Changes
130
+
131
+ - 44def0a: Derive the memory limit of the Isolate based on the Lambda memory available
132
+
133
+ ### Patch Changes
134
+
135
+ - Updated dependencies [44def0a]
136
+ - @forge/runtime@2.1.0-next.0
137
+
138
+ ## 1.7.4-next.4
139
+
140
+ ### Patch Changes
141
+
142
+ - @forge/bundler@3.0.7-next.4
143
+
144
+ ## 1.7.4-next.3
145
+
146
+ ### Patch Changes
147
+
148
+ - Updated dependencies [4f86661c]
149
+ - @forge/cli-shared@2.5.0-next.3
150
+ - @forge/bundler@3.0.7-next.3
151
+
152
+ ## 1.7.4-next.2
153
+
154
+ ### Patch Changes
155
+
156
+ - @forge/cli-shared@2.5.0-next.2
157
+ - @forge/bundler@3.0.7-next.2
158
+
159
+ ## 1.7.4-next.1
160
+
161
+ ### Patch Changes
162
+
163
+ - @forge/cli-shared@2.5.0-next.1
164
+ - @forge/bundler@3.0.7-next.1
165
+
166
+ ## 1.7.4-next.0
167
+
168
+ ### Patch Changes
169
+
170
+ - Updated dependencies [6d7a574]
171
+ - @forge/cli-shared@2.5.0-next.0
172
+ - @forge/bundler@3.0.7-next.0
173
+
174
+ ## 1.7.3
175
+
176
+ ### Patch Changes
177
+
178
+ - Updated dependencies [1852a98]
179
+ - @forge/runtime@2.0.2
180
+ - @forge/cli-shared@2.4.2
181
+ - @forge/bundler@3.0.6
182
+
183
+ ## 1.7.3-next.2
184
+
185
+ ### Patch Changes
186
+
187
+ - @forge/cli-shared@2.4.2-next.1
188
+ - @forge/bundler@3.0.6-next.1
189
+
190
+ ## 1.7.3-next.1
191
+
192
+ ### Patch Changes
193
+
194
+ - @forge/cli-shared@2.4.2-next.0
195
+ - @forge/bundler@3.0.6-next.0
196
+
197
+ ## 1.7.3-next.0
198
+
199
+ ### Patch Changes
200
+
201
+ - Updated dependencies [1852a988]
202
+ - @forge/runtime@2.0.2-next.0
203
+
204
+ ## 1.7.2
205
+
206
+ ### Patch Changes
207
+
208
+ - Updated dependencies [a471568]
209
+ - @forge/bundler@3.0.5
210
+ - @forge/runtime@2.0.1
211
+
212
+ ## 1.7.2-next.0
213
+
214
+ ### Patch Changes
215
+
216
+ - Updated dependencies [a4715681]
217
+ - @forge/bundler@3.0.5-next.0
218
+ - @forge/runtime@2.0.1-next.0
219
+
220
+ ## 1.7.1
221
+
222
+ ### Patch Changes
223
+
224
+ - Updated dependencies [8a479b4]
225
+ - @forge/runtime@2.0.0
226
+ - @forge/cli-shared@2.4.1
227
+ - @forge/bundler@3.0.4
228
+
229
+ ## 1.7.1-next.8
230
+
231
+ ### Patch Changes
232
+
233
+ - @forge/cli-shared@2.4.1-next.7
234
+ - @forge/bundler@3.0.4-next.7
235
+
236
+ ## 1.7.1-next.7
237
+
238
+ ### Patch Changes
239
+
240
+ - @forge/cli-shared@2.4.1-next.6
241
+ - @forge/bundler@3.0.4-next.6
242
+
243
+ ## 1.7.1-next.6
244
+
245
+ ### Patch Changes
246
+
247
+ - @forge/cli-shared@2.4.1-next.5
248
+ - @forge/bundler@3.0.4-next.5
249
+
250
+ ## 1.7.1-next.5
251
+
252
+ ### Patch Changes
253
+
254
+ - @forge/cli-shared@2.4.1-next.4
255
+ - @forge/bundler@3.0.4-next.4
256
+
257
+ ## 1.7.1-next.4
258
+
259
+ ### Patch Changes
260
+
261
+ - @forge/cli-shared@2.4.1-next.3
262
+ - @forge/bundler@3.0.4-next.3
263
+
264
+ ## 1.7.1-next.3
265
+
266
+ ### Patch Changes
267
+
268
+ - @forge/cli-shared@2.4.1-next.2
269
+ - @forge/bundler@3.0.4-next.2
270
+
271
+ ## 1.7.1-next.2
272
+
273
+ ### Patch Changes
274
+
275
+ - @forge/cli-shared@2.4.1-next.1
276
+ - @forge/bundler@3.0.4-next.1
277
+
278
+ ## 1.7.1-next.1
279
+
280
+ ### Patch Changes
281
+
282
+ - @forge/cli-shared@2.4.1-next.0
283
+ - @forge/bundler@3.0.4-next.0
284
+
285
+ ## 1.7.1-next.0
286
+
287
+ ### Patch Changes
288
+
289
+ - Updated dependencies [8a479b4d]
290
+ - @forge/runtime@2.0.0-next.0
291
+
292
+ ## 1.7.0
4
293
 
5
294
  ### Minor Changes
6
295
 
@@ -9,10 +298,25 @@
9
298
  ### Patch Changes
10
299
 
11
300
  - Updated dependencies [f33aada]
301
+ - Updated dependencies [ad0570d]
12
302
  - Updated dependencies [726ef79]
13
- - @forge/cli-shared@0.0.0-experimental-e1cefc4
14
- - @forge/bundler@0.0.0-experimental-e1cefc4
15
- - @forge/runtime@0.0.0-experimental-e1cefc4
303
+ - @forge/cli-shared@2.4.0
304
+ - @forge/runtime@1.17.0
305
+ - @forge/bundler@3.0.3
306
+
307
+ ## 1.7.0-next.9
308
+
309
+ ### Patch Changes
310
+
311
+ - Updated dependencies [ad0570d2]
312
+ - @forge/runtime@1.17.0-next.0
313
+
314
+ ## 1.7.0-next.8
315
+
316
+ ### Patch Changes
317
+
318
+ - @forge/cli-shared@2.4.0-next.8
319
+ - @forge/bundler@3.0.3-next.8
16
320
 
17
321
  ## 1.7.0-next.7
18
322
 
@@ -12,6 +12,7 @@ export interface FsInteractor {
12
12
  mkdir: (path: string, options?: MakeDirectoryOptions) => Promise<void>;
13
13
  }
14
14
  export declare const INVOCATION_TIMEOUT = 10;
15
+ export declare const MEMORY_LIMIT = 256;
15
16
  export declare class LocalFunctionHost implements FunctionChangeWatcher {
16
17
  private readonly configFile;
17
18
  private readonly logger;
@@ -1 +1 @@
1
- {"version":3,"file":"function-change-watcher.d.ts","sourceRoot":"","sources":["../../../../src/tunnelling/command/interactors/function-change-watcher.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAG1C,OAAO,EAAE,UAAU,EAA8B,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AAC1G,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAML,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxE;AASD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AAErC,qBAAa,iBAAkB,YAAW,qBAAqB;IAI3D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAN/B,OAAO,CAAC,YAAY,CAA8C;gBAG/C,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,eAAe,EACzB,YAAY,EAAE,YAAY;YAG/B,mBAAmB;IAsBpB,aAAa,CAAC,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IA8CxD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,OAAO,CAAC,YAAY,CAElB;YAEY,8BAA8B;YAe9B,mBAAmB;CAqBlC"}
1
+ {"version":3,"file":"function-change-watcher.d.ts","sourceRoot":"","sources":["../../../../src/tunnelling/command/interactors/function-change-watcher.ts"],"names":[],"mappings":";AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAC;AAG1C,OAAO,EAAE,UAAU,EAA8B,MAAM,EAAyB,MAAM,mBAAmB,CAAC;AAC1G,OAAO,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,EAML,eAAe,EAChB,MAAM,gBAAgB,CAAC;AAIxB,MAAM,WAAW,qBAAqB;IACpC,aAAa,CAAC,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACzD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,YAAY;IAC3B,SAAS,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACtD,KAAK,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,oBAAoB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACxE;AASD,eAAO,MAAM,kBAAkB,KAAK,CAAC;AACrC,eAAO,MAAM,YAAY,MAAM,CAAC;AAEhC,qBAAa,iBAAkB,YAAW,qBAAqB;IAI3D,OAAO,CAAC,QAAQ,CAAC,UAAU;IAC3B,OAAO,CAAC,QAAQ,CAAC,MAAM;IACvB,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,YAAY;IAN/B,OAAO,CAAC,YAAY,CAA8C;gBAG/C,UAAU,EAAE,UAAU,EACtB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,eAAe,EACzB,YAAY,EAAE,YAAY;YAG/B,mBAAmB;IAuBpB,aAAa,CAAC,WAAW,EAAE,aAAa,GAAG,OAAO,CAAC,IAAI,CAAC;IA8CxD,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAI1C,OAAO,CAAC,YAAY,CAElB;YAEY,8BAA8B;YAgB9B,mBAAmB;CAqBlC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalFunctionHost = exports.INVOCATION_TIMEOUT = void 0;
3
+ exports.LocalFunctionHost = exports.MEMORY_LIMIT = exports.INVOCATION_TIMEOUT = void 0;
4
4
  const tslib_1 = require("tslib");
5
5
  const path_1 = require("path");
6
6
  const tmp_1 = tslib_1.__importDefault(require("tmp"));
@@ -8,6 +8,7 @@ const cli_shared_1 = require("@forge/cli-shared");
8
8
  const runtime_1 = require("@forge/runtime");
9
9
  const util_1 = require("../../util");
10
10
  exports.INVOCATION_TIMEOUT = 10;
11
+ exports.MEMORY_LIMIT = 256;
11
12
  class LocalFunctionHost {
12
13
  constructor(configFile, logger, snapshot, fsInteractor) {
13
14
  this.configFile = configFile;
@@ -22,7 +23,7 @@ class LocalFunctionHost {
22
23
  async generateBundleFiles(bundle, withSnapshot) {
23
24
  await this.fsInteractor.mkdir(path_1.dirname(bundle.bundleFilePath), { recursive: true });
24
25
  if (withSnapshot) {
25
- const snapshotOutput = await this.snapshot(Buffer.from(bundle.bundleFileContent), bundle.bundleFilePath, bundle.bundleFileSourceMap ? Buffer.from(bundle.bundleFileSourceMap) : undefined);
26
+ const snapshotOutput = await this.snapshot({ isolateMemory: exports.MEMORY_LIMIT }, Buffer.from(bundle.bundleFileContent), bundle.bundleFilePath, bundle.bundleFileSourceMap ? Buffer.from(bundle.bundleFileSourceMap) : undefined);
26
27
  await this.fsInteractor.writeFile(bundle.bundleFilePath + '.snapshot', Buffer.from(snapshotOutput.buffer));
27
28
  if (snapshotOutput.logs.length > 0) {
28
29
  this.snapshotLogs.push(snapshotOutput.logs);
@@ -86,7 +87,8 @@ class LocalFunctionHost {
86
87
  appPath: srcPath,
87
88
  modName: mod,
88
89
  handler: func,
89
- timeout: exports.INVOCATION_TIMEOUT
90
+ timeout: exports.INVOCATION_TIMEOUT,
91
+ isolateMemory: exports.MEMORY_LIMIT
90
92
  });
91
93
  }
92
94
  async initializeSandboxes(srcPath) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@forge/tunnel",
3
- "version": "0.0.0-experimental-e1cefc4",
3
+ "version": "0.0.0-experimental-29a2cc1",
4
4
  "description": "Tunnel functionality for Forge CLI",
5
5
  "author": "Atlassian",
6
6
  "license": "UNLICENSED",
@@ -16,11 +16,11 @@
16
16
  "postbuild": "chmod +x out/*.js"
17
17
  },
18
18
  "dependencies": {
19
- "@forge/bundler": "0.0.0-experimental-e1cefc4",
20
- "@forge/cli-shared": "0.0.0-experimental-e1cefc4",
21
- "@forge/csp": "^1.10.0",
19
+ "@forge/bundler": "0.0.0-experimental-29a2cc1",
20
+ "@forge/cli-shared": "0.0.0-experimental-29a2cc1",
21
+ "@forge/csp": "^1.11.0",
22
22
  "@forge/isolated-vm": "3.3.10",
23
- "@forge/runtime": "0.0.0-experimental-e1cefc4",
23
+ "@forge/runtime": "0.0.0-experimental-29a2cc1",
24
24
  "express": "^4.17.1",
25
25
  "express-mung": "^0.5.1",
26
26
  "http-proxy-middleware": "^1.0.6",
@@ -31,7 +31,7 @@
31
31
  "uuid": "^3.4.0"
32
32
  },
33
33
  "devDependencies": {
34
- "@forge/manifest": "^0.0.0-experimental-e1cefc4",
34
+ "@forge/manifest": "^0.0.0-experimental-29a2cc1",
35
35
  "@types/express": "^4.17.2",
36
36
  "@types/express-mung": "^0.5.2",
37
37
  "@types/jest": "^26.0.0",
@@ -44,6 +44,6 @@
44
44
  "supertest": "^6.1.3"
45
45
  },
46
46
  "optionalDependencies": {
47
- "keytar": "^7.0.0"
47
+ "keytar": "^7.9.0"
48
48
  }
49
49
  }