Socket
Socket
Sign inDemoInstall

@zhead/schema

Package Overview
Dependencies
Maintainers
1
Versions
61
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zhead/schema - npm Package Compare versions

Comparing version 0.4.0 to 0.4.1

70

dist/index.d.ts

@@ -0,1 +1,28 @@

declare type Stringable = string | boolean | number | Date;
interface BodyAttributes {
/**
* Any arbitrary keys such as `data-*`.
*/
[key: string]: Stringable;
}
interface HtmlAttributes {
/**
* The lang global attribute helps define the language of an element: the language that non-editable elements are
* written in, or the language that the editable elements should be written in by the user.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/lang
*/
lang: string;
/**
* The dir global attribute is an enumerated attribute that indicates the directionality of the element's text.
*/
dir: 'ltr' | 'rtl' | 'auto';
/**
* Any arbitrary keys such as `data-*`.
*/
[key: string]: Stringable;
}
interface Link {

@@ -122,3 +149,3 @@ /**

declare type LinkEntries = Partial<Link & {
[key: string]: string | boolean;
[key: string]: Stringable;
}>[];

@@ -749,3 +776,3 @@

declare type MetaEntries = Partial<Meta & {
[key: string]: string | boolean;
[key: string]: Stringable;
}>[];

@@ -836,5 +863,19 @@

declare type ScriptEntries = Partial<Script & {
[key: string]: string | boolean;
[key: string]: Stringable;
}>[];
interface Noscript {
/**
* @internal This property is used to dedupe the link tags
*/
key: string;
/**
* @internal Content of the script tag
*/
children: string;
}
declare type NoscriptEntries = Partial<Noscript & {
[key: string]: Stringable;
}>[];
interface Style {

@@ -872,3 +913,3 @@ /**

declare type StyleEntries = Partial<Style & {
[key: string]: string | boolean;
[key: string]: Stringable;
}>[];

@@ -934,4 +975,23 @@

script?: ScriptEntries;
/**
* The <noscript> HTML element defines a section of HTML to be inserted if a script type on the page is unsupported
* or if scripting is currently turned off in the browser.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/noscript
*/
noscript?: NoscriptEntries;
/**
* Attributes for the <html> HTML element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/html
*/
htmlAttrs?: HtmlAttributes;
/**
* Attributes for the <body> HTML element.
*
* @see https://developer.mozilla.org/en-US/docs/Web/HTML/Element/body
*/
bodyAttrs?: BodyAttributes;
}
export { Base, Head, Link, LinkEntries, Meta, MetaEntries, MetaFlat, MetaFlatInput, Script, ScriptEntries, Style, StyleEntries };
export { Base, BodyAttributes, Head, HtmlAttributes, Link, LinkEntries, Meta, MetaEntries, MetaFlat, MetaFlatInput, Noscript, NoscriptEntries, Script, ScriptEntries, Style, StyleEntries };

5

package.json
{
"name": "@zhead/schema",
"version": "0.4.0",
"version": "0.4.1",
"packageManager": "pnpm@7.8.0",

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

],
"dependencies": {
"zod": "^3.19.0"
},
"scripts": {

@@ -40,0 +37,0 @@ "build": "unbuild .",

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