@lenne.tech/ng-base 0.3.6 → 0.3.9

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.
@@ -237,7 +237,7 @@ function apolloOptionsFactory(baseModuleConfig, httpLink, authService) {
237
237
  options: {
238
238
  reconnect: true,
239
239
  connectionParams: {
240
- authToken: token,
240
+ Authorization: token,
241
241
  },
242
242
  },
243
243
  });
@@ -1700,7 +1700,7 @@ class GraphQLService {
1700
1700
  .filter((field) => !argsData.usedArgs.includes(field));
1701
1701
  console.log({ argsData, filtered, unused });
1702
1702
  }
1703
- const args = argsData.argsString || '';
1703
+ const args = (argsData === null || argsData === void 0 ? void 0 : argsData.argsString) || '';
1704
1704
  // Log
1705
1705
  if (config.log) {
1706
1706
  console.log({ graphQL: graphql, args, fields, type: config.type });
@@ -1846,7 +1846,7 @@ class GraphQLService {
1846
1846
  continue;
1847
1847
  }
1848
1848
  // Skip value if not exists
1849
- if (value === undefined && value === null) {
1849
+ if (value === undefined || value === null) {
1850
1850
  continue;
1851
1851
  }
1852
1852
  // Add current key to metadata
@@ -2161,7 +2161,7 @@ class ScrollService {
2161
2161
  scrollTo(id, options = {}) {
2162
2162
  return __awaiter(this, void 0, void 0, function* () {
2163
2163
  // Prepare config
2164
- const config = Object.assign({ checkUrl: true, loadImagesBefore: true, resetStyles: false, setOverflow: true, stopPropagation: true }, options);
2164
+ const config = Object.assign({ checkUrl: false, loadImagesBefore: true, resetStyles: false, setOverflow: true, stopPropagation: true }, options);
2165
2165
  // Check current URL
2166
2166
  if (config.checkUrl && this.router.url !== '/' && !this.router.url.startsWith('/#')) {
2167
2167
  yield this.router.navigate(['/'], { fragment: id });