@caboodle-tech/node-simple-server 4.2.0 → 4.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/nss.js +2 -4
- package/changelogs/v4.md +4 -0
- package/package.json +1 -1
package/bin/nss.js
CHANGED
|
@@ -44,7 +44,7 @@ class NodeSimpleServer {
|
|
|
44
44
|
map: {}
|
|
45
45
|
};
|
|
46
46
|
|
|
47
|
-
#VERSION = '4.2.
|
|
47
|
+
#VERSION = '4.2.1';
|
|
48
48
|
|
|
49
49
|
#watching = [];
|
|
50
50
|
|
|
@@ -824,7 +824,7 @@ class NodeSimpleServer {
|
|
|
824
824
|
// If the message has a route check that only.
|
|
825
825
|
if (route) {
|
|
826
826
|
if (regex.test(route)) {
|
|
827
|
-
callback(msgObj, pageId);
|
|
827
|
+
callback(msgObj, pageId, socket);
|
|
828
828
|
return;
|
|
829
829
|
}
|
|
830
830
|
} else if (regex.test(cleanURL)) {
|
|
@@ -850,8 +850,6 @@ class NodeSimpleServer {
|
|
|
850
850
|
}
|
|
851
851
|
}
|
|
852
852
|
});
|
|
853
|
-
|
|
854
|
-
console.log(this.#OPS.callbacks);
|
|
855
853
|
}
|
|
856
854
|
|
|
857
855
|
/**
|
package/changelogs/v4.md
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
### NSS 4.2.2 (24 January 2024)
|
|
2
|
+
|
|
3
|
+
- feat: Add WebSocket to connection with backend routes.
|
|
4
|
+
|
|
1
5
|
### NSS 4.2.0 (23 January 2024)
|
|
2
6
|
|
|
3
7
|
- feat: WebSocket connections can now specify a specific backend route instead of just sending messages to the the listener (if any) for the pages path.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caboodle-tech/node-simple-server",
|
|
3
|
-
"version": "4.2.
|
|
3
|
+
"version": "4.2.2",
|
|
4
4
|
"description": "Node Simple Server (NSS): A small but effective node based server for development sites, customizable live reloading, and websocket support built-in.",
|
|
5
5
|
"main": "bin/nss.js",
|
|
6
6
|
"scripts": {
|