@dfds-ui/google-places 2.0.8-alpha.c8ae2108 → 2.0.8-alpha.f4cd5541

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 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 = typeof window !== 'undefined' ? "&callback=dummyCallback" : '';
31
+ var callback = window ? "&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),
@@ -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 = typeof window !== 'undefined' ? `&callback=dummyCallback` : '';
39
+ const callback = window ? `&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.8-alpha.c8ae2108",
6
+ "version": "2.0.8-alpha.f4cd5541",
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.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",
17
+ "@dfds-ui/colors": "2.0.8-alpha.f4cd5541",
18
+ "@dfds-ui/hooks": "2.0.8-alpha.f4cd5541",
19
+ "@dfds-ui/icons": "2.0.8-alpha.f4cd5541",
20
+ "@dfds-ui/react-components": "2.0.8-alpha.f4cd5541",
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": "c8ae21080fccb5e4520ff2a751d074f1660c7b30",
25
+ "gitHead": "f4cd554125a656ddb25a95e036d4802e083d2ad1",
26
26
  "publishConfig": {
27
27
  "access": "public"
28
28
  }