klaim 1.2.1 β 1.2.3
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/.github/workflows/release.yml +6 -1
- package/README.md +6 -0
- package/deno.json +38 -0
- package/deno.lock +3469 -0
- package/mod.ts +2 -0
- package/package.json +1 -1
|
@@ -6,6 +6,9 @@ on:
|
|
|
6
6
|
jobs:
|
|
7
7
|
release:
|
|
8
8
|
runs-on: ubuntu-latest
|
|
9
|
+
permissions:
|
|
10
|
+
contents: read
|
|
11
|
+
id-token: write
|
|
9
12
|
steps:
|
|
10
13
|
- name: Checkout
|
|
11
14
|
uses: actions/checkout@v2
|
|
@@ -27,9 +30,11 @@ jobs:
|
|
|
27
30
|
run: npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
|
|
28
31
|
env:
|
|
29
32
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
30
|
-
- name: Release
|
|
33
|
+
- name: Release on NPM
|
|
31
34
|
run: bun run release --ci
|
|
32
35
|
env:
|
|
33
36
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
34
37
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
38
|
+
- name: Publish on JSR
|
|
39
|
+
run: npx jsr publish
|
|
35
40
|
|
package/README.md
CHANGED
|
@@ -6,6 +6,7 @@ experience.
|
|
|
6
6
|
## Links
|
|
7
7
|
|
|
8
8
|
- [NPM](https://www.npmjs.com/package/klaim)
|
|
9
|
+
- [JSR](https://jsr.io/@antharuu/klaim)
|
|
9
10
|
- [GitHub](https://github.com/antharuu/klaim)
|
|
10
11
|
|
|
11
12
|
## π Features
|
|
@@ -28,6 +29,9 @@ npm install klaim
|
|
|
28
29
|
|
|
29
30
|
// Using bun
|
|
30
31
|
bun add klaim
|
|
32
|
+
|
|
33
|
+
// Using deno
|
|
34
|
+
deno add @antharuu/klaim
|
|
31
35
|
```
|
|
32
36
|
|
|
33
37
|
## π Usage
|
|
@@ -36,6 +40,8 @@ Hereβs a basic example to get you started:
|
|
|
36
40
|
|
|
37
41
|
```typescript
|
|
38
42
|
import {Api, Klaim, Registry, Route, Hook} from 'klaim';
|
|
43
|
+
// OR
|
|
44
|
+
import {Api, Klaim, Registry, Route, Hook} from "@antharuu/klaim";
|
|
39
45
|
|
|
40
46
|
// Your simple Todo type
|
|
41
47
|
type Todo = {
|
package/deno.json
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@antharuu/klaim",
|
|
3
|
+
"version": "1.2.1",
|
|
4
|
+
"description": "Klaim is a lightweight TypeScript library designed to manage APIs and record requests, optimized for an optimal user experience.",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/antharuu/klaim.git"
|
|
8
|
+
},
|
|
9
|
+
"keywords": [
|
|
10
|
+
"typescript",
|
|
11
|
+
"api",
|
|
12
|
+
"request",
|
|
13
|
+
"user experience",
|
|
14
|
+
"optimization",
|
|
15
|
+
"lightweight"
|
|
16
|
+
],
|
|
17
|
+
"author": "antharuu",
|
|
18
|
+
"license": "MIT",
|
|
19
|
+
"bugs": {
|
|
20
|
+
"url": "https://github.com/antharuu/klaim/issues"
|
|
21
|
+
},
|
|
22
|
+
"homepage": "https://github.com/antharuu/klaim#readme",
|
|
23
|
+
"main": "dist/klaim.cjs.js",
|
|
24
|
+
"module": "dist/klaim.es.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
26
|
+
"exports": "./mod.ts",
|
|
27
|
+
"scripts": {
|
|
28
|
+
"build": "vite build",
|
|
29
|
+
"dev": "vite build --watch",
|
|
30
|
+
"test": "vitest",
|
|
31
|
+
"lint": "eslint src",
|
|
32
|
+
"lint:fix": "eslint src **/*.ts --fix",
|
|
33
|
+
"release": "dotenv release-it --"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"typescript": "^5.5.3"
|
|
37
|
+
}
|
|
38
|
+
}
|