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

@stencil/vue-output-target

Package Overview
Dependencies
Maintainers
13
Versions
158
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

Comparing version 0.2.2-2 to 0.2.2-3

8

dist/index.cjs.js

@@ -153,10 +153,8 @@ 'use strict';

let registerCustomElements = '';
if (outputTarget.useCustomElementsBuild) {
if (outputTarget.useCustomElementsBuild && outputTarget.componentCorePackage !== undefined) {
const cmpImports = components.map(component => {
const pascalImport = dashToPascalCase(component.tagName);
return `${pascalImport} as ${pascalImport}Cmp`;
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/components/${component.tagName}.js';`;
});
sourceImports = !outputTarget.componentCorePackage
? `import { ${cmpImports.join(', ')} } from '${normalizePath(componentsTypeFile)}';\n`
: `import { ${cmpImports.join(', ')} } from '${normalizePath(outputTarget.componentCorePackage)}';\n`;
sourceImports = cmpImports.join('\n');
}

@@ -163,0 +161,0 @@ else if (outputTarget.includePolyfills && outputTarget.includeDefineCustomElements) {

@@ -144,10 +144,8 @@ import path from 'path';

let registerCustomElements = '';
if (outputTarget.useCustomElementsBuild) {
if (outputTarget.useCustomElementsBuild && outputTarget.componentCorePackage !== undefined) {
const cmpImports = components.map(component => {
const pascalImport = dashToPascalCase(component.tagName);
return `${pascalImport} as ${pascalImport}Cmp`;
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/components/${component.tagName}.js';`;
});
sourceImports = !outputTarget.componentCorePackage
? `import { ${cmpImports.join(', ')} } from '${normalizePath(componentsTypeFile)}';\n`
: `import { ${cmpImports.join(', ')} } from '${normalizePath(outputTarget.componentCorePackage)}';\n`;
sourceImports = cmpImports.join('\n');
}

@@ -154,0 +152,0 @@ else if (outputTarget.includePolyfills && outputTarget.includeDefineCustomElements) {

@@ -29,10 +29,8 @@ import path from 'path';

let registerCustomElements = '';
if (outputTarget.useCustomElementsBuild) {
if (outputTarget.useCustomElementsBuild && outputTarget.componentCorePackage !== undefined) {
const cmpImports = components.map(component => {
const pascalImport = dashToPascalCase(component.tagName);
return `${pascalImport} as ${pascalImport}Cmp`;
return `import { ${pascalImport} as ${pascalImport}Cmp } from '${normalizePath(outputTarget.componentCorePackage)}/components/${component.tagName}.js';`;
});
sourceImports = !outputTarget.componentCorePackage
? `import { ${cmpImports.join(', ')} } from '${normalizePath(componentsTypeFile)}';\n`
: `import { ${cmpImports.join(', ')} } from '${normalizePath(outputTarget.componentCorePackage)}';\n`;
sourceImports = cmpImports.join('\n');
}

@@ -39,0 +37,0 @@ else if (outputTarget.includePolyfills && outputTarget.includeDefineCustomElements) {

{
"name": "@stencil/vue-output-target",
"version": "0.2.2-2",
"version": "0.2.2-3",
"description": "Vue output target for @stencil/core components.",

@@ -5,0 +5,0 @@ "main": "dist/index.cjs.js",

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