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

matchmedia

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

matchmedia - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

9

index.js

@@ -8,2 +8,3 @@ 'use strict';

function Mql(query, values){
var self = this;
if(dynamicMatch){

@@ -13,2 +14,4 @@ var mql = dynamicMatch(query);

this.media = mql.media;
// TODO: is there a time it makes sense to remove this listener?
mql.addListener(update);
} else {

@@ -33,2 +36,8 @@ this.matches = staticMatch(query, values);

}
// update ourselves!
function update(evt){
self.matches = evt.matches;
self.media = evt.media;
}
}

@@ -35,0 +44,0 @@

2

package.json
{
"name": "matchmedia",
"version": "0.1.0",
"version": "0.1.1",
"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