Socket
Socket
Sign inDemoInstall

@jill64/svelte-html

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@jill64/svelte-html - npm Package Compare versions

Comparing version 0.0.1 to 0.1.0

dist/transform.d.ts

15

dist/bind.d.ts
/// <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)
}));

1

dist/index.d.ts
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';

6

package.json
{
"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

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