@playcanvas/attribute-parser 1.0.7 → 1.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/index.js +1 -1
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
7
7
  },
8
- "version": "1.0.7",
8
+ "version": "1.0.8",
9
9
  "dependencies": {
10
10
  "@microsoft/tsdoc": "^0.15.0",
11
11
  "@playcanvas/eslint-config": "^1.7.4",
package/src/index.js CHANGED
@@ -209,7 +209,7 @@ export class JSDocParser {
209
209
 
210
210
  const namePos = ts.getLineAndCharacterOfPosition(member.getSourceFile(), member.name.getStart());
211
211
 
212
- const jsdocNode = member.jsDoc[member.jsDoc.length - 1];
212
+ const jsdocNode = member.jsDoc && member.jsDoc[member.jsDoc.length - 1];
213
213
  const jsdocPos = jsdocNode ? ts.getLineAndCharacterOfPosition(member.getSourceFile(), jsdocNode.getStart()) : null;
214
214
 
215
215
  const data = {