Comparing version 0.16.0 to 0.16.1
@@ -13,2 +13,6 @@ # Changelog | ||
## [0.16.1](https://github.com/carbon-design-system/sveld/releases/tag/v0.16.1) - 2022-05-20 | ||
- `additional_tags` can be `undefined` | ||
## [0.16.0](https://github.com/carbon-design-system/sveld/releases/tag/v0.16.0) - 2022-05-19 | ||
@@ -15,0 +19,0 @@ |
@@ -306,3 +306,3 @@ "use strict"; | ||
enter: function (node, parent, prop) { | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o; | ||
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p; | ||
if (node.type === "CallExpression") { | ||
@@ -345,3 +345,3 @@ if (node.callee.name === "createEventDispatcher") { | ||
} | ||
var _p = node.declaration.declarations ? node.declaration.declarations[0] : node.declaration, declaration_type = _p.type, id = _p.id, init = _p.init, body = _p.body; | ||
var _q = node.declaration.declarations ? node.declaration.declarations[0] : node.declaration, declaration_type = _q.type, id = _q.id, init = _q.init, body = _q.body; | ||
prop_name !== null && prop_name !== void 0 ? prop_name : (prop_name = id.name); | ||
@@ -396,3 +396,3 @@ var value = undefined; | ||
description_1 = ComponentParser.assignValue((_h = (_g = comment[0]) === null || _g === void 0 ? void 0 : _g.description) === null || _h === void 0 ? void 0 : _h.trim()); | ||
var additional_tags = (_j = comment[0]) === null || _j === void 0 ? void 0 : _j.tags.filter(function (tag) { return !["type", "extends", "restProps", "slot", "event", "typedef"].includes(tag.tag); }); | ||
var additional_tags = (_k = (_j = comment[0]) === null || _j === void 0 ? void 0 : _j.tags.filter(function (tag) { return !["type", "extends", "restProps", "slot", "event", "typedef"].includes(tag.tag); })) !== null && _k !== void 0 ? _k : []; | ||
if (additional_tags.length > 0 && description_1 === undefined) { | ||
@@ -425,3 +425,3 @@ description_1 = ""; | ||
if (node.type === "Comment") { | ||
var data = (_l = (_k = node === null || node === void 0 ? void 0 : node.data) === null || _k === void 0 ? void 0 : _k.trim()) !== null && _l !== void 0 ? _l : ""; | ||
var data = (_m = (_l = node === null || node === void 0 ? void 0 : node.data) === null || _l === void 0 ? void 0 : _l.trim()) !== null && _m !== void 0 ? _m : ""; | ||
if (/^@component/.test(data)) { | ||
@@ -432,3 +432,3 @@ _this.componentComment = data.replace(/^@component/, ""); | ||
if (node.type === "Slot") { | ||
var slot_name = (_m = node.attributes.find(function (attr) { return attr.name === "name"; })) === null || _m === void 0 ? void 0 : _m.value[0].data; | ||
var slot_name = (_o = node.attributes.find(function (attr) { return attr.name === "name"; })) === null || _o === void 0 ? void 0 : _o.value[0].data; | ||
var slot_props = node.attributes | ||
@@ -470,3 +470,3 @@ .filter(function (attr) { return attr.name !== "name"; }) | ||
}, {}); | ||
var fallback = (_o = node.children) === null || _o === void 0 ? void 0 : _o.map(function (_a) { | ||
var fallback = (_p = node.children) === null || _p === void 0 ? void 0 : _p.map(function (_a) { | ||
var start = _a.start, end = _a.end; | ||
@@ -473,0 +473,0 @@ return _this.sourceAtPos(start, end); |
{ | ||
"name": "sveld", | ||
"version": "0.16.0", | ||
"version": "0.16.1", | ||
"license": "Apache-2.0", | ||
@@ -5,0 +5,0 @@ "description": "Generate TypeScript definitions for your Svelte components.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
146649