@artstesh/postboy 1.0.0 → 1.0.3

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.
Files changed (40) hide show
  1. package/{dist/postboy/lib → lib}/i-postboy-depending.service.d.ts +1 -0
  2. package/lib/i-postboy-depending.service.d.ts.map +1 -0
  3. package/lib/i-postboy-depending.service.js +3 -0
  4. package/lib/i-postboy-depending.service.js.map +1 -0
  5. package/lib/index.d.ts +6 -0
  6. package/lib/index.d.ts.map +1 -0
  7. package/lib/index.js +25 -0
  8. package/lib/index.js.map +1 -0
  9. package/{dist/postboy/lib → lib}/models/postboy-callback.message.d.ts +1 -0
  10. package/lib/models/postboy-callback.message.d.ts.map +1 -0
  11. package/lib/models/postboy-callback.message.js +18 -0
  12. package/lib/models/postboy-callback.message.js.map +1 -0
  13. package/{dist/postboy/lib → lib}/models/postboy-generic-message.d.ts +1 -0
  14. package/lib/models/postboy-generic-message.d.ts.map +1 -0
  15. package/lib/models/postboy-generic-message.js +7 -0
  16. package/lib/models/postboy-generic-message.js.map +1 -0
  17. package/{dist/postboy/lib → lib}/postboy-abstract.registrator.d.ts +2 -5
  18. package/lib/postboy-abstract.registrator.d.ts.map +1 -0
  19. package/lib/postboy-abstract.registrator.js +31 -0
  20. package/lib/postboy-abstract.registrator.js.map +1 -0
  21. package/{dist/postboy/lib → lib}/postboy.service.d.ts +3 -6
  22. package/lib/postboy.service.d.ts.map +1 -0
  23. package/lib/postboy.service.js +32 -0
  24. package/lib/postboy.service.js.map +1 -0
  25. package/package.json +30 -54
  26. package/dist/postboy/README.md +0 -24
  27. package/dist/postboy/bundles/postboy.umd.js +0 -598
  28. package/dist/postboy/bundles/postboy.umd.js.map +0 -1
  29. package/dist/postboy/esm2015/lib/i-postboy-depending.service.js +0 -2
  30. package/dist/postboy/esm2015/lib/models/postboy-callback.message.js +0 -14
  31. package/dist/postboy/esm2015/lib/models/postboy-generic-message.js +0 -3
  32. package/dist/postboy/esm2015/lib/postboy-abstract.registrator.js +0 -35
  33. package/dist/postboy/esm2015/lib/postboy.service.js +0 -33
  34. package/dist/postboy/esm2015/postboy.js +0 -5
  35. package/dist/postboy/esm2015/public-api.js +0 -9
  36. package/dist/postboy/fesm2015/postboy.js +0 -91
  37. package/dist/postboy/fesm2015/postboy.js.map +0 -1
  38. package/dist/postboy/package.json +0 -19
  39. package/dist/postboy/postboy.d.ts +0 -5
  40. package/dist/postboy/public-api.d.ts +0 -5
@@ -1,3 +1,4 @@
1
1
  export interface IPostboyDependingService {
2
2
  up(): void;
3
3
  }
