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

myst-templates

Package Overview
Dependencies
Maintainers
0
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myst-templates - npm Package Compare versions

Comparing version 1.0.20 to 1.0.21

2

dist/template.d.ts

@@ -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

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