Socket
Socket
Sign inDemoInstall

@sveltejs/kit

Package Overview
Dependencies
Maintainers
4
Versions
784
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sveltejs/kit - npm Package Compare versions

Comparing version 2.1.1 to 2.1.2

2

package.json
{
"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';
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc