Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

svelte-legos

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

svelte-legos - npm Package Compare versions

Comparing version 0.2.2 to 0.2.3

dist/utilities/startViewTransition/demo.svelte

1

dist/index.d.ts

@@ -64,2 +64,3 @@ export { counterStore } from "./stores/counterStore";

export { screenOrientation } from "./utilities/screenOrientation";
export { startViewTransition } from "./utilities/startViewTransition";
export { swirl } from "./transitions/swirl";

@@ -66,0 +67,0 @@ export { slide } from "./transitions/slide";

@@ -66,2 +66,3 @@ export { counterStore } from "./stores/counterStore";

export { screenOrientation } from "./utilities/screenOrientation";
export { startViewTransition } from "./utilities/startViewTransition"

@@ -68,0 +69,0 @@ export { swirl } from "./transitions/swirl";

@@ -8,4 +8,5 @@ /// <reference types="svelte" />

subscribe: (this: void, run: import("svelte/store").Subscriber<string>, invalidate?: import("svelte/store").Invalidator<string> | undefined) => import("svelte/store").Unsubscriber;
update: (this: void, updater: import("svelte/store").Updater<string>) => void;
set: (value: string) => void;
};
export {};

@@ -18,4 +18,5 @@ import { defaultDocument } from "../../shared";

subscribe: store.subscribe,
update: store.update,
set,
};
}
/// <reference types="svelte" />
/**
* Gets the current date in a Svelte readable store. The date is updated every 10ms.
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
*
*
* @example
* ```ts
* import { dateStore } from 'svelte-legos';
*
* $: console.log($dateStore); // Fri Sep 15 2023 11:43:12 GMT+0100 (British Summer Time)
* ```
*/
export declare const dateStore: import("svelte/store").Readable<Date>;
import { readable } from "svelte/store";
/**
* Gets the current date in a Svelte readable store. The date is updated every 10ms.
* @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date
*
*
* @example
* ```ts
* import { dateStore } from 'svelte-legos';
*
* $: console.log($dateStore); // Fri Sep 15 2023 11:43:12 GMT+0100 (British Summer Time)
* ```
*/
export const dateStore = readable(new Date(), (set) => {

@@ -3,0 +15,0 @@ const interval = setInterval(() => {

2

dist/stores/dateStore/usage.txt
<script lang="ts">
import { dateStore } from 'svelte-legos';
// $dateStore gives you the current date formatted
// $dateStore gives you the current date
</script>
{
"name": "svelte-legos",
"version": "0.2.2",
"version": "0.2.3",
"description": "A framework for Svelte Utilities",

@@ -15,3 +15,3 @@ "author": "Ankur Singhal",

},
"homepage": "https://svelte-legos.singhalankur.com/",
"homepage": "https://svelte-legos.surge.sh",
"scripts": {

@@ -18,0 +18,0 @@ "dev": "vite dev",

@@ -9,3 +9,3 @@ # Svelte Legos

- 🎪 [**Interactive docs & demos**](https://sveltelegos.com)
- 🎪 [**Interactive docs & demos**](https://svelte-legos.surge.sh)
- ⚡ **Fully tree shakeable**: Only take what you want, [bundle size]

@@ -47,3 +47,3 @@ - 🦾 **Type Strong**: Written in [TypeScript](https://www.typescriptlang.org/), with [TS Docs](https://github.com/microsoft/tsdoc)

Refer to [functions list](https://sveltelegos.com/guides) or [documentations](https://sveltelegos.com) for more details.
Refer to [functions list](https://svelte-legos.surge.sh/guides) or [documentations](https://svelte-legos.surge.sh) for more details.

@@ -50,0 +50,0 @@ ## 📦 Install

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