@gerrit0/typedoc
Advanced tools
Comparing version 0.15.7 to 0.15.8
@@ -104,3 +104,3 @@ "use strict"; | ||
expandInputFiles(inputFiles = []) { | ||
let files = []; | ||
const files = []; | ||
const exclude = this.exclude ? paths_1.createMinimatch(this.exclude) : []; | ||
@@ -142,3 +142,3 @@ function isExcluded(fileName) { | ||
}; | ||
Application.VERSION = '0.15.7'; | ||
Application.VERSION = '0.15.8'; | ||
__decorate([ | ||
@@ -145,0 +145,0 @@ component_1.Option({ |
@@ -75,3 +75,3 @@ "use strict"; | ||
} | ||
let isDeclaration = node.isDeclarationFile; | ||
const isDeclaration = node.isDeclarationFile; | ||
if (isDeclaration) { | ||
@@ -78,0 +78,0 @@ const lib = this.converter.getDefaultLib(); |
@@ -35,3 +35,3 @@ "use strict"; | ||
addNodeConverter(converter) { | ||
for (let supports of converter.supports) { | ||
for (const supports of converter.supports) { | ||
this.nodeConverters[supports] = converter; | ||
@@ -63,3 +63,3 @@ } | ||
const keys = _.keys(this.nodeConverters); | ||
for (let key of keys) { | ||
for (const key of keys) { | ||
if (converters[key] === converter) { | ||
@@ -117,3 +117,3 @@ delete converters[key]; | ||
type = type || context.getTypeAtLocation(node); | ||
for (let converter of this.typeNodeConverters) { | ||
for (const converter of this.typeNodeConverters) { | ||
if (converter.supportsNode(context, node, type)) { | ||
@@ -125,3 +125,3 @@ return converter.convertNode(context, node, type); | ||
if (type) { | ||
for (let converter of this.typeTypeConverters) { | ||
for (const converter of this.typeTypeConverters) { | ||
if (converter.supportsType(context, type)) { | ||
@@ -174,3 +174,3 @@ return converter.convertType(context, type); | ||
const project = context.project; | ||
for (let id in project.reflections) { | ||
for (const id in project.reflections) { | ||
if (!project.reflections.hasOwnProperty(id)) { | ||
@@ -177,0 +177,0 @@ continue; |
@@ -19,3 +19,3 @@ "use strict"; | ||
while (node.parent && node.parent.kind === ts.SyntaxKind.ModuleDeclaration) { | ||
let parent = node.parent; | ||
const parent = node.parent; | ||
if (node.name.pos === parent.name.end + 1) { | ||
@@ -22,0 +22,0 @@ node = parent; |
@@ -28,3 +28,3 @@ "use strict"; | ||
const comment = method ? method.comment : index_2.createComment(node); | ||
for (let parameter of node.parameters) { | ||
for (const parameter of node.parameters) { | ||
this.addParameterProperty(context, parameter, comment); | ||
@@ -31,0 +31,0 @@ } |
@@ -25,3 +25,3 @@ "use strict"; | ||
if (node.members) { | ||
for (let member of node.members) { | ||
for (const member of node.members) { | ||
this.convertMember(context, member); | ||
@@ -28,0 +28,0 @@ } |
@@ -121,3 +121,3 @@ "use strict"; | ||
onBeginResolve(context) { | ||
for (let id in this.comments) { | ||
for (const id in this.comments) { | ||
if (!this.comments.hasOwnProperty(id)) { | ||
@@ -201,3 +201,3 @@ continue; | ||
}); | ||
for (let key in project.symbolMapping) { | ||
for (const key in project.symbolMapping) { | ||
if (project.symbolMapping.hasOwnProperty(key) && deletedIds.includes(project.symbolMapping[key])) { | ||
@@ -261,3 +261,3 @@ delete project.symbolMapping[key]; | ||
}); | ||
let id = reflection.id; | ||
const id = reflection.id; | ||
delete project.reflections[id]; | ||
@@ -268,3 +268,3 @@ if (deletedIds) { | ||
else { | ||
for (let key in project.symbolMapping) { | ||
for (const key in project.symbolMapping) { | ||
if (project.symbolMapping.hasOwnProperty(key) && project.symbolMapping[key] === id) { | ||
@@ -271,0 +271,0 @@ delete project.symbolMapping[key]; |
@@ -84,3 +84,3 @@ "use strict"; | ||
onBeginResolve(context) { | ||
for (let symbolID in this.usages) { | ||
for (const symbolID in this.usages) { | ||
if (!this.usages.hasOwnProperty(symbolID)) { | ||
@@ -87,0 +87,0 @@ continue; |
@@ -20,3 +20,3 @@ "use strict"; | ||
let name; | ||
for (let key in project.reflections) { | ||
for (const key in project.reflections) { | ||
const reflection = project.reflections[key]; | ||
@@ -23,0 +23,0 @@ if (!reflection.comment) { |
@@ -23,5 +23,4 @@ "use strict"; | ||
ShellJS.pushd(path); | ||
let url; | ||
for (let i = 0, c = repoLinks.length; i < c; i++) { | ||
url = /(github(?:\.[a-z]+)*\.com)[:\/]([^\/]+)\/(.*)/.exec(repoLinks[i]); | ||
const url = /(github(?:\.[a-z]+)*\.com)[:\/]([^\/]+)\/(.*)/.exec(repoLinks[i]); | ||
if (url) { | ||
@@ -28,0 +27,0 @@ this.gitHubHostname = url[1]; |
@@ -33,3 +33,3 @@ "use strict"; | ||
directory.groups = GroupPlugin_1.getReflectionGroups(directory.getAllReflections()); | ||
for (let key in directory.directories) { | ||
for (const key in directory.directories) { | ||
if (!directory.directories.hasOwnProperty(key)) { | ||
@@ -36,0 +36,0 @@ continue; |
@@ -36,5 +36,5 @@ "use strict"; | ||
onBeginDocument(context, reflection, node) { | ||
let packageAndReadmeFound = () => (this.noReadmeFile || this.readmeFile) && this.packageFile; | ||
let reachedTopDirectory = dirName => dirName === Path.resolve(Path.join(dirName, '..')); | ||
let visitedDirBefore = dirName => this.visited.includes(dirName); | ||
const packageAndReadmeFound = () => (this.noReadmeFile || this.readmeFile) && this.packageFile; | ||
const reachedTopDirectory = dirName => dirName === Path.resolve(Path.join(dirName, '..')); | ||
const visitedDirBefore = dirName => this.visited.includes(dirName); | ||
if (!node) { | ||
@@ -41,0 +41,0 @@ return; |
@@ -33,3 +33,3 @@ "use strict"; | ||
} | ||
let common = Math.min(symbolName.length, nodeName.length); | ||
const common = Math.min(symbolName.length, nodeName.length); | ||
symbolName = symbolName.slice(-common); | ||
@@ -36,0 +36,0 @@ nodeName = nodeName.slice(-common); |
@@ -53,3 +53,3 @@ "use strict"; | ||
convertLiteral(context, symbol, node) { | ||
for (let declaration of symbol.declarations) { | ||
for (const declaration of symbol.declarations) { | ||
if (context.visitStack.includes(declaration)) { | ||
@@ -56,0 +56,0 @@ if (declaration.kind === ts.SyntaxKind.TypeLiteral || |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
const utils_1 = require("./utils"); | ||
let REFLECTION_ID = 0; | ||
@@ -233,3 +234,3 @@ function resetReflectionID() { | ||
getChildByName(arg) { | ||
const names = Array.isArray(arg) ? arg : arg.split('.'); | ||
const names = Array.isArray(arg) ? arg : utils_1.splitUnquotedString(arg, '.'); | ||
const name = names[0]; | ||
@@ -254,3 +255,3 @@ let result; | ||
findReflectionByName(arg) { | ||
const names = Array.isArray(arg) ? arg : arg.split('.'); | ||
const names = Array.isArray(arg) ? arg : utils_1.splitUnquotedString(arg, '.'); | ||
const reflection = this.getChildByName(names); | ||
@@ -257,0 +258,0 @@ if (reflection) { |
@@ -61,3 +61,3 @@ "use strict"; | ||
toObject() { | ||
let result = super.toObject(); | ||
const result = super.toObject(); | ||
if (this.type) { | ||
@@ -64,0 +64,0 @@ result.type = this.type.toObject(); |
@@ -8,1 +8,2 @@ export { Reflection, ReflectionKind, ReflectionFlag, TypeParameterContainer, Decorator, TraverseProperty } from './abstract'; | ||
export { TypeParameterReflection } from './type-parameter'; | ||
export { splitUnquotedString } from './utils'; |
@@ -20,2 +20,4 @@ "use strict"; | ||
exports.TypeParameterReflection = type_parameter_1.TypeParameterReflection; | ||
var utils_1 = require("./utils"); | ||
exports.splitUnquotedString = utils_1.splitUnquotedString; | ||
//# sourceMappingURL=index.js.map |
@@ -6,2 +6,3 @@ "use strict"; | ||
const container_1 = require("./container"); | ||
const utils_1 = require("./utils"); | ||
class ProjectReflection extends container_1.ContainerReflection { | ||
@@ -20,3 +21,3 @@ constructor(name) { | ||
const values = []; | ||
for (let id in this.reflections) { | ||
for (const id in this.reflections) { | ||
const reflection = this.reflections[id]; | ||
@@ -30,5 +31,5 @@ if (reflection.kindOf(kind)) { | ||
findReflectionByName(arg) { | ||
const names = Array.isArray(arg) ? arg : arg.split('.'); | ||
const names = Array.isArray(arg) ? arg : utils_1.splitUnquotedString(arg, '.'); | ||
const name = names.pop(); | ||
search: for (let key in this.reflections) { | ||
search: for (const key in this.reflections) { | ||
const reflection = this.reflections[key]; | ||
@@ -35,0 +36,0 @@ if (reflection.name !== name) { |
@@ -15,3 +15,3 @@ "use strict"; | ||
let res = indent + this.name; | ||
for (let key in this.directories) { | ||
for (const key in this.directories) { | ||
if (!this.directories.hasOwnProperty(key)) { | ||
@@ -18,0 +18,0 @@ continue; |
@@ -11,3 +11,3 @@ "use strict"; | ||
toObject() { | ||
let result = {}; | ||
const result = {}; | ||
result.type = this.type; | ||
@@ -14,0 +14,0 @@ return result; |
{ | ||
"name": "@gerrit0/typedoc", | ||
"description": "Create api documentation for TypeScript projects.", | ||
"version": "0.15.7", | ||
"version": "0.15.8", | ||
"homepage": "https://typedoc.org", | ||
@@ -6,0 +6,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1327263
521
12038