@antelopejs/interface-api-util 0.0.2 → 0.0.4

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/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # Interface API Util
2
+
3
+ <div align="center">
4
+ <a href="https://www.npmjs.com/package/@antelopejs/interface-api-util"><img src="https://img.shields.io/npm/v/@antelopejs/interface-api-util?style=for-the-badge&labelColor=000000&color=000000" alt="npm"></a>
5
+ <a href="./LICENSE"><img alt="License" src="https://img.shields.io/badge/License-Apache_2.0-blue.svg?style=for-the-badge&labelColor=000000"></a>
6
+ <a href="https://discord.gg/sjK28QHrA7"><img src="https://img.shields.io/badge/Discord-18181B?logo=discord&style=for-the-badge&color=000000" alt="Discord"></a>
7
+ <a href="./docs/1.introduction.md"><img src="https://img.shields.io/badge/Docs-18181B?style=for-the-badge&color=000000" alt="Documentation"></a>
8
+ </div>
9
+
10
+ Utility functions for API request validation and error handling in AntelopeJS. This package provides `assert` and `assertValidation` helpers that throw structured HTTP error responses when conditions fail or input validation does not pass.
11
+
12
+ ## Installation
13
+
14
+ ```bash
15
+ npm install @antelopejs/interface-api-util
16
+ ```
17
+
18
+ ## Documentation
19
+
20
+ Detailed documentation is available in the `docs` directory:
21
+
22
+ - [Introduction](./docs/1.introduction.md) - Overview and basic concepts
23
+
24
+ ## License
25
+
26
+ This project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.
@@ -7,9 +7,9 @@ exports.default = (0, config_1.defineConfig)({
7
7
  modules: {
8
8
  api: {
9
9
  source: {
10
- type: "local",
11
- path: "../api",
12
- installCommand: ["pnpm install", "npx tsc"],
10
+ type: "package",
11
+ package: "@antelopejs/api",
12
+ version: "1.0.0",
13
13
  },
14
14
  config: {
15
15
  servers: [{ protocol: "http", host: "127.0.0.1", port: 5010 }],
@@ -1 +1 @@
1
- {"version":3,"file":"antelope.test.js","sourceRoot":"","sources":["../src/antelope.test.ts"],"names":[],"mappings":";;AAAA,8DAAiE;AAEjE,kBAAe,IAAA,qBAAY,EAAC;IAC1B,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE;QACP,GAAG,EAAE;YACH,MAAM,EAAE;gBACN,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,cAAc,EAAE,CAAC,cAAc,EAAE,SAAS,CAAC;aAC5C;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aAC/D;SACF;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,YAAY;KACrB;CACF,CAAC,CAAC"}
1
+ {"version":3,"file":"antelope.test.js","sourceRoot":"","sources":["../src/antelope.test.ts"],"names":[],"mappings":";;AAAA,8DAAiE;AAEjE,kBAAe,IAAA,qBAAY,EAAC;IAC1B,IAAI,EAAE,yBAAyB;IAC/B,WAAW,EAAE,iBAAiB;IAC9B,OAAO,EAAE;QACP,GAAG,EAAE;YACH,MAAM,EAAE;gBACN,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,iBAAiB;gBAC1B,OAAO,EAAE,OAAO;aACjB;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;aAC/D;SACF;KACF;IACD,IAAI,EAAE;QACJ,MAAM,EAAE,YAAY;KACrB;CACF,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@antelopejs/interface-api-util",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "AntelopeJS utility functions for API request validation and error handling",
5
5
  "keywords": [
6
6
  "antelopejs",
@@ -39,17 +39,17 @@
39
39
  "test": "src/antelope.test.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@antelopejs/interface-api": "^0.0.2",
43
- "@antelopejs/interface-core": "^0.0.2"
42
+ "@antelopejs/interface-api": "^0.0.3",
43
+ "@antelopejs/interface-core": "^0.0.3"
44
44
  },
45
45
  "devDependencies": {
46
46
  "@biomejs/biome": "2.3.2",
47
47
  "@types/mocha": "^10.0.10",
48
- "@types/node": "^22.14.1",
49
- "release-it": "^19.0.2",
48
+ "@types/node": "^22.19.15",
49
+ "release-it": "^19.2.4",
50
50
  "release-it-changelogen": "^0.1.0",
51
- "rimraf": "^6.0.1",
52
- "typescript": "^5.8.3"
51
+ "rimraf": "^6.1.3",
52
+ "typescript": "^5.9.3"
53
53
  },
54
54
  "publishConfig": {
55
55
  "access": "public"