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

myst-frontmatter

Package Overview
Dependencies
Maintainers
1
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 0.0.6 to 0.0.7

17

dist/cjs/frontmatter/validators.js

@@ -359,8 +359,2 @@ "use strict";

}
else if (typeof input === 'string') {
const format = validateExportFormat(input, opts);
if (!format)
return undefined;
exports = [{ format }];
}
else {

@@ -386,3 +380,12 @@ exports = [input];

function validateExport(input, opts) {
const value = (0, simple_validators_1.validateObject)(input, opts);
let value;
if (typeof input === 'string') {
const format = validateExportFormat(input, opts);
if (!format)
return undefined;
value = { format };
}
else {
value = (0, simple_validators_1.validateObject)(input, opts);
}
if (value === undefined)

@@ -389,0 +392,0 @@ return undefined;

@@ -347,8 +347,2 @@ import doi from 'doi-utils';

}
else if (typeof input === 'string') {
const format = validateExportFormat(input, opts);
if (!format)
return undefined;
exports = [{ format }];
}
else {

@@ -373,3 +367,12 @@ exports = [input];

export function validateExport(input, opts) {
const value = validateObject(input, opts);
let value;
if (typeof input === 'string') {
const format = validateExportFormat(input, opts);
if (!format)
return undefined;
value = { format };
}
else {
value = validateObject(input, opts);
}
if (value === undefined)

@@ -376,0 +379,0 @@ return undefined;

{
"name": "myst-frontmatter",
"version": "0.0.6",
"version": "0.0.7",
"sideEffects": false,

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

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