Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stencil/angular-output-target

Package Overview
Dependencies
Maintainers
2
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stencil/angular-output-target - npm Package Compare versions

Comparing version 0.0.1-dev.11698436359.1aeaa5db to 0.0.1-dev.11705624885.1949250b

17

dist/generate-angular-component.js

@@ -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

4

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc