Skip to content

Commit 2b5e5fa

Browse files
authored
Improve exception handling in sandbox environments (#322)
1 parent fa5864a commit 2b5e5fa

File tree

9 files changed

+316
-206
lines changed

9 files changed

+316
-206
lines changed

THIRD-PARTY-LICENSES.txt

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41917,6 +41917,21 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
4191741917
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
4191841918

4191941919

41920+
******************************
41921+
41922+
escape-string-regexp
41923+
2.0.0 <https://github.com/sindresorhus/escape-string-regexp>
41924+
MIT License
41925+
41926+
Copyright (c) Sindre Sorhus <[email protected]> (sindresorhus.com)
41927+
41928+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
41929+
41930+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
41931+
41932+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
41933+
41934+
4192041935
******************************
4192141936

4192241937
etag
@@ -47861,7 +47876,7 @@ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
4786147876
******************************
4786247877

4786347878
semver
47864-
7.7.2 <https://github.com/npm/node-semver>
47879+
7.7.3 <https://github.com/npm/node-semver>
4786547880
The ISC License
4786647881

4786747882
Copyright (c) Isaac Z. Schlueter and Contributors
@@ -48191,6 +48206,33 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR
4819148206
IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
4819248207

4819348208

48209+
******************************
48210+
48211+
stack-utils
48212+
2.0.6 <https://github.com/tapjs/stack-utils>
48213+
The MIT License (MIT)
48214+
48215+
Copyright (c) 2016-2022 Isaac Z. Schlueter <[email protected]>, James Talmage <[email protected]> (github.com/jamestalmage), and Contributors
48216+
48217+
Permission is hereby granted, free of charge, to any person obtaining a copy
48218+
of this software and associated documentation files (the "Software"), to deal
48219+
in the Software without restriction, including without limitation the rights
48220+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
48221+
copies of the Software, and to permit persons to whom the Software is
48222+
furnished to do so, subject to the following conditions:
48223+
48224+
The above copyright notice and this permission notice shall be included in
48225+
all copies or substantial portions of the Software.
48226+
48227+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
48228+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
48229+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
48230+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
48231+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
48232+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
48233+
THE SOFTWARE.
48234+
48235+
4819448236
******************************
4819548237

4819648238
statuses

package-lock.json

Lines changed: 30 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@
8989
"pino": "9.9.0",
9090
"pino-pretty": "13.1.1",
9191
"pyodide": "0.28.2",
92+
"stack-utils": "2.0.6",
9293
"tree-sitter": "0.22.4",
9394
"tree-sitter-json": "0.24.8",
9495
"ts-essentials": "10.1.1",
@@ -106,6 +107,7 @@
106107
"@types/js-yaml": "4.0.9",
107108
"@types/luxon": "3.7.1",
108109
"@types/semver": "7.7.1",
110+
"@types/stack-utils": "2.0.3",
109111
"@types/yargs": "17.0.33",
110112
"@types/yauzl": "2.10.3",
111113
"@vitest/coverage-v8": "3.2.4",

sbom/sbom.csv

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ Name,SPDXID,Version,DownloadLocation,License
276276
"buffer-crc32","SPDXRef-Package-buffer-crc32-0.2.13","0.2.13","https://registry.npmjs.org/buffer-crc32/-/buffer-crc32-0.2.13.tgz","MIT"
277277
"buffer-equal-constant-time","SPDXRef-Package-buffer-equal-constant-time-1.0.1","1.0.1","https://registry.npmjs.org/buffer-equal-constant-time/-/buffer-equal-constant-time-1.0.1.tgz","BSD-3-Clause"
278278
"camelcase","SPDXRef-Package-camelcase-6.3.0","6.3.0","https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz","MIT"
279-
"cfn-guard","SPDXRef-Package-cfn-guard-3.1.1","3.1.1","https://gitpkg.now.sh/aws-cloudformation/cloudformation-guard/guard/ts-lib?33d9931","Apache-2.0"
279+
"cfn-guard","SPDXRef-Package-cfn-guard-3.1.1","3.1.1","NOASSERTION","Apache-2.0"
280280
"cjs-module-lexer","SPDXRef-Package-cjs-module-lexer-1.4.3","1.4.3","https://registry.npmjs.org/cjs-module-lexer/-/cjs-module-lexer-1.4.3.tgz","MIT"
281281
"cliui","SPDXRef-Package-cliui-8.0.1","8.0.1","https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz","ISC"
282282
"cohere-ai","SPDXRef-Package-cohere-ai-7.18.1","7.18.1","https://registry.npmjs.org/cohere-ai/-/cohere-ai-7.18.1.tgz","NOASSERTION"
@@ -304,6 +304,7 @@ Name,SPDXID,Version,DownloadLocation,License
304304
"emoji-regex","SPDXRef-Package-emoji-regex-8.0.0","8.0.0","https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz","MIT"
305305
"encodeurl","SPDXRef-Package-encodeurl-2.0.0","2.0.0","https://registry.npmjs.org/encodeurl/-/encodeurl-2.0.0.tgz","MIT"
306306
"escape-html","SPDXRef-Package-escape-html-1.0.3","1.0.3","https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz","MIT"
307+
"escape-string-regexp","SPDXRef-Package-escape-string-regexp-2.0.0","2.0.0","https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz","MIT"
307308
"etag","SPDXRef-Package-etag-1.8.1","1.8.1","https://registry.npmjs.org/etag/-/etag-1.8.1.tgz","MIT"
308309
"event-target-shim","SPDXRef-Package-event-target-shim-5.0.1","5.0.1","https://registry.npmjs.org/event-target-shim/-/event-target-shim-5.0.1.tgz","MIT"
309310
"eventemitter3","SPDXRef-Package-eventemitter3-4.0.7","4.0.7","https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz","MIT"
@@ -436,6 +437,7 @@ Name,SPDXID,Version,DownloadLocation,License
436437
"simple-wcswidth","SPDXRef-Package-simple-wcswidth-1.1.2","1.1.2","https://registry.npmjs.org/simple-wcswidth/-/simple-wcswidth-1.1.2.tgz","MIT"
437438
"sonic-boom","SPDXRef-Package-sonic-boom-4.2.0","4.2.0","https://registry.npmjs.org/sonic-boom/-/sonic-boom-4.2.0.tgz","MIT"
438439
"split2","SPDXRef-Package-split2-4.2.0","4.2.0","https://registry.npmjs.org/split2/-/split2-4.2.0.tgz","ISC"
440+
"stack-utils","SPDXRef-Package-stack-utils-2.0.6","2.0.6","https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.6.tgz","MIT"
439441
"statuses","SPDXRef-Package-statuses-2.0.1","2.0.1","https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz","MIT"
440442
"statuses","SPDXRef-Package-statuses-2.0.2","2.0.2","https://registry.npmjs.org/statuses/-/statuses-2.0.2.tgz","MIT"
441443
"streamx","SPDXRef-Package-streamx-2.23.0","2.23.0","https://registry.npmjs.org/streamx/-/streamx-2.23.0.tgz","MIT"

0 commit comments

Comments
 (0)