ng-alain 17.3.0 → 17.3.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.
@@ -91,7 +91,7 @@ export class I18NService extends AlainI18nBaseService {
91
91
  }
92
92
 
93
93
  loadLangData(lang: string): Observable<NzSafeAny> {
94
- return this.http.get(`assets/tmp/i18n/${lang}.json`);
94
+ return this.http.get(`./assets/tmp/i18n/${lang}.json`);
95
95
  }
96
96
 
97
97
  use(lang: string, data: Record<string, unknown>): void {
@@ -35,8 +35,8 @@ export class StartupService {
35
35
  private router = inject(Router);<% if (i18n) { %>
36
36
  private i18n = inject<I18NService>(ALAIN_I18N_TOKEN);<% } %>
37
37
  // If http request allows anonymous access, you need to add `ALLOW_ANONYMOUS`:
38
- // this.httpClient.get('assets/tmp/app-data.json', { context: new HttpContext().set(ALLOW_ANONYMOUS, true) })
39
- private appData$ = this.httpClient.get('assets/tmp/app-data.json').pipe(
38
+ // this.httpClient.get('/app', { context: new HttpContext().set(ALLOW_ANONYMOUS, true) })
39
+ private appData$ = this.httpClient.get('./assets/tmp/app-data.json').pipe(
40
40
  catchError((res: NzSafeAny) => {
41
41
  console.warn(`StartupService.load: Network request failed`, res);
42
42
  setTimeout(() => this.router.navigateByUrl(`/exception/500`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ng-alain",
3
- "version": "17.3.0",
3
+ "version": "17.3.1",
4
4
  "description": "Schematics specific to ng-alain",
5
5
  "author": "cipchk<cipchk@qq.com>",
6
6
  "license": "MIT",
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ZORROVERSION = exports.VERSION = void 0;
4
- exports.VERSION = '^17.3.0';
4
+ exports.VERSION = '^17.3.1';
5
5
  exports.ZORROVERSION = '^17.3.0';
6
6
  //# sourceMappingURL=lib-versions.js.map
@@ -1,2 +1,2 @@
1
- export const VERSION = '^17.3.0';
1
+ export const VERSION = '^17.3.1';
2
2
  export const ZORROVERSION = '^17.3.0';