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.11 to 1.1.12

dist/affiliations/index.d.ts

2

dist/funding/validators.d.ts
import type { ValidationOptions } from 'simple-validators';
import type { ReferenceStash } from '../frontmatter/types.js';
import type { Award, Funding } from './types.js';
import type { ReferenceStash } from '../index.js';
/**

@@ -5,0 +5,0 @@ * Validate Award object against the schema

@@ -28,4 +28,3 @@ import { defined, incrementOptions, validateKeys, validateList, validateObject, validateObjectKeys, validateString, } from 'simple-validators';

if (defined(value.sources)) {
const sources = Array.isArray(value.sources) ? value.sources : [value.sources];
output.sources = validateList(sources, incrementOptions('sources', opts), (source, index) => {
output.sources = validateList(value.sources, { coerce: true, ...incrementOptions('sources', opts) }, (source, index) => {
return validateAndStashObject(source, stash, 'affiliations', validateAffiliation, incrementOptions(`sources.${index}`, opts));

@@ -35,4 +34,3 @@ });

if (defined(value.recipients)) {
const recipients = Array.isArray(value.recipients) ? value.recipients : [value.recipients];
output.recipients = validateList(recipients, incrementOptions('recipients', opts), (recipient, index) => {
output.recipients = validateList(value.recipients, { coerce: true, ...incrementOptions('recipients', opts) }, (recipient, index) => {
return validateAndStashObject(recipient, stash, 'contributors', (v, o) => validateContributor(v, stash, o), incrementOptions(`recipients.${index}`, opts));

@@ -42,6 +40,3 @@ });

if (defined(value.investigators)) {
const investigators = Array.isArray(value.investigators)
? value.investigators
: [value.investigators];
output.investigators = validateList(investigators, incrementOptions('investigators', opts), (investigator, index) => {
output.investigators = validateList(value.investigators, { coerce: true, ...incrementOptions('investigators', opts) }, (investigator, index) => {
return validateAndStashObject(investigator, stash, 'contributors', (v, o) => validateContributor(v, stash, o), incrementOptions(`investigators.${index}`, opts));

@@ -97,4 +92,3 @@ });

if (defined(value.awards)) {
const awards = Array.isArray(value.awards) ? value.awards : [value.awards];
output.awards = validateList(awards, incrementOptions('awards', opts), (award, index) => {
output.awards = validateList(value.awards, { coerce: true, ...incrementOptions('awards', opts) }, (award, index) => {
return validateAward(award, stash, incrementOptions(`awards.${index}`, opts));

@@ -101,0 +95,0 @@ });

@@ -1,3 +0,16 @@

export * from './frontmatter/index.js';
export * from './affiliations/index.js';
export * from './biblio/index.js';
export * from './contributors/index.js';
export * from './exports/index.js';
export * from './funding/index.js';
export * from './jupytext/index.js';
export * from './kernelspec/index.js';
export * from './licenses/index.js';
export * from './numbering/index.js';
export * from './page/index.js';
export * from './project/index.js';
export * from './site/index.js';
export * from './thebe/index.js';
export * from './utils/index.js';
export * from './venues/index.js';
//# sourceMappingURL=index.d.ts.map

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

export * from './frontmatter/index.js';
export * from './affiliations/index.js';
export * from './biblio/index.js';
export * from './contributors/index.js';
export * from './exports/index.js';
export * from './funding/index.js';
export * from './jupytext/index.js';
export * from './kernelspec/index.js';
export * from './licenses/index.js';
export * from './numbering/index.js';
export * from './page/index.js';
export * from './project/index.js';
export * from './site/index.js';
export * from './thebe/index.js';
export * from './utils/index.js';
export * from './venues/index.js';

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

export * from './fillPageFrontmatter.js';
export * from './normalizeString.js';
export * from './parseName.js';
export * from './referenceStash.js';
export * from './unnestKernelSpec.js';
export * from './validators.js';
//# sourceMappingURL=index.d.ts.map

@@ -0,1 +1,6 @@

export * from './fillPageFrontmatter.js';
export * from './normalizeString.js';
export * from './parseName.js';
export * from './referenceStash.js';
export * from './unnestKernelSpec.js';
export * from './validators.js';

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

import type { Name } from '../index.js';
import type { Name } from '../contributors/types.js';
/**

@@ -3,0 +3,0 @@ * Check if the first letter in a word is uppercase

{
"name": "myst-frontmatter",
"version": "1.1.11",
"version": "1.1.12",
"sideEffects": false,

@@ -38,3 +38,3 @@ "license": "MIT",

"orcid": "^1.0.0",
"simple-validators": "^1.0.2",
"simple-validators": "^1.0.3",
"spdx-correct": "^3.2.0"

@@ -44,2 +44,3 @@ },

"@types/spdx-correct": "^3.1.0",
"glob": "^10.3.1",
"js-yaml": "^4.1.0",

@@ -46,0 +47,0 @@ "moment": "^2.29.4"

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

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