myst-templates
Advanced tools
Comparing version 1.0.20 to 1.0.21
@@ -35,3 +35,3 @@ import type { TemplateKind } from 'myst-common'; | ||
validateParts(parts: any, options: Record<string, any>, file?: string): Record<string, string | string[]>; | ||
validateDoc(frontmatter: any, options: Record<string, any>, bibliography?: string[], file?: string): import("myst-frontmatter").PageFrontmatter; | ||
validateDoc(frontmatter: any, options: Record<string, any>, bibliography?: string[], file?: string): import("myst-frontmatter").ProjectFrontmatter; | ||
ensureTemplateExistsOnPath(force?: boolean): Promise<void>; | ||
@@ -38,0 +38,0 @@ prepare(opts: { |
@@ -14,3 +14,3 @@ import type { ValidationOptions } from 'simple-validators'; | ||
export declare function validateTemplateParts(parts: any, partsDefinitions: TemplatePartDefinition[], options: Record<string, any>, opts: ValidationOptions): Record<string, string | string[]> | undefined; | ||
export declare function validateTemplateDoc(frontmatter: any, docDefinitions: TemplateDocDefinition[], options: Record<string, any>, opts: ValidationOptions): import("myst-frontmatter").PageFrontmatter | undefined; | ||
export declare function validateTemplateDoc(frontmatter: any, docDefinitions: TemplateDocDefinition[], options: Record<string, any>, opts: ValidationOptions): import("myst-frontmatter").ProjectFrontmatter | undefined; | ||
export declare function validateTemplateDocDefinition(input: any, opts: ValidationOptions): TemplateDocDefinition | undefined; | ||
@@ -17,0 +17,0 @@ export declare function validateTemplateOptionDefinition(session: ISession, input: any, opts: ValidationOptions): TemplateOptionDefinition | undefined; |
@@ -6,3 +6,3 @@ import fs from 'node:fs'; | ||
import { TemplateKind, TemplateOptionType } from 'myst-common'; | ||
import { PAGE_FRONTMATTER_KEYS, RESERVED_EXPORT_KEYS, validateAffiliation, validateAndStashObject, validateContributor, validateGithubUrl, validateLicenses, validatePageFrontmatter, } from 'myst-frontmatter'; | ||
import { PAGE_FRONTMATTER_KEYS, RESERVED_EXPORT_KEYS, validateAffiliation, validateAndStashObject, validateContributor, validateGithubUrl, validateLicenses, validateProjectFrontmatter, } from 'myst-frontmatter'; | ||
import { defined, incrementOptions, validateBoolean, validateChoice, validateEnum, validateKeys, validateList, validateNumber, validateObject, validateObjectKeys, validateString, validateUrl, validationError, validationWarning, } from 'simple-validators'; | ||
@@ -140,3 +140,3 @@ import { KIND_TO_EXT } from './download.js'; | ||
export function validateTemplateDoc(frontmatter, docDefinitions, options, opts) { | ||
const output = validatePageFrontmatter(frontmatter, opts); | ||
const output = validateProjectFrontmatter(frontmatter, opts); | ||
if (output === undefined) | ||
@@ -143,0 +143,0 @@ return undefined; |
{ | ||
"name": "myst-templates", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "API types and scripts for downloading MyST Templates", | ||
@@ -46,4 +46,4 @@ "author": "Rowan Cockett <rowan@curvenote.com>", | ||
"myst-cli-utils": "^2.0.10", | ||
"myst-common": "^1.5.1", | ||
"myst-frontmatter": "^1.5.1", | ||
"myst-common": "^1.5.2", | ||
"myst-frontmatter": "^1.5.2", | ||
"node-fetch": "^3.3.1", | ||
@@ -50,0 +50,0 @@ "pretty-hrtime": "^1.0.3", |
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
66789
Updatedmyst-common@^1.5.2
Updatedmyst-frontmatter@^1.5.2