Socket
Socket
Sign inDemoInstall

@unhead/schema

Package Overview
Dependencies
Maintainers
1
Versions
190
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.6.9 to 0.7.0

56

dist/index.d.ts

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

import { HeadTag as HeadTag$1, MergeHead, BaseBodyAttributes, HtmlAttributes as HtmlAttributes$1, Merge, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, HttpEventAttributes, DataKeys, Style as Style$1, ScriptBase, Noscript as Noscript$1, BodyEvents, Meta as Meta$1, Stringable } from '@zhead/schema';
import { MaybePromiseProps, HeadTag as HeadTag$1, MergeHead, BaseBodyAttributes, HtmlAttributes as HtmlAttributes$1, Merge, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, HttpEventAttributes, DataKeys, Style as Style$1, ScriptBase, Noscript as Noscript$1, BodyEvents, Meta as Meta$1, Stringable } from '@zhead/schema';
export { DataKeys, DefinedValueOrEmptyObject, MergeHead, MetaFlatInput, TagKey } from '@zhead/schema';

@@ -26,3 +26,3 @@ import { NestedHooks, Hookable } from 'hookable';

}
declare type ValidTagPositions = 'head' | 'bodyClose' | 'bodyOpen';
type ValidTagPositions = 'head' | 'bodyClose' | 'bodyOpen';
interface TagPosition {

@@ -74,3 +74,3 @@ /**

}
declare type TagUserProperties = TagPriority & TagPosition & InnerContent & ResolvesDuplicates;
type TagUserProperties = TagPriority & TagPosition & MaybePromiseProps<InnerContent> & ResolvesDuplicates;
interface TagInternalProperties {

@@ -90,10 +90,10 @@ /**

}
declare type HeadTag = HeadTag$1 & TagUserProperties & TagInternalProperties;
declare type HeadTagKeys = (keyof HeadTag)[];
type HeadTag = HeadTag$1 & TagUserProperties & TagInternalProperties;
type HeadTagKeys = (keyof HeadTag)[];
declare type Never<T> = {
type Never<T> = {
[P in keyof T]?: never;
};
declare type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent>;
declare type UserAttributesConfig = ResolvesDuplicates & TagPriority & Never<InnerContent & TagPosition>;
type UserTagConfigWithoutInnerContent = TagPriority & TagPosition & ResolvesDuplicates & Never<InnerContent>;
type UserAttributesConfig = ResolvesDuplicates & TagPriority & Never<InnerContent & TagPosition>;
interface SchemaAugmentations extends MergeHead {

@@ -109,5 +109,5 @@ base: UserAttributesConfig;

}
declare type MaybeArray<T> = T | T[];
declare type BaseBodyAttr = BaseBodyAttributes;
declare type BaseHtmlAttr = HtmlAttributes$1;
type MaybeArray<T> = T | T[];
type BaseBodyAttr = BaseBodyAttributes;
type BaseHtmlAttr = HtmlAttributes$1;
interface BodyAttr extends Omit<BaseBodyAttr, 'class'> {

@@ -139,16 +139,16 @@ /**

}
declare type EntryAugmentation = undefined | Record<string, any>;
declare type MaybeFunctionEntries<T> = {
type EntryAugmentation = undefined | Record<string, any>;
type MaybeFunctionEntries<T> = {
[key in keyof T]?: T[key] | ((e: Event) => void);
};
declare type Title = string | null;
declare type TitleTemplate = string | null | ((title?: string) => string | null);
declare type Base<E extends EntryAugmentation = {}> = Partial<Merge<SchemaAugmentations['base'], Base$1>> & DefinedValueOrEmptyObject<E>;
declare type Link<E extends EntryAugmentation = {}> = LinkBase & MaybeFunctionEntries<HttpEventAttributes> & DataKeys & SchemaAugmentations['link'] & DefinedValueOrEmptyObject<E>;
declare type Meta<E extends EntryAugmentation = {}> = BaseMeta & DataKeys & SchemaAugmentations['meta'] & DefinedValueOrEmptyObject<E>;
declare type Style<E extends EntryAugmentation = {}> = Style$1 & DataKeys & SchemaAugmentations['style'] & DefinedValueOrEmptyObject<E>;
declare type Script<E extends EntryAugmentation = {}> = ScriptBase & MaybeFunctionEntries<HttpEventAttributes> & DataKeys & SchemaAugmentations['script'] & DefinedValueOrEmptyObject<E>;
declare type Noscript<E extends EntryAugmentation = {}> = Noscript$1 & DataKeys & SchemaAugmentations['noscript'] & DefinedValueOrEmptyObject<E>;
declare type HtmlAttributes<E extends EntryAugmentation = {}> = HtmlAttr & DataKeys & SchemaAugmentations['htmlAttrs'] & DefinedValueOrEmptyObject<E>;
declare type BodyAttributes<E extends EntryAugmentation = {}> = BodyAttr & MaybeFunctionEntries<BodyEvents> & DataKeys & SchemaAugmentations['bodyAttrs'] & DefinedValueOrEmptyObject<E>;
type Title = string | null;
type TitleTemplate = string | null | ((title?: string) => string | null);
type Base<E extends EntryAugmentation = {}> = Partial<Merge<SchemaAugmentations['base'], MaybePromiseProps<Base$1>>> & DefinedValueOrEmptyObject<E>;
type Link<E extends EntryAugmentation = {}> = MaybePromiseProps<LinkBase> & MaybeFunctionEntries<HttpEventAttributes> & DataKeys & SchemaAugmentations['link'] & DefinedValueOrEmptyObject<E>;
type Meta<E extends EntryAugmentation = {}> = MaybePromiseProps<BaseMeta> & DataKeys & SchemaAugmentations['meta'] & DefinedValueOrEmptyObject<E>;
type Style<E extends EntryAugmentation = {}> = MaybePromiseProps<Style$1> & DataKeys & SchemaAugmentations['style'] & DefinedValueOrEmptyObject<E>;
type Script<E extends EntryAugmentation = {}> = MaybePromiseProps<ScriptBase> & MaybeFunctionEntries<HttpEventAttributes> & DataKeys & SchemaAugmentations['script'] & DefinedValueOrEmptyObject<E>;
type Noscript<E extends EntryAugmentation = {}> = MaybePromiseProps<Noscript$1> & DataKeys & SchemaAugmentations['noscript'] & DefinedValueOrEmptyObject<E>;
type HtmlAttributes<E extends EntryAugmentation = {}> = MaybePromiseProps<HtmlAttr> & DataKeys & SchemaAugmentations['htmlAttrs'] & DefinedValueOrEmptyObject<E>;
type BodyAttributes<E extends EntryAugmentation = {}> = MaybePromiseProps<BodyAttr> & MaybeFunctionEntries<BodyEvents> & DataKeys & SchemaAugmentations['bodyAttrs'] & DefinedValueOrEmptyObject<E>;
interface Head<E extends MergeHead = SchemaAugmentations> {

@@ -161,3 +161,3 @@ /**

*/
title?: Title;
title?: Title | Promise<Title>;
/**

@@ -224,3 +224,3 @@ * Generate the title from a template.

declare type HookResult = Promise<void> | void;
type HookResult = Promise<void> | void;
interface SSRHeadPayload {

@@ -278,4 +278,4 @@ headTags: string;

*/
declare type SideEffectsRecord = Record<string, () => void>;
declare type RuntimeMode = 'server' | 'client' | 'all';
type SideEffectsRecord = Record<string, () => void>;
type RuntimeMode = 'server' | 'client' | 'all';
interface HeadEntry<Input> {

@@ -305,3 +305,3 @@ /**

}
declare type HeadPlugin = Omit<CreateHeadOptions, 'plugins'>;
type HeadPlugin = Omit<CreateHeadOptions, 'plugins'>;
/**

@@ -308,0 +308,0 @@ * An active head entry provides an API to manipulate it.

{
"name": "@unhead/schema",
"type": "module",
"version": "0.6.9",
"version": "0.7.0",
"packageManager": "pnpm@7.14.0",

@@ -38,3 +38,3 @@ "author": "Harlan Wilton <harlan@harlanzw.com>",

"dependencies": {
"@zhead/schema": "1.0.0-beta.13",
"@zhead/schema": "1.0.1",
"hookable": "^5.4.1"

@@ -41,0 +41,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc