Socket
Socket
Sign inDemoInstall

@unhead/shared

Package Overview
Dependencies
Maintainers
0
Versions
137
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@unhead/shared - npm Package Compare versions

Comparing version 1.10.4 to 1.11.0-beta.1

18

dist/index.d.ts

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

import { HeadPluginInput, HeadTag, BaseMeta, MetaFlatInput, Head, MaybeArray, HeadSafe, HeadEntry, TemplateParams } from '@unhead/schema';
import { HeadPluginInput, HeadTag, BaseMeta, MetaFlatInput, Head, HeadEntry, MaybeArray, HeadSafe, TemplateParams } from '@unhead/schema';

@@ -20,6 +20,2 @@ type Arrayable<T> = T | Array<T>;

declare function tagDedupeKey<T extends HeadTag>(tag: T): string | false;
declare function resolveTitleTemplate(template: string | ((title?: string) => string | null) | null, title?: string): string | null;
declare function resolveMetaKeyType(key: string): keyof BaseMeta;

@@ -39,4 +35,2 @@ declare function resolveMetaKeyValue(key: string): string;

declare function whitelistSafeInput(input: Record<string, MaybeArray<Record<string, string>>>): HeadSafe;
type Thenable<T> = Promise<T> | T;

@@ -51,2 +45,7 @@ declare function thenable<T, R>(val: T, thenFn: (val: Awaited<T>) => R): Promise<R> | R;

declare function whitelistSafeInput(input: Record<string, MaybeArray<Record<string, string>>>): HeadSafe;
declare const NetworkEvents: Set<string>;
declare const ScriptNetworkEvents: Set<string>;
declare const TAG_WEIGHTS: {

@@ -67,7 +66,8 @@ readonly base: -10;

declare const NetworkEvents: Set<string>;
declare const ScriptNetworkEvents: Set<string>;
declare function tagDedupeKey<T extends HeadTag>(tag: T): string | false;
declare function processTemplateParams(s: string, p: TemplateParams, sep: string): string;
declare function resolveTitleTemplate(template: string | ((title?: string) => string | null) | null, title?: string): string | null;
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.10.4",
"version": "1.11.0-beta.1",
"author": "Harlan Wilton <harlan@harlanzw.com>",

@@ -37,3 +37,3 @@ "license": "MIT",

"dependencies": {
"@unhead/schema": "1.10.4"
"@unhead/schema": "1.11.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

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