Socket
Socket
Sign inDemoInstall

markedpage

Package Overview
Dependencies
8
Maintainers
1
Versions
53
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.1.13-next.6 to 0.1.13-next.7

1

dist/helper.js
import { C as CONTENT_UPDATE_EVENT } from './common-48ec8bf3.js';
/** @internal */
const onContentUpdate = (callback) => {

@@ -5,0 +4,0 @@ if (import.meta.hot) {

declare module "markedpage/helper" {
export { onContentUpdate } from "markedpage";
export const onContentUpdate: (callback: (payload: Record<string, any>) => void) => void;
}

@@ -19,16 +19,2 @@

}
export interface SiteConfigDefault extends Record<string, any> {
extendPageData?: (pages: SourcePage) => Promise<void>;
marked?: MarkedConfig;
classifier?: Array<ClassifierOptions>;
}
export interface SourceParams extends Record<string, any> {
sourcePath: string;
indexPath: string;
fullPath: string;
}
export interface MarkedConfig {
options: Record<string, any>;
extensions: Array<any>;
}
export interface HeadingItem extends Record<string, any> {

@@ -52,25 +38,9 @@ depth: number;

export type ClassifierType = 'directory' | 'frontmatter' | ClassifierHandle;
export interface DirectoryClassifierResult {
pages: Array<SourcePage>;
}
export type FrontMatterClassifierResult = Record<string, Array<SourcePage>>;
}
declare module "markedpage" {
export const isDev: () => boolean;
export const getAbsoultPath: (relativePath: string) => string;
export const getRelativePath: (absoultPath: string) => string;
export const getSlugParams: (indexPath: string) => {
slugKey: string;
slugDate: Date;
};
export const getPageAttribute: (body: string) => Promise<{
metadata: Record<string, any>;
headings: HeadingItem[];
}>;
export const extractBody: (body: string) => Promise<string>;
export const extractExcerpt: (body: string) => {
excerpt: string;
body: string;
};
export const extractHeading: (body: string) => Array<HeadingItem>;
}
declare module "markedpage" {
export const logger: {

@@ -85,49 +55,2 @@ debug: (message: any, ...options: any[]) => void;

declare module "markedpage" {
export const getConfig: (configPath?: string) => Promise<Record<string, any>>;
export const setConfig: (config: Record<string, any>) => void;
export const initConfigDefault: (configPath?: string) => Promise<SiteConfigDefault>;
export const getPageMap: (config: SiteConfigDefault, sourceDir?: string) => Promise<PageMapCollection>;
export const initPageMap: (config: SiteConfigDefault, sourceDir?: string) => Promise<void>;
export const reloadSourcePage: (config: SiteConfigDefault, sourcePath: string, content: string) => Promise<{
frontMatter: Record<string, any>;
sourcePath: string;
indexPath: any;
headings: import("types").HeadingItem[];
render: () => Promise<string>;
raw: () => Promise<string>;
slugKey: string;
}>;
}
declare module "markedpage" {
interface DirectoryClassifierParams {
path: string;
}
export interface DirectoryClassifierResult {
pages: Array<SourcePage>;
}
export const DirectoryClassifierHandle: ClassifierHandle<DirectoryClassifierParams, DirectoryClassifierResult>;
}
declare module "markedpage" {
interface FrontMatterClassifierParams {
keys: Array<string>;
}
export type FrontMatterClassifierResult = Record<string, Array<SourcePage>>;
export const FrontMatterClassifierHandle: ClassifierHandle<FrontMatterClassifierParams, FrontMatterClassifierResult>;
}
declare module "markedpage" {
interface ClassifierObject {
(pages: Array<SourcePage>): Promise<Record<string, any>>;
}
interface ClassiferMapHandler {
(classifierList: Array<ClassifierOptions>): Promise<Record<string, ClassifierObject>>;
}
export let isInitial: boolean;
export const getClassifiedResult: (classifierId: string, pages: Array<SourcePage>) => Promise<any>;
export const initClassifierMap: ClassiferMapHandler;
}
declare module "markedpage" {
/**

@@ -134,0 +57,0 @@ * Get siteConfig

2

package.json
{
"version": "0.1.13-next.6",
"version": "0.1.13-next.7",
"name": "markedpage",

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc