shiva-code 0.7.2 → 0.7.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/README.md +211 -0
- package/dist/{chunk-QQZRCJZK.js → chunk-J5IS642F.js} +28 -0
- package/dist/{chunk-LBTCSQAX.js → chunk-KUA6TMQJ.js} +1 -1
- package/dist/chunk-KW3LP3K3.js +891 -0
- package/dist/chunk-RQ75X32M.js +1918 -0
- package/dist/{chunk-H5OFO4VS.js → chunk-W3DKHCXB.js} +5 -0
- package/dist/{client-GIGZFXT5.js → client-RPSJP4Z5.js} +1 -1
- package/dist/hook-GIK5RFRC.js +11 -0
- package/dist/index.js +3143 -5140
- package/dist/login-Y6EJABSP.js +10 -0
- package/dist/{manager-ZPQWG7E6.js → manager-CCRAV6A5.js} +1 -1
- package/dist/{package-manager-NHNQATBH.js → package-manager-UORON74F.js} +2 -2
- package/package.json +1 -1
|
@@ -43,6 +43,10 @@ function isPathWithinAllowedBoundaries(inputPath) {
|
|
|
43
43
|
];
|
|
44
44
|
return allowedPrefixes.some((prefix) => resolved.startsWith(prefix));
|
|
45
45
|
}
|
|
46
|
+
var SHELL_DANGEROUS_CHARS = /[;&|`$(){}[\]<>\\!#*?"'\n\r\t]/;
|
|
47
|
+
function containsShellMetacharacters(input) {
|
|
48
|
+
return SHELL_DANGEROUS_CHARS.test(input);
|
|
49
|
+
}
|
|
46
50
|
function isValidSessionId(sessionId) {
|
|
47
51
|
if (!sessionId || typeof sessionId !== "string") {
|
|
48
52
|
return false;
|
|
@@ -402,6 +406,7 @@ function formatDate(date) {
|
|
|
402
406
|
}
|
|
403
407
|
|
|
404
408
|
export {
|
|
409
|
+
containsShellMetacharacters,
|
|
405
410
|
isValidSessionId,
|
|
406
411
|
isValidProjectPath,
|
|
407
412
|
maskSecret,
|