Comparing version 0.0.1 to 0.0.2
@@ -0,3 +1,8 @@ | ||
0.0.2 / 2013-03-14 | ||
------------------ | ||
* fixed bug that caused failure on hashbang urls | ||
* set proper mime type on reload.js client side script | ||
0.0.1 / 2013-03-13 | ||
------------------ | ||
* Initial release. |
;(function refresh () { | ||
var RLD_TIMEOUT = 300; | ||
var sock = new SockJS(window.location.href + 'sockreload'); | ||
var sock = new SockJS(window.location.origin + '/sockreload'); | ||
@@ -5,0 +5,0 @@ sock.onclose = function() { |
@@ -23,4 +23,5 @@ var sockjs = require('sockjs') | ||
expressApp.get('/reload/reload.js', function(req, res) { | ||
res.type('text/javascript') | ||
res.send(clientCode) | ||
}) | ||
} |
{ | ||
"name": "reload", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "Node.js module to refresh and reload your code in your browser when your code changes. Only use during development.", | ||
@@ -5,0 +5,0 @@ "homepage": [ |
@@ -70,2 +70,3 @@ Node.js - reload | ||
<!-- all you have to do is include the reload script --> | ||
<script src="/reload/reload.js"></script> | ||
@@ -90,3 +91,3 @@ | ||
It's actually stupidly simple. We leverage `supervisor` to restart the server if file changes. The client side keeps a websocket open, once it the websocket closes, the client sets a timeout to reload in approximately 300 ms. Simple huh? | ||
It's actually stupidly simple. We leverage `supervisor` to restart the server if any file changes. The client side keeps a websocket open, once the websocket closes, the client sets a timeout to reload in approximately 300 ms. Simple huh? | ||
@@ -93,0 +94,0 @@ |
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
36701
45
111
0