Socket
Socket
Sign inDemoInstall

jsdoc-type-pratt-parser

Package Overview
Dependencies
Maintainers
2
Versions
51
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jsdoc-type-pratt-parser - npm Package Compare versions

Comparing version 2.2.3 to 2.2.4

6

dist/test/fixtures/Fixture.d.ts

@@ -14,3 +14,3 @@ import 'mocha';

*/
modes: ParseMode[];
modes?: ParseMode[];
jtp?: {

@@ -27,2 +27,6 @@ [K in JtpMode]: CompareMode;

expected?: RootResult;
error?: string;
errors?: {
[K in ParseMode]?: string;
};
/**

@@ -29,0 +33,0 @@ * The expected parse results objects for different modes. If a mode is included in `modes` and as a key of

2

package.json
{
"name": "jsdoc-type-pratt-parser",
"version": "2.2.3",
"version": "2.2.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -69,3 +69,3 @@ import { composeParslet, ParsletFunction } from './Parslet'

if (p.type === 'JsdocTypeKeyValue' && (!allowNamedParameters.includes(p.key) || p.meta.quote !== undefined)) {
throw new Error(`only allowed named parameters are ${allowNamedParameters.join(',')} but got ${p.type}`)
throw new Error(`only allowed named parameters are ${allowNamedParameters.join(', ')} but got ${p.type}`)
}

@@ -72,0 +72,0 @@ }

@@ -86,3 +86,3 @@ import { ParsletFunction } from './Parslet'

} else {
throw new UnexpectedTypeError(parsed, 'Type \'JsdocTypeSpecialNamePath\' is only allowed witch specialType \'event\'')
throw new UnexpectedTypeError(parsed, 'Type \'JsdocTypeSpecialNamePath\' is only allowed with specialType \'event\'')
}

@@ -89,0 +89,0 @@ break

Sorry, the diff of this file is too big to display

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