@unhead/shared
Advanced tools
Comparing version 1.9.16 to 1.10.0-beta.1
@@ -6,8 +6,8 @@ import { HeadPluginInput, HeadTag, BaseMeta, MetaFlatInput, Head, MaybeArray, HeadSafe, HeadEntry, TemplateParams } from '@unhead/schema'; | ||
declare const SelfClosingTags: string[]; | ||
declare const TagsWithInnerContent: string[]; | ||
declare const HasElementTags: string[]; | ||
declare const ValidHeadTags: string[]; | ||
declare const UniqueTags: string[]; | ||
declare const TagConfigKeys: string[]; | ||
declare const SelfClosingTags: Set<string>; | ||
declare const TagsWithInnerContent: Set<string>; | ||
declare const HasElementTags: Set<string>; | ||
declare const ValidHeadTags: Set<string>; | ||
declare const UniqueTags: Set<string>; | ||
declare const TagConfigKeys: Set<string>; | ||
declare const IsBrowser: boolean; | ||
@@ -21,3 +21,3 @@ declare const composableNames: string[]; | ||
declare function tagDedupeKey<T extends HeadTag>(tag: T, fn?: (key: string) => boolean): string | false; | ||
declare function tagDedupeKey<T extends HeadTag>(tag: T): string | false; | ||
@@ -42,7 +42,10 @@ declare function resolveTitleTemplate(template: string | ((title?: string) => string | null) | null, title?: string): string | null; | ||
declare function normaliseTag<T extends HeadTag>(tagName: T['tag'], input: HeadTag['props'] | string, e: HeadEntry<T>): Promise<T | T[] | false>; | ||
type Thenable<T> = Promise<T> | T; | ||
declare function thenable<T, R>(val: T, thenFn: (val: Awaited<T>) => R): Promise<R> | R; | ||
declare function normaliseTag<T extends HeadTag>(tagName: T['tag'], input: HeadTag['props'] | string, e: HeadEntry<T>, normalizedProps?: HeadTag['props']): Thenable<T | T[]>; | ||
declare function normaliseStyleClassProps<T extends 'class' | 'style'>(key: T, v: Required<Required<Head>['htmlAttrs']['class']> | Required<Required<Head>['htmlAttrs']['style']>): string; | ||
declare function normaliseProps<T extends HeadTag>(props: T['props'], virtual?: boolean): Promise<T['props']>; | ||
declare function normaliseProps<T extends HeadTag>(props: T['props'], virtual?: boolean): Thenable<T['props']>; | ||
declare const TagEntityBits = 10; | ||
declare function normaliseEntryTags<T extends {} = Head>(e: HeadEntry<T>): Promise<HeadTag[]>; | ||
declare function normaliseEntryTags<T extends object = Head>(e: HeadEntry<T>): Thenable<HeadTag[]>; | ||
@@ -58,3 +61,3 @@ declare const TAG_WEIGHTS: { | ||
}; | ||
declare function tagWeight<T extends HeadTag>(tag: T): any; | ||
declare function tagWeight<T extends HeadTag>(tag: T): number; | ||
declare const SortModifiers: { | ||
@@ -65,7 +68,7 @@ prefix: string; | ||
declare const NetworkEvents: string[]; | ||
declare const ScriptNetworkEvents: string[]; | ||
declare const NetworkEvents: Set<string>; | ||
declare const ScriptNetworkEvents: Set<string>; | ||
declare function processTemplateParams(s: string, p: TemplateParams, sep: string): string; | ||
export { type Arrayable, HasElementTags, IsBrowser, NetworkEvents, ScriptNetworkEvents, SelfClosingTags, SortModifiers, TAG_ALIASES, TAG_WEIGHTS, TagConfigKeys, TagEntityBits, TagsWithInnerContent, UniqueTags, ValidHeadTags, asArray, composableNames, defineHeadPlugin, hashCode, hashTag, normaliseEntryTags, normaliseProps, normaliseStyleClassProps, normaliseTag, packMeta, processTemplateParams, resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue, resolveTitleTemplate, tagDedupeKey, tagWeight, unpackMeta, whitelistSafeInput }; | ||
export { type Arrayable, HasElementTags, IsBrowser, NetworkEvents, ScriptNetworkEvents, SelfClosingTags, SortModifiers, TAG_ALIASES, TAG_WEIGHTS, TagConfigKeys, TagEntityBits, TagsWithInnerContent, type Thenable, UniqueTags, ValidHeadTags, asArray, composableNames, defineHeadPlugin, hashCode, hashTag, normaliseEntryTags, normaliseProps, normaliseStyleClassProps, normaliseTag, packMeta, processTemplateParams, resolveMetaKeyType, resolveMetaKeyValue, resolvePackedMetaObjectValue, resolveTitleTemplate, tagDedupeKey, tagWeight, thenable, unpackMeta, whitelistSafeInput }; |
{ | ||
"name": "@unhead/shared", | ||
"type": "module", | ||
"version": "1.9.16", | ||
"version": "1.10.0-beta.1", | ||
"author": "Harlan Wilton <harlan@harlanzw.com>", | ||
@@ -37,3 +37,3 @@ "license": "MIT", | ||
"dependencies": { | ||
"@unhead/schema": "1.9.16" | ||
"@unhead/schema": "1.10.0-beta.1" | ||
}, | ||
@@ -40,0 +40,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
58719
1514
1
+ Added@unhead/schema@1.10.0-beta.1(transitive)
- Removed@unhead/schema@1.9.16(transitive)
Updated@unhead/schema@1.10.0-beta.1