Skip to content

Commit

Permalink
Fix [issue #5](#5) (slots items have a private access level by default)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexprey committed Aug 25, 2020
1 parent fc7ed7b commit 66e6b89
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 323 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to the "svelte-intellisense" extension will be documented in

Check [Keep a Changelog](http://keepachangelog.com/) for recommendations on how to structure this file.

## [3.0.4] 25.08.2020

- 🛠 **[Fixed]** Fix [issue #5](https://github.com/alexprey/sveltedoc-parser/issues/5) (slots items have a private access level by default)

## [3.0.3] 25.08.2020

- 🛠 **[Fixed]** Fix [issue #28](https://github.com/alexprey/sveltedoc-parser/issues/28) (Inline event handlers in markup cause errors when used without quotes)
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ Generate a JSON documentation for a Svelte file

## Changelog

### [3.0.4] 25.08.2020

- 🛠 **[Fixed]** Fix [issue #5](https://github.com/alexprey/sveltedoc-parser/issues/5) (slots items have a private access level by default)

### [3.0.3] 25.08.2020

- 🛠 **[Fixed]** Fix [issue #28](https://github.com/alexprey/sveltedoc-parser/issues/28) (Inline event handlers in markup cause errors when used without quotes)
Expand Down
1 change: 1 addition & 0 deletions lib/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -603,6 +603,7 @@ class Parser extends EventEmitter {
if (this.features.includes('slots')) {
const slot = {
name: attrs.name || 'default',
visibility: 'public',
description: lastComment
};

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
{
"name": "sveltedoc-parser",
"version": "3.0.3",
"version": "3.0.4",
"description": "Generate a JSON documentation for a Svelte file",
"main": "index.js",
"scripts": {
"lint": "eslint ./**/*.js",
"test": "mocha ./test/**/*.spec.js",
"prepublish": "npm run test && npm run lint",
"test:unit": "mocha ./test/unit/**/*.spec.js",
"test:integration": "mocha ./test/**/integration/**/*.spec.js",
"test:integration-overall": "mocha ./test/**/integration/overall/overall.main.spec.js",
Expand Down
2 changes: 2 additions & 0 deletions test/svelte2/integration/overall/overall.main.doc.json
Original file line number Diff line number Diff line change
Expand Up @@ -461,6 +461,7 @@
"slots": [
{
"name": "default",
"visibility": "public",
"description": null,
"locations": [
{
Expand All @@ -475,6 +476,7 @@
},
{
"name": "footer",
"visibility": "public",
"description": null,
"locations": [
{
Expand Down
Loading

0 comments on commit 66e6b89

Please sign in to comment.