Socket
Socket
Sign inDemoInstall

@unhead/schema

Package Overview
Dependencies
Maintainers
1
Versions
200
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 1.8.20 to 1.9.0

34

dist/index.d.ts

@@ -69,5 +69,2 @@ import { MaybePromiseProps, MergeHead, BaseBodyAttributes, HtmlAttributes as HtmlAttributes$1, Meta as Meta$1, Stringable, Merge, Base as Base$1, DefinedValueOrEmptyObject, LinkBase, HttpEventAttributes, DataKeys, Style as Style$1, ScriptBase, Noscript as Noscript$1, BodyEvents, MetaFlatInput } from 'zhead';

'ssr:rendered': (ctx: SSRRenderContext) => HookResult;
'script:transform': (ctx: {
script: UseScriptResolvedInput;
}) => HookResult;
'script:updated': (ctx: {

@@ -523,19 +520,12 @@ script: ScriptInstance<any>;

};
interface ScriptInstance<T> {
type ScriptInstance<T> = {
id: string;
status: UseScriptStatus;
loadPromise: Promise<T>;
entry?: ActiveHeadEntry<any>;
loaded: boolean;
status: UseScriptStatus;
load: () => Promise<T>;
waitForLoad: () => Promise<T>;
remove: () => boolean;
}
interface UseScriptOptions<T> extends Omit<HeadEntryOptions, 'transform'> {
} & Promise<T>;
interface UseScriptOptions<T> extends HeadEntryOptions {
/**
* Should the `dns-prefetch` tag be skipped.
*
* Useful if loading the script through a local proxy.
*/
skipEarlyConnections?: boolean;
/**
* Resolve the script instance from the window.

@@ -552,14 +542,14 @@ */

/**
* Transform the script instance before it's resolved.
*/
transform?: (script: UseScriptResolvedInput) => Promise<UseScriptResolvedInput> | UseScriptResolvedInput;
/**
* The trigger to load the script:
* - `idle` - Load the script when the browser is idle.
* - `manual` - Load the script manually by calling `$script.load()` or `$script.waitForLoad()`.
* - `manual` - Load the script manually by calling `$script.load()`.
* - `Promise` - Load the script when the promise resolves.
*/
trigger?: 'idle' | 'manual' | Promise<void>;
trigger?: 'manual' | Promise<void>;
/**
* Context to run events with. This is useful in Vue to attach the current instance context before
* calling the event, allowing the event to be reactive.
*/
eventContext?: any;
}
export type { ActiveHeadEntry, Base, BaseBodyAttr, BaseHtmlAttr, BaseMeta, BodyAttr, BodyAttributes, CreateHeadOptions, DomBeforeRenderCtx, DomRenderTagContext, DomState, EntryAugmentation, EntryResolveCtx, HasTemplateParams, Head, HeadEntry, HeadEntryOptions, HeadHooks, HeadPlugin, HeadPluginInput, HeadPluginOptions, HeadSafe, HeadTag, HeadTagKeys, HeadUtils, HookResult, HtmlAttr, HtmlAttributes, InnerContent, InnerContentVal, Link, MaybeArray, MaybeFunctionEntries, Meta, Never, Noscript, ProcessesTemplateParams, RenderSSRHeadOptions, ResolvesDuplicates, RuntimeMode, SSRHeadPayload, SSRRenderContext, SafeBodyAttr, SafeHtmlAttr, SafeLink, SafeMeta, SafeNoscript, SafeScript, SchemaAugmentations, Script, ScriptInstance, ShouldRenderContext, SideEffectsRecord, Style, TagKey, TagPosition, TagPriority, TagUserProperties, TemplateParams, Title, TitleTemplate, Unhead, UseScriptInput, UseScriptOptions, UseScriptResolvedInput, UseScriptStatus, UseSeoMetaInput, UserAttributesConfig, UserTagConfigWithoutInnerContent, ValidTagPositions };
{
"name": "@unhead/schema",
"type": "module",
"version": "1.8.20",
"version": "1.9.0",
"author": "Harlan Wilton <harlan@harlanzw.com>",

@@ -6,0 +6,0 @@ "license": "MIT",

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