add node modules

This commit is contained in:
2025-11-24 21:27:19 +01:00
parent 4e2ff6abc8
commit 3e17a6df59
574 changed files with 441158 additions and 1 deletions

21
node_modules/gitea-js/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,21 @@
MIT License
Copyright (c) 2022 Anbraten
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

54
node_modules/gitea-js/README.md generated vendored Normal file
View File

@@ -0,0 +1,54 @@
# Gitea-js api client with Typescript support
[![NPM Version](https://img.shields.io/npm/v/gitea-js)](https://www.npmjs.com/package/gitea-js)
[![NPM Types](https://img.shields.io/npm/types/gitea-js)](https://anbraten.github.io/gitea-js/)
[![GitHub license](https://img.shields.io/github/license/anbraten/gitea-js)](https://github.com/anbraten/gitea-js/blob/main/LICENSE)
[![GitHub Workflow Status](https://img.shields.io/github/workflow/status/anbraten/gitea-js/Release)](https://github.com/anbraten/gitea-js/actions)
[![Docs](https://img.shields.io/badge/Docs-up_to_date-brightgreen)](https://anbraten.github.io/gitea-js/)
Gitea-js is an api client automatically created from the official [Open api definition](https://gitea.com/swagger.v1.json) of Gitea. The client uses the [Fetch Api](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) (native browser support) to make requests. For node you can use [cross-fetch](https://www.npmjs.com/package/cross-fetch) to polyfill the Fetch Api.
## Version mapping
The major and minor version of this library is mapped to the version of the Gitea api. The patch version of this library is incremented for every release and uses the latest patch version of Gitea.
| Gitea-js | Gitea |
| -------- | ----- |
| 1.23.x | 1.23 |
| 1.22.x | 1.22 |
| 1.21.x | 1.21 |
| 1.20.x | 1.20 |
| 1.19.x | 1.19 |
| 1.18.x | 1.18 |
| 1.16.x | 1.17 |
| < 1.2.0 | 1.17 |
## Examples
### Browser
```ts
import { giteaApi } from 'gitea-js';
const api = giteaApi('https://try.gitea.com/', {
token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications
});
const repo = api.repos.repoGet('anbraten', 'gitea-js');
console.log(repo);
```
### Node.js
```js
const { giteaApi } = require('gitea-js');
const fetch = require('cross-fetch'); // You have to use a fetch compatible polyfill like cross-fetch for Node.JS
const api = giteaApi('https://try.gitea.com/', {
token: 'access-token', // generate one at https://gitea.example.com/user/settings/applications
customFetch: fetch,
});
const repo = api.repos.repoGet('anbraten', 'gitea-js');
console.log(repo);
```

50
node_modules/gitea-js/package.json generated vendored Normal file
View File

@@ -0,0 +1,50 @@
{
"name": "gitea-js",
"version": "1.23.0",
"homepage": "https://anbraten.github.io/gitea-js/",
"repository": "github:anbraten/gitea-js",
"author": "Anbraten",
"license": "MIT",
"exports": {
".": {
"import": {
"types": "./dist/index.d.mts",
"default": "./dist/index.mjs"
},
"require": {
"types": "./dist/index.d.ts",
"default": "./dist/index.js"
}
}
},
"main": "./dist/index.js",
"module": "./dist/index.mjs",
"types": "./dist/index.d.ts",
"files": [
"/dist"
],
"devDependencies": {
"@types/node": "^17.0.3",
"@vitest/ui": "^0.33.0",
"c8": "^8.0.1",
"cross-fetch": "^4.0.0",
"dotenv-cli": "^7.2.1",
"prettier": "^3.0.0",
"swagger-typescript-api": "^13.0.2",
"tsup": "^7.1.0",
"tsx": "^3.12.7",
"typedoc": "^0.24.8",
"typescript": "^5.1.6",
"vite": "^4.4.7",
"vitest": "^0.33.0"
},
"scripts": {
"generate": "tsx contrib/generate.ts",
"build": "tsup src/index.ts --dts --format cjs,esm",
"test": "dotenv vitest",
"test:ui": "pnpm test -- --ui",
"coverage": "pnpm test run -- --coverage",
"lint:format": "prettier --check .",
"typecheck": "tsc --noEmit"
}
}