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.11712342703.1f8a1cde to 0.0.1-dev.11713891986.18355566

2

dist/generate-angular-component.d.ts

@@ -24,2 +24,2 @@ import type { ComponentCompilerEvent } from '@stencil/core/internal';

*/
export declare const createComponentTypeDefinition: (outputType: OutputType, tagNameAsPascal: string, events: readonly ComponentCompilerEvent[], componentCorePackage: string, customElementsDir?: string | undefined) => string;
export declare const createComponentTypeDefinition: (outputType: OutputType, tagNameAsPascal: string, events: readonly ComponentCompilerEvent[], componentCorePackage: string, customElementsDir?: string) => string;

@@ -61,3 +61,3 @@ 'use strict';

function relativeImport(pathFrom, pathTo, ext) {
let relativePath = path__default['default'].relative(path__default['default'].dirname(pathFrom), path__default['default'].dirname(pathTo));
let relativePath = path__default["default"].relative(path__default["default"].dirname(pathFrom), path__default["default"].dirname(pathTo));
if (relativePath === '') {

@@ -69,7 +69,7 @@ relativePath = '.';

}
return normalizePath(`${relativePath}/${path__default['default'].basename(pathTo, ext)}`);
return normalizePath(`${relativePath}/${path__default["default"].basename(pathTo, ext)}`);
}
async function readPackageJson(config, rootDir) {
var _a;
const pkgJsonPath = path__default['default'].join(rootDir, 'package.json');
const pkgJsonPath = path__default["default"].join(rootDir, 'package.json');
let pkgJson;

@@ -341,3 +341,3 @@ try {

}
const targetDir = path__default['default'].dirname(outputTarget.directivesProxyFile);
const targetDir = path__default["default"].dirname(outputTarget.directivesProxyFile);
const normalizedValueAccessors = outputTarget.valueAccessorConfigs.reduce((allAccessors, va) => {

@@ -360,4 +360,4 @@ const elementSelectors = Array.isArray(va.elementSelectors) ? va.elementSelectors : [va.elementSelectors];

const targetFileName = `${type}-value-accessor.ts`;
const targetFilePath = path__default['default'].join(targetDir, targetFileName);
const srcFilePath = path__default['default'].join(__dirname, '../resources/control-value-accessors/', targetFileName);
const targetFilePath = path__default["default"].join(targetDir, targetFileName);
const srcFilePath = path__default["default"].join(__dirname, '../resources/control-value-accessors/', targetFileName);
const srcFileContents = await compilerCtx.fs.readFile(srcFilePath);

@@ -367,3 +367,3 @@ const finalText = createValueAccessor(srcFileContents, normalizedValueAccessors[valueAccessorType]);

}));
await copyResources(config, ['value-accessor.ts'], targetDir);
await copyResources$1(config, ['value-accessor.ts'], targetDir);
}

