@stencil/angular-output-target
Advanced tools
Comparing version 0.3.0 to 0.4.0-0
@@ -46,7 +46,9 @@ /* eslint-disable */ | ||
// tslint:disable-next-line: only-arrow-functions | ||
export function ProxyCmp(opts: { tagName: string, customElement?: any, inputs?: any; methods?: any }) { | ||
export function ProxyCmp(opts: { tagName: string, defineCustomElementFn?: () => void, inputs?: any; methods?: any }) { | ||
const decorator = function (cls: any) { | ||
const { tagName, customElement, inputs, methods } = opts; | ||
defineCustomElement(tagName, customElement); | ||
if (defineCustomElementFn !== undefined) { | ||
defineCustomElementFn(); | ||
} | ||
@@ -53,0 +55,0 @@ if (inputs) { |
@@ -95,3 +95,3 @@ import { dashToPascalCase, normalizePath } from './utils'; | ||
`tagName: \'${tagName}\'`, | ||
`customElement: ${includeCustomElement ? dashToPascalCase(tagName) + 'Cmp' : 'undefined'}` | ||
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}` | ||
]; | ||
@@ -98,0 +98,0 @@ if (hasInputs) |
@@ -181,3 +181,3 @@ 'use strict'; | ||
`tagName: \'${tagName}\'`, | ||
`customElement: ${includeCustomElement ? dashToPascalCase(tagName) + 'Cmp' : 'undefined'}` | ||
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}` | ||
]; | ||
@@ -329,3 +329,3 @@ if (hasInputs) | ||
const pascalImport = dashToPascalCase(component.tagName); | ||
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/${outputTarget.customElementsDir || | ||
return `import { defineCustomElement as define${pascalImport} } from '${normalizePath(outputTarget.componentCorePackage)}/${outputTarget.customElementsDir || | ||
'components'}/${component.tagName}.js';`; | ||
@@ -332,0 +332,0 @@ }); |
@@ -173,3 +173,3 @@ import path from 'path'; | ||
`tagName: \'${tagName}\'`, | ||
`customElement: ${includeCustomElement ? dashToPascalCase(tagName) + 'Cmp' : 'undefined'}` | ||
`customElement: ${includeCustomElement ? 'define' + dashToPascalCase(tagName) : 'undefined'}` | ||
]; | ||
@@ -321,3 +321,3 @@ if (hasInputs) | ||
const pascalImport = dashToPascalCase(component.tagName); | ||
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/${outputTarget.customElementsDir || | ||
return `import { defineCustomElement as define${pascalImport} } from '${normalizePath(outputTarget.componentCorePackage)}/${outputTarget.customElementsDir || | ||
'components'}/${component.tagName}.js';`; | ||
@@ -324,0 +324,0 @@ }); |
@@ -66,3 +66,3 @@ import path from 'path'; | ||
const pascalImport = dashToPascalCase(component.tagName); | ||
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/${outputTarget.customElementsDir || | ||
return `import { defineCustomElement as define${pascalImport} } from '${normalizePath(outputTarget.componentCorePackage)}/${outputTarget.customElementsDir || | ||
'components'}/${component.tagName}.js';`; | ||
@@ -69,0 +69,0 @@ }); |
{ | ||
"name": "@stencil/angular-output-target", | ||
"version": "0.3.0", | ||
"version": "0.4.0-0", | ||
"description": "Angular output target for @stencil/core components.", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js", |
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
64294
1357
1