🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

typedoc

Package Overview
Dependencies
Maintainers
5
Versions
335
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typedoc - npm Package Compare versions

Comparing version

to
0.28.5

8

dist/lib/converter/types.js

@@ -462,2 +462,10 @@ import assert from "assert";

}
// #2954 mapped type aliases are special! The type that we have here will
// not point at the type alias which names it like we want, but instead at
// the mapped type instantiation. Fall back to converting via the original
// type node to avoid creating a reference which points to the mapped type.
if (originalNode && ts.isTypeReferenceNode(originalNode) && isObjectType(type) &&
type.objectFlags & ts.ObjectFlags.Mapped) {
return referenceConverter.convert(context, originalNode);
}
let name;

@@ -464,0 +472,0 @@ if (ts.isIdentifier(node.typeName)) {

2

dist/lib/models/index.d.ts

@@ -8,3 +8,3 @@ export * from "./Comment.js";

export * from "./ParameterReflection.js";
export * from "./ProjectReflection.js";
export { ProjectReflection } from "./ProjectReflection.js";
export * from "./ReferenceReflection.js";

@@ -11,0 +11,0 @@ export * from "./Reflection.js";

@@ -8,3 +8,3 @@ export * from "./Comment.js";

export * from "./ParameterReflection.js";
export * from "./ProjectReflection.js";
export { ProjectReflection } from "./ProjectReflection.js";
export * from "./ReferenceReflection.js";

@@ -11,0 +11,0 @@ export * from "./Reflection.js";

@@ -8,5 +8,6 @@ import { type Reflection } from "./Reflection.js";

import { ReflectionSymbolId } from "./ReflectionSymbolId.js";
import { type Deserializer, JSONOutput, type Serializer } from "#serialization";
import type { Deserializer, JSONOutput, Serializer } from "#serialization";
import { type NormalizedPath } from "#utils";
import type { FileRegistry } from "./FileRegistry.js";
export declare const JSON_SCHEMA_VERSION = "2.0";
/**

@@ -13,0 +14,0 @@ * A reflection that represents the root of the project.

@@ -8,4 +8,5 @@ import { TraverseProperty } from "./Reflection.js";

import { ReflectionSymbolId } from "./ReflectionSymbolId.js";
import { JSONOutput } from "#serialization";
import { assertNever, DefaultMap, i18n, removeIfPresent, StableKeyMap } from "#utils";
// Keep this in sync with JSONOutput.SCHEMA_VERSION
export const JSON_SCHEMA_VERSION = "2.0";
/**

@@ -313,3 +314,3 @@ * A reflection that represents the root of the project.

return {
schemaVersion: JSONOutput.SCHEMA_VERSION,
schemaVersion: JSON_SCHEMA_VERSION,
...super.toObject(serializer),

@@ -316,0 +317,0 @@ variant: this.variant,

@@ -133,9 +133,10 @@ var __esDecorate = (this && this.__esDecorate) || function (ctor, descriptorIn, decorators, contextIn, initializers, extraInitializers) {

if (!isSupportedLanguage(lang)) {
this.application.logger.warn(i18n.unsupported_highlight_language_0_not_highlighted_in_comment_for_1(lang, getFriendlyFullName(this.page?.model || { name: "(unknown)" })));
if (isLoadedLanguage(lang)) {
this.application.logger.warn(i18n.unloaded_language_0_not_highlighted_in_comment_for_1(lang, getFriendlyFullName(this.page?.model || { name: "(unknown)" })));
}
else {
this.application.logger.warn(i18n.unsupported_highlight_language_0_not_highlighted_in_comment_for_1(lang, getFriendlyFullName(this.page?.model || { name: "(unknown)" })));
}
return text;
}
if (!isLoadedLanguage(lang)) {
this.application.logger.warn(i18n.unloaded_language_0_not_highlighted_in_comment_for_1(lang, getFriendlyFullName(this.page?.model || { name: "(unknown)" })));
return text;
}
return highlight(text, lang);

@@ -142,0 +143,0 @@ }

@@ -31,2 +31,3 @@ /**

*/
// Keep this in sync with JSON_SCHEMA_VERSION in ProjectReflection.ts
export const SCHEMA_VERSION = "2.0";

@@ -8,3 +8,2 @@ export * from "./array.js";

export * from "./i18n.js";
export * from "./index.js";
export * as JSX from "./jsx.js";

@@ -11,0 +10,0 @@ export * from "./logger.js";

@@ -10,3 +10,2 @@ // utils-common includes utilities which don't depend on anything, and thus can be used

export * from "./i18n.js";
export * from "./index.js";
export * as JSX from "./jsx.js";

@@ -13,0 +12,0 @@ export * from "./logger.js";

@@ -125,4 +125,7 @@ import * as shiki from "@gerrit0/mini-shiki";

}
function isPlainLanguage(lang) {
return ignoredLanguages?.includes(lang) || plaintextLanguages.includes(lang);
}
export function isSupportedLanguage(lang) {
return ignoredLanguages?.includes(lang) || getSupportedLanguages().includes(lang);
return isPlainLanguage(lang) || supportedLanguages.includes(lang);
}

@@ -136,3 +139,3 @@ export function getSupportedLanguages() {

export function isLoadedLanguage(lang) {
return (isSupportedLanguage(lang) || highlighter?.supports(lang) || false);
return isPlainLanguage(lang) || highlighter?.supports(lang) || false;
}

@@ -139,0 +142,0 @@ export function highlight(code, lang) {

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

@@ -6,0 +6,0 @@ "type": "module",