diff options
author | Forrest L Norvell <forrest@npmjs.com> | 2015-03-27 08:49:00 +0300 |
---|---|---|
committer | Forrest L Norvell <forrest@npmjs.com> | 2015-03-27 08:49:00 +0300 |
commit | 98a13eafdf098b53069ad15297008fcab9c61653 (patch) | |
tree | 86dd68c343205a6b04dbfd67e0b03148edc55408 | |
parent | 300834e91a4e2a95fb7fb59c309e7c3fc91d2312 (diff) |
opener@1.4.1
Proper escaping for `start` under Windows.
-rw-r--r-- | node_modules/opener/LICENSE.txt | 2 | ||||
-rwxr-xr-x | node_modules/opener/opener.js | 5 | ||||
-rw-r--r-- | node_modules/opener/package.json | 38 | ||||
-rw-r--r-- | package.json | 2 |
4 files changed, 28 insertions, 19 deletions
diff --git a/node_modules/opener/LICENSE.txt b/node_modules/opener/LICENSE.txt index 0407ecda8..f580e3d3a 100644 --- a/node_modules/opener/LICENSE.txt +++ b/node_modules/opener/LICENSE.txt @@ -1,4 +1,4 @@ -Copyright © 2012–2014 Domenic Denicola <domenic@domenicdenicola.com> +Copyright © 2012–2015 Domenic Denicola <d@domenic.me> This work is free. You can redistribute it and/or modify it under the terms of the Do What The Fuck You Want To Public License, Version 2, diff --git a/node_modules/opener/opener.js b/node_modules/opener/opener.js index 3f95d0635..8951fa2de 100755 --- a/node_modules/opener/opener.js +++ b/node_modules/opener/opener.js @@ -35,6 +35,11 @@ function opener(args, options, callback) { // // Furthermore, if "cmd /c" double-quoted the first parameter, then "start" will interpret it as a window title, // so we need to add a dummy empty-string window title: http://stackoverflow.com/a/154090/3191 + // + // Additionally, on Windows ampersand needs to be escaped when passed to "start" + args = args.map(function(value) { + return value.replace(/&/g, '^&'); + }); args = ["/c", "start", '""'].concat(args); } diff --git a/node_modules/opener/package.json b/node_modules/opener/package.json index b62915e6e..aab02afc1 100644 --- a/node_modules/opener/package.json +++ b/node_modules/opener/package.json @@ -1,39 +1,43 @@ { "name": "opener", "description": "Opens stuff, like webpages and files and executables, cross-platform", - "version": "1.4.0", + "version": "1.4.1", "author": { "name": "Domenic Denicola", - "email": "domenic@domenicdenicola.com", - "url": "http://domenic.me/" + "email": "d@domenic.me", + "url": "https://domenic.me/" }, "license": "WTFPL", "repository": { "type": "git", - "url": "git://github.com/domenic/opener.git" - }, - "bugs": { - "url": "http://github.com/domenic/opener/issues" + "url": "https://github.com/domenic/opener" }, "main": "opener.js", "bin": { "opener": "opener.js" }, + "files": [ + "opener.js" + ], "scripts": { "lint": "jshint opener.js" }, "devDependencies": { - "jshint": "^2.5.4" + "jshint": "^2.6.3" + }, + "gitHead": "d0ee95b19951703462fa593baa16e81fdff7827c", + "bugs": { + "url": "https://github.com/domenic/opener/issues" }, - "gitHead": "b9d36d4f82c26560acdadbabbb10ddba46a30dc5", "homepage": "https://github.com/domenic/opener", - "_id": "opener@1.4.0", - "_shasum": "d11f86eeeb076883735c9d509f538fe82d10b941", - "_from": "opener@>=1.4.0 <1.5.0", - "_npmVersion": "1.4.23", + "_id": "opener@1.4.1", + "_shasum": "897590acd1aed3311b703b58bccb4d43f56f2895", + "_from": "opener@>=1.4.1 <1.5.0", + "_npmVersion": "2.7.0", + "_nodeVersion": "1.5.1", "_npmUser": { "name": "domenic", - "email": "domenic@domenicdenicola.com" + "email": "d@domenic.me" }, "maintainers": [ { @@ -42,9 +46,9 @@ } ], "dist": { - "shasum": "d11f86eeeb076883735c9d509f538fe82d10b941", - "tarball": "http://registry.npmjs.org/opener/-/opener-1.4.0.tgz" + "shasum": "897590acd1aed3311b703b58bccb4d43f56f2895", + "tarball": "http://registry.npmjs.org/opener/-/opener-1.4.1.tgz" }, "directories": {}, - "_resolved": "https://registry.npmjs.org/opener/-/opener-1.4.0.tgz" + "_resolved": "https://registry.npmjs.org/opener/-/opener-1.4.1.tgz" } diff --git a/package.json b/package.json index 3746220d2..7666fc6b1 100644 --- a/package.json +++ b/package.json @@ -75,7 +75,7 @@ "npm-user-validate": "~0.1.1", "npmlog": "~1.2.0", "once": "~1.3.1", - "opener": "~1.4.0", + "opener": "~1.4.1", "osenv": "~0.1.0", "path-is-inside": "~1.0.0", "read": "~1.0.4", |