4
+ //# sourceMappingURL=i-postboy-depending.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-postboy-depending.service.d.ts","sourceRoot":"","sources":["../src/i-postboy-depending.service.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,wBAAwB;IACvC,EAAE,IAAI,IAAI,CAAC;CACZ"}
@@ -0,0 +1,3 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ //# sourceMappingURL=i-postboy-depending.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i-postboy-depending.service.js","sourceRoot":"","sources":["../src/i-postboy-depending.service.ts"],"names":[],"mappings":""}
package/lib/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from './postboy.service';
2
+ export * from './i-postboy-depending.service';
3
+ export * from './postboy-abstract.registrator';
4
+ export * from './models/postboy-generic-message';
5
+ export * from './models/postboy-callback.message';
6
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAIA,cAAc,mBAAmB,CAAC;AAClC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,mCAAmC,CAAC"}
package/lib/index.js ADDED
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ /*
3
+ * Public API Surface of postboy
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
17
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
18
+ };
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ __exportStar(require("./postboy.service"), exports);
21
+ __exportStar(require("./i-postboy-depending.service"), exports);
22
+ __exportStar(require("./postboy-abstract.registrator"), exports);
23
+ __exportStar(require("./models/postboy-generic-message"), exports);
24
+ __exportStar(require("./models/postboy-callback.message"), exports);
25
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,oDAAkC;AAClC,gEAA8C;AAC9C,iEAA+C;AAC/C,mEAAiD;AACjD,oEAAkD"}
@@ -5,3 +5,4 @@ export declare abstract class PostboyCallbackMessage<T> extends PostboyGenericMe
5
5
  result: Observable<T>;
6
6
  finish(value: T): void;
7
7
  }
8
+ //# sourceMappingURL=postboy-callback.message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-callback.message.d.ts","sourceRoot":"","sources":["../../src/models/postboy-callback.message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AAElE,8BAAsB,sBAAsB,CAAC,CAAC,CAAE,SAAQ,qBAAqB;IAC3E,SAAS,CAAC,OAAO,aAAoB;IAC9B,MAAM,EAAE,UAAU,CAAC,CAAC,CAAC,CAA+B;IAEpD,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,IAAI;CAI9B"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostboyCallbackMessage = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ const postboy_generic_message_1 = require("./postboy-generic-message");
6
+ class PostboyCallbackMessage extends postboy_generic_message_1.PostboyGenericMessage {
7
+ constructor() {
8
+ super(...arguments);
9
+ this.result$ = new rxjs_1.Subject();
10
+ this.result = this.result$.asObservable();
11
+ }
12
+ finish(value) {
13
+ this.result$.next(value);
14
+ this.result$.complete();
15
+ }
16
+ }
17
+ exports.PostboyCallbackMessage = PostboyCallbackMessage;
18
+ //# sourceMappingURL=postboy-callback.message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-callback.message.js","sourceRoot":"","sources":["../../src/models/postboy-callback.message.ts"],"names":[],"mappings":";;;AAAA,+BAA2C;AAC3C,uEAAkE;AAElE,MAAsB,sBAA0B,SAAQ,+CAAqB;IAA7E;;QACY,YAAO,GAAG,IAAI,cAAO,EAAK,CAAC;QAC9B,WAAM,GAAkB,IAAI,CAAC,OAAO,CAAC,YAAY,EAAE,CAAC;IAM7D,CAAC;IAJQ,MAAM,CAAC,KAAQ;QACpB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;QACzB,IAAI,CAAC,OAAO,CAAC,QAAQ,EAAE,CAAC;IAC1B,CAAC;CACF;AARD,wDAQC"}
@@ -1,3 +1,4 @@
1
1
  export declare abstract class PostboyGenericMessage {
2
2
  abstract id: string;
3
3
  }
4
+ //# sourceMappingURL=postboy-generic-message.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-generic-message.d.ts","sourceRoot":"","sources":["../../src/models/postboy-generic-message.ts"],"names":[],"mappings":"AAEA,8BAAsB,qBAAqB;IACzC,SAAgB,EAAE,EAAE,MAAM,CAAC;CAC5B"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostboyGenericMessage = void 0;
4
+ class PostboyGenericMessage {
5
+ }
6
+ exports.PostboyGenericMessage = PostboyGenericMessage;
7
+ //# sourceMappingURL=postboy-generic-message.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-generic-message.js","sourceRoot":"","sources":["../../src/models/postboy-generic-message.ts"],"names":[],"mappings":";;;AAEA,MAAsB,qBAAqB;CAE1C;AAFD,sDAEC"}
@@ -1,9 +1,7 @@
1
1
  import { PostboyService } from './postboy.service';
2
2
  import { Subject } from 'rxjs';
3
- import { OnDestroy } from '@angular/core';
4
3
  import { IPostboyDependingService } from './i-postboy-depending.service';
5
- import * as i0 from "@angular/core";
6
- export declare abstract class PostboyAbstractRegistrator implements OnDestroy {
4
+ export declare abstract class PostboyAbstractRegistrator {
7
5
  private postboy;
8
6
  private ids;
9
7
  private services;
@@ -16,6 +14,5 @@ export declare abstract class PostboyAbstractRegistrator implements OnDestroy {
16
14
  protected registerBehavior: <T>(id: string, initial: T) => void;
17
15
  protected registerSubject: <T>(id: string) => void;
18
16
  ngOnDestroy(): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<PostboyAbstractRegistrator, never>;
20
- static ɵprov: i0.ɵɵInjectableDeclaration<PostboyAbstractRegistrator>;
21
17
  }
18
+ //# sourceMappingURL=postboy-abstract.registrator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-abstract.registrator.d.ts","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAkC,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/D,OAAO,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAEzE,8BAAsB,0BAA0B;IAIlC,OAAO,CAAC,OAAO;IAH3B,OAAO,CAAC,GAAG,CAAgB;IAC3B,OAAO,CAAC,QAAQ,CAAkC;gBAE9B,OAAO,EAAE,cAAc;IAE3C,SAAS,CAAC,gBAAgB,CAAC,QAAQ,EAAE,wBAAwB,EAAE,GAAG,IAAI;IAI/D,EAAE,IAAI,IAAI;IAKjB,SAAS,CAAC,QAAQ,CAAC,GAAG,IAAI,IAAI;IAE9B,SAAS,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAKxD,SAAS,CAAC,cAAc,UAAW,MAAM,+BAAyE;IAElH,SAAS,CAAC,gBAAgB,UAAW,MAAM,sBAAoE;IAE/G,SAAS,CAAC,eAAe,UAAW,MAAM,UAAyC;IAE5E,WAAW,IAAI,IAAI;CAI3B"}
@@ -0,0 +1,31 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostboyAbstractRegistrator = void 0;
4
+ const rxjs_1 = require("rxjs");
5
+ class PostboyAbstractRegistrator {
6
+ constructor(postboy) {
7
+ this.postboy = postboy;
8
+ this.ids = [];
9
+ this.services = [];
10
+ this.registerReplay = (id, bufferSize = 1) => this.register(id, new rxjs_1.ReplaySubject(bufferSize));
11
+ this.registerBehavior = (id, initial) => this.register(id, new rxjs_1.BehaviorSubject(initial));
12
+ this.registerSubject = (id) => this.register(id, new rxjs_1.Subject());
13
+ }
14
+ registerServices(services) {
15
+ this.services = services;
16
+ }
17
+ up() {
18
+ this._up();
19
+ this.services.forEach((s) => s.up());
20
+ }
21
+ register(id, sub) {
22
+ this.ids.push(id);
23
+ this.postboy.register(id, sub);
24
+ }
25
+ ngOnDestroy() {
26
+ this.services = [];
27
+ this.ids.forEach((id) => this.postboy.unregister(id));
28
+ }
29
+ }
30
+ exports.PostboyAbstractRegistrator = PostboyAbstractRegistrator;
31
+ //# sourceMappingURL=postboy-abstract.registrator.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy-abstract.registrator.js","sourceRoot":"","sources":["../src/postboy-abstract.registrator.ts"],"names":[],"mappings":";;;AACA,+BAA+D;AAG/D,MAAsB,0BAA0B;IAI9C,YAAoB,OAAuB;QAAvB,YAAO,GAAP,OAAO,CAAgB;QAHnC,QAAG,GAAa,EAAE,CAAC;QACnB,aAAQ,GAA+B,EAAE,CAAC;QAoBxC,mBAAc,GAAG,CAAI,EAAU,EAAE,UAAU,GAAG,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,oBAAa,CAAI,UAAU,CAAC,CAAC,CAAC;QAExG,qBAAgB,GAAG,CAAI,EAAU,EAAE,OAAU,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,sBAAe,CAAI,OAAO,CAAC,CAAC,CAAC;QAErG,oBAAe,GAAG,CAAI,EAAU,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,IAAI,cAAO,EAAK,CAAC,CAAC;IAtBrC,CAAC;IAErC,gBAAgB,CAAC,QAAoC;QAC7D,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;IAEM,EAAE;QACP,IAAI,CAAC,GAAG,EAAE,CAAC;QACX,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACvC,CAAC;IAIS,QAAQ,CAAI,EAAU,EAAE,GAAe;QAC/C,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QAClB,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;IACjC,CAAC;IAQM,WAAW;QAChB,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IACxD,CAAC;CACF;AAhCD,gEAgCC"}
@@ -1,14 +1,11 @@
1
- import { OnDestroy } from '@angular/core';
2
1
  import { Observable, Subject } from 'rxjs';
3
2
  import { PostboyGenericMessage } from './models/postboy-generic-message';
4
- import * as i0 from "@angular/core";
5
- export declare class PostboyService implements OnDestroy {
3
+ export declare class PostboyService {
6
4
  private applications;
7
5
  register<T>(id: string, sub: Subject<T>): void;
8
6
  unregister<T>(id: string): void;
9
7
  subscribe<T>(id: string): Observable<T>;
10
8
  fire<T extends PostboyGenericMessage>(message: T): void;
11
- ngOnDestroy: () => void;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<PostboyService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<PostboyService>;
9
+ ngOnDestroy(): void;
14
10
  }
11
+ //# sourceMappingURL=postboy.service.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy.service.d.ts","sourceRoot":"","sources":["../src/postboy.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC3C,OAAO,EAAE,qBAAqB,EAAE,MAAM,kCAAkC,CAAC;AAEzE,qBAAa,cAAc;IACzB,OAAO,CAAC,YAAY,CAAsC;IAEnD,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,CAAC,CAAC,CAAC,GAAG,IAAI;IAI9C,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,IAAI;IAM/B,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,GAAG,UAAU,CAAC,CAAC,CAAC;IAKvC,IAAI,CAAC,CAAC,SAAS,qBAAqB,EAAE,OAAO,EAAE,CAAC,GAAG,IAAI;IAKvD,WAAW,IAAI,IAAI;CAG3B"}
@@ -0,0 +1,32 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.PostboyService = void 0;
4
+ class PostboyService {
5
+ constructor() {
6
+ this.applications = {};
7
+ }
8
+ register(id, sub) {
9
+ this.applications[id] = sub;
10
+ }
11
+ unregister(id) {
12
+ if (!this.applications[id])
13
+ return;
14
+ this.applications[id].complete();
15
+ delete this.applications[id];
16
+ }
17
+ subscribe(id) {
18
+ if (!this.applications[id])
19
+ throw new Error(`There is no event with id ${id}`);
20
+ return this.applications[id].asObservable();
21
+ }
22
+ fire(message) {
23
+ if (!this.applications[message.id])
24
+ throw new Error(`There is no event with id ${message.id}`);
25
+ this.applications[message.id].next(message);
26
+ }
27
+ ngOnDestroy() {
28
+ Object.keys(this.applications).forEach((key) => this.unregister(key));
29
+ }
30
+ }
31
+ exports.PostboyService = PostboyService;
32
+ //# sourceMappingURL=postboy.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"postboy.service.js","sourceRoot":"","sources":["../src/postboy.service.ts"],"names":[],"mappings":";;;AAGA,MAAa,cAAc;IAA3B;QACU,iBAAY,GAAmC,EAAE,CAAC;IAyB5D,CAAC;IAvBQ,QAAQ,CAAI,EAAU,EAAE,GAAe;QAC5C,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC;IAC9B,CAAC;IAEM,UAAU,CAAI,EAAU;QAC7B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YAAE,OAAO;QACnC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,QAAQ,EAAE,CAAC;QACjC,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IAEM,SAAS,CAAI,EAAU;QAC5B,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,EAAE,EAAE,CAAC,CAAC;QAC/E,OAAO,IAAI,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC,YAAY,EAAE,CAAC;IAC9C,CAAC;IAEM,IAAI,CAAkC,OAAU;QACrD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC;YAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,OAAO,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/F,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,CAAC;IAEM,WAAW;QAChB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC;IACxE,CAAC;CACF;AA1BD,wCA0BC"}
package/package.json CHANGED
@@ -1,73 +1,49 @@
1
1
  {
2
2
  "name": "@artstesh/postboy",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "author": "artstesh",
5
+ "main": "lib/index.js",
6
+ "types": "lib/index.d.ts",
5
7
  "license": "MIT",
6
8
  "scripts": {
7
- "ng": "ng",
8
- "start": "ng serve",
9
- "build": "ng build",
10
- "watch": "ng build --watch --configuration development",
11
- "test": "ng test",
12
9
  "prepare": "npm run build",
13
- "preversion": "npm test",
14
- "version": "npm run format && git add -A projects",
15
- "format": "prettier --write \"projects/**/*.ts\"",
16
- "postversion": "git push && git push --tags"
10
+ "prepublishOnly": "npm test && npm run lint",
11
+ "preversion": "npm run lint",
12
+ "version": "npm run format && git add -A src",
13
+ "postversion": "git push && git push --tags",
14
+ "format": "prettier --write \"src/**/*.ts\"",
15
+ "lint": "tslint -p tsconfig.json",
16
+ "test": "ttsc -p tsconfig.test.json && jest --config jest.config.js",
17
+ "build": "tsc -p tsconfig.json",
18
+ "pre-jest": "ttsc -p tsconfig.test.json"
17
19
  },
