You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@bikariya/image-viewer

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bikariya/image-viewer - npm Package Compare versions

Comparing version
0.0.7
to
0.0.8
+1
-1
dist/module.json
{
"name": "@bikariya/image-viewer",
"configKey": "image-viewer",
"version": "0.0.7",
"version": "0.0.8",
"builder": {

@@ -6,0 +6,0 @@ "@nuxt/module-builder": "1.0.2",

@@ -216,9 +216,9 @@ <script setup>

function isSizeOutOfBounds(width, height, rate2) {
if (!clamp) {
if (!clamp || !rootEl.value) {
return false;
}
if (rate2 > 1) {
return width > Math.max(window.innerWidth, target.width, target.naturalWidth) && height > Math.max(window.innerHeight, target.height, target.naturalHeight);
return width > Math.max(window.innerWidth, target.width, rootEl.value.naturalWidth) && height > Math.max(window.innerHeight, target.height, rootEl.value.naturalHeight);
} else {
return width < Math.min(window.innerWidth, target.width, target.naturalWidth) && height < Math.min(window.innerHeight, target.height, target.naturalHeight);
return width < Math.min(window.innerWidth, target.width, rootEl.value.naturalWidth) && height < Math.min(window.innerHeight, target.height, rootEl.value.naturalHeight);
}

@@ -225,0 +225,0 @@ }

{
"name": "@bikariya/image-viewer",
"type": "module",
"version": "0.0.7",
"version": "0.0.8",
"description": "Bikariya image viewer for Nuxt",

@@ -19,3 +19,3 @@ "author": "KazariEX",

"@nuxt/kit": "^4.3.1",
"@bikariya/modals": "0.0.7"
"@bikariya/modals": "0.0.8"
},

@@ -22,0 +22,0 @@ "scripts": {