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

@tinymce/moxiedoc

Package Overview
Dependencies
Maintainers
2
Versions
82
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tinymce/moxiedoc - npm Package Compare versions

Comparing version 0.2.0-feature.20220319015838049.sha587caf2 to 0.2.0-feature.20220319022440987.shafaa192a

8

dist/templates/antora/antora.converter.js

@@ -54,4 +54,8 @@ "use strict";

const getNameFromFullName = (name) => name.split('.').slice(-1).join('');
const generateTypeXref = (type) => type.includes('tinymce', 0) ? 'xref:' + basePath + type.toLowerCase() + '.adoc[' + getNameFromFullName(type) + ']' : type;
const generateDefinedByXref = (definedBy) => 'xref:' + basePath + definedBy.toLowerCase() + '.adoc[' + getNameFromFullName(definedBy) + ']';
const getFilePathFromFullName = (name) => {
const filename = name.toLowerCase() === 'tinymce' ? 'tinymce.root' : name.toLowerCase();
return basePath + filename + '.adoc';
};
const generateTypeXref = (type) => type.includes('tinymce', 0) ? 'xref:' + getFilePathFromFullName(type) + '[' + getNameFromFullName(type) + ']' : type;
const generateDefinedByXref = (definedBy) => 'xref:' + getFilePathFromFullName(definedBy) + '[' + getNameFromFullName(definedBy) + ']';
const generateExamples = (examples) => {

@@ -58,0 +62,0 @@ let tmp = '\n==== Examples\n';

{
"name": "@tinymce/moxiedoc",
"version": "0.2.0-feature.20220319015838049.sha587caf2",
"version": "0.2.0-feature.20220319022440987.shafaa192a",
"description": "A tool for generating API documentation",

@@ -5,0 +5,0 @@ "author": "Tiny Technologies, Inc",

@@ -74,7 +74,12 @@ import { Return } from '../../lib/member';

const getFilePathFromFullName = (name: string): string => {
const filename = name.toLowerCase() === 'tinymce' ? 'tinymce.root' : name.toLowerCase();
return basePath + filename + '.adoc';
};
const generateTypeXref = (type: string): string =>
type.includes('tinymce', 0) ? 'xref:' + basePath + type.toLowerCase() + '.adoc[' + getNameFromFullName(type) + ']' : type;
type.includes('tinymce', 0) ? 'xref:' + getFilePathFromFullName(type) + '[' + getNameFromFullName(type) + ']' : type;
const generateDefinedByXref = (definedBy: string) =>
'xref:' + basePath + definedBy.toLowerCase() + '.adoc[' + getNameFromFullName(definedBy) + ']';
const generateDefinedByXref = (definedBy: string): string =>
'xref:' + getFilePathFromFullName(definedBy) + '[' + getNameFromFullName(definedBy) + ']';

@@ -81,0 +86,0 @@ const generateExamples = (examples: Array<{ content: string }>): string => {

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