New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

unhead

Package Overview
Dependencies
Maintainers
1
Versions
216
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 2.0.0-alpha.1 to 2.0.0-alpha.2

dist/shared/unhead.9TKdmFya.cjs

27

dist/index.d.ts

@@ -1,24 +0,9 @@

import { MergeHead, Head, HeadEntryOptions, ActiveHeadEntry, HeadSafe, UseSeoMetaInput } from '@unhead/schema';
export { c as createHeadCore, t as tryUseUnhead, u as unheadCtx, a as useUnhead } from './shared/unhead.Bkkr-JOb.js';
export { composableNames } from '@unhead/shared';
import 'unctx/index';
import { MergeHead, Head, Unhead, HeadEntryOptions, HeadSafe, ActiveHeadEntry, UseSeoMetaInput } from '@unhead/schema';
export { c as createHeadCore } from './shared/unhead.D--bHScR.js';
declare const unheadComposablesImports: {
from: string;
imports: string[];
}[];
type UseHeadInput<T extends MergeHead> = Head<T>;
declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>>;
declare function useHead<T extends Unhead<any>>(unhead: T, input: Parameters<T['push']>[0], options?: HeadEntryOptions): ReturnType<T['push']>;
declare function useHeadSafe<T extends Unhead<any>>(unhead: T, input: HeadSafe, options?: HeadEntryOptions): ActiveHeadEntry<HeadSafe>;
declare function useSeoMeta<T extends Unhead<any>>(unhead: T, input: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<any>;
declare function useHeadSafe(input: HeadSafe, options?: HeadEntryOptions): ActiveHeadEntry<HeadSafe>;
declare function useSeoMeta(input: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<any>;
declare function useServerHead<T extends MergeHead>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>>;
declare function useServerHeadSafe<T extends HeadSafe>(input: T, options?: HeadEntryOptions): ActiveHeadEntry<T>;
declare function useServerSeoMeta(input: UseSeoMetaInput, options?: HeadEntryOptions): ActiveHeadEntry<any>;
export { type UseHeadInput, unheadComposablesImports, useHead, useHeadSafe, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
export { type UseHeadInput, useHead, useHeadSafe, useSeoMeta };

@@ -1,4 +0,4 @@

import { Script, ActiveHeadEntry, HeadEntryOptions, Head, CreateHeadOptions, Unhead, MergeHead, HeadSafe, UseSeoMetaInput } from '@unhead/schema';
export { c as createHeadCore, t as tryUseUnhead, u as unheadCtx, a as useUnhead } from './shared/unhead.Bkkr-JOb.js';
import 'unctx/index';
import { Script, ActiveHeadEntry, HeadEntryOptions, Unhead, Head, CreateHeadOptions, MergeHead, HeadSafe, UseSeoMetaInput } from '@unhead/schema';
export { composableNames } from '@unhead/shared';
export { c as createHeadCore } from './shared/unhead.D--bHScR.js';

@@ -96,5 +96,13 @@ type UseScriptInput = string | (Omit<Script, 'src'> & {

declare const activeHead: {
value: Unhead<any> | null;
};
declare function getActiveHead(): Unhead<any> | null;
declare const unheadComposablesImports: {
from: string;
imports: string[];
}[];
declare function createServerHead<T extends Record<string, any> = Head>(options?: CreateHeadOptions): Unhead<T>;
declare function createHead<T extends Record<string, any> = Head>(options?: CreateHeadOptions): Unhead<T>;
declare function getActiveHead(): Unhead<Head<MergeHead>> | null;
type UseHeadInput<T extends MergeHead> = Head<T>;

@@ -108,2 +116,2 @@ declare function useHead<T extends MergeHead>(input: UseHeadInput<T>, options?: HeadEntryOptions): ActiveHeadEntry<UseHeadInput<T>> | void;

export { type AsAsyncFunctionValues, type ScriptInstance, type UseFunctionType, type UseHeadInput, type UseScriptContext, type UseScriptInput, type UseScriptOptions, type UseScriptResolvedInput, type UseScriptStatus, createHead, createServerHead, getActiveHead, resolveScriptKey, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
export { type AsAsyncFunctionValues, type ScriptInstance, type UseFunctionType, type UseHeadInput, type UseScriptContext, type UseScriptInput, type UseScriptOptions, type UseScriptResolvedInput, type UseScriptStatus, activeHead, createHead, createServerHead, getActiveHead, resolveScriptKey, unheadComposablesImports, useHead, useHeadSafe, useScript, useSeoMeta, useServerHead, useServerHeadSafe, useServerSeoMeta };
{
"name": "unhead",
"type": "module",
"version": "2.0.0-alpha.1",
"version": "2.0.0-alpha.2",
"description": "Full-stack <head> manager built for any framework.",

@@ -11,2 +11,6 @@ "author": {

},
"publishConfig": {
"access": "public",
"tag": "next"
},
"license": "MIT",

@@ -74,5 +78,4 @@ "funding": "https://github.com/sponsors/harlan-zw",

"hookable": "^5.5.3",
"unctx": "^2.4.1",
"@unhead/schema": "2.0.0-alpha.1",
"@unhead/shared": "2.0.0-alpha.1"
"@unhead/schema": "2.0.0-alpha.2",
"@unhead/shared": "2.0.0-alpha.2"
},

@@ -79,0 +82,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

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

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