@rip-lang/server 1.4.14 → 1.4.15

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rip-lang/server",
3
- "version": "1.4.14",
3
+ "version": "1.4.15",
4
4
  "description": "Bun-native content server: static sites, apps, HTTP proxy, and TCP/TLS passthrough",
5
5
  "type": "module",
6
6
  "main": "api.rip",
@@ -271,7 +271,8 @@ HLJS_LANG_MAP =
271
271
  jsonc: 'json', gql: 'graphql'
272
272
 
273
273
  export isTextFile = (filePath) ->
274
- ext = basename(filePath).toLowerCase().slice(basename(filePath).lastIndexOf('.') + 1)
274
+ name = basename(filePath).toLowerCase()
275
+ ext = name.slice(name.lastIndexOf('.') + 1)
275
276
  not BINARY_EXTS.has(ext)
276
277
 
277
278
  hljsLang = (filePath) ->