@sendsafely/sendsafely 1.1.9 → 1.1.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/lib/SendSafely.js CHANGED
@@ -2408,7 +2408,11 @@ function DownloadAndDecryptFile (eventHandler, request, serverWorkerURI) {
2408
2408
 
2409
2409
  function getDownloadPathFromConfig(config, file) {
2410
2410
  var downloadPath = "";
2411
-
2411
+
2412
+ // sanitize file name to avoid conflicts with OS file systems
2413
+ config.fileName = config.fileName.replaceAll(/[<>:"\/\\|?*]/g, '_');
2414
+ file.fileName = file.fileName.replaceAll(/[<>:"\/\\|?*]/g, '_');
2415
+
2412
2416
  if (config.path && config.fileName) {
2413
2417
  downloadPath = path.join(config.path, config.fileName);
2414
2418
  } else if (config.path) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sendsafely/sendsafely",
3
- "version": "1.1.9",
3
+ "version": "1.1.10",
4
4
  "main": "./lib/SendSafely.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -10,9 +10,9 @@
10
10
  "description": "The SendSafely JavaScript SDK for Node.js lets you integrate SendSafely secure data transfer capabilities directly into your Node.js application.",
11
11
  "dependencies": {
12
12
  "jquery": "^3.4.1",
13
- "make-fetch-happen": "^10.2.1",
14
- "openpgp": "4.5.5",
15
- "sjcl": "^1.0.8",
13
+ "make-fetch-happen": "^11.1.1",
14
+ "openpgp": "4.10.11",
15
+ "sjcl": "1.0.8",
16
16
  "window": "^4.2.7",
17
17
  "xmlhttprequest": "^1.8.0"
18
18
  },