@rip-lang/api 1.0.2 → 1.1.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/middleware.rip +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -25,7 +25,7 @@ and is designed for APIs that are clear, concise, and correct.
|
|
|
25
25
|
| `api.rip` | ~590 | Core framework: routing, validation, `read()`, `session`, server |
|
|
26
26
|
| `middleware.rip` | ~465 | Built-in middleware: cors, logger, sessions, compression, security |
|
|
27
27
|
|
|
28
|
-
> **See Also**: For Rip language documentation, see the [main rip-lang repository](https://github.com/shreeve/rip-lang) and [docs/
|
|
28
|
+
> **See Also**: For Rip language documentation, see the [main rip-lang repository](https://github.com/shreeve/rip-lang) and [docs/RIP-LANG.md](https://github.com/shreeve/rip-lang/blob/main/docs/RIP-LANG.md).
|
|
29
29
|
|
|
30
30
|
## Try it Now
|
|
31
31
|
|
package/middleware.rip
CHANGED
|
@@ -266,7 +266,7 @@ export sessions = (opts = {}) ->
|
|
|
266
266
|
cookieName = opts.name or 'session'
|
|
267
267
|
maxAge = opts.maxAge or 86400
|
|
268
268
|
secure = opts.secure or false
|
|
269
|
-
httpOnly = opts.httpOnly
|
|
269
|
+
httpOnly = opts.httpOnly ?? true
|
|
270
270
|
sameSite = opts.sameSite or 'Lax'
|
|
271
271
|
|
|
272
272
|
# Warn if no secret in production
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rip-lang/api",
|
|
3
|
-
"version": "1.0
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Pure Rip API framework — elegant, fast, zero dependencies",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "api.rip",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"author": "Steve Shreeve <steve.shreeve@gmail.com>",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"rip-lang": "^
|
|
36
|
+
"rip-lang": "^3.0.0"
|
|
37
37
|
},
|
|
38
38
|
"files": [
|
|
39
39
|
"api.rip",
|