18
20
  "files": [
19
- "dist/**/*"
21
+ "lib/**/*"
20
22
  ],
21
23
  "private": false,
22
- "main": "dist/bundles/postboy.umd.js",
23
- "module": "dist/fesm2015/postboy.js",
24
- "es2015": "dist/fesm2015/postboy.js",
25
- "esm2015": "dist/esm2015/postboy.js",
26
- "fesm2015": "dist/fesm2015/postboy.js",
27
- "typings": "dist/postboy.d.ts",
28
- "types": "dist/public-api.d.ts",
29
24
  "repository": {
30
25
  "type": "git",
31
- "url": "git+https://github.com/artstesh/maps.git"
26
+ "url": "git+https://github.com/artstesh/postboy.git"
27
+ },
28
+ "peerDependencies": {
29
+ "rxjs": ">6.0.0",
30
+ "typescript": "^4.0.0"
32
31
  },
33
32
  "dependencies": {
34
- "@angular/common": "^12.2.0",
35
- "@angular/core": "^12.2.0",
36
33
  "rxjs": "^6.0.0",
37
- "tslib": "^2.3.0",
38
- "zone.js": "~0.11.4"
34
+ "tslib": "^2.3.0"
39
35
  },
40
36
  "devDependencies": {
41
- "@artstesh/forger": "^1.2.3",
42
- "@artstesh/it-should": "^1.1.3",
43
- "@angular/platform-browser-dynamic": "^12.1.3",
44
- "@angular-builders/custom-webpack": "^12.1.3",
45
- "@angular-devkit/build-angular": "^12.1.3",
46
- "@angular-eslint/builder": "^12.7.0",
47
- "@angular-eslint/eslint-plugin": "^12.7.0",
48
- "@angular-eslint/eslint-plugin-template": "^12.7.0",
49
- "@angular-eslint/schematics": "^12.7.0",
50
- "@angular-eslint/template-parser": "^12.7.0",
51
- "@angular/cli": "^12.1.3",
52
- "@angular/compiler-cli": "^12.1.3",
53
- "@typescript-eslint/eslint-plugin": "6.9.1",
54
- "@typescript-eslint/parser": "6.9.1",
55
- "eslint": "7.32.0",
56
- "eslint-config-prettier": "8.5.0",
57
- "eslint-plugin-prettier": "4.2.1",
58
- "eslint-plugin-jasmine": "4.1.3",
59
- "eslint-plugin-import": "2.29.0",
60
- "eslint-config-airbnb-typescript": "17.1.0",
61
- "eslint-plugin-node": "11.1.0",
62
- "@types/jasmine": "^3.8.0",
63
- "@types/node": "^12.11.1",
64
- "jasmine-core": "^3.8.0",
65
- "karma": "^6.3.0",
66
- "karma-chrome-launcher": "^3.1.0",
67
- "karma-coverage": "^2.0.3",
68
- "karma-jasmine": "^4.0.0",
69
- "karma-jasmine-html-reporter": "^1.7.0",
70
- "ng-packagr": "^12.1.1",
71
- "typescript": "^4.3.5"
37
+ "@artstesh/forger": "^1.2.1",
38
+ "@types/jest": "^29.5.11",
39
+ "jest": "^29.7.0",
40
+ "prettier": "^3.1.1",
41
+ "ts-jest": "^29.1.1",
42
+ "tslint": "^6.1.3",
43
+ "tslint-config-prettier": "^1.18.0",
44
+ "ttypescript": "1.5.13",
45
+ "ts-mockito": "2.6.1",
46
+ "typescript": "^4.3.5",
47
+ "@artstesh/it-should": "^1.2.0"
72
48
  }
73
49
  }
@@ -1,24 +0,0 @@
1
- # Postboy
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 12.2.0.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project postboy` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project postboy`.
8
- > Note: Don't forget to add `--project postboy` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build postboy` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build postboy`, go to the dist folder `cd dist/postboy` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test postboy` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.