Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

jsdoc-type-pratt-parser

Package Overview
Dependencies
Maintainers
1
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 1.0.0-alpha.8.0 to 1.0.0-alpha.9.0

1

dist/src/index.d.ts

@@ -11,1 +11,2 @@ /**

export { stringify, stringifyRules } from './transforms/stringify';
export * from './traverse';

2

package.json
{
"name": "jsdoc-type-pratt-parser",
"version": "1.0.0-alpha.8.0",
"version": "1.0.0-alpha.9.0",
"description": "",

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

@@ -6,6 +6,6 @@ [![Test Status](https://github.com/simonseyock/jsdoc-type-pratt-parser/actions/workflows/node.js.yml/badge.svg?branch=main)](https://github.com/simonseyock/jsdoc-type-pratt-parser/actions?query=branch%3Amain)

This project is a parser for jsdoc types. It is heavily inspired by the existing libraries catharsis and
jsdoctypeparser, but does not use PEG.js, but is written as a pratt parser.
* http://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/
jsdoctypeparser, but does not use PEG.js, instead it is written as a pratt parser.
* https://github.com/hegemonic/catharsis
* https://github.com/jsdoctypeparser/jsdoctypeparser
* http://journal.stuffwithstuff.com/2011/03/19/pratt-parsers-expression-parsing-made-easy/

@@ -79,3 +79,3 @@ Live Demo

// `result` is the current node and `transform` is function to transform child nodes.
// `result` is the current node and `transform` is a function to transform child nodes.
rules.NAME = (result, transform) => 'something else'

@@ -96,4 +96,4 @@

// an onEnter and/or an onLeave function can be supplied
traverse({ type: 'NAME', value: 'name'}, onEnter, console.log)
// an onEnter and/or an onLeave function can be supplied
```

@@ -100,0 +100,0 @@

@@ -12,1 +12,2 @@ /**

export { stringify, stringifyRules } from './transforms/stringify'
export * from './traverse'

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