New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

reload

Package Overview
Dependencies
Maintainers
2
Versions
44
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reload - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

5

CHANGELOG.md

@@ -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.

2

lib/reload-client.js
;(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 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc