@forge/tunnel 0.0.0-experimental-416047f → 0.0.0-experimental-4d15129

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,13 +1,236 @@
1
1
  # @forge/tunnel
2
2
 
3
- ## 0.0.0-experimental-416047f
3
+ ## 0.0.0-experimental-4d15129
4
+
5
+ ### Minor Changes
6
+
7
+ - 189ba71: Add keytar to shrinkwrap package list
8
+
9
+ ### Patch Changes
10
+
11
+ - Updated dependencies [69f42bd]
12
+ - Updated dependencies [e0f6a1c]
13
+ - Updated dependencies [189ba71]
14
+ - @forge/cli-shared@0.0.0-experimental-4d15129
15
+ - @forge/bundler@0.0.0-experimental-4d15129
16
+ - @forge/runtime@0.0.0-experimental-4d15129
17
+
18
+ ## 1.8.2-next.6
19
+
20
+ ### Patch Changes
21
+
22
+ - @forge/bundler@3.0.9-next.6
23
+
24
+ ## 1.8.2-next.5
25
+
26
+ ### Patch Changes
27
+
28
+ - @forge/bundler@3.0.9-next.5
29
+
30
+ ## 1.8.2-next.4
31
+
32
+ ### Patch Changes
33
+
34
+ - @forge/cli-shared@2.6.0-next.3
35
+ - @forge/bundler@3.0.9-next.4
36
+
37
+ ## 1.8.2-next.3
38
+
39
+ ### Patch Changes
40
+
41
+ - @forge/cli-shared@2.6.0-next.2
42
+ - @forge/bundler@3.0.9-next.3
43
+
44
+ ## 1.8.2-next.2
45
+
46
+ ### Patch Changes
47
+
48
+ - @forge/cli-shared@2.6.0-next.1
49
+ - @forge/bundler@3.0.9-next.2
50
+
51
+ ## 1.8.2-next.1
52
+
53
+ ### Patch Changes
54
+
55
+ - Updated dependencies [e0f6a1c9]
56
+ - @forge/bundler@3.0.9-next.1
57
+
58
+ ## 1.8.2-next.0
59
+
60
+ ### Patch Changes
61
+
62
+ - Updated dependencies [69f42bdc]
63
+ - @forge/cli-shared@2.6.0-next.0
64
+ - @forge/bundler@3.0.9-next.0
65
+
66
+ ## 1.8.1
67
+
68
+ ### Patch Changes
69
+
70
+ - Updated dependencies [ca42ff8b]
71
+ - Updated dependencies [6c49ac44]
72
+ - Updated dependencies [1baef1d5]
73
+ - Updated dependencies [671a6a63]
74
+ - @forge/runtime@2.2.0
75
+ - @forge/csp@1.11.0
76
+ - @forge/cli-shared@2.5.1
77
+ - @forge/bundler@3.0.8
78
+
79
+ ## 1.8.1-next.4
80
+
81
+ ### Patch Changes
82
+
83
+ - @forge/cli-shared@2.5.1-next.1
84
+ - @forge/bundler@3.0.8-next.2
85
+
86
+ ## 1.8.1-next.3
87
+
88
+ ### Patch Changes
89
+
90
+ - Updated dependencies [6c49ac4]
91
+ - @forge/runtime@2.2.0-next.3
92
+
93
+ ## 1.8.1-next.2
94
+
95
+ ### Patch Changes
96
+
97
+ - Updated dependencies [ca42ff8b]
98
+ - @forge/runtime@2.2.0-next.2
99
+
100
+ ## 1.8.1-next.1
101
+
102
+ ### Patch Changes
103
+
104
+ - Updated dependencies [1baef1d]
105
+ - @forge/runtime@2.2.0-next.1
106
+ - @forge/cli-shared@2.5.1-next.0
107
+ - @forge/bundler@3.0.8-next.1
108
+
109
+ ## 1.8.1-next.0
110
+
111
+ ### Patch Changes
112
+
113
+ - Updated dependencies [671a6a6]
114
+ - @forge/csp@1.11.0-next.0
115
+ - @forge/runtime@2.1.1-next.0
116
+ - @forge/bundler@3.0.8-next.0
117
+
118
+ ## 1.8.0
119
+
120
+ ### Minor Changes
121
+
122
+ - 44def0a: Derive the memory limit of the Isolate based on the Lambda memory available
123
+
124
+ ### Patch Changes
125
+
126
+ - Updated dependencies [44def0a]
127
+ - Updated dependencies [4f86661]
128
+ - Updated dependencies [6d7a574e]
129
+ - @forge/runtime@2.1.0
130
+ - @forge/cli-shared@2.5.0
131
+ - @forge/bundler@3.0.7
132
+
133
+ ## 1.8.0-next.5
134
+
135
+ ### Minor Changes
136
+
137
+ - 44def0a: Derive the memory limit of the Isolate based on the Lambda memory available
138
+
139
+ ### Patch Changes
140
+
141
+ - Updated dependencies [44def0a]
142
+ - @forge/runtime@2.1.0-next.0
143
+
144
+ ## 1.7.4-next.4
145
+
146
+ ### Patch Changes
147
+
148
+ - @forge/bundler@3.0.7-next.4
149
+
150
+ ## 1.7.4-next.3
151
+
152
+ ### Patch Changes
153
+
154
+ - Updated dependencies [4f86661c]
155
+ - @forge/cli-shared@2.5.0-next.3
156
+ - @forge/bundler@3.0.7-next.3
157
+
158
+ ## 1.7.4-next.2
159
+
160
+ ### Patch Changes
161
+
162
+ - @forge/cli-shared@2.5.0-next.2
163
+ - @forge/bundler@3.0.7-next.2
164
+
165
+ ## 1.7.4-next.1
166
+
167
+ ### Patch Changes
168
+
169
+ - @forge/cli-shared@2.5.0-next.1
170
+ - @forge/bundler@3.0.7-next.1
171
+
172
+ ## 1.7.4-next.0
173
+
174
+ ### Patch Changes
175
+
176
+ - Updated dependencies [6d7a574]
177
+ - @forge/cli-shared@2.5.0-next.0
178
+ - @forge/bundler@3.0.7-next.0
179
+
180
+ ## 1.7.3
181
+
182
+ ### Patch Changes
183
+
184
+ - Updated dependencies [1852a98]
185
+ - @forge/runtime@2.0.2
186
+ - @forge/cli-shared@2.4.2
187
+ - @forge/bundler@3.0.6
188
+
189
+ ## 1.7.3-next.2
190
+
191
+ ### Patch Changes
192
+
193
+ - @forge/cli-shared@2.4.2-next.1
194
+ - @forge/bundler@3.0.6-next.1
195
+
196
+ ## 1.7.3-next.1
197
+
198
+ ### Patch Changes
199
+
200
+ - @forge/cli-shared@2.4.2-next.0
201
+ - @forge/bundler@3.0.6-next.0
202
+
203
+ ## 1.7.3-next.0
204
+
205
+ ### Patch Changes
206
+
207
+ - Updated dependencies [1852a988]
208
+ - @forge/runtime@2.0.2-next.0
209
+
210
+ ## 1.7.2
211
+
212
+ ### Patch Changes
213
+
214
+ - Updated dependencies [a471568]
215
+ - @forge/bundler@3.0.5
216
+ - @forge/runtime@2.0.1
217
+
218
+ ## 1.7.2-next.0
219
+
220
+ ### Patch Changes
221
+
222
+ - Updated dependencies [a4715681]
223
+ - @forge/bundler@3.0.5-next.0
224
+ - @forge/runtime@2.0.1-next.0
225
+
226
+ ## 1.7.1
4
227
 
5
228
  ### Patch Changes
6
229
 
7
230
  - Updated dependencies [8a479b4]
8
- - @forge/runtime@0.0.0-experimental-416047f
9
- - @forge/cli-shared@0.0.0-experimental-416047f
10
- - @forge/bundler@0.0.0-experimental-416047f
231
+ - @forge/runtime@2.0.0
232
+ - @forge/cli-shared@2.4.1
233
+ - @forge/bundler@3.0.4
11
234
 
12
235
  ## 1.7.1-next.8
13
236
 
@@ -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-416047f",
3
+ "version": "0.0.0-experimental-4d15129",
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-416047f",
20
- "@forge/cli-shared": "0.0.0-experimental-416047f",
21
- "@forge/csp": "^1.10.0",
19
+ "@forge/bundler": "0.0.0-experimental-4d15129",
20
+ "@forge/cli-shared": "0.0.0-experimental-4d15129",
21
+ "@forge/csp": "^1.11.0",
22
22
  "@forge/isolated-vm": "3.3.10",
23
- "@forge/runtime": "0.0.0-experimental-416047f",
23
+ "@forge/runtime": "0.0.0-experimental-4d15129",
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-416047f",
34
+ "@forge/manifest": "^0.0.0-experimental-4d15129",
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
  }