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

ab-mediaquery

Package Overview
Dependencies
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ab-mediaquery - npm Package Compare versions

Comparing version 1.2.0 to 1.3.1

20

AB-mediaQuery.js
!(function(name, definition) {
if (typeof module != 'undefined') module.exports = definition();
else if (typeof define == 'function' && typeof define.amd == 'object') define(definition);
else this[name] = definition();
}('mediaQuery', function() {
if (typeof module != 'undefined') {
module.exports = definition();
} else if (typeof define == 'function' && typeof define.amd == 'object') {
define(definition);
} else {
this[name] = definition();
}
}('abMediaQuery', function() {

@@ -141,3 +145,3 @@ 'use strict';

var that = this,
event = new Event('changed.ab-mediaquery'),
event = new CustomEvent('changed.ab-mediaquery'),
newSize, resizeTimer;

@@ -164,3 +168,3 @@

function mediaQuery(opt) {
function abMediaQuery(opt) {
if (typeof window.AB === 'undefined') window.AB = {};

@@ -170,3 +174,3 @@ window.AB.mediaQuery = new MediaQuery(opt);

return mediaQuery;
}));
return abMediaQuery;
}));

2

package.json
{
"name": "ab-mediaquery",
"version": "1.2.0",
"version": "1.3.1",
"description": "AB-mediaQuery is the JavaScript side of Media Queries. It proposes you some very useful methods for your scripts",

@@ -5,0 +5,0 @@ "main": "AB-mediaQuery.js",

@@ -24,5 +24,5 @@ # AB-mediaQuery

Simple call `mediaQuery` function with no parameters:
Simple call `abMediaQuery` function with no parameters:
```
mediaQuery();
abMediaQuery();
```

@@ -69,5 +69,5 @@

Then include `_AB-mediaQuery.scss`:
Then import `_AB-mediaQuery.scss`:
```
@include 'path/to/AB-mediaQuery'
@import 'path/to/AB-mediaQuery'
```

@@ -77,5 +77,5 @@

Simple call `mediaQuery` function with no parameters:
Simple call `abMediaQuery` function with no parameters:
```
mediaQuery();
abMediaQuery();
```

@@ -88,3 +88,3 @@

```
mediaQuery({
abMediaQuery({
bp: {

@@ -91,0 +91,0 @@ small: '480em',

Sorry, the diff of this file is not supported yet

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