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 1.9.16 to 1.10.0-beta.1

16

dist/index.d.ts
import * as _unhead_schema from '@unhead/schema';
import { Head, CreateHeadOptions, Unhead, MergeHead, HeadEntryOptions, ActiveHeadEntry, HeadSafe, UseSeoMetaInput, UseScriptInput, UseScriptOptions, ScriptInstance } from '@unhead/schema';
import { Head, CreateHeadOptions, Unhead, MergeHead, HeadEntryOptions, ActiveHeadEntry, HeadSafe, UseSeoMetaInput, ScriptInstance, AsAsyncFunctionValues, UseScriptResolvedInput, UseScriptInput, UseScriptOptions } from '@unhead/schema';
export { composableNames } from '@unhead/shared';

@@ -44,12 +44,16 @@

type UseScriptContext<T extends Record<symbol | string, any>> = (Promise<T> & ScriptInstance<T>) & AsAsyncFunctionValues<T> & {
/**
* @deprecated Use top-level functions instead.
*/
$script: Promise<T> & ScriptInstance<T>;
};
declare function resolveScriptKey(input: UseScriptResolvedInput): any;
/**
* Load third-party scripts with SSR support and a proxied API.
*
* @experimental
* @see https://unhead.unjs.io/usage/composables/use-script
*/
declare function useScript<T extends Record<symbol | string, any>>(_input: UseScriptInput, _options?: UseScriptOptions<T>): T & {
$script: Promise<T> & ScriptInstance<T>;
};
declare function useScript<T extends Record<symbol | string, any>>(_input: UseScriptInput, _options?: UseScriptOptions<T>): UseScriptContext<T>;
export { CapoPlugin, HashHydrationPlugin, type UseHeadInput, createHead, createHeadCore, createServerHead, getActiveHead, unheadComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
export { CapoPlugin, HashHydrationPlugin, type UseHeadInput, type UseScriptContext, createHead, createHeadCore, createServerHead, getActiveHead, resolveScriptKey, unheadComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
{
"name": "unhead",
"type": "module",
"version": "1.9.16",
"version": "1.10.0-beta.1",
"author": {

@@ -37,5 +37,5 @@ "name": "Harlan Wilton",

"hookable": "^5.5.3",
"@unhead/dom": "1.9.16",
"@unhead/shared": "1.9.16",
"@unhead/schema": "1.9.16"
"@unhead/shared": "1.10.0-beta.1",
"@unhead/schema": "1.10.0-beta.1",
"@unhead/dom": "1.10.0-beta.1"
},

@@ -42,0 +42,0 @@ "scripts": {

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