+8
-8
@@ -422,13 +422,13 @@ 'use strict'; | ||
| * @throws {Error} throw an error if sourceType is invalid | ||
| * @returns {"script"|"module"} normalized sourceType | ||
| * @returns {"script"|"module"|"commonjs"} normalized sourceType | ||
| */ | ||
| function normalizeSourceType(sourceType = "script") { | ||
| if (sourceType === "script" || sourceType === "module") { | ||
| if ( | ||
| sourceType === "script" || | ||
| sourceType === "module" || | ||
| sourceType === "commonjs" | ||
| ) { | ||
| return sourceType; | ||
| } | ||
| if (sourceType === "commonjs") { | ||
| return "script"; | ||
| } | ||
| throw new Error("Invalid sourceType."); | ||
@@ -440,3 +440,3 @@ } | ||
| * ecmaVersion: NormalizedEcmaVersion, | ||
| * sourceType: "script"|"module", | ||
| * sourceType: "script"|"module"|"commonjs", | ||
| * range?: boolean, | ||
@@ -1246,3 +1246,3 @@ * loc?: boolean, | ||
| /** @type {string} */ | ||
| const version = "11.1.1"; // x-release-please-version | ||
| const version = "11.2.0"; // x-release-please-version | ||
| const name = "espree"; | ||
@@ -1249,0 +1249,0 @@ |
+1
-1
@@ -257,3 +257,3 @@ /** | ||
| /** @type {string} */ | ||
| export const version = "11.1.1"; // x-release-please-version | ||
| export const version = "11.2.0"; // x-release-please-version | ||
| export const name = "espree"; | ||
@@ -260,0 +260,0 @@ |
+7
-7
@@ -96,13 +96,13 @@ /** | ||
| * @throws {Error} throw an error if sourceType is invalid | ||
| * @returns {"script"|"module"} normalized sourceType | ||
| * @returns {"script"|"module"|"commonjs"} normalized sourceType | ||
| */ | ||
| function normalizeSourceType(sourceType = "script") { | ||
| if (sourceType === "script" || sourceType === "module") { | ||
| if ( | ||
| sourceType === "script" || | ||
| sourceType === "module" || | ||
| sourceType === "commonjs" | ||
| ) { | ||
| return sourceType; | ||
| } | ||
| if (sourceType === "commonjs") { | ||
| return "script"; | ||
| } | ||
| throw new Error("Invalid sourceType."); | ||
@@ -114,3 +114,3 @@ } | ||
| * ecmaVersion: NormalizedEcmaVersion, | ||
| * sourceType: "script"|"module", | ||
| * sourceType: "script"|"module"|"commonjs", | ||
| * range?: boolean, | ||
@@ -117,0 +117,0 @@ * loc?: boolean, |
+1
-1
@@ -21,3 +21,3 @@ { | ||
| }, | ||
| "version": "11.1.1", | ||
| "version": "11.2.0", | ||
| "files": [ | ||
@@ -24,0 +24,0 @@ "lib", |
+1
-1
@@ -255,3 +255,3 @@ [](https://www.npmjs.com/package/espree) | ||
| <p><a href="https://automattic.com"><img src="https://images.opencollective.com/automattic/d0ef3e1/logo.png" alt="Automattic" height="128"></a></p><h3>Gold Sponsors</h3> | ||
| <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a> <a href="https://shopify.engineering/"><img src="https://avatars.githubusercontent.com/u/8085" alt="Shopify" height="96"></a></p><h3>Silver Sponsors</h3> | ||
| <p><a href="https://qlty.sh/"><img src="https://images.opencollective.com/qltysh/33d157d/logo.png" alt="Qlty Software" height="96"></a></p><h3>Silver Sponsors</h3> | ||
| <p><a href="https://vite.dev/"><img src="https://images.opencollective.com/vite/d472863/logo.png" alt="Vite" height="64"></a> <a href="https://liftoff.io/"><img src="https://images.opencollective.com/liftoff/2d6c3b6/logo.png" alt="Liftoff" height="64"></a> <a href="https://stackblitz.com"><img src="https://avatars.githubusercontent.com/u/28635252" alt="StackBlitz" height="64"></a></p><h3>Bronze Sponsors</h3> | ||
@@ -258,0 +258,0 @@ <p><a href="https://cybozu.co.jp/"><img src="https://images.opencollective.com/cybozu/933e46d/logo.png" alt="Cybozu" height="32"></a> <a href="https://opensource.sap.com"><img src="https://avatars.githubusercontent.com/u/2531208" alt="SAP" height="32"></a> <a href="https://www.crawljobs.com/"><img src="https://images.opencollective.com/crawljobs-poland/fa43a17/logo.png" alt="CrawlJobs" height="32"></a> <a href="https://depot.dev"><img src="https://images.opencollective.com/depot/39125a1/logo.png" alt="Depot" height="32"></a> <a href="https://www.n-ix.com/"><img src="https://images.opencollective.com/n-ix-ltd/575a7a5/logo.png" alt="N-iX Ltd" height="32"></a> <a href="https://icons8.com/"><img src="https://images.opencollective.com/icons8/7fa1641/logo.png" alt="Icons8" height="32"></a> <a href="https://discord.com"><img src="https://images.opencollective.com/discordapp/f9645d9/logo.png" alt="Discord" height="32"></a> <a href="https://www.gitbook.com"><img src="https://avatars.githubusercontent.com/u/7111340" alt="GitBook" height="32"></a> <a href="https://herocoders.com"><img src="https://avatars.githubusercontent.com/u/37549774" alt="HeroCoders" height="32"></a> <a href="https://www.lambdatest.com"><img src="https://avatars.githubusercontent.com/u/171592363" alt="TestMu AI Open Source Office (Formerly LambdaTest)" height="32"></a></p> |
| /** | ||
| * @fileoverview The list of feature flags supported by the parser and their default | ||
| * settings. | ||
| * @author Nicholas C. Zakas | ||
| */ | ||
| //------------------------------------------------------------------------------ | ||
| // Public | ||
| //------------------------------------------------------------------------------ | ||
| export default { | ||
| // React JSX parsing | ||
| jsx: false, | ||
| // allow return statement in global scope | ||
| globalReturn: false, | ||
| // allow implied strict mode | ||
| impliedStrict: false, | ||
| }; |
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
95658
-0.63%13
-7.14%2423
-0.57%