Socket
Socket
Sign inDemoInstall

@unhead/schema

Package Overview
Dependencies
Maintainers
1
Versions
203
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unhead/schema - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

dist/index.cjs

31

dist/index.d.ts

@@ -125,3 +125,2 @@ import { HeadTag as HeadTag$1, MergeHead, BodyAttributes as BodyAttributes$1, HtmlAttributes as HtmlAttributes$1, Merge, Base as Base$1, DefinedValueOrEmptyObject, Link as Link$1, DataKeys, Style as Style$1, Script as Script$1, Noscript as Noscript$1, Meta as Meta$1, Stringable } from '@zhead/schema';

declare type EntryAugmentation = undefined | Record<string, any>;
declare type Title = string;

@@ -207,2 +206,9 @@ declare type TitleTemplate = string | null | ((title?: string) => string);

declare type HookResult = Promise<void> | void;
interface SSRHeadPayload {
headTags: string;
bodyTags: string;
bodyTagsOpen: string;
htmlAttrs: string;
bodyAttrs: string;
}
interface EntryResolveCtx<T> {

@@ -212,3 +218,10 @@ tags: HeadTag[];

}
interface DomRenderTagContext {
head: HeadClient;
tag: HeadTag;
document: Document;
}
interface HeadHooks {
'init': (ctx: HeadClient<any>) => HookResult;
'entries:updated': (ctx: HeadClient<any>) => HookResult;
'entries:resolve': (ctx: EntryResolveCtx<any>) => HookResult;

@@ -222,3 +235,17 @@ 'tag:normalise': (ctx: {

}) => HookResult;
'dom:beforeRender': (ctx: {
head: HeadClient;
tags: HeadTag[];
document: Document;
}) => HookResult;
'dom:renderTag': (ctx: DomRenderTagContext) => HookResult;
'ssr:beforeRender': (ctx: {
tags: HeadTag[];
}) => HookResult;
'ssr:render': (ctx: {
tags: HeadTag[];
html: SSRHeadPayload;
}) => HookResult;
}
/**

@@ -307,2 +334,2 @@ * Side effects are mapped with a key and their cleanup function.

export { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BodyAttributes, CreateHeadOptions, EntryAugmentation, EntryResolveCtx, Head, HeadClient, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadTag, HeadTagKeys, HookResult, HtmlAttributes, InnerContent, Link, MaybeArray, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SchemaAugmentations, Script, SideEffectsRecord, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, UserAttributesConfig, UserTagConfigWithoutInnerContent };
export { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BodyAttributes, CreateHeadOptions, DomRenderTagContext, EntryAugmentation, EntryResolveCtx, Head, HeadClient, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadTag, HeadTagKeys, HookResult, HtmlAttributes, InnerContent, Link, MaybeArray, Meta, Never, Noscript, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SchemaAugmentations, Script, SideEffectsRecord, Style, TagInternalProperties, TagPosition, TagPriority, TagUserProperties, Title, TitleTemplate, UserAttributesConfig, UserTagConfigWithoutInnerContent };

2

package.json
{
"name": "@unhead/schema",
"type": "module",
"version": "0.1.1",
"version": "0.1.2",
"packageManager": "pnpm@7.14.0",

@@ -6,0 +6,0 @@ "author": "Harlan Wilton <harlan@harlanzw.com>",

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