@degenerate/endpoints 0.1.4 → 0.1.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.md +3 -21
- package/README.md +5 -2
- package/package.json +3 -3
package/LICENSE.md
CHANGED
|
@@ -1,31 +1,13 @@
|
|
|
1
|
-
ISC License
|
|
2
|
-
|
|
3
|
-
Copyright (c) [2024] [Degenerateiinc.ca]
|
|
4
|
-
|
|
5
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
-
purpose with or without fee is hereby granted, provided that the above
|
|
7
|
-
copyright notice and this permission notice appear in all copies.
|
|
8
|
-
|
|
9
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
10
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
11
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
12
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
13
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
14
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
15
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
16
|
-
|
|
17
1
|
# LICENSE
|
|
18
2
|
|
|
19
3
|
## Open-Source License: Apache License 2.0
|
|
20
4
|
|
|
21
|
-
Copyright (c) [
|
|
5
|
+
Copyright (c) [2024], [Degenerateiinc.ca]
|
|
22
6
|
|
|
23
7
|
Licensed under the Apache License, Version 2.0 (the "License");
|
|
24
8
|
you may not use this file except in compliance with the License.
|
|
25
9
|
You may obtain a copy of the License at:
|
|
26
10
|
|
|
27
|
-
isc license
|
|
28
|
-
|
|
29
11
|
[http://www.apache.org/licenses/LICENSE-2.0](http://www.apache.org/licenses/LICENSE-2.0)
|
|
30
12
|
|
|
31
13
|
Unless required by applicable law or agreed to in writing, software
|
|
@@ -73,9 +55,9 @@ By using the SAFE Platform, you agree to abide by these additional terms where a
|
|
|
73
55
|
- Contributions must adhere to the project's coding standards and submission guidelines.
|
|
74
56
|
|
|
75
57
|
2. **Proprietary Extensions**:
|
|
76
|
-
- Contributions extending into proprietary areas require pre-approval by
|
|
58
|
+
- Contributions extending into proprietary areas require pre-approval by the administrators in the .
|
|
77
59
|
- These contributions may be subject to separate agreements defining revenue sharing, ownership rights, and maintenance responsibilities.
|
|
78
60
|
|
|
79
61
|
## Notices
|
|
80
62
|
|
|
81
|
-
This license file is intended to reflect a hybrid open-source and proprietary model for the SAFE Platform. It provides clarity for both community contributors and commercial users. For specific questions or legal inquiries, contact [Your Organization's Contact Information].
|
|
63
|
+
This license file is intended to reflect a hybrid open-source and proprietary model for the SAFE Platform. It provides clarity for both community contributors and commercial users. For specific questions or legal inquiries, contact [Your Organization's Contact Information].
|
package/README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
[Back to @degenerate documentation](../../README.md)
|
|
2
|
+
[Back to @degenerate packages documentation](../README.md)
|
|
3
|
+
|
|
4
|
+
# <p align="center" style="color:#2589BD; font-size:36px;"><b>@degenerate/endpoints Package</b></p>
|
|
2
5
|
|
|
3
6
|
The `@degenerate/endpoints` package is a core component of the SAFE system, responsible for handling various API endpoints within the system. This package provides a set of routes and middleware to manage and process incoming requests, ensuring that the system operates within the defined constraints and policies.
|
|
4
7
|
|
|
5
8
|
## Features
|
|
6
9
|
|
|
7
10
|
**Route Management**: Provides a structured way to define and manage API routes.
|
|
11
|
+
|
|
8
12
|
**Middleware Integration**: Supports the integration of various middleware for request processing, validation, and error handling.
|
|
9
13
|
|
|
10
14
|
**Error Handling**: Includes built-in error handlers to manage unauthorized access, bad requests, and other errors.
|
|
@@ -19,7 +23,6 @@ To install the `@degenerate/endpoints` package, use the following command:
|
|
|
19
23
|
npm install @degenerate/endpoints
|
|
20
24
|
```
|
|
21
25
|
|
|
22
|
-
|
|
23
26
|
## Example Server
|
|
24
27
|
|
|
25
28
|
```sh
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@degenerate/endpoints",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "This contains the ShareData Adaptive Framework Ecosystem (SAFE) network endpoint code",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
"author": "Degenerate Inc.",
|
|
41
41
|
"license": "ISC",
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@degenerate/generic": "^0.2.
|
|
43
|
+
"@degenerate/generic": "^0.2.6",
|
|
44
44
|
"@types/supertest": "^6.0.2",
|
|
45
45
|
"express": "^4.21.1",
|
|
46
46
|
"supertest": "^7.0.0",
|
|
47
47
|
"zod": "^3.24.1"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "a1ef457f3b707fb642b2e3296239c74bd75614b8"
|
|
50
50
|
}
|