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

include-media-query-builder

Package Overview
Dependencies
Maintainers
2
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

include-media-query-builder - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

4

build/buildParsedQuery.js

@@ -11,6 +11,6 @@ "use strict";

}
if (operator === '>=') {
if (operator === '>=' || operator === '≥') {
return `(min-width: ${value}px)`;
}
if (operator === '>') {
if (operator === '>' || operator === '≤') {
return `(min-width: ${value + 1}px)`;

@@ -17,0 +17,0 @@ }

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.OPERATORS = void 0;
exports.OPERATORS = ['<', '<=', '>=', '>'];
exports.OPERATORS = ['<', '<=', '>=', '>', '≤', '≥'];
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const isSize = (breakpoints, value) => {
return typeof value === 'string' && Object.keys(breakpoints).includes(value);
return (typeof value === 'string' &&
Object.keys(breakpoints)
.map((size) => size.toLowerCase())
.includes(value.toLowerCase()));
};
exports.default = isSize;

@@ -1,2 +0,2 @@

export type Operator = '<' | '<=' | '>=' | '>';
export type Operator = '<' | '<=' | '>=' | '>' | `≤` | `≥`;
export interface ParsedQuery<Size extends string | number | symbol> {

@@ -3,0 +3,0 @@ operator: Operator;

{
"name": "include-media-query-builder",
"version": "1.0.2",
"version": "1.0.3",
"description": "Build include-media-like media queries in JavaScript",

@@ -5,0 +5,0 @@ "keywords": [

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