Socket
Socket
Sign inDemoInstall

typedoc

Package Overview
Dependencies
11
Maintainers
5
Versions
305
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.24.2 to 0.24.3

3

dist/lib/application.js

@@ -376,2 +376,5 @@ "use strict";

const rootDir = (0, fs_1.deriveRootDir)(this.entryPoints);
this.logger.verbose(`Derived root dir is ${rootDir}, will expand ${this.entryPoints
.map(index_2.normalizePath)
.join(", ")}`);
const entryPoints = this.entryPoints.flatMap((entry) => (0, fs_1.glob)(entry, rootDir));

@@ -378,0 +381,0 @@ this.logger.verbose(`Merging entry points:\n\t${entryPoints.map(paths_1.nicePath).join("\n\t")}`);

5

dist/lib/models/reflections/ReflectionSymbolId.js

@@ -13,2 +13,3 @@ "use strict";

const validation_1 = require("../../utils/validation");
const paths_1 = require("../../utils/paths");
/**

@@ -23,3 +24,3 @@ * This exists so that TypeDoc can store a unique identifier for a `ts.Symbol` without

declaration ?? (declaration = symbol?.declarations?.[0]);
this.fileName = declaration?.getSourceFile().fileName ?? "\0";
this.fileName = (0, paths_1.normalizePath)(declaration?.getSourceFile().fileName ?? "\0");
if (symbol.declarations?.some(typescript_1.default.isSourceFile)) {

@@ -50,3 +51,3 @@ this.qualifiedName = "";

sourceFileName: (0, path_1.isAbsolute)(this.fileName)
? (0, path_1.relative)(serializer.projectRoot, resolveDeclarationMaps(this.fileName))
? (0, paths_1.normalizePath)((0, path_1.relative)(serializer.projectRoot, resolveDeclarationMaps(this.fileName)))
: this.fileName,

@@ -53,0 +54,0 @@ qualifiedName: this.qualifiedName,

@@ -53,7 +53,13 @@ "use strict";

function deriveRootDir(globPaths) {
const globs = (0, paths_1.createMinimatch)(globPaths);
const rootPaths = globs.flatMap((glob) => (0, array_1.filterMap)(glob.set, (set) => {
const normalized = globPaths.map(paths_1.normalizePath);
const globs = (0, paths_1.createMinimatch)(normalized);
const rootPaths = globs.flatMap((glob, i) => (0, array_1.filterMap)(glob.set, (set) => {
const stop = set.findIndex((part) => typeof part !== "string");
const path = stop === -1 ? set : set.slice(0, stop);
return `/${path.join("/").replace(/^\//, "")}`;
if (stop === -1) {
return normalized[i];
}
else {
const kept = set.slice(0, stop).join("/");
return normalized[i].substring(0, normalized[i].indexOf(kept) + kept.length);
}
}));

@@ -60,0 +66,0 @@ return getCommonDirectory(rootPaths);

{
"name": "typedoc",
"description": "Create api documentation for TypeScript projects.",
"version": "0.24.2",
"version": "0.24.3",
"homepage": "https://typedoc.org",

@@ -6,0 +6,0 @@ "exports": {

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc