@webtypen/webframez-core 0.1.10 → 0.1.12

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.
@@ -125,12 +125,12 @@ class Model {
125
125
  */
126
126
  static aggregate(aggregation, collection) {
127
127
  return __awaiter(this, void 0, void 0, function* () {
128
- const model = collection ? null : new this();
128
+ const model = new this();
129
129
  return yield DBConnection_1.DBConnection.execute({
130
130
  type: "aggregation",
131
131
  table: collection ? collection : model ? model.__table : undefined,
132
132
  aggregation: aggregation,
133
- }, collection ? collection : model ? model.__connection : undefined);
133
+ }, model.__connection);
134
134
  });
135
135
  }
136
136
  /**
@@ -0,0 +1 @@
1
+ export declare function rootDir(...args: any): void;
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.rootDir = void 0;
4
+ function rootDir(...args) {
5
+ console.log("rootDir(" + args + ")", __dirname);
6
+ }
7
+ exports.rootDir = rootDir;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./Config";
2
+ export * from "./Functions/FileFunctions";
2
3
  export * from "./Functions/StringFunctions";
3
4
  export * from "./Functions/NumericFunctions";
4
5
  export * from "./Functions/PaginationFunctions";
package/dist/index.js CHANGED
@@ -15,6 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./Config"), exports);
18
+ __exportStar(require("./Functions/FileFunctions"), exports);
18
19
  __exportStar(require("./Functions/StringFunctions"), exports);
19
20
  __exportStar(require("./Functions/NumericFunctions"), exports);
20
21
  __exportStar(require("./Functions/PaginationFunctions"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webtypen/webframez-core",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "The core package of the typescript based webframez (web-framework) by webtypen.de",
5
5
  "homepage": "https://webtypen.de/",
6
6
  "license": "MIT",
@@ -112,14 +112,14 @@ export class Model {
112
112
  * @returns any
113
113
  */
114
114
  static async aggregate(aggregation: any, collection?: string) {
115
- const model = collection ? null : new this();
115
+ const model = new this();
116
116
  return await DBConnection.execute(
117
117
  {
118
118
  type: "aggregation",
119
119
  table: collection ? collection : model ? model.__table : undefined,
120
120
  aggregation: aggregation,
121
121
  },
122
- collection ? collection : model ? model.__connection : undefined
122
+ model.__connection
123
123
  );
124
124
  }
125
125
 
@@ -0,0 +1,5 @@
1
+ import path from "path";
2
+
3
+ export function rootDir(...args: any) {
4
+ console.log("rootDir(" + args + ")", __dirname);
5
+ }
package/src/index.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from "./Config";
2
+ export * from "./Functions/FileFunctions";
2
3
  export * from "./Functions/StringFunctions";
3
4
  export * from "./Functions/NumericFunctions";
4
5
  export * from "./Functions/PaginationFunctions";