@jill64/svelte-html
Advanced tools
Comparing version 0.0.1 to 0.1.0
/// <reference types="@sveltejs/kit" /> | ||
/** | ||
* @deprecated | ||
* Use `transform` | ||
* ```js | ||
* // hooks.server.js | ||
* import { bind } from '@jill64/svelte-html' | ||
* | ||
* export const handle = (({ event, resolve }) => | ||
* resolve(event, { | ||
* transformPageChunk: ({ html }) => transform(html, { | ||
* // ...attributes | ||
* }) | ||
* })) | ||
* ``` | ||
*/ | ||
export declare const bind: (attributes: Record<string, string>) => ({ event, resolve }: { | ||
@@ -3,0 +18,0 @@ event: import("@sveltejs/kit").RequestEvent<Partial<Record<string, string>>, string | null>; |
import { transform } from './utils/transform'; | ||
/** | ||
* @deprecated | ||
* Use `transform` | ||
* ```js | ||
* // hooks.server.js | ||
* import { bind } from '@jill64/svelte-html' | ||
* | ||
* export const handle = (({ event, resolve }) => | ||
* resolve(event, { | ||
* transformPageChunk: ({ html }) => transform(html, { | ||
* // ...attributes | ||
* }) | ||
* })) | ||
* ``` | ||
*/ | ||
export const bind = (attributes) => (({ event, resolve }) => resolve(event, { | ||
transformPageChunk: ({ html }) => transform(html, attributes) | ||
})); |
export { default as SvelteHTML } from './SvelteHtml.svelte'; | ||
export { bind } from './bind'; | ||
export { transform } from './transform'; |
export { default as SvelteHTML } from './SvelteHtml.svelte'; | ||
// eslint-disable-next-line deprecation/deprecation | ||
export { bind } from './bind'; | ||
export { transform } from './transform'; |
{ | ||
"name": "@jill64/svelte-html", | ||
"version": "0.0.1", | ||
"description": "", | ||
"version": "0.1.0", | ||
"description": "🏷️ Reactive attributes assignment for root html element", | ||
"main": "dist/index.js", | ||
@@ -54,3 +54,3 @@ "type": "module", | ||
"@playwright/test": "1.39.0", | ||
"@sveltejs/adapter-auto": "2.1.0", | ||
"@sveltejs/adapter-static": "2.0.3", | ||
"@sveltejs/kit": "1.27.2", | ||
@@ -57,0 +57,0 @@ "@typescript-eslint/eslint-plugin": "6.9.1", |
@@ -5,3 +5,3 @@ <!----- BEGIN GHOST DOCS HEADER -----> | ||
[![npm-version](https://img.shields.io/npm/v/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![npm-license](https://img.shields.io/npm/l/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![npm-download-month](https://img.shields.io/npm/dm/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![npm-min-size](https://img.shields.io/bundlephobia/min/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![ci.yml](https://github.com/jill64/svelte-html/actions/workflows/ci.yml/badge.svg)](https://github.com/jill64/svelte-html/actions/workflows/ci.yml) | ||
[![npm-version](https://img.shields.io/npm/v/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![npm-license](https://img.shields.io/npm/l/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![npm-download-month](https://img.shields.io/npm/dm/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![npm-min-size](https://img.shields.io/bundlephobia/min/@jill64/svelte-html)](https://npmjs.com/package/@jill64/svelte-html) [![ci.yml](https://github.com/jill64/svelte-html/actions/workflows/ci.yml/badge.svg)](https://github.com/jill64/svelte-html/actions/workflows/ci.yml) [![deploy.yml](https://github.com/jill64/svelte-html/actions/workflows/deploy.yml/badge.svg)](https://github.com/jill64/svelte-html/actions/workflows/deploy.yml) | ||
@@ -8,0 +8,0 @@ 🏷️ Reactive attributes assignment for root html element |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7497
15
92