vvauth 1.0.4 → 1.0.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.
Files changed (2) hide show
  1. package/index.js +2 -1
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -281,7 +281,8 @@ class vvauth {
281
281
  }
282
282
 
283
283
  const shellEscape = (arg) => {
284
- return String(arg).replace(/([|$!'"();`*?{}[\]<>&%#~@\\ ])/g, '\\$1');
284
+ // see man bash
285
+ return "'"+ String(arg).replace(/'/g, '\'"\'"\'') + "'";;
285
286
  };
286
287
 
287
288
  //ensure module is called directly, i.e. not required
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vvauth",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "Vault Auth helper",
5
5
  "main": "index.js",
6
6
  "bin": {