@ccci/micro-server 0.0.20 → 0.0.23
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 +1 -0
- package/dist/index.js +21 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -7,3 +7,4 @@ export { ConstructQuery, ResponseHelper, ErrorResponseHandler, } from './utils/B
|
|
|
7
7
|
export { default as BaseModel } from './utils/BaseModel';
|
|
8
8
|
export { default as BaseModelClass } from './utils/BaseModelClass';
|
|
9
9
|
export { default as DatabaseConnector } from './utils/DatabaseConnector';
|
|
10
|
+
export { PublicAccess, PrivateAccess, endpoint } from './decorators/Endpoints';
|
package/dist/index.js
CHANGED
|
@@ -78132,6 +78132,7 @@ class DatabaseConnector {
|
|
|
78132
78132
|
}
|
|
78133
78133
|
});
|
|
78134
78134
|
}
|
|
78135
|
+
console.log("DatabaseConnector.connection.models :>> ", DatabaseConnector.connection.models);
|
|
78135
78136
|
}
|
|
78136
78137
|
getConnections() {
|
|
78137
78138
|
return DatabaseConnector.connections.length > 0 ? DatabaseConnector.connections : [DatabaseConnector.connection];
|
|
@@ -78699,9 +78700,29 @@ class BaseModelClass extends Model {
|
|
|
78699
78700
|
static getCommonAssociations() {
|
|
78700
78701
|
}
|
|
78701
78702
|
}
|
|
78703
|
+
// src/decorators/Endpoints.ts
|
|
78704
|
+
var endpoint = (target, methodName, descriptor) => {
|
|
78705
|
+
console.log("Method decorator!");
|
|
78706
|
+
console.log(target);
|
|
78707
|
+
console.log(methodName);
|
|
78708
|
+
console.log(descriptor);
|
|
78709
|
+
};
|
|
78710
|
+
var PublicAccess = (constructor) => {
|
|
78711
|
+
return class extends constructor {
|
|
78712
|
+
grantPublicAccess = true;
|
|
78713
|
+
};
|
|
78714
|
+
};
|
|
78715
|
+
var PrivateAccess = (constructor) => {
|
|
78716
|
+
return class extends constructor {
|
|
78717
|
+
grantPublicAccess = false;
|
|
78718
|
+
};
|
|
78719
|
+
};
|
|
78702
78720
|
export {
|
|
78721
|
+
endpoint,
|
|
78703
78722
|
RouterFactory,
|
|
78704
78723
|
ResponseHelper,
|
|
78724
|
+
PublicAccess,
|
|
78725
|
+
PrivateAccess,
|
|
78705
78726
|
ErrorResponseHandler,
|
|
78706
78727
|
DatabaseConnector,
|
|
78707
78728
|
ConstructQuery,
|