@rip-lang/server 1.3.72 → 1.3.74
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/middleware.rip +12 -5
- package/package.json +2 -2
package/middleware.rip
CHANGED
|
@@ -576,11 +576,18 @@ export serve = (opts = {}) ->
|
|
|
576
576
|
# Register watch directories with rip-server via control socket
|
|
577
577
|
if enableWatch and process.env.SOCKET_PREFIX
|
|
578
578
|
ctl = "/tmp/#{process.env.SOCKET_PREFIX}.ctl.sock"
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
579
|
+
|
|
580
|
+
# NOTE: Original method, watches specific directories
|
|
581
|
+
# watchDirs = [appDir]
|
|
582
|
+
# for [_, bdirs] as bundles
|
|
583
|
+
# watchDirs.push(...bdirs)
|
|
584
|
+
# watchDirs = watchDirs.filter existsSync
|
|
585
|
+
# body = JSON.stringify({ op: 'watch', prefix, dirs: watchDirs })
|
|
586
|
+
|
|
587
|
+
# NOTE: New method, watches all directories in the app
|
|
588
|
+
dirs = [appDir].filter existsSync
|
|
589
|
+
body = JSON.stringify({ op: 'watch', prefix, dirs })
|
|
590
|
+
|
|
584
591
|
fetch('http://localhost/watch', { method: 'POST', body, headers: { 'content-type': 'application/json' }, unix: ctl }).catch (e) ->
|
|
585
592
|
console.warn "[Rip] Watch registration failed: #{e.message}"
|
|
586
593
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/server",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.74",
|
|
4
4
|
"description": "Pure Rip web framework and application server",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "api.rip",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"author": "Steve Shreeve <steve.shreeve@gmail.com>",
|
|
46
46
|
"license": "MIT",
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"rip-lang": ">=3.13.
|
|
48
|
+
"rip-lang": ">=3.13.89"
|
|
49
49
|
},
|
|
50
50
|
"files": [
|
|
51
51
|
"api.rip",
|