@brightnkhoma/domain 1.0.1 → 1.0.2
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.
package/dist/index.d.ts
CHANGED
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,KAAK,IAAI,EAAC,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAC,KAAK,cAAc,EAAE,KAAK,WAAW,EAAC,MAAM,yBAAyB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,MAAM,2BAA2B,CAAC;AACnD,OAAO,EAAC,OAAO,EAAC,MAAM,mBAAmB,CAAC;AAC1C,OAAO,EAAC,UAAU,EAAC,MAAM,yBAAyB,CAAC;AACnD,OAAO,EAAC,KAAK,MAAM,EAAC,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAC,KAAK,IAAI,EAAC,KAAK,YAAY,EAAE,KAAK,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAC9E,OAAO,EAAC,KAAK,cAAc,EAAE,KAAK,WAAW,EAAC,MAAM,yBAAyB,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -52591,6 +52591,7 @@ var require_express2 = __commonJS({
|
|
|
52591
52591
|
var index_exports = {};
|
|
52592
52592
|
__export(index_exports, {
|
|
52593
52593
|
BaseRouter: () => BaseRouter,
|
|
52594
|
+
Domain: () => Domain,
|
|
52594
52595
|
MainDomain: () => MainDomain,
|
|
52595
52596
|
onError: () => onError
|
|
52596
52597
|
});
|
|
@@ -53818,6 +53819,7 @@ var BaseRouter = class {
|
|
|
53818
53819
|
// Annotate the CommonJS export names for ESM import in node:
|
|
53819
53820
|
0 && (module.exports = {
|
|
53820
53821
|
BaseRouter,
|
|
53822
|
+
Domain,
|
|
53821
53823
|
MainDomain,
|
|
53822
53824
|
onError
|
|
53823
53825
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -53808,6 +53808,7 @@ var BaseRouter = class {
|
|
|
53808
53808
|
};
|
|
53809
53809
|
export {
|
|
53810
53810
|
BaseRouter,
|
|
53811
|
+
Domain,
|
|
53811
53812
|
MainDomain,
|
|
53812
53813
|
onError
|
|
53813
53814
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { App } from "firebase-admin/app";
|
|
2
2
|
import { Entity } from "../types/entity";
|
|
3
|
+
import { Domain } from "../@exprimental/domain";
|
|
4
|
+
import { User } from "../types/user";
|
|
3
5
|
export declare class MainDomain {
|
|
4
6
|
db: App;
|
|
5
7
|
constructor(db: App);
|
|
6
|
-
domain<T extends Entity>(collectionName: string): new (user:
|
|
8
|
+
domain<T extends Entity>(collectionName: string): new (user: User) => Domain<T>;
|
|
7
9
|
static init(serviceAccount: string): MainDomain;
|
|
8
10
|
}
|
|
9
11
|
//# sourceMappingURL=mainDomain.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mainDomain.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/mainDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAuB,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"mainDomain.d.ts","sourceRoot":"","sources":["../../../src/lib/domain/mainDomain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAuB,MAAM,oBAAoB,CAAC;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,MAAM,EAAkB,MAAM,wBAAwB,CAAC;AAChE,OAAO,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAErC,qBAAa,UAAU;IACnB,EAAE,EAAG,GAAG,CAAC;IACT,YAAY,EAAE,EAAG,GAAG,EAEnB;IAED,MAAM,CAAC,CAAC,SAAS,MAAM,EAAE,cAAc,EAAG,MAAM,GAAE,KAAK,IAAI,EAAG,IAAI,KAAI,MAAM,CAAC,CAAC,CAAC,CAE9E;IAED,MAAM,CAAC,IAAI,CAAC,cAAc,EAAG,MAAM,cAMlC;CAEJ"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@brightnkhoma/domain",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.2",
|
|
4
4
|
"description": "A module that automates CRUD functionality and routing and helps you follow DDD(Domain Driven Design) with ease using firebase, express and typescript",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|