Socket
Socket
Sign inDemoInstall

svelte-simple-modal

Package Overview
Dependencies
1
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.4.3 to 1.4.4

16

lib/index.js

@@ -14,3 +14,3 @@ import { SvelteComponent, init, safe_not_equal, append_styles, element, space, create_component, attr, null_to_empty, toggle_class, insert, append, mount_component, listen, is_function, transition_in, empty, group_outros, transition_out, check_outros, detach, destroy_component, construct_svelte_component, add_render_callback, create_bidirectional_transition, run_all, create_slot, update_slot_base, get_all_dirty_from_scope, get_slot_changes, globals, noop, binding_callbacks } from 'svelte/internal';

// (449:0) {#if Component}
// (456:0) {#if Component}
function create_if_block(ctx) {

@@ -256,3 +256,3 @@ let div3;

// (480:8) {#if state.closeButton}
// (487:8) {#if state.closeButton}
function create_if_block_1(ctx) {

@@ -330,3 +330,3 @@ let show_if;

// (483:10) {:else}
// (490:10) {:else}
function create_else_block(ctx) {

@@ -378,3 +378,3 @@ let button;

// (481:10) {#if isFunction(state.closeButton)}
// (488:10) {#if isFunction(state.closeButton)}
function create_if_block_2(ctx) {

@@ -786,3 +786,9 @@ let switch_instance;

setContext(key, { open, close });
/**
* The exposed context methods: open() and close()
* @type {Context}
*/
const context = { open, close };
setContext(key, context);
let isMounted = false;

@@ -789,0 +795,0 @@

{
"name": "svelte-simple-modal",
"version": "1.4.3",
"version": "1.4.4",
"description": "A small and simple modal for Svelte",

@@ -5,0 +5,0 @@ "type": "module",

@@ -68,2 +68,7 @@ /// <reference types="svelte" />

export interface Context {
open: Open;
close: Close;
}
export interface ModalProps {

@@ -70,0 +75,0 @@ /**

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc