@riotjs/compiler
Advanced tools
Comparing version 6.0.0 to 6.0.1
{ | ||
"name": "@riotjs/compiler", | ||
"version": "6.0.0", | ||
"version": "6.0.1", | ||
"description": "Compiler for riot .tag files", | ||
@@ -40,3 +40,3 @@ "main": "dist/index.js", | ||
"@babel/preset-env": "^7.14.7", | ||
"@riotjs/dom-bindings": "^5.1.3", | ||
"@riotjs/dom-bindings": "^6.0.0", | ||
"@rollup/plugin-alias": "^3.1.2", | ||
@@ -50,3 +50,3 @@ "@rollup/plugin-commonjs": "^19.0.0", | ||
"esm": "^3.2.25", | ||
"mocha": "^8.4.0", | ||
"mocha": "^9.0.2", | ||
"node-sass": "^6.0.1", | ||
@@ -56,3 +56,3 @@ "nyc": "^15.1.0", | ||
"rollup": "^2.53.1", | ||
"rollup-plugin-node-builtins": "^2.0.0", | ||
"rollup-plugin-node-builtins": "^2.1.2", | ||
"shelljs": "^0.8.4", | ||
@@ -59,0 +59,0 @@ "typescript": "^4.3.5" |
@@ -1,2 +0,2 @@ | ||
[![Build Status][travis-image]][travis-url] | ||
[![Build Status][ci-image]][ci-url] | ||
[![Issue Count][codeclimate-image]][codeclimate-url] | ||
@@ -97,4 +97,4 @@ [![Coverage Status][coverage-image]][coverage-url] | ||
[travis-image]: https://img.shields.io/travis/riot/compiler.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/riot/compiler | ||
[ci-image]:https://img.shields.io/github/workflow/status/riot/compiler/test?style=flat-square | ||
[ci-url]:https://github.com/riot/compiler/actions | ||
[license-image]: https://img.shields.io/badge/license-MIT-000000.svg?style=flat-square | ||
@@ -101,0 +101,0 @@ [license-url]: LICENSE |
@@ -48,7 +48,7 @@ import {RIOT_INTERFACE_WRAPPER_NAME, RIOT_MODULE_ID, RIOT_TAG_INTERFACE_NAME, TAG_LOGIC_PROPERTY} from '../../constants' | ||
const interfaces = exportNamedDeclarations.filter(isInterfaceDeclaration) | ||
const isRiotComponentTypeName = ({ typeName }) => typeName || typeName.name === RIOT_TAG_INTERFACE_NAME | ||
const isRiotComponentTypeName = ({ typeName }) => typeName && typeName.name ? typeName.name === RIOT_TAG_INTERFACE_NAME : false | ||
const extendsRiotComponent = ({ expression }) => expression.name === RIOT_TAG_INTERFACE_NAME | ||
return types.find( | ||
node => node.typeAnnotation.types && node.typeAnnotation.types.some(isRiotComponentTypeName) | ||
node => (node.typeAnnotation.types && node.typeAnnotation.types.some(isRiotComponentTypeName)) || isRiotComponentTypeName(node.typeAnnotation) | ||
) || interfaces.find( | ||
@@ -55,0 +55,0 @@ node => node.extends && node.extends.some(extendsRiotComponent) |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
1921096