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

@frontmatter/extensibility

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@frontmatter/extensibility - npm Package Compare versions

Comparing version 0.0.11-beta.6480624 to 0.0.11-beta.6480646

7

dist/scripts/ContentScript.d.ts

@@ -9,2 +9,9 @@ import { ContentArguments } from "../models/ScriptArguments.js";

static getArguments(): ContentArguments | undefined;
/**
* Call this method to update the front matter
* @param data
*/
static updateFrontMatter(data: {
[fieldName: string]: any;
}): void;
}

12

dist/scripts/ContentScript.js

@@ -22,3 +22,4 @@ import { CustomScript } from "./CustomScript.js";

try {
frontMatter = typeof frontMatter === "string" ? JSON.parse(frontMatter) : frontMatter;
frontMatter =
typeof frontMatter === "string" ? JSON.parse(frontMatter) : frontMatter;
}

@@ -44,3 +45,12 @@ catch (e) {

}
/**
* Call this method to update the front matter
* @param data
*/
static updateFrontMatter(data) {
console.log(JSON.stringify({
frontmatter: data,
}));
}
}
//# sourceMappingURL=ContentScript.js.map

7

dist/scripts/CustomScript.d.ts

@@ -9,9 +9,2 @@ import { Question } from "../models/Question.js";

/**
* Call this method to update the front matter
* @param data
*/
static updateFrontMatter(data: {
[fieldName: string]: any;
}): void;
/**
* Call this method to indicate that the script has finished.

@@ -18,0 +11,0 @@ * @param log

@@ -12,11 +12,2 @@ export class CustomScript {

/**
* Call this method to update the front matter
* @param data
*/
static updateFrontMatter(data) {
console.log(JSON.stringify({
frontmatter: data,
}));
}
/**
* Call this method to indicate that the script has finished.

@@ -23,0 +14,0 @@ * @param log

{
"name": "@frontmatter/extensibility",
"version": "0.0.11-beta.6480624",
"version": "0.0.11-beta.6480646",
"description": "Front Matter CMS extensibility library",

@@ -5,0 +5,0 @@ "type": "module",

@@ -28,3 +28,4 @@ import { ContentArguments } from "../models/ScriptArguments.js";

try {
frontMatter = typeof frontMatter === "string" ? JSON.parse(frontMatter) : frontMatter;
frontMatter =
typeof frontMatter === "string" ? JSON.parse(frontMatter) : frontMatter;
} catch (e) {

@@ -51,2 +52,14 @@ // Failed parsing JSON

}
/**
* Call this method to update the front matter
* @param data
*/
public static updateFrontMatter(data: { [fieldName: string]: any }): void {
console.log(
JSON.stringify({
frontmatter: data,
})
);
}
}

@@ -17,14 +17,2 @@ import { Question } from "../models/Question.js";

/**
* Call this method to update the front matter
* @param data
*/
public static updateFrontMatter(data: { [fieldName: string]: any }): void {
console.log(
JSON.stringify({
frontmatter: data,
})
);
}
/**
* Call this method to indicate that the script has finished.

@@ -31,0 +19,0 @@ * @param log

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