Socket
Socket
Sign inDemoInstall

unhead

Package Overview
Dependencies
Maintainers
1
Versions
201
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

unhead - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

dist/types-011e5fbf.d.ts

21

dist/client.d.ts

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

import { a as HeadClient } from './types-e30878c0.js';
import { a as HeadClient } from './types-011e5fbf.js';
import 'hookable';

@@ -6,7 +6,20 @@ import '@unhead/schema';

interface RenderDomHeadOptions {
/**
* Document to use for rendering. Allows stubbing for testing.
*/
document?: Document;
}
declare const renderDOMHead: <T extends HeadClient<any>>(head: T, options?: RenderDomHeadOptions) => Promise<void>;
declare const debouncedUpdateDom: <T extends HeadClient<any>>(delayedFn: (fn: () => void) => void, head: T, options?: RenderDomHeadOptions) => Promise<void>;
/**
* Render the head tags to the DOM.
*/
declare function renderDOMHead<T extends HeadClient<any>>(head: T, options?: RenderDomHeadOptions): Promise<void>;
/**
* Global instance of the dom update promise. Used for debounding head updates.
*/
declare let domUpdatePromise: Promise<void> | null;
/**
* Queue a debounced update of the DOM head.
*/
declare function debouncedRenderDOMHead<T extends HeadClient<any>>(delayedFn: (fn: () => void) => void, head: T, options?: RenderDomHeadOptions): Promise<void>;
export { RenderDomHeadOptions, debouncedUpdateDom, renderDOMHead };
export { RenderDomHeadOptions, debouncedRenderDOMHead, domUpdatePromise, renderDOMHead };

15

dist/index.d.ts
import * as _unhead_schema from '@unhead/schema';
import { Head, Meta, Link, Script, Style, Base, HtmlAttributes, BodyAttributes, Noscript } from '@unhead/schema';
import { H as HeadPlugin, C as CreateHeadOptions, a as HeadClient, b as HeadEntryOptions } from './types-e30878c0.js';
export { A as ActiveHeadEntry, C as CreateHeadOptions, D as DomRenderTagContext, a as HeadClient, c as HeadEntry, b as HeadEntryOptions, e as HeadHooks, H as HeadPlugin, R as RuntimeMode, S as SideEffectsRecord, d as defineHeadPlugin } from './types-e30878c0.js';
import { H as HeadPlugin, C as CreateHeadOptions, a as HeadClient, b as HeadEntryOptions } from './types-011e5fbf.js';
export { A as ActiveHeadEntry, C as CreateHeadOptions, D as DomRenderTagContext, E as EntryResolveCtx, a as HeadClient, c as HeadEntry, b as HeadEntryOptions, f as HeadHooks, H as HeadPlugin, e as HookResult, R as RuntimeMode, S as SideEffectsRecord, d as defineHeadPlugin } from './types-011e5fbf.js';
import 'hookable';
declare const dedupePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;
declare const DedupesTagsPlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;
declare const sortPlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;
declare const SortTagsPlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;
declare const titleTemplatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;
declare const TitleTemplatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;
declare const hydratesStatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;
declare const HydratesStatePlugin: HeadPlugin<_unhead_schema.Head<_unhead_schema.SchemaAugmentations>>;

@@ -35,4 +35,5 @@ declare function createHead<T extends {} = Head>(options?: CreateHeadOptions<T>): HeadClient<T>;

declare function asArray<T>(value: Arrayable<T>): T[];
declare const TagConfigKeys: string[];
declare function hashCode(s: string): string;
export { Arrayable, activeHead, asArray, createHead, dedupePlugin, getActiveHead, hashCode, hydratesStatePlugin, setActiveHead, sortPlugin, titleTemplatePlugin, useBase, useBodyAttrs, useHead, useHtmlAttrs, useLink, useMeta, useNoscript, useScript, useStyle, useTitle, useTitleTemplate };
export { Arrayable, DedupesTagsPlugin, HydratesStatePlugin, SortTagsPlugin, TagConfigKeys, TitleTemplatePlugin, activeHead, asArray, createHead, getActiveHead, hashCode, setActiveHead, useBase, useBodyAttrs, useHead, useHtmlAttrs, useLink, useMeta, useNoscript, useScript, useStyle, useTitle, useTitleTemplate };

@@ -1,3 +0,3 @@

export { f as SSRHeadPayload, r as renderSSRHead } from './types-e30878c0.js';
export { g as SSRHeadPayload, r as renderSSRHead } from './types-011e5fbf.js';
import 'hookable';
import '@unhead/schema';
{
"name": "unhead",
"type": "module",
"version": "0.0.1",
"version": "0.0.2",
"packageManager": "pnpm@7.14.0",

@@ -39,5 +39,4 @@ "author": "Harlan Wilton <harlan@harlanzw.com>",

"dependencies": {
"@unhead/schema": "0.0.1",
"@unhead/schema": "0.0.2",
"hookable": "^5.4.1",
"unctx": "^2.0.2",
"zhead": "1.0.0-beta.4"

@@ -44,0 +43,0 @@ },

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