@stacksjs/server 0.70.98 → 0.70.100
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/dist/maintenance.js +2 -2
- package/package.json +5 -5
package/dist/maintenance.js
CHANGED
|
@@ -125,10 +125,10 @@ export async function launch() {
|
|
|
125
125
|
log.info("Application is not in coming soon mode.");
|
|
126
126
|
}
|
|
127
127
|
export function isAllowedIp(ip, allowed = []) {
|
|
128
|
-
if (allowed.length === 0)
|
|
129
|
-
return !1;
|
|
130
128
|
if (["127.0.0.1", "::1", "localhost"].includes(ip))
|
|
131
129
|
return !0;
|
|
130
|
+
if (allowed.length === 0)
|
|
131
|
+
return !1;
|
|
132
132
|
return allowed.includes(ip);
|
|
133
133
|
}
|
|
134
134
|
export function bypassCookieName(mode = "maintenance") {
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@stacksjs/server",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"sideEffects": false,
|
|
5
|
-
"version": "0.70.
|
|
5
|
+
"version": "0.70.100",
|
|
6
6
|
"description": "Local development and production-ready.",
|
|
7
7
|
"author": "Chris Breuer",
|
|
8
8
|
"contributors": [
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
"prepublishOnly": "bun run build"
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@stacksjs/config": "0.70.
|
|
56
|
+
"@stacksjs/config": "0.70.100",
|
|
57
57
|
"better-dx": "^0.2.16",
|
|
58
|
-
"@stacksjs/path": "0.70.
|
|
59
|
-
"@stacksjs/router": "0.70.
|
|
60
|
-
"@stacksjs/validation": "0.70.
|
|
58
|
+
"@stacksjs/path": "0.70.100",
|
|
59
|
+
"@stacksjs/router": "0.70.100",
|
|
60
|
+
"@stacksjs/validation": "0.70.100"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
63
|
"bun-plugin-auto-imports": "^0.4.0"
|