New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@stencil/vue-output-target

Package Overview
Dependencies
Maintainers
0
Versions
165
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.0.1-dev.11722627707.1cc8aa9d to 0.0.1-dev.11722640105.170faa02

33

dist/index.cjs.js
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
var path = require('path');

@@ -9,8 +7,3 @@ var util = require('util');

function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
var path__default = /*#__PURE__*/_interopDefaultLegacy(path);
var fs__default = /*#__PURE__*/_interopDefaultLegacy(fs);
const readFile = util.promisify(fs__default['default'].readFile);
const readFile = util.promisify(fs.readFile);
const toLowerCase = (str) => str.toLowerCase();

@@ -60,3 +53,3 @@ const dashToPascalCase = (str) => toLowerCase(str)

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

@@ -68,6 +61,6 @@ relativePath = '.';

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

@@ -156,4 +149,4 @@ try {

function generateProxies(config, 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.dirname(pkgData.types);
const dtsFilePath = path.join(rootDir, distTypesDir, GENERATED_DTS);
const componentsTypeFile = relativeImport(outputTarget.proxiesFile, dtsFilePath, '.d.ts');

@@ -207,4 +200,4 @@ const pathToCorePackageLoader = getPathToCorePackageLoader(config, outputTarget);

}
const srcDirectory = path__default['default'].join(__dirname, '..', 'vue-component-lib');
const destDirectory = path__default['default'].join(path__default['default'].dirname(outputTarget.proxiesFile), 'vue-component-lib');
const srcDirectory = path.join(__dirname, '..', 'vue-component-lib');
const destDirectory = path.join(path.dirname(outputTarget.proxiesFile), 'vue-component-lib');
return config.sys.copy([

@@ -223,8 +216,8 @@ {

const distOutputTarget = (_a = config.outputTargets) === null || _a === void 0 ? void 0 : _a.find((o) => o.type === 'dist');
const distAbsEsmLoaderPath = (distOutputTarget === null || distOutputTarget === void 0 ? void 0 : distOutputTarget.esmLoaderPath) && path__default['default'].isAbsolute(distOutputTarget.esmLoaderPath)
const distAbsEsmLoaderPath = (distOutputTarget === null || distOutputTarget === void 0 ? void 0 : distOutputTarget.esmLoaderPath) && path.isAbsolute(distOutputTarget.esmLoaderPath)
? distOutputTarget.esmLoaderPath
: null;
const distRelEsmLoaderPath = config.rootDir && distAbsEsmLoaderPath ? path__default['default'].relative(config.rootDir, distAbsEsmLoaderPath) : null;
const distRelEsmLoaderPath = config.rootDir && distAbsEsmLoaderPath ? path.relative(config.rootDir, distAbsEsmLoaderPath) : null;
const loaderDir = outputTarget.loaderDir || distRelEsmLoaderPath || DEFAULT_LOADER_DIR;
return normalizePath(path__default['default'].join(basePkg, loaderDir));
return normalizePath(path.join(basePkg, loaderDir));
}

@@ -264,4 +257,4 @@ const GENERATED_DTS = 'components.d.ts';

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

@@ -268,0 +261,0 @@ return results;

{
"name": "@stencil/vue-output-target",
"version": "0.0.1-dev.11722627707.1cc8aa9d",
"version": "0.0.1-dev.11722640105.170faa02",
"description": "Vue output target for @stencil/core components.",

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

"scripts": {
"prepublishOnly": "npm run build",
"prepublishOnly": "pnpm run build",
"prebuild": "rimraf ./dist",
"build": "tsc && npm run rollup",
"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 \"./({vue-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",

@@ -42,2 +42,9 @@ "test": "jest"

},
"devDependencies": {
"@types/node": "^18.0.0",
"jest": "^27.0.0",
"rimraf": "^5.0.0",
"rollup": "^4.14.3",
"typescript": "~5.0.0"
},
"jest": {

@@ -57,6 +64,3 @@ "transform": {

},
"gitHead": "cc8aa9d4d746533f71de3a74f7a90682d0d6218f",
"volta": {
"extends": "../../package.json"
}
"gitHead": "70faa02f63c711e57d0ddebb5c097bba2a19aedc"
}

@@ -118,12 +118,2 @@ // @ts-nocheck

if (navManager !== undefined) {
/**
* This prevents the browser from
* performing a page reload when pressing
* an Ionic component with routerLink.
* The page reload interferes with routing
* and causes ion-back-button to disappear
* since the local history is wiped on reload.
*/
ev.preventDefault();
let navigationPayload: any = { event: ev };

@@ -199,13 +189,2 @@ for (const key in props) {

// If router link is defined, add href to props
// in order to properly render an anchor tag inside
// of components that should become activatable and
// focusable with router link.
if (props[ROUTER_LINK_VALUE] !== EMPTY_PROP) {
propsToAdd = {
...propsToAdd,
href: props[ROUTER_LINK_VALUE],
};
}
/**

@@ -212,0 +191,0 @@ * vModelDirective is only needed on components that support v-model.

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