@carbon/ibmdotcom-services 2.57.1 → 2.57.2

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.
@@ -3,7 +3,7 @@ import _classCallCheck from "@babel/runtime/helpers/classCallCheck";
3
3
  import _createClass from "@babel/runtime/helpers/createClass";
4
4
  import _regeneratorRuntime from "@babel/runtime/regenerator";
5
5
  /**
6
- * Copyright IBM Corp. 2020, 2026
6
+ * Copyright IBM Corp. 2020, 2022
7
7
  *
8
8
  * This source code is licensed under the Apache-2.0 license found in the
9
9
  * LICENSE file in the root directory of this source tree.
@@ -12,7 +12,6 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
12
12
  import axios from 'axios';
13
13
  import { LocaleAPI } from '../Locale';
14
14
  import root from 'window-or-global';
15
- import localLinksData from '../../../../web-components/src/components/masthead/masthead-footer-nav.json';
16
15
 
17
16
  /**
18
17
  * @constant {string | string} Host for the Translation API call
@@ -145,16 +144,10 @@ var TranslationAPI = /*#__PURE__*/function () {
145
144
  lang = locale.lc;
146
145
  country = locale.cc;
147
146
  case 3:
148
- if (!(country === 'us' && lang === 'en')) {
149
- _context.next = 4;
150
- break;
151
- }
152
- return _context.abrupt("return", Promise.resolve(localLinksData.us.en));
153
- case 4:
154
147
  return _context.abrupt("return", new Promise(function (resolve, reject) {
155
148
  _this.fetchTranslation(lang, country, endpoint, resolve, reject);
156
149
  }));
157
- case 5:
150
+ case 4:
158
151
  case "end":
159
152
  return _context.stop();
160
153
  }
@@ -12,9 +12,8 @@ var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/creat
12
12
  var _axios = _interopRequireDefault(require("axios"));
13
13
  var _Locale = require("../Locale");
14
14
  var _windowOrGlobal = _interopRequireDefault(require("window-or-global"));
15
- var _mastheadFooterNav = _interopRequireDefault(require("../../../../web-components/src/components/masthead/masthead-footer-nav.json"));
16
15
  /**
17
- * Copyright IBM Corp. 2020, 2026
16
+ * Copyright IBM Corp. 2020, 2022
18
17
  *
19
18
  * This source code is licensed under the Apache-2.0 license found in the
20
19
  * LICENSE file in the root directory of this source tree.
@@ -151,16 +150,10 @@ var TranslationAPI = /*#__PURE__*/function () {
151
150
  lang = locale.lc;
152
151
  country = locale.cc;
153
152
  case 3:
154
- if (!(country === 'us' && lang === 'en')) {
155
- _context.next = 4;
156
- break;
157
- }
158
- return _context.abrupt("return", Promise.resolve(_mastheadFooterNav.default.us.en));
159
- case 4:
160
153
  return _context.abrupt("return", new Promise(function (resolve, reject) {
161
154
  _this.fetchTranslation(lang, country, endpoint, resolve, reject);
162
155
  }));
163
- case 5:
156
+ case 4:
164
157
  case "end":
165
158
  return _context.stop();
166
159
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@carbon/ibmdotcom-services",
3
3
  "description": "Carbon for IBM.com Services",
4
- "version": "2.57.1",
4
+ "version": "2.57.2",
5
5
  "license": "Apache-2.0",
6
6
  "main": "lib/index.js",
7
7
  "module": "es/index.js",
@@ -47,7 +47,7 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@babel/runtime": "^7.16.3",
50
- "@carbon/ibmdotcom-utilities": "2.57.1",
50
+ "@carbon/ibmdotcom-utilities": "2.57.2",
51
51
  "@ibm/telemetry-js": "^1.5.0",
52
52
  "axios": "^1.6.8",
53
53
  "marked": "^4.0.10",
@@ -89,5 +89,5 @@
89
89
  "rollup-plugin-sizes": "^1.0.4",
90
90
  "whatwg-fetch": "^2.0.3"
91
91
  },
92
- "gitHead": "5b66eaeea63ef546742576ebfe3ea1f779d31677"
92
+ "gitHead": "3244f4e6c72a6a51138c6c9f219f79f491bf7b4a"
93
93
  }