bare-url 2.4.4 → 2.4.6
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 +1 -1
- package/index.d.ts +1 -1
- package/index.js +4 -0
- package/package.json +1 -1
- package/prebuilds/android-arm/bare-url.bare +0 -0
- package/prebuilds/android-arm64/bare-url.bare +0 -0
- package/prebuilds/android-ia32/bare-url.bare +0 -0
- package/prebuilds/android-x64/bare-url.bare +0 -0
- package/prebuilds/darwin-arm64/bare-url.bare +0 -0
- package/prebuilds/darwin-x64/bare-url.bare +0 -0
- package/prebuilds/ios-arm64/bare-url.bare +0 -0
- package/prebuilds/ios-arm64-simulator/bare-url.bare +0 -0
- package/prebuilds/ios-x64-simulator/bare-url.bare +0 -0
- package/prebuilds/linux-arm64/bare-url.bare +0 -0
- package/prebuilds/linux-x64/bare-url.bare +0 -0
- package/prebuilds/win32-arm64/bare-url.bare +0 -0
- package/prebuilds/win32-x64/bare-url.bare +0 -0
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#
|
|
9
|
+
fetch_package("github:holepunchto/liburl#c00e0d7")
|
|
10
10
|
|
|
11
11
|
add_bare_module(bare_url)
|
|
12
12
|
|
package/index.d.ts
CHANGED
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
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|