@rip-lang/api 0.7.5 → 0.7.7

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.
Files changed (2) hide show
  1. package/api.rip +3 -1
  2. package/package.json +1 -1
package/api.rip CHANGED
@@ -590,6 +590,8 @@ export read = (keyOrTag = null, tagOrMiss = null, missOrNil = null) ->
590
590
  return miss?() if typeof miss is 'function'
591
591
  throw new Error "Missing required field: #{key}"
592
592
  else
593
- return if typeof miss is 'function' then miss?() else miss
593
+ return miss?() if typeof miss is 'function'
594
+ return null if miss is '' or not miss? # Empty string or null/undefined → null
595
+ return miss # Return 0, false, etc. as-is
594
596
 
595
597
  v
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/api",
3
- "version": "0.7.5",
3
+ "version": "0.7.7",
4
4
  "description": "Pure Rip API framework — elegant, fast, zero dependencies",
5
5
  "type": "module",
6
6
  "main": "api.rip",