@wolkabout/commons 0.0.3 → 0.0.4
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,8 +3,14 @@ import { Injectable } from '@angular/core';
|
|
|
3
3
|
import { BehaviorSubject } from 'rxjs';
|
|
4
4
|
|
|
5
5
|
class CommonsService {
|
|
6
|
+
serviceID = crypto.randomUUID();
|
|
6
7
|
secretMessage = new BehaviorSubject('Empty');
|
|
7
|
-
constructor() {
|
|
8
|
+
constructor() {
|
|
9
|
+
console.log('Instantiating CommonsService...', this.serviceID);
|
|
10
|
+
this.secretMessage.subscribe((value) => {
|
|
11
|
+
console.log('Service secret updated', this.serviceID, value);
|
|
12
|
+
});
|
|
13
|
+
}
|
|
8
14
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
9
15
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.3.10", ngImport: i0, type: CommonsService, providedIn: 'root' });
|
|
10
16
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wolkabout-commons.mjs","sources":["../../../projects/commons/src/lib/commons.service.ts","../../../projects/commons/src/wolkabout-commons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CommonsService {\r\n\r\n public secretMessage = new BehaviorSubject<string>('Empty');\r\n\r\n constructor() { }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAMa,cAAc,CAAA;
|
|
1
|
+
{"version":3,"file":"wolkabout-commons.mjs","sources":["../../../projects/commons/src/lib/commons.service.ts","../../../projects/commons/src/wolkabout-commons.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { BehaviorSubject } from 'rxjs';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class CommonsService {\r\n\r\n serviceID = crypto.randomUUID();\r\n\r\n public secretMessage = new BehaviorSubject<string>('Empty');\r\n\r\n constructor() {\r\n console.log('Instantiating CommonsService...', this.serviceID);\r\n this.secretMessage.subscribe((value: any) => {\r\n console.log('Service secret updated', this.serviceID, value);\r\n })\r\n }\r\n}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAMa,cAAc,CAAA;AAEzB,IAAA,SAAS,GAAG,MAAM,CAAC,UAAU,EAAE;AAExB,IAAA,aAAa,GAAG,IAAI,eAAe,CAAS,OAAO,CAAC;AAE3D,IAAA,WAAA,GAAA;QACE,OAAO,CAAC,GAAG,CAAC,iCAAiC,EAAE,IAAI,CAAC,SAAS,CAAC;QAC9D,IAAI,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC,KAAU,KAAI;YAC1C,OAAO,CAAC,GAAG,CAAC,wBAAwB,EAAE,IAAI,CAAC,SAAS,EAAE,KAAK,CAAC;AAC9D,QAAA,CAAC,CAAC;IACJ;wGAXW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA;AAAd,IAAA,OAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cAFb,MAAM,EAAA,CAAA;;4FAEP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;ACLD;;AAEG;;;;"}
|
package/index.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { BehaviorSubject } from 'rxjs';
|
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
3
|
|
|
4
4
|
declare class CommonsService {
|
|
5
|
+
serviceID: `${string}-${string}-${string}-${string}-${string}`;
|
|
5
6
|
secretMessage: BehaviorSubject<string>;
|
|
6
7
|
constructor();
|
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<CommonsService, never>;
|