@qelos/api-kit 3.6.1 → 3.6.6

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/LICENSE CHANGED
@@ -1,21 +1,31 @@
1
- MIT License
2
-
3
- Copyright (c) 2022 Qelos
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE.
1
+ # License
2
+
3
+ ## Community Use - Apache License 2.0
4
+
5
+ This project is licensed under the **Apache License 2.0**. You are free to:
6
+
7
+ - **Use** the software for personal, educational, or community purposes.
8
+ - **Modify** the software as needed.
9
+ - **Distribute** copies of the software or modified versions.
10
+
11
+ ### Key Conditions:
12
+ - You are not required to share modifications you make.
13
+ - You may use this software internally, including within commercial settings, without any restrictions.
14
+
15
+ For full license details, see [Apache License 2.0](https://www.apache.org/licenses/LICENSE-2.0).
16
+
17
+ ## Restriction on Managed Services - Custom Clause
18
+
19
+ While the software is open and free to use for internal or personal purposes, **you are not permitted to offer this software or any derivative of it as a paid managed service** or **Software as a Service (SaaS)** without explicit permission from Qelos LTD.
20
+
21
+ ### Key Restriction:
22
+ - You **may not** sell, offer, or commercialize this software as a managed service, SaaS, or any similar hosted service.
23
+
24
+ ### How to Obtain Permission:
25
+ If you wish to offer a managed or commercial version of this software, you must obtain a **commercial license** from Qelos LTD. Please contact us at [support@qelos.io](mailto:support@qelos.io) for details.
26
+
27
+ ## Additional Notes
28
+
29
+ This license ensures the software remains free for personal use and community development, while protecting Qelos LTD’s right to control the commercialization of managed services based on the software.
30
+
31
+ For any questions regarding the license, feel free to reach out at [support@qelos.io].
package/dist/app.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"app.js","sourceRoot":"","sources":["../src/app.ts"],"names":[],"mappings":";;;;;;AAAA,sDAAyC;AAGzC,0DAAkC;AAG3B,MAAM,MAAM,GAAG,CAAC,gBAAqB,OAAO,EAAa,EAAE;IAChE,OAAO,GAAG,EAAC,GAAG,OAAO,EAAE,GAAG,aAAa,EAAC,CAAC;IACzC,OAAO,OAAO,CAAC;AACjB,CAAC,CAAA;AAHY,QAAA,MAAM,UAGlB;AACM,MAAM,GAAG,GAAG,GAAG,EAAE,CAAC,IAAI,IAAI,SAAS,EAAE,CAAC;AAAhC,QAAA,GAAG,OAA6B;AAChC,QAAA,KAAK,GAAG,QAAQ,CAAC;AAE9B,IAAI,IAAa,CAAC;AAClB,IAAI,OAAO,GAAc;IACvB,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,KAAK;IACrC,UAAU,EAAG,OAAO,CAAC,GAAG,CAAC,eAAkC,IAAI,MAAM;IACrE,QAAQ,EAAE,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS;IACjC,IAAI,EAAE,OAAO,CAAC,GAAG,EAAE,IAAI,IAAI,MAAM;IACjC,EAAE,EAAE,OAAO,CAAC,GAAG,CAAC,EAAE,IAAI,WAAW;CAClC,CAAC;AAEF,SAAS,SAAS;IAChB,IAAI,GAAG,IAAA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"}
@@ -1 +1 @@
1
- {"version":3,"file":"router.js","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":";;;AAAA,qCAA+B;AAE/B,SAAgB,SAAS;IACvB,OAAO,IAAA,gBAAM,GAAE,CAAC;AAClB,CAAC;AAFD,8BAEC"}
1
+ {"version":3,"file":"router.js","sourceRoot":"","sources":["../src/router.ts"],"names":[],"mappings":";;;AAAA,qCAAiC;AAEjC,SAAgB,SAAS;IACvB,OAAO,IAAA,gBAAM,GAAE,CAAC;AAClB,CAAC;AAFD,8BAEC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qelos/api-kit",
3
- "version": "3.6.1",
3
+ "version": "3.6.6",
4
4
  "description": "API-Kit package to help with qelos infrastructure and reuse capabilities across services",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -13,12 +13,12 @@
13
13
  "access": "public"
14
14
  },
15
15
  "dependencies": {
16
- "axios": "^1.6.8",
16
+ "axios": "^1.7.7",
17
17
  "cors": "^2.8.5",
18
- "express": "^4.19.2",
18
+ "express": "4.19.2",
19
19
  "morgan": "^1.10.0"
20
20
  },
21
- "gitHead": "7f8510c913d3d4d3ce8afe6fb60028751f8f6d64",
21
+ "gitHead": "1359351ce7a1092614382cc6ff0db6400855e73b",
22
22
  "devDependencies": {
23
23
  "@types/node": "^20.12.8",
24
24
  "typescript": "^5.4.5"
package/src/app.ts CHANGED
@@ -1,11 +1,11 @@
1
- import express, {Express} from 'express';
1
+ import express, { Express } from 'express';
2
2
 
3
- import type {ApiConfig, BodyParserType} from './types';
3
+ import type { ApiConfig, BodyParserType } from './types';
4
4
  import shutdown from './shutdown';
5
5
 
6
6
 
7
7
  export const config = (updatedConfig: any = _config): ApiConfig => {
8
- _config = {..._config, ...updatedConfig};
8
+ _config = { ..._config, ...updatedConfig };
9
9
  return _config;
10
10
  }
11
11
  export const app = () => _app || createApp();
package/src/router.ts CHANGED
@@ -1,4 +1,4 @@
1
- import {Router} from 'express';
1
+ import { Router } from 'express';
2
2
 
3
3
  export function getRouter(): Router {
4
4
  return Router();