Socket
Socket
Sign inDemoInstall

@es-joy/jsdoccomment

Package Overview
Dependencies
Maintainers
2
Versions
99
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@es-joy/jsdoccomment - npm Package Compare versions

Comparing version 0.43.0 to 0.43.1

4

CHANGES.md
# CHANGES for `@es-joy/jsdoccomment`
## 0.43.1
- fix: for `@template` name parsing, ensure (default-)bracketed name is not broken with internal spaces.
## 0.43.0

@@ -4,0 +8,0 @@

6

package.json
{
"name": "@es-joy/jsdoccomment",
"version": "0.43.0",
"version": "0.43.1",
"author": "Brett Zamir <brettz9@yahoo.com>",

@@ -45,5 +45,5 @@ "contributors": [],

"dependencies": {
"@typescript-eslint/types": "^7.2.0",
"@types/eslint": "^8.56.5",
"@types/estree": "^1.0.5",
"@typescript-eslint/types": "^7.2.0",
"comment-parser": "1.4.1",

@@ -61,3 +61,3 @@ "esquery": "^1.5.0",

"@types/estraverse": "^5.1.7",
"@typhonjs-build-test/esm-d-ts": "^0.3.0-next.1",
"@typhonjs-build-test/esm-d-ts": "0.3.0-next.1",
"@typhonjs-typedoc/typedoc-pkg": "^0.0.4",

@@ -64,0 +64,0 @@ "@vitest/coverage-v8": "^1.3.0",

@@ -207,2 +207,5 @@ # @es-joy/jsdoccomment

You can get a sense of the structure of these types using the parser's
[tester](https://jsdoc-type-pratt-parser.github.io/jsdoc-type-pratt-parser/).
## Installation

@@ -209,0 +212,0 @@

@@ -93,3 +93,12 @@ /* eslint-disable prefer-named-capture-group -- Temporary */

const pos = remainder.search(/(?<![\s,])\s/u);
let pos;
if (remainder.startsWith('[') && remainder.includes(']')) {
const endingBracketPos = remainder.indexOf(']');
pos = remainder.slice(endingBracketPos).search(/(?<![\s,])\s/u);
if (pos > -1) { // Add offset to starting point if space found
pos += endingBracketPos;
}
} else {
pos = remainder.search(/(?<![\s,])\s/u);
}

@@ -96,0 +105,0 @@ let name = pos === -1 ? remainder : remainder.slice(0, pos);

Sorry, the diff of this file is not supported yet

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