@stencil/angular-output-target
Advanced tools
Comparing version 0.7.2-dev.11691677969.1304fff5 to 0.7.2-dev.11691686383.1d6a2c07
@@ -85,3 +85,13 @@ import { createComponentEventTypeImports, dashToPascalCase, formatToQuotedList } from './utils'; | ||
// Capture all instances of the `src` field surrounded by non-word characters on each side and join them. | ||
.replace(new RegExp(`([^\\w])${src}([^\\w])`, 'g'), (v, p1, p2) => [p1, dst, p2].join(''))); | ||
.replace(new RegExp(`([^\\w])${src}([^\\w])`, 'g'), (v, p1, p2) => { | ||
if ((dst === null || dst === void 0 ? void 0 : dst.location) === 'import') { | ||
/** | ||
* Replaces a complex type reference within a generic type. | ||
* For example, remapping a type like `EventEmitter<CustomEvent<MyEvent<T>>>` to | ||
* `EventEmitter<CustomEvent<IMyComponentMyEvent<IMyComponentT>>`. | ||
*/ | ||
return [p1, `I${componentClassName}${v.substring(1, v.length - 1)}`, p2].join(''); | ||
} | ||
return [p1, dst, p2].join(''); | ||
})); | ||
}, event.complexType.original | ||
@@ -88,0 +98,0 @@ .replace(/\n/g, ' ') |
@@ -230,3 +230,13 @@ 'use strict'; | ||
// Capture all instances of the `src` field surrounded by non-word characters on each side and join them. | ||
.replace(new RegExp(`([^\\w])${src}([^\\w])`, 'g'), (v, p1, p2) => [p1, dst, p2].join(''))); | ||
.replace(new RegExp(`([^\\w])${src}([^\\w])`, 'g'), (v, p1, p2) => { | ||
if ((dst === null || dst === void 0 ? void 0 : dst.location) === 'import') { | ||
/** | ||
* Replaces a complex type reference within a generic type. | ||
* For example, remapping a type like `EventEmitter<CustomEvent<MyEvent<T>>>` to | ||
* `EventEmitter<CustomEvent<IMyComponentMyEvent<IMyComponentT>>`. | ||
*/ | ||
return [p1, `I${componentClassName}${v.substring(1, v.length - 1)}`, p2].join(''); | ||
} | ||
return [p1, dst, p2].join(''); | ||
})); | ||
}, event.complexType.original | ||
@@ -233,0 +243,0 @@ .replace(/\n/g, ' ') |
@@ -222,3 +222,13 @@ import path from 'path'; | ||
// Capture all instances of the `src` field surrounded by non-word characters on each side and join them. | ||
.replace(new RegExp(`([^\\w])${src}([^\\w])`, 'g'), (v, p1, p2) => [p1, dst, p2].join(''))); | ||
.replace(new RegExp(`([^\\w])${src}([^\\w])`, 'g'), (v, p1, p2) => { | ||
if ((dst === null || dst === void 0 ? void 0 : dst.location) === 'import') { | ||
/** | ||
* Replaces a complex type reference within a generic type. | ||
* For example, remapping a type like `EventEmitter<CustomEvent<MyEvent<T>>>` to | ||
* `EventEmitter<CustomEvent<IMyComponentMyEvent<IMyComponentT>>`. | ||
*/ | ||
return [p1, `I${componentClassName}${v.substring(1, v.length - 1)}`, p2].join(''); | ||
} | ||
return [p1, dst, p2].join(''); | ||
})); | ||
}, event.complexType.original | ||
@@ -225,0 +235,0 @@ .replace(/\n/g, ' ') |
{ | ||
"name": "@stencil/angular-output-target", | ||
"version": "0.7.2-dev.11691677969.1304fff5", | ||
"version": "0.7.2-dev.11691686383.1d6a2c07", | ||
"description": "Angular output target for @stencil/core components.", | ||
@@ -61,3 +61,3 @@ "main": "dist/index.cjs.js", | ||
}, | ||
"gitHead": "304fff5690890bd3baf8fd4ea5041f544889b1ee", | ||
"gitHead": "d6a2c0758150ee7856d2e86d7ce563f9b0b434a7", | ||
"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
101722
1973