@shopgate/pwa-common 6.18.2 → 6.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/selectors/client.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-common",
|
|
3
|
-
"version": "6.18.
|
|
3
|
+
"version": "6.18.3",
|
|
4
4
|
"description": "Common library for the Shopgate Connect PWA.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
],
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@sentry/browser": "^4.6.3",
|
|
19
|
-
"@shopgate/pwa-benchmark": "6.18.
|
|
19
|
+
"@shopgate/pwa-benchmark": "6.18.3",
|
|
20
20
|
"@virtuous/conductor": "~2.4.0",
|
|
21
21
|
"@virtuous/react-conductor": "~2.4.0",
|
|
22
22
|
"@virtuous/redux-persister": "1.1.0-beta.7",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"url-search-params": "^0.10.0"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@shopgate/pwa-core": "6.18.
|
|
47
|
+
"@shopgate/pwa-core": "6.18.3",
|
|
48
48
|
"lodash": "^4.17.4",
|
|
49
49
|
"prop-types": "~15.7.2",
|
|
50
50
|
"react": "~16.12.0",
|
package/selectors/client.js
CHANGED
|
@@ -45,7 +45,7 @@ import{createSelector}from'reselect';import{hasSGJavaScriptBridge}from'@shopgate
|
|
|
45
45
|
* @param {Object} state The application state.
|
|
46
46
|
* @returns {boolean}
|
|
47
47
|
*/export var hasScannerSupport=createSelector(getClientInformation,getDeviceInformation,isIos,function(clientInformation,deviceInformation,deviceIsIos){// scanner is not supported on ipads
|
|
48
|
-
var type=
|
|
48
|
+
var _ref4=deviceInformation||{},type=_ref4.type;var isIpad=type===TYPE_TABLET&&deviceIsIos;return isVersionAtLeast(SCANNER_MIN_APP_LIB_VERSION,clientInformation.libVersion)&&!isIpad;});/**
|
|
49
49
|
* Determines page insets for the current device
|
|
50
50
|
* @param {Object} state The application state.
|
|
51
51
|
* @returns {Object}
|