@rip-lang/server 1.1.18 → 1.2.0
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/README.md +1 -1
- package/package.json +3 -3
- package/server.rip +1 -1
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/server",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.0",
|
|
4
4
|
"description": "Pure Rip application server — multi-worker, hot reload, HTTPS, mDNS",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "server.rip",
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
"author": "Steve Shreeve <steve.shreeve@gmail.com>",
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"rip-lang": "^3.
|
|
42
|
-
"@rip-lang/api": "^1.
|
|
41
|
+
"rip-lang": "^3.12.0",
|
|
42
|
+
"@rip-lang/api": "^1.2.0"
|
|
43
43
|
},
|
|
44
44
|
"files": [
|
|
45
45
|
"bin/",
|
package/server.rip
CHANGED
|
@@ -71,7 +71,7 @@ scale = (value, unit, pad = true) ->
|
|
|
71
71
|
maxSlot = span.length - 1
|
|
72
72
|
slot = base
|
|
73
73
|
|
|
74
|
-
while value < 0.995 and slot <= maxSlot
|
|
74
|
+
while value < 0.995 and slot <= maxSlot # use 0.05 to try to keep units
|
|
75
75
|
value *= 1000
|
|
76
76
|
slot++
|
|
77
77
|
while value >= 999.5 and slot >= minSlot
|