netlify-headers-parser
Advanced tools
Comparing version 7.1.1 to 7.1.2
@@ -41,3 +41,3 @@ import stringify from 'fast-safe-stringify'; | ||
}; | ||
// We generate a unique header key based on JSON stringify. However because some | ||
// We generate a unique header key based on JSON stringify. However, because some | ||
// properties can be regexes, we need to replace those by their toString representation | ||
@@ -44,0 +44,0 @@ // given the default will be and empty object |
@@ -6,3 +6,3 @@ import { promises as fs } from 'fs'; | ||
// Parse `headers` field in "netlify.toml" to an array of objects. | ||
// This field is already an array of objects so it only validates and | ||
// This field is already an array of objects, so it only validates and | ||
// normalizes it. | ||
@@ -9,0 +9,0 @@ export const parseConfigHeaders = async function (netlifyConfigPath) { |
@@ -7,3 +7,3 @@ import isPlainObj from 'is-plain-obj'; | ||
// This step is performed after `headers` have been parsed from either | ||
// `netlify.toml` or `_headerss`. | ||
// `netlify.toml` or `_headers`. | ||
export const normalizeHeaders = function (headers, minimal) { | ||
@@ -10,0 +10,0 @@ if (!Array.isArray(headers)) { |
@@ -10,3 +10,3 @@ // If one header fails to parse, we still try to return the other ones | ||
}; | ||
// Concatenate an array of `{ headers, erors }` | ||
// Concatenate an array of `{ headers, errors }` | ||
export const concatResults = function (resultsArrays) { | ||
@@ -13,0 +13,0 @@ const headers = resultsArrays.flatMap(({ headers }) => headers); |
{ | ||
"name": "netlify-headers-parser", | ||
"version": "7.1.1", | ||
"version": "7.1.2", | ||
"description": "Parses Netlify headers into a JavaScript object representation", | ||
@@ -37,3 +37,3 @@ "type": "module", | ||
"devDependencies": { | ||
"@types/node": "^14.18.31", | ||
"@types/node": "^18.14.2", | ||
"typescript": "^4.8.4", | ||
@@ -51,3 +51,3 @@ "vitest": "^0.24.1" | ||
"homepage": "https://github.com/netlify/build#readme", | ||
"gitHead": "7dcf167e961cce8075b96b894bf90156b03dbaf3" | ||
"gitHead": "35d6533c324d061b9e8e4165d369880a25bab707" | ||
} |
18158