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

myst-frontmatter

Package Overview
Dependencies
Maintainers
3
Versions
78
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

myst-frontmatter - npm Package Compare versions

Comparing version 1.1.35 to 1.2.0

4

dist/page/validators.js

@@ -1,2 +0,2 @@

import { defined, incrementOptions, validateList, validateObjectKeys, validateString, validateObject, validationError, validateBoolean, } from 'simple-validators';
import { defined, incrementOptions, validateList, validateObjectKeys, validateString, validationError, validateBoolean, } from 'simple-validators';
import { validateProjectAndPageFrontmatterKeys } from '../project/validators.js';

@@ -44,3 +44,3 @@ import { PAGE_FRONTMATTER_KEYS, PAGE_KNOWN_PARTS } from './types.js';

if (defined(value.parts)) {
parts = validateObject(value.parts, partsOptions);
parts = validateObjectKeys(value.parts, { optional: PAGE_KNOWN_PARTS, alias: FRONTMATTER_ALIASES }, { keepExtraKeys: true, suppressWarnings: true, ...partsOptions });
}

@@ -47,0 +47,0 @@ PAGE_KNOWN_PARTS.forEach((partKey) => {

@@ -18,2 +18,4 @@ import type { Affiliation } from '../affiliations/types.js';

acknowledgements: string;
acknowledgment: string;
acknowledgement: string;
availability: string;

@@ -20,0 +22,0 @@ dataAvailability: string;

@@ -34,2 +34,4 @@ export const SITE_FRONTMATTER_KEYS = [

acknowledgements: 'acknowledgments',
acknowledgment: 'acknowledgments',
acknowledgement: 'acknowledgments',
availability: 'data_availability',

@@ -36,0 +38,0 @@ dataAvailability: 'data_availability',

{
"name": "myst-frontmatter",
"version": "1.1.35",
"version": "1.2.0",
"sideEffects": false,

@@ -5,0 +5,0 @@ "license": "MIT",

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