@netlify/redirect-matcher 0.4.1 → 0.4.2
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 +2 -2
- package/index.js +1 -1
- package/matcher.wasm +0 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
# @netlify/redirect-matcher
|
|
2
2
|
|
|
3
|
-
Netlify's redirect rule matcher, compiled to WebAssembly
|
|
4
|
-
|
|
3
|
+
Netlify's redirect rule matcher, compiled to WebAssembly, for matching requests
|
|
4
|
+
against Netlify redirect rules in local tooling.
|
|
5
5
|
|
|
6
6
|
```js
|
|
7
7
|
import { createMatcher } from '@netlify/redirect-matcher'
|
package/index.js
CHANGED
|
@@ -54,7 +54,7 @@ const stringRecord = (record, name, normalizeKey) => {
|
|
|
54
54
|
const out = {}
|
|
55
55
|
for (const [key, raw] of entries) {
|
|
56
56
|
// Multi-value headers (as from toMultiValueHeaders) match on their first
|
|
57
|
-
// value
|
|
57
|
+
// value.
|
|
58
58
|
const value = Array.isArray(raw) ? raw[0] : raw
|
|
59
59
|
if (value !== undefined && value !== null) {
|
|
60
60
|
out[normalizeKey(key)] = String(value)
|
package/matcher.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@netlify/redirect-matcher",
|
|
3
|
-
"version": "0.4.
|
|
4
|
-
"description": "Netlify's redirect rule matcher, compiled
|
|
3
|
+
"version": "0.4.2",
|
|
4
|
+
"description": "Netlify's redirect rule matcher, compiled to WebAssembly",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
7
7
|
"node": ">=22.12.0"
|