@stencil/angular-output-target
Advanced tools
Comparing version 0.7.2-dev.11691686383.1d6a2c07 to 0.7.2-dev.11691686917.1045ccb9
@@ -73,2 +73,3 @@ import { createComponentEventTypeImports, dashToPascalCase, formatToQuotedList } from './utils'; | ||
const formatOutputType = (componentClassName, event) => { | ||
const prefix = `I${componentClassName}`; | ||
/** | ||
@@ -82,3 +83,6 @@ * The original attribute contains the original type defined by the devs. | ||
.reduce((type, [src, dst]) => { | ||
const renamedType = `I${componentClassName}${type}`; | ||
let renamedType = type; | ||
if (!type.startsWith(prefix)) { | ||
renamedType = `I${componentClassName}${type}`; | ||
} | ||
return (renamedType | ||
@@ -85,0 +89,0 @@ .replace(new RegExp(`^${src}$`, 'g'), `${dst}`) |
@@ -218,2 +218,3 @@ 'use strict'; | ||
const formatOutputType = (componentClassName, event) => { | ||
const prefix = `I${componentClassName}`; | ||
/** | ||
@@ -227,3 +228,6 @@ * The original attribute contains the original type defined by the devs. | ||
.reduce((type, [src, dst]) => { | ||
const renamedType = `I${componentClassName}${type}`; | ||
let renamedType = type; | ||
if (!type.startsWith(prefix)) { | ||
renamedType = `I${componentClassName}${type}`; | ||
} | ||
return (renamedType | ||
@@ -230,0 +234,0 @@ .replace(new RegExp(`^${src}$`, 'g'), `${dst}`) |
@@ -210,2 +210,3 @@ import path from 'path'; | ||
const formatOutputType = (componentClassName, event) => { | ||
const prefix = `I${componentClassName}`; | ||
/** | ||
@@ -219,3 +220,6 @@ * The original attribute contains the original type defined by the devs. | ||
.reduce((type, [src, dst]) => { | ||
const renamedType = `I${componentClassName}${type}`; | ||
let renamedType = type; | ||
if (!type.startsWith(prefix)) { | ||
renamedType = `I${componentClassName}${type}`; | ||
} | ||
return (renamedType | ||
@@ -222,0 +226,0 @@ .replace(new RegExp(`^${src}$`, 'g'), `${dst}`) |
{ | ||
"name": "@stencil/angular-output-target", | ||
"version": "0.7.2-dev.11691686383.1d6a2c07", | ||
"version": "0.7.2-dev.11691686917.1045ccb9", | ||
"description": "Angular output target for @stencil/core components.", | ||
@@ -61,3 +61,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "d6a2c0758150ee7856d2e86d7ce563f9b0b434a7", | ||
"gitHead": "045ccb908869f12cc45c6f67fb99d1dcf5e23427", | ||
"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
102097
1985