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

vue-safe-teleport

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-safe-teleport - npm Package Compare versions

Comparing version 0.1.1 to 0.1.2

4

dist/index.d.ts

@@ -1,3 +0,3 @@

export { SafeTeleport } from './SafeTeleport';
export { TeleportTarget } from './TeleportTarget';
export { SafeTeleport } from './SafeTeleport.js';
export { TeleportTarget } from './TeleportTarget.js';
declare const _default: {

@@ -4,0 +4,0 @@ install(app: any): void;

import { reactive } from 'vue';
import { PROVIDE_TELEPORT_TARGETS } from './const';
import { SafeTeleport } from './SafeTeleport';
import { TeleportTarget } from './TeleportTarget';
export { SafeTeleport } from './SafeTeleport';
export { TeleportTarget } from './TeleportTarget';
import { PROVIDE_TELEPORT_TARGETS } from './const.js';
import { SafeTeleport } from './SafeTeleport.js';
import { TeleportTarget } from './TeleportTarget.js';
export { SafeTeleport } from './SafeTeleport.js';
export { TeleportTarget } from './TeleportTarget.js';
export default {

@@ -8,0 +8,0 @@ install(app) {

import { computed, defineComponent, h, inject, onMounted, ref, Teleport, watch } from 'vue';
import { PROVIDE_TELEPORT_TARGETS } from './const';
import { PROVIDE_TELEPORT_TARGETS } from './const.js';
export const SafeTeleport = defineComponent({

@@ -4,0 +4,0 @@ name: 'SafeTeleport',

import { computed, defineComponent, h, inject, onBeforeUnmount, onMounted } from 'vue';
import { PROVIDE_TELEPORT_TARGETS } from './const';
import { PROVIDE_TELEPORT_TARGETS } from './const.js';
export const TeleportTarget = defineComponent({

@@ -4,0 +4,0 @@ name: 'TeleportTarget',

{
"name": "vue-safe-teleport",
"version": "0.1.1",
"version": "0.1.2",
"description": "Recommended for teleporting inside a Vue app",

@@ -5,0 +5,0 @@ "license": "MIT",

@@ -54,3 +54,3 @@ # vue-safe-teleport

The content will be teleport as soon as the corresponding target is mounted.
The content will be teleported as soon as the corresponding target is mounted.

@@ -57,0 +57,0 @@ You can also use `SafeTeleport` without `TeleportTarget`, in that case it will work like the builtin `Teleport` but will wait one frame if the target DOM element isn't available yet:

import { reactive } from 'vue'
import { PROVIDE_TELEPORT_TARGETS } from './const'
import { SafeTeleport } from './SafeTeleport'
import { TeleportTarget } from './TeleportTarget'
import { PROVIDE_TELEPORT_TARGETS } from './const.js'
import { SafeTeleport } from './SafeTeleport.js'
import { TeleportTarget } from './TeleportTarget.js'
export { SafeTeleport } from './SafeTeleport'
export { TeleportTarget } from './TeleportTarget'
export { SafeTeleport } from './SafeTeleport.js'
export { TeleportTarget } from './TeleportTarget.js'

@@ -9,0 +9,0 @@ export default {

import { computed, defineComponent, h, inject, onMounted, PropType, ref, Teleport, watch } from 'vue'
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const'
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const.js'

@@ -4,0 +4,0 @@ export const SafeTeleport = defineComponent({

@@ -1,3 +0,3 @@

import { computed, defineComponent, h, inject, onBeforeUnmount, onMounted, watch } from 'vue'
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const'
import { computed, defineComponent, h, inject, onBeforeUnmount, onMounted } from 'vue'
import { PROVIDE_TELEPORT_TARGETS, TeleportTargets } from './const.js'

@@ -4,0 +4,0 @@ export const TeleportTarget = defineComponent({

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