bare-url 2.4.4 → 2.4.5

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/CMakeLists.txt CHANGED
@@ -6,7 +6,7 @@ find_package(cmake-fetch REQUIRED PATHS node_modules/cmake-fetch)
6
6
  project(bare_url C)
7
7
 
8
8
  fetch_package("github:holepunchto/libutf#f0d532e")
9
- fetch_package("github:holepunchto/liburl#8dcc123")
9
+ fetch_package("github:holepunchto/liburl#c00e0d7")
10
10
 
11
11
  add_bare_module(bare_url)
12
12
 
package/index.js CHANGED
@@ -317,6 +317,10 @@ exports.fileURLToPath = function fileURLToPath(url) {
317
317
  }
318
318
  }
319
319
 
320
+ if (/%00/i.test(url.pathname)) {
321
+ throw errors.INVALID_FILE_URL_PATH('The file: URL path must not include encoded NUL characters')
322
+ }
323
+
320
324
  const pathname = path.normalize(decodeURIComponent(url.pathname))
321
325
 
322
326
  if (isWindows) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bare-url",
3
- "version": "2.4.4",
3
+ "version": "2.4.5",
4
4
  "description": "WHATWG URL implementation for JavaScript",
5
5
  "exports": {
6
6
  "./package": "./package.json",
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file