Socket
Book a DemoInstallSign in
Socket

nuxt-viewport

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nuxt-viewport - npm Package Compare versions

Comparing version

to
2.3.1

2

dist/module.json

@@ -7,3 +7,3 @@ {

"name": "nuxt-viewport",
"version": "2.3.0",
"version": "2.3.1",
"builder": {

@@ -10,0 +10,0 @@ "@nuxt/module-builder": "0.8.4",

@@ -18,2 +18,3 @@ import cookie from "cookiejs";

const queries = computed(() => {
const delta = 0.1;
const breakpoints = options.value.breakpoints || {};

@@ -36,3 +37,3 @@ const breakpointsKeys = Object.keys(breakpoints).sort((a, b) => breakpoints[a] - breakpoints[b]);

if (nextSize) {
mediaQuery += ` and (max-width: ${nextSize - 1}px)`;
mediaQuery += ` and (max-width: ${nextSize - delta}px)`;
}

@@ -42,3 +43,3 @@ } else {

if (prevSize) {
mediaQuery = `(min-width: ${prevSize - 1}px) and ${mediaQuery}`;
mediaQuery = `(min-width: ${prevSize + delta}px) and ${mediaQuery}`;
}

@@ -45,0 +46,0 @@ }

{
"name": "nuxt-viewport",
"version": "2.3.0",
"version": "2.3.1",
"description": "Define custom viewports for your Nuxt project",

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

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.