Comparing version 0.0.4 to 0.0.5
@@ -9,2 +9,3 @@ #!/usr/bin/env node | ||
var ip = require('internal-ip') | ||
var path = require('path') | ||
@@ -18,5 +19,5 @@ http.createServer(onRequest).listen(8400, function () { | ||
if (req.url === '/index.html' || req.url === '/') { | ||
fs.createReadStream('./index.html').pipe(res) | ||
fs.createReadStream(path.join(__dirname, '..', 'index.html')).pipe(res) | ||
} else if (req.url === '/bundle.js') { | ||
fs.createReadStream('./bundle.js').pipe(res) | ||
fs.createReadStream(path.join(__dirname, '..', 'bundle.js')).pipe(res) | ||
} else if (req.method === 'POST' && /^\/send/.test(req.url)) { | ||
@@ -23,0 +24,0 @@ var qs = url.parse(req.url).query |
@@ -5,3 +5,3 @@ { | ||
"author": "Stephen Whitmore <sww@eight.net>", | ||
"version": "0.0.4", | ||
"version": "0.0.5", | ||
"repository": { | ||
@@ -8,0 +8,0 @@ "url": "git://github.com/noffle/airfile.git" |
@@ -6,3 +6,4 @@ # airfile | ||
Airfile was designed specifically to make it easier to get data off my android | ||
phone to my laptop without needing a native application. | ||
phone to my laptop without needing a native application, cloud services, or a | ||
USB cable. | ||
@@ -9,0 +10,0 @@ ## Usage |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
23565
631
34