@opengeoweb/taf 19.5.1 → 19.6.1

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/dist/index.esm.js CHANGED
@@ -681,8 +681,9 @@ var useTafTranslation = function useTafTranslation() {
681
681
  return useTranslation(ns);
682
682
  };
683
683
 
684
- var config$2 = sessionStorageProvider.getConfig();
685
- var tafBaseUrl = config$2.GW_TAF_BASE_URL || '';
684
+ var getTafBaseUrl = function getTafBaseUrl() {
685
+ return sessionStorageProvider.getConfig().GW_TAF_BASE_URL || '';
686
+ };
686
687
  var getTafList = /*#__PURE__*/function () {
687
688
  var _ref = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(auth, forecastType) {
688
689
  return _regenerator().w(function (_context) {
@@ -691,7 +692,7 @@ var getTafList = /*#__PURE__*/function () {
691
692
  if (forecastType === void 0) {
692
693
  forecastType = 'TAF';
693
694
  }
694
- return _context.a(2, fetch(tafBaseUrl + "/taflist?forecastType=" + forecastType, {
695
+ return _context.a(2, fetch(getTafBaseUrl() + "/taflist?forecastType=" + forecastType, {
695
696
  headers: getHeaders(auth)
696
697
  }).then(handleResponse));
697
698
  }
@@ -706,7 +707,7 @@ var postTaf = /*#__PURE__*/function () {
706
707
  return _regenerator().w(function (_context2) {
707
708
  while (1) switch (_context2.n) {
708
709
  case 0:
709
- return _context2.a(2, fetch(tafBaseUrl + "/taf", {
710
+ return _context2.a(2, fetch(getTafBaseUrl() + "/taf", {
710
711
  method: 'POST',
711
712
  headers: getHeaders(auth),
712
713
  body: JSON.stringify(data)
@@ -723,7 +724,7 @@ var patchTaf = /*#__PURE__*/function () {
723
724
  return _regenerator().w(function (_context3) {
724
725
  while (1) switch (_context3.n) {
725
726
  case 0:
726
- return _context3.a(2, fetch(tafBaseUrl + "/taf?force=" + (force ? 'true' : 'false'), {
727
+ return _context3.a(2, fetch(getTafBaseUrl() + "/taf?force=" + (force ? 'true' : 'false'), {
727
728
  method: 'PATCH',
728
729
  headers: getHeaders(auth),
729
730
  body: JSON.stringify(data)
@@ -743,7 +744,7 @@ var getTAC = /*#__PURE__*/function () {
743
744
  if (forecastType === void 0) {
744
745
  forecastType = 'TAF';
745
746
  }
746
- return _context4.a(2, fetch(tafBaseUrl + "/taf2tac?forecastType=" + forecastType, {
747
+ return _context4.a(2, fetch(getTafBaseUrl() + "/taf2tac?forecastType=" + forecastType, {
747
748
  method: 'POST',
748
749
  headers: getHeaders(auth),
749
750
  body: JSON.stringify(data)
@@ -763,7 +764,7 @@ var getTafConfig = /*#__PURE__*/function () {
763
764
  if (forecastType === void 0) {
764
765
  forecastType = 'TAF';
765
766
  }
766
- return _context5.a(2, fetch(tafBaseUrl + "/taf-config?forecastType=" + forecastType, {
767
+ return _context5.a(2, fetch(getTafBaseUrl() + "/taf-config?forecastType=" + forecastType, {
767
768
  headers: getHeaders(auth)
768
769
  }).then(handleResponse));
769
770
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/taf",
3
- "version": "19.5.1",
3
+ "version": "19.6.1",
4
4
  "description": "GeoWeb TAF library for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {