@sveltejs/kit
Advanced tools
Comparing version 2.1.1 to 2.1.2
{ | ||
"name": "@sveltejs/kit", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "The fastest way to build Svelte apps", | ||
@@ -5,0 +5,0 @@ "repository": { |
@@ -0,1 +1,3 @@ | ||
import { BROWSER } from 'esm-env'; | ||
const param_pattern = /^(\[)?(\.\.\.)?(\w+)(?:=(\w+))?(\])?$/; | ||
@@ -65,5 +67,11 @@ | ||
// We know the match cannot be null because manifest generation would have | ||
// if we hit an invalid param/matcher name with non-alphanumeric character. | ||
// We know the match cannot be null in the browser because manifest generation | ||
// would have invoked this during build and failed if we hit an invalid | ||
// param/matcher name with non-alphanumeric character. | ||
const match = /** @type {RegExpExecArray} */ (param_pattern.exec(content)); | ||
if (!BROWSER && !match) { | ||
throw new Error( | ||
`Invalid param: ${content}. Params and matcher names can only have underscores and alphanumeric characters.` | ||
); | ||
} | ||
@@ -70,0 +78,0 @@ const [, is_optional, is_rest, name, matcher] = match; |
// generated during release, do not modify | ||
/** @type {string} */ | ||
export const VERSION = '2.1.1'; | ||
export const VERSION = '2.1.2'; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
702036
20522