@alfalab/core-components-mq
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,9 +5,10 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var utils = require('./utils.js'); | ||
var useMatchMedia = require('./useMatchMedia.js'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var IS_BROWSER = typeof window !== 'undefined'; | ||
@@ -25,5 +26,5 @@ var SUPPORTS_TOUCH = IS_BROWSER && (utils.isPointerEventsSupported() || utils.isTouchSupported()); | ||
}, [matches, onMatchChange]); | ||
return React__default.createElement(React.Fragment, null, matches && IS_BROWSER ? children : null); | ||
return React__default['default'].createElement(React.Fragment, null, matches && IS_BROWSER ? children : null); | ||
}; | ||
exports.Mq = Mq; |
@@ -5,9 +5,10 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var utils = require('./utils.js'); | ||
var useMatchMedia = require('./useMatchMedia.js'); | ||
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; } | ||
var React__default = /*#__PURE__*/_interopDefaultLegacy(React); | ||
var IS_BROWSER = typeof window !== 'undefined'; | ||
@@ -25,5 +26,5 @@ var SUPPORTS_TOUCH = IS_BROWSER && (utils.isPointerEventsSupported() || utils.isTouchSupported()); | ||
}, [matches, onMatchChange]); | ||
return React__default.createElement(React.Fragment, null, matches && IS_BROWSER ? children : null); | ||
return React__default['default'].createElement(React.Fragment, null, matches && IS_BROWSER ? children : null); | ||
}; | ||
exports.Mq = Mq; |
@@ -5,6 +5,3 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var utils = require('./utils.js'); | ||
@@ -11,0 +8,0 @@ |
@@ -5,6 +5,3 @@ 'use strict'; | ||
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } | ||
var React = require('react'); | ||
var React__default = _interopDefault(React); | ||
var utils = require('./utils.js'); | ||
@@ -11,0 +8,0 @@ |
{ | ||
"name": "@alfalab/core-components-mq", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "", | ||
@@ -16,5 +16,5 @@ "keywords": [], | ||
"peerDependencies": { | ||
"react": "^16.9.0" | ||
"react": "^16.9.0 || ^17.0.1" | ||
}, | ||
"gitHead": "b8e497302de3841540914c3918284a73df9f84bd" | ||
"gitHead": "7f6495e129711b248ad9e77e1d81fbf2de42b7ff" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
24574
34
0
629