@eurosat/http 19.0.0 → 20.0.0

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.
@@ -106,10 +106,10 @@ class HttpService {
106
106
  delete(url, options) {
107
107
  return this.http.delete(url, options).pipe(catchError(this.handleError));
108
108
  }
109
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
110
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpService, providedIn: 'root' });
109
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
110
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpService, providedIn: 'root' });
111
111
  }
112
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpService, decorators: [{
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpService, decorators: [{
113
113
  type: Injectable,
114
114
  args: [{
115
115
  providedIn: 'root'
@@ -120,14 +120,14 @@ class HttpComponent {
120
120
  constructor() { }
121
121
  ngOnInit() {
122
122
  }
123
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
124
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.25", type: HttpComponent, isStandalone: true, selector: "es-http", ngImport: i0, template: `
123
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
124
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.35", type: HttpComponent, isStandalone: true, selector: "es-http", ngImport: i0, template: `
125
125
  <p>
126
126
  http works!
127
127
  </p>
128
128
  `, isInline: true });
129
129
  }
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpComponent, decorators: [{
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpComponent, decorators: [{
131
131
  type: Component,
132
132
  args: [{ selector: 'es-http', template: `
133
133
  <p>
@@ -137,14 +137,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
137
137
  }], ctorParameters: () => [] });
138
138
 
139
139
  class HttpModule {
140
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
141
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.25", ngImport: i0, type: HttpModule, imports: [HttpComponent], exports: [HttpComponent] });
142
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpModule, providers: [
140
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
141
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.35", ngImport: i0, type: HttpModule, imports: [HttpComponent], exports: [HttpComponent] });
142
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpModule, providers: [
143
143
  HttpService,
144
144
  provideHttpClient(withInterceptorsFromDi())
145
145
  ] });
146
146
  }
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: HttpModule, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.35", ngImport: i0, type: HttpModule, decorators: [{
148
148
  type: NgModule,
149
149
  args: [{
150
150
  exports: [HttpComponent],
package/index.d.ts CHANGED
@@ -1,5 +1,50 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@eurosat/http" />
5
- export * from './public_api';
1
+ import { HttpParams } from '@angular/common/http';
2
+ import { Observable } from 'rxjs';
3
+ import * as i0 from '@angular/core';
4
+ import { OnInit } from '@angular/core';
5
+
6
+ declare class HttpService {
7
+ static readonly ANGULAR_REQUEST_CONST = "2";
8
+ private readonly http;
9
+ private readonly snackBar;
10
+ /** text z tela chybove odpovedi: string, objekt s error/message, jinak JSON (Blob/ProgressEvent nemaji citelny text) */
11
+ private static errorBodyText;
12
+ /**
13
+ * Zpracování chyb - již NENÍ statické, takže má plný přístup k 'this.snackBar'
14
+ */
15
+ private handleError;
16
+ private errorStatus;
17
+ private handleRedirect;
18
+ private handleErrorMessage;
19
+ private createSnackBar;
20
+ post(url: string, body: any | null, options?: {
21
+ params?: HttpParams;
22
+ [key: string]: any;
23
+ }): Observable<any>;
24
+ get(url: string, options?: {
25
+ params?: HttpParams;
26
+ [key: string]: any;
27
+ }): Observable<any>;
28
+ postFiles(url: string, body: any | null, options?: {
29
+ params?: HttpParams;
30
+ [key: string]: any;
31
+ }): Observable<any>;
32
+ delete(url: string, options?: {}): Observable<any>;
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
34
+ static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
35
+ }
36
+
37
+ declare class HttpComponent implements OnInit {
38
+ constructor();
39
+ ngOnInit(): void;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<HttpComponent, "es-http", never, {}, {}, never, never, true, never>;
42
+ }
43
+
44
+ declare class HttpModule {
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpModule, never>;
46
+ static ɵmod: i0.ɵɵNgModuleDeclaration<HttpModule, never, [typeof HttpComponent], [typeof HttpComponent]>;
47
+ static ɵinj: i0.ɵɵInjectorDeclaration<HttpModule>;
48
+ }
49
+
50
+ export { HttpComponent, HttpModule, HttpService };
package/package.json CHANGED
@@ -1,9 +1,10 @@
1
1
  {
2
2
  "name": "@eurosat/http",
3
- "version": "19.0.0",
3
+ "version": "20.0.0",
4
4
  "peerDependencies": {
5
- "@angular/common": "^19.2.25",
6
- "@angular/core": "^19.2.25"
5
+ "@angular/common": "^20.3.35",
6
+ "@angular/core": "^20.3.35",
7
+ "@angular/material": "^20.2.14"
7
8
  },
8
9
  "module": "fesm2022/eurosat-http.mjs",
9
10
  "typings": "index.d.ts",
@@ -1,8 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class HttpComponent implements OnInit {
4
- constructor();
5
- ngOnInit(): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpComponent, never>;
7
- static ɵcmp: i0.ɵɵComponentDeclaration<HttpComponent, "es-http", never, {}, {}, never, never, true, never>;
8
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./http.component";
3
- export declare class HttpModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<HttpModule, never, [typeof i1.HttpComponent], [typeof i1.HttpComponent]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<HttpModule>;
7
- }
@@ -1,33 +0,0 @@
1
- import { HttpParams } from '@angular/common/http';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class HttpService {
5
- static readonly ANGULAR_REQUEST_CONST = "2";
6
- private readonly http;
7
- private readonly snackBar;
8
- /** text z tela chybove odpovedi: string, objekt s error/message, jinak JSON (Blob/ProgressEvent nemaji citelny text) */
9
- private static errorBodyText;
10
- /**
11
- * Zpracování chyb - již NENÍ statické, takže má plný přístup k 'this.snackBar'
12
- */
13
- private handleError;
14
- private errorStatus;
15
- private handleRedirect;
16
- private handleErrorMessage;
17
- private createSnackBar;
18
- post(url: string, body: any | null, options?: {
19
- params?: HttpParams;
20
- [key: string]: any;
21
- }): Observable<any>;
22
- get(url: string, options?: {
23
- params?: HttpParams;
24
- [key: string]: any;
25
- }): Observable<any>;
26
- postFiles(url: string, body: any | null, options?: {
27
- params?: HttpParams;
28
- [key: string]: any;
29
- }): Observable<any>;
30
- delete(url: string, options?: {}): Observable<any>;
31
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpService, never>;
32
- static ɵprov: i0.ɵɵInjectableDeclaration<HttpService>;
33
- }
package/public_api.d.ts DELETED
@@ -1,3 +0,0 @@
1
- export * from './lib/http.service';
2
- export * from './lib/http.component';
3
- export * from './lib/http.module';