@@ -376,3 +376,3 @@ function createValueAccessor(srcFileContents, valueAccessor) {

}
function copyResources(config, resourcesFilesToCopy, directory) {
function copyResources$1(config, resourcesFilesToCopy, directory) {
if (!config.sys || !config.sys.copy) {

@@ -383,4 +383,4 @@ throw new Error('stencil is not properly intialized at this step. Notify the developer');

return {
src: path__default['default'].join(__dirname, '../resources/control-value-accessors/', rf),
dest: path__default['default'].join(directory, rf),
src: path__default["default"].join(__dirname, '../resources/control-value-accessors/', rf),
dest: path__default["default"].join(directory, rf),
keepDirStructure: false,

@@ -390,3 +390,3 @@ warn: false,

});
return config.sys.copy(copyTasks, path__default['default'].join(directory));
return config.sys.copy(copyTasks, path__default["default"].join(directory));
}

@@ -422,3 +422,3 @@ const VALUE_ACCESSOR_SELECTORS = `<VALUE_ACCESSOR_SELECTORS>`;

compilerCtx.fs.writeFile(outputTarget.directivesProxyFile, finalText),
copyResources$1(config, outputTarget),
copyResources(config, outputTarget),
generateAngularDirectivesFile(compilerCtx, filteredComponents, outputTarget),

@@ -431,8 +431,8 @@ generateValueAccessors(compilerCtx, filteredComponents, outputTarget, config),

}
async function copyResources$1(config, outputTarget) {
async function copyResources(config, outputTarget) {
if (!config.sys || !config.sys.copy || !config.sys.glob) {
throw new Error('stencil is not properly initialized at this step. Notify the developer');
}
const srcDirectory = path__default['default'].join(__dirname, '..', 'angular-component-lib');
const destDirectory = path__default['default'].join(path__default['default'].dirname(outputTarget.directivesProxyFile), 'angular-component-lib');
const srcDirectory = path__default["default"].join(__dirname, '..', 'angular-component-lib');
const destDirectory = path__default["default"].join(path__default["default"].dirname(outputTarget.directivesProxyFile), 'angular-component-lib');
return config.sys.copy([

@@ -448,4 +448,4 @@ {

function generateProxies(components, pkgData, outputTarget, rootDir) {
const distTypesDir = path__default['default'].dirname(pkgData.types);
const dtsFilePath = path__default['default'].join(rootDir, distTypesDir, GENERATED_DTS);
const distTypesDir = path__default["default"].dirname(pkgData.types);
const dtsFilePath = path__default["default"].join(rootDir, distTypesDir, GENERATED_DTS);
const { outputType } = outputTarget;

@@ -574,7 +574,7 @@ const componentsTypeFile = relativeImport(outputTarget.directivesProxyFile, dtsFilePath, '.d.ts');

}
if (outputTarget.directivesProxyFile && !path__default['default'].isAbsolute(outputTarget.directivesProxyFile)) {
results.directivesProxyFile = normalizePath(path__default['default'].join(config.rootDir, outputTarget.directivesProxyFile));
if (outputTarget.directivesProxyFile && !path__default["default"].isAbsolute(outputTarget.directivesProxyFile)) {
results.directivesProxyFile = normalizePath(path__default["default"].join(config.rootDir, outputTarget.directivesProxyFile));
}
if (outputTarget.directivesArrayFile && !path__default['default'].isAbsolute(outputTarget.directivesArrayFile)) {
results.directivesArrayFile = normalizePath(path__default['default'].join(config.rootDir, outputTarget.directivesArrayFile));
if (outputTarget.directivesArrayFile && !path__default["default"].isAbsolute(outputTarget.directivesArrayFile)) {
results.directivesArrayFile = normalizePath(path__default["default"].join(config.rootDir, outputTarget.directivesArrayFile));
}

@@ -581,0 +581,0 @@ if (outputTarget.includeSingleComponentAngularModules !== undefined) {

@@ -355,3 +355,3 @@ import path from 'path';

}));
await copyResources(config, ['value-accessor.ts'], targetDir);
await copyResources$1(config, ['value-accessor.ts'], targetDir);
}

@@ -364,3 +364,3 @@ function createValueAccessor(srcFileContents, valueAccessor) {

}
function copyResources(config, resourcesFilesToCopy, directory) {
function copyResources$1(config, resourcesFilesToCopy, directory) {
if (!config.sys || !config.sys.copy) {

@@ -408,3 +408,3 @@ throw new Error('stencil is not properly intialized at this step. Notify the developer');

compilerCtx.fs.writeFile(outputTarget.directivesProxyFile, finalText),
copyResources$1(config, outputTarget),
copyResources(config, outputTarget),
generateAngularDirectivesFile(compilerCtx, filteredComponents, outputTarget),

@@ -417,3 +417,3 @@ generateValueAccessors(compilerCtx, filteredComponents, outputTarget, config),

}
async function copyResources$1(config, outputTarget) {
async function copyResources(config, outputTarget) {
if (!config.sys || !config.sys.copy || !config.sys.glob) {

@@ -420,0 +420,0 @@ throw new Error('stencil is not properly initialized at this step. Notify the developer');

@@ -7,3 +7,3 @@ /**

*/
export declare type OutputType = 'component' | 'scam' | 'standalone';
export type OutputType = 'component' | 'scam' | 'standalone';
export interface OutputTargetAngular {

@@ -32,3 +32,3 @@ /**

}
export declare type ValueAccessorTypes = 'text' | 'radio' | 'select' | 'number' | 'boolean';
export type ValueAccessorTypes = 'text' | 'radio' | 'select' | 'number' | 'boolean';
export interface ValueAccessorConfig {

@@ -35,0 +35,0 @@ elementSelectors: string | string[];

{
"name": "@stencil/angular-output-target",
"version": "0.0.1-dev.11712342703.1f8a1cde",
"version": "0.0.1-dev.11713891986.18355566",
"description": "Angular output target for @stencil/core components.",

@@ -17,11 +17,11 @@ "main": "dist/index.cjs.js",

"scripts": {
"prepublishOnly": "npm run build",
"prebuild": "rimraf ./dist && npm run test",
"build": "tsc && npm run rollup",
"prepublishOnly": "pnpm run build",
"prebuild": "rimraf ./dist && pnpm run test",
"build": "tsc && pnpm run rollup",
"watch": "tsc --watch",
"rollup": "rollup -c",
"version": "npm run build",
"prettier": "npm run prettier.base -- --write",
"version": "pnpm run build",
"prettier": "pnpm run prettier.base --write",
"prettier.base": "prettier \"./({angular-component-lib,src,test,__tests__}/**/*.{ts,tsx,js,jsx})|*.{ts,tsx,js,jsx}\"",
"prettier.dry-run": "npm run prettier.base -- --list-different",
"prettier.dry-run": "pnpm run prettier.base --list-different",
"release": "np",

@@ -43,3 +43,9 @@ "test": "jest --passWithNoTests",

"@angular/core": "8.2.14",
"@angular/forms": "8.2.14"
"@angular/forms": "8.2.14",
"@types/node": "^18.0.0",
"jest": "^27.0.0",
"jest-environment-jsdom": "^27.0.0",
"rimraf": "^5.0.0",
"rollup": "^2.23.1",
"typescript": "~5.0.4"
},

@@ -63,3 +69,3 @@ "peerDependencies": {

},
"gitHead": "f8a1cde8b250917eac8ec13f3d8f43305bd17be9",
"gitHead": "8355566df241163a27ee8e7ddcb6e79b8d79d2df",
"volta": {

@@ -66,0 +72,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