@stencil/angular-output-target
Advanced tools
Comparing version 0.0.1-dev.11698436359.1aeaa5db to 0.0.1-dev.11705624885.1949250b
@@ -84,3 +84,18 @@ import { createComponentEventTypeImports, dashToPascalCase, formatToQuotedList } from './utils'; | ||
if (!type.startsWith(prefix)) { | ||
renamedType = `I${componentClassName}${type}`; | ||
if (type.startsWith('{') && type.endsWith('}')) { | ||
/** | ||
* If the type starts with { and ends with }, it is an inline type. | ||
* For example, `{ a: string }`. | ||
* We don't need to rename these types, so we return the original type. | ||
*/ | ||
renamedType = type; | ||
} | ||
else { | ||
/** | ||
* If the type does not start with { and end with }, it is a reference type. | ||
* For example, `MyType`. | ||
* We need to rename these types, so we prepend the prefix. | ||
*/ | ||
renamedType = `I${componentClassName}${type}`; | ||
} | ||
} | ||
@@ -87,0 +102,0 @@ return (renamedType |
@@ -229,3 +229,18 @@ 'use strict'; | ||
if (!type.startsWith(prefix)) { | ||
renamedType = `I${componentClassName}${type}`; | ||
if (type.startsWith('{') && type.endsWith('}')) { | ||
/** | ||
* If the type starts with { and ends with }, it is an inline type. | ||
* For example, `{ a: string }`. | ||
* We don't need to rename these types, so we return the original type. | ||
*/ | ||
renamedType = type; | ||
} | ||
else { | ||
/** | ||
* If the type does not start with { and end with }, it is a reference type. | ||
* For example, `MyType`. | ||
* We need to rename these types, so we prepend the prefix. | ||
*/ | ||
renamedType = `I${componentClassName}${type}`; | ||
} | ||
} | ||
@@ -232,0 +247,0 @@ return (renamedType |
@@ -221,3 +221,18 @@ import path from 'path'; | ||
if (!type.startsWith(prefix)) { | ||
renamedType = `I${componentClassName}${type}`; | ||
if (type.startsWith('{') && type.endsWith('}')) { | ||
/** | ||
* If the type starts with { and ends with }, it is an inline type. | ||
* For example, `{ a: string }`. | ||
* We don't need to rename these types, so we return the original type. | ||
*/ | ||
renamedType = type; | ||
} | ||
else { | ||
/** | ||
* If the type does not start with { and end with }, it is a reference type. | ||
* For example, `MyType`. | ||
* We need to rename these types, so we prepend the prefix. | ||
*/ | ||
renamedType = `I${componentClassName}${type}`; | ||
} | ||
} | ||
@@ -224,0 +239,0 @@ return (renamedType |
{ | ||
"name": "@stencil/angular-output-target", | ||
"version": "0.0.1-dev.11698436359.1aeaa5db", | ||
"version": "0.0.1-dev.11705624885.1949250b", | ||
"description": "Angular output target for @stencil/core components.", | ||
@@ -61,3 +61,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "aeaa5dbb9bb221e5466cf29369adfc3afbb25083", | ||
"gitHead": "949250bca27baea1a72d2e014b218c359d5a17a4", | ||
"volta": { | ||
@@ -64,0 +64,0 @@ "extends": "../../package.json" |
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
103896
2035