@dfds-ui/google-places 2.0.7 → 2.0.8-alpha.c8ae2108
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/GooglePlaces.js +1 -1
- package/cjs/GooglePlaces.js +1 -1
- package/package.json +6 -6
package/GooglePlaces.js
CHANGED
|
@@ -28,7 +28,7 @@ export var GooglePlacesAPIProvider = function GooglePlacesAPIProvider(_ref) {
|
|
|
28
28
|
};
|
|
29
29
|
// @ts-expect-error dummyCallback does not exist on window. A callback is required by Google Maps API.
|
|
30
30
|
if (window) window.dummyCallback = dummyCallback;
|
|
31
|
-
var callback = window ? "&callback=dummyCallback" : '';
|
|
31
|
+
var callback = typeof window !== 'undefined' ? "&callback=dummyCallback" : '';
|
|
32
32
|
var scriptUrl = "https://maps.googleapis.com/maps/api/js?key=".concat(apiKey, "&libraries=").concat(libraries).concat(languageParam).concat(callback);
|
|
33
33
|
var _useScript = useScript(scriptUrl, isGoogleMapsDefined),
|
|
34
34
|
_useScript2 = _slicedToArray(_useScript, 2),
|
package/cjs/GooglePlaces.js
CHANGED
|
@@ -36,7 +36,7 @@ const GooglePlacesAPIProvider = ({
|
|
|
36
36
|
};
|
|
37
37
|
// @ts-expect-error dummyCallback does not exist on window. A callback is required by Google Maps API.
|
|
38
38
|
if (window) window.dummyCallback = dummyCallback;
|
|
39
|
-
const callback = window ? `&callback=dummyCallback` : '';
|
|
39
|
+
const callback = typeof window !== 'undefined' ? `&callback=dummyCallback` : '';
|
|
40
40
|
const scriptUrl = `https://maps.googleapis.com/maps/api/js?key=${apiKey}&libraries=${libraries}${languageParam}${callback}`;
|
|
41
41
|
const _useScript = (0, _hooks.useScript)(scriptUrl, isGoogleMapsDefined),
|
|
42
42
|
_useScript2 = _slicedToArray(_useScript, 2),
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Components using Google places",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"private": false,
|
|
6
|
-
"version": "2.0.
|
|
6
|
+
"version": "2.0.8-alpha.c8ae2108",
|
|
7
7
|
"sideEffects": false,
|
|
8
8
|
"main": "./cjs/index.js",
|
|
9
9
|
"module": "./index.js",
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"react-dom": ">= 17.0.2"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@dfds-ui/colors": "2.0.
|
|
18
|
-
"@dfds-ui/hooks": "2.0.
|
|
19
|
-
"@dfds-ui/icons": "2.0.
|
|
20
|
-
"@dfds-ui/react-components": "2.0.
|
|
17
|
+
"@dfds-ui/colors": "2.0.8-alpha.c8ae2108",
|
|
18
|
+
"@dfds-ui/hooks": "2.0.8-alpha.c8ae2108",
|
|
19
|
+
"@dfds-ui/icons": "2.0.8-alpha.c8ae2108",
|
|
20
|
+
"@dfds-ui/react-components": "2.0.8-alpha.c8ae2108",
|
|
21
21
|
"@types/googlemaps": "3.43.3",
|
|
22
22
|
"@types/lodash.debounce": "^4.0.7",
|
|
23
23
|
"lodash.debounce": "^4.0.8"
|
|
24
24
|
},
|
|
25
|
-
"gitHead": "
|
|
25
|
+
"gitHead": "c8ae21080fccb5e4520ff2a751d074f1660c7b30",
|
|
26
26
|
"publishConfig": {
|
|
27
27
|
"access": "public"
|
|
28
28
|
}
|