@shopgate/pwa-common 7.24.6 → 7.24.7
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/helpers/data/index.js +4 -0
- package/package.json +3 -3
package/helpers/data/index.js
CHANGED
|
@@ -16,6 +16,10 @@ function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="s
|
|
|
16
16
|
* @param {string} url The URL to check.
|
|
17
17
|
* @return {boolean}
|
|
18
18
|
*/export var isExternal=function isExternal(url){return url.includes('http://')||url.includes('https://')||url.includes('//');};/**
|
|
19
|
+
* Checks whether the url is an HTTPS url.
|
|
20
|
+
* @param {string} url The url to open.
|
|
21
|
+
* @return {boolean}
|
|
22
|
+
*/export var isHTTPS=function isHTTPS(){var url=arguments.length>0&&arguments[0]!==undefined?arguments[0]:'';return url.startsWith('https://');};/**
|
|
19
23
|
* Returns the actual url to the image, by adding url parameters with the dimensions for img-cdn
|
|
20
24
|
* @param {string} src Source to the image.
|
|
21
25
|
* @param {Object} dimension Dimension of the requested image.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shopgate/pwa-common",
|
|
3
|
-
"version": "7.24.
|
|
3
|
+
"version": "7.24.7",
|
|
4
4
|
"description": "Common library for the Shopgate Connect PWA.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "Shopgate <support@shopgate.com>",
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@redux-devtools/extension": "^3.3.0",
|
|
19
19
|
"@sentry/browser": "6.0.1",
|
|
20
|
-
"@shopgate/pwa-benchmark": "7.24.
|
|
20
|
+
"@shopgate/pwa-benchmark": "7.24.7",
|
|
21
21
|
"@virtuous/conductor": "~2.5.0",
|
|
22
22
|
"@virtuous/react-conductor": "~2.5.0",
|
|
23
23
|
"@virtuous/redux-persister": "1.1.0-beta.7",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"url-search-params": "^0.10.0"
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"@shopgate/pwa-core": "7.24.
|
|
46
|
+
"@shopgate/pwa-core": "7.24.7",
|
|
47
47
|
"@types/react-portal": "^3.0.9",
|
|
48
48
|
"lodash": "^4.17.4",
|
|
49
49
|
"prop-types": "~15.8.1",
|