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

vue-docgen-api

Package Overview
Dependencies
Maintainers
3
Versions
271
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-docgen-api - npm Package Compare versions

Comparing version 4.72.3 to 4.72.5

79

dist/utils/resolvePathFrom.js
"use strict";
var __values = (this && this.__values) || function(o) {
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
if (m) return m.call(o);
if (o && typeof o.length === "number") return {
next: function () {
if (o && i >= o.length) o = void 0;
return { value: o && o[i++], done: !o };
}
};
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
};
var __importDefault = (this && this.__importDefault) || function (mod) {

@@ -10,31 +21,22 @@ return (mod && mod.__esModule) ? mod : { "default": mod };

function resolvePathFrom(path, from) {
var e_1, _a;
var finalPath = null;
SUFFIXES.forEach(function (s) {
if (!finalPath) {
try {
finalPath = require.resolve("".concat(path).concat(s), {
paths: from
});
try {
for (var SUFFIXES_1 = __values(SUFFIXES), SUFFIXES_1_1 = SUFFIXES_1.next(); !SUFFIXES_1_1.done; SUFFIXES_1_1 = SUFFIXES_1.next()) {
var s = SUFFIXES_1_1.value;
if (!finalPath) {
try {
finalPath = require.resolve("".concat(path).concat(s), {
paths: from
});
}
catch (e) {
// eat the error
}
}
catch (e) {
// eat the error
}
}
if (!finalPath) {
try {
finalPath = require.resolve((0, path_1.join)(path, "index".concat(s)), {
paths: from
});
}
catch (e) {
// eat the error
}
}
if (!finalPath) {
for (var i = 0; i < from.length; i++) {
if (!finalPath) {
try {
finalPath = require.resolve((0, path_1.join)(from[i], "".concat(path).concat(s)));
if (finalPath.length) {
break;
}
finalPath = require.resolve((0, path_1.join)(path, "index".concat(s)), {
paths: from
});
}

@@ -45,4 +47,27 @@ catch (e) {

}
if (!finalPath) {
for (var i = 0; i < from.length; i++) {
try {
finalPath = require.resolve((0, path_1.join)(from[i], "".concat(path).concat(s)));
if (finalPath.length) {
break;
}
}
catch (e) {
// eat the error
}
}
}
if (finalPath) {
break;
}
}
});
}
catch (e_1_1) { e_1 = { error: e_1_1 }; }
finally {
try {
if (SUFFIXES_1_1 && !SUFFIXES_1_1.done && (_a = SUFFIXES_1.return)) _a.call(SUFFIXES_1);
}
finally { if (e_1) throw e_1.error; }
}
try {

@@ -49,0 +74,0 @@ var packagePath = require.resolve((0, path_1.join)(path, 'package.json'), {

{
"name": "vue-docgen-api",
"version": "4.72.3",
"version": "4.72.5",
"description": "Toolbox to extract information from Vue component files for documentation generation purposes.",

@@ -5,0 +5,0 @@ "homepage": "https://vue-styleguidist.github.io",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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