Update Node http-server to 0.10.0
This commit is contained in:
61
templates/bin/node/http-server/node_modules/opener/LICENSE.txt
generated
vendored
61
templates/bin/node/http-server/node_modules/opener/LICENSE.txt
generated
vendored
@@ -1,14 +1,47 @@
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2012 Domenic Denicola <domenic@domenicdenicola.com>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
||||
Dual licensed under WTFPL and MIT:
|
||||
|
||||
---
|
||||
|
||||
Copyright © 2012–2016 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,
|
||||
as published by Sam Hocevar. See below for more details.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2004 Sam Hocevar <sam@hocevar.net>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
||||
---
|
||||
|
||||
The MIT License (MIT)
|
||||
|
||||
Copyright © 2012–2016 Domenic Denicola <d@domenic.me>
|
||||
|
||||
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:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
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.
|
||||
|
||||
7
templates/bin/node/http-server/node_modules/opener/opener.js
generated
vendored
7
templates/bin/node/http-server/node_modules/opener/opener.js
generated
vendored
@@ -35,10 +35,15 @@ 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);
|
||||
}
|
||||
|
||||
childProcess.execFile(command, args, options, callback);
|
||||
return childProcess.execFile(command, args, options, callback);
|
||||
}
|
||||
|
||||
// Export `opener` for programmatic access.
|
||||
|
||||
98
templates/bin/node/http-server/node_modules/opener/package.json
generated
vendored
98
templates/bin/node/http-server/node_modules/opener/package.json
generated
vendored
@@ -1,35 +1,85 @@
|
||||
{
|
||||
"name": "opener",
|
||||
"description": "Opens stuff, like webpages and files and executables, cross-platform",
|
||||
"version": "1.3.0",
|
||||
"_args": [
|
||||
[
|
||||
"opener@~1.4.0",
|
||||
"/home/joshua/Development/Haxe/test/node_modules/http-server"
|
||||
]
|
||||
],
|
||||
"_from": "opener@>=1.4.0 <1.5.0",
|
||||
"_id": "opener@1.4.3",
|
||||
"_inCache": true,
|
||||
"_installable": true,
|
||||
"_location": "/opener",
|
||||
"_nodeVersion": "7.2.1",
|
||||
"_npmOperationalInternal": {
|
||||
"host": "packages-12-west.internal.npmjs.com",
|
||||
"tmp": "tmp/opener-1.4.3.tgz_1487118807602_0.517438261769712"
|
||||
},
|
||||
"_npmUser": {
|
||||
"email": "d@domenic.me",
|
||||
"name": "domenic"
|
||||
},
|
||||
"_npmVersion": "3.10.10",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"name": "opener",
|
||||
"raw": "opener@~1.4.0",
|
||||
"rawSpec": "~1.4.0",
|
||||
"scope": null,
|
||||
"spec": ">=1.4.0 <1.5.0",
|
||||
"type": "range"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/http-server"
|
||||
],
|
||||
"_resolved": "https://registry.npmjs.org/opener/-/opener-1.4.3.tgz",
|
||||
"_shasum": "5c6da2c5d7e5831e8ffa3964950f8d6674ac90b8",
|
||||
"_shrinkwrap": null,
|
||||
"_spec": "opener@~1.4.0",
|
||||
"_where": "/home/joshua/Development/Haxe/test/node_modules/http-server",
|
||||
"author": {
|
||||
"email": "d@domenic.me",
|
||||
"name": "Domenic Denicola",
|
||||
"email": "domenic@domenicdenicola.com",
|
||||
"url": "http://domenicdenicola.com"
|
||||
"url": "https://domenic.me/"
|
||||
},
|
||||
"license": "WTFPL",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git://github.com/domenic/opener.git"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "http://github.com/domenic/opener/issues"
|
||||
},
|
||||
"main": "opener.js",
|
||||
"bin": {
|
||||
"opener": "opener.js"
|
||||
},
|
||||
"bugs": {
|
||||
"url": "https://github.com/domenic/opener/issues"
|
||||
},
|
||||
"dependencies": {},
|
||||
"description": "Opens stuff, like webpages and files and executables, cross-platform",
|
||||
"devDependencies": {
|
||||
"jshint": "^2.6.3"
|
||||
},
|
||||
"directories": {},
|
||||
"dist": {
|
||||
"shasum": "5c6da2c5d7e5831e8ffa3964950f8d6674ac90b8",
|
||||
"tarball": "https://registry.npmjs.org/opener/-/opener-1.4.3.tgz"
|
||||
},
|
||||
"files": [
|
||||
"opener.js"
|
||||
],
|
||||
"gitHead": "51a4058b9e5172d9b57fb5e5205bc3f7fb4ace6a",
|
||||
"homepage": "https://github.com/domenic/opener#readme",
|
||||
"license": "(WTFPL OR MIT)",
|
||||
"main": "opener.js",
|
||||
"maintainers": [
|
||||
{
|
||||
"name": "domenic",
|
||||
"email": "domenic@domenicdenicola.com"
|
||||
}
|
||||
],
|
||||
"name": "opener",
|
||||
"optionalDependencies": {},
|
||||
"readme": "ERROR: No README data found!",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/domenic/opener.git"
|
||||
},
|
||||
"scripts": {
|
||||
"lint": "jshint opener.js"
|
||||
},
|
||||
"devDependencies": {
|
||||
"jshint": ">= 0.9.0"
|
||||
},
|
||||
"readme": "# It Opens Stuff\r\n\r\nThat is, in your desktop environment. This will make *actual windows pop up*, with stuff in them:\r\n\r\n```bash\r\nnpm install opener -g\r\n\r\nopener http://google.com\r\nopener ./my-file.txt\r\nopener firefox\r\nopener npm run lint\r\n```\r\n\r\nAlso if you want to use it programmatically you can do that too:\r\n\r\n```js\r\nvar opener = require(\"opener\");\r\n\r\nopener(\"http://google.com\");\r\nopener(\"./my-file.txt\");\r\nopener(\"firefox\");\r\nopener(\"npm run lint\");\r\n```\r\n\r\n## Use It for Good\r\n\r\nLike opening the user's browser with a test harness in your package's test script:\r\n\r\n```json\r\n{\r\n \"scripts\": {\r\n \"test\": \"opener ./test/runner.html\"\r\n },\r\n \"devDependencies\": {\r\n \"opener\": \"*\"\r\n }\r\n}\r\n```\r\n\r\n## Why\r\n\r\nBecause Windows has `start`, Macs have `open`, and *nix has `xdg-open`. At least\r\n[according to some guy on StackOverflow](http://stackoverflow.com/q/1480971/3191). And I like things that work on all\r\nthree. Like Node.js. And Opener.\r\n",
|
||||
"readmeFilename": "README.md",
|
||||
"homepage": "https://github.com/domenic/opener",
|
||||
"_id": "opener@1.3.0",
|
||||
"_shasum": "130ba662213fa842edb4cd0361d31a15301a43e2",
|
||||
"_from": "opener@~1.3.0",
|
||||
"_resolved": "https://registry.npmjs.org/opener/-/opener-1.3.0.tgz"
|
||||
"version": "1.4.3"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user