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

matchmediaquery

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

matchmediaquery - npm Package Compare versions

Comparing version 0.2.1 to 0.3.0

8

index.js

@@ -7,5 +7,5 @@ 'use strict';

// our fake MediaQueryList
function Mql(query, values){
function Mql(query, values, forceStatic){
var self = this;
if(dynamicMatch){
if(dynamicMatch && !forceStatic){
var mql = dynamicMatch.call(window, query);

@@ -50,6 +50,6 @@ this.matches = mql.matches;

function matchMedia(query, values){
return new Mql(query, values);
function matchMedia(query, values, forceStatic){
return new Mql(query, values, forceStatic);
}
module.exports = matchMedia;
{
"name": "matchmediaquery",
"version": "0.2.1",
"version": "0.3.0",
"description": "Media queries for your client and server",

@@ -5,0 +5,0 @@ "main": "index.js",

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