solana-auth-oauth2-server 0.0.0
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 +21 -0
- package/README.md +74 -0
- package/dist/cli.cjs +15 -0
- package/dist/cli.cjs.map +1 -0
- package/dist/cli.d.cts +1 -0
- package/dist/cli.d.ts +1 -0
- package/dist/cli.js +14 -0
- package/dist/cli.js.map +1 -0
- package/dist/index.cjs +33 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -0
- package/package.json +52 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 beeman https://github.com/beeman
|
|
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.
|
package/README.md
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
# solana-auth-oauth2-server
|
|
2
|
+
|
|
3
|
+
This is a template for creating a modern TypeScript library or package using [Bun](https://bun.sh/). It comes pre-configured with essential tools for development, testing, linting, and publishing.
|
|
4
|
+
|
|
5
|
+
## Features
|
|
6
|
+
|
|
7
|
+
* **Bun-first development**: Leverages Bun for lightning-fast installs, runs, and tests.
|
|
8
|
+
* **TypeScript support**: Write type-safe code from the start.
|
|
9
|
+
* **Linting & Formatting**: Enforced with [Biome](https://biomejs.dev/) for consistent code style.
|
|
10
|
+
* **Bundling**: Uses [tsup](https://tsup.js.org/) for efficient bundling into ESM and CJS formats, with type declarations.
|
|
11
|
+
* **Testing**: Built-in unit testing with `bun test`.
|
|
12
|
+
* **Versioning & Publishing**: Managed with [Changesets](https://github.com/changesets/changesets) for streamlined releases to npm.
|
|
13
|
+
* **GitHub Actions**: Continuous Integration (CI) workflows for automated build, test, lint, and publish processes.
|
|
14
|
+
|
|
15
|
+
## Getting Started
|
|
16
|
+
|
|
17
|
+
To use this template, you typically would use a scaffolding tool like `bunx create-something -t solana-auth-oauth2-server`.
|
|
18
|
+
|
|
19
|
+
### Installation
|
|
20
|
+
|
|
21
|
+
If you're using this template directly (e.g., after cloning), you can install dependencies with Bun:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
bun install
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### Development
|
|
28
|
+
|
|
29
|
+
* **Build**: `bun run build`
|
|
30
|
+
* **Type Check**: `bun run check-types`
|
|
31
|
+
* **Lint**: `bun run lint`
|
|
32
|
+
* **Lint & Fix**: `bun run lint:fix`
|
|
33
|
+
* **Test**: `bun test`
|
|
34
|
+
* **Test (Watch Mode)**: `bun run test:watch`
|
|
35
|
+
|
|
36
|
+
### Publishing
|
|
37
|
+
|
|
38
|
+
This template uses Changesets for versioning and publishing.
|
|
39
|
+
|
|
40
|
+
1. **Add a changeset**:
|
|
41
|
+
```bash
|
|
42
|
+
bun changeset
|
|
43
|
+
```
|
|
44
|
+
Follow the prompts to describe your changes. This will create a markdown file in `.changeset/`.
|
|
45
|
+
|
|
46
|
+
2. **Version packages**:
|
|
47
|
+
```bash
|
|
48
|
+
bun run version
|
|
49
|
+
```
|
|
50
|
+
This command reads the changeset files, updates package versions, updates `CHANGELOG.md`, and deletes the used changeset files. It also runs `bun lint:fix`.
|
|
51
|
+
|
|
52
|
+
3. **Publish to npm**:
|
|
53
|
+
```bash
|
|
54
|
+
bun run release
|
|
55
|
+
```
|
|
56
|
+
This command builds the package and publishes it to npm. Ensure you are logged into npm (`npm login`) or have `NPM_TOKEN` configured in your CI environment.
|
|
57
|
+
|
|
58
|
+
## Project Structure
|
|
59
|
+
|
|
60
|
+
```
|
|
61
|
+
.
|
|
62
|
+
├── src/ # Source code for your library
|
|
63
|
+
│ └── index.ts # Main entry point for your library
|
|
64
|
+
├── test/ # Unit tests
|
|
65
|
+
│ └── index.test.ts # Example test file
|
|
66
|
+
├── tsup.config.ts # Configuration for tsup (bundling)
|
|
67
|
+
├── biome.json # Biome linter/formatter configuration
|
|
68
|
+
├── package.json # Project metadata and scripts
|
|
69
|
+
└── ... (other config files and GitHub workflows)
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
## License
|
|
73
|
+
|
|
74
|
+
MIT – see [LICENSE](./LICENSE).
|
package/dist/cli.cjs
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
// src/index.ts
|
|
5
|
+
function greet(name = "World") {
|
|
6
|
+
return `Hello, ${name} from solana-auth-oauth2-server!`;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
// src/cli.ts
|
|
10
|
+
function main() {
|
|
11
|
+
const name = process.argv[2] || "World";
|
|
12
|
+
console.log(greet(name));
|
|
13
|
+
}
|
|
14
|
+
main();
|
|
15
|
+
//# sourceMappingURL=cli.cjs.map
|
package/dist/cli.cjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/cli.ts"],"sourcesContent":["export function greet(name: string = 'World'): string {\n return `Hello, ${name} from solana-auth-oauth2-server!`\n}\n","#!/usr/bin/env bun\n\nimport { greet } from './index.ts'\n\nfunction main() {\n const name = process.argv[2] || 'World'\n console.log(greet(name))\n}\n\nmain()\n"],"mappings":";;;;AAAO,SAAS,MAAM,OAAe,SAAiB;AACpD,SAAO,UAAU,IAAI;AACvB;;;ACEA,SAAS,OAAO;AACd,QAAM,OAAO,QAAQ,KAAK,CAAC,KAAK;AAChC,UAAQ,IAAI,MAAM,IAAI,CAAC;AACzB;AAEA,KAAK;","names":[]}
|
package/dist/cli.d.cts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env bun
|
|
2
|
+
|
|
3
|
+
// src/index.ts
|
|
4
|
+
function greet(name = "World") {
|
|
5
|
+
return `Hello, ${name} from solana-auth-oauth2-server!`;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
// src/cli.ts
|
|
9
|
+
function main() {
|
|
10
|
+
const name = process.argv[2] || "World";
|
|
11
|
+
console.log(greet(name));
|
|
12
|
+
}
|
|
13
|
+
main();
|
|
14
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/cli.ts"],"sourcesContent":["export function greet(name: string = 'World'): string {\n return `Hello, ${name} from solana-auth-oauth2-server!`\n}\n","#!/usr/bin/env bun\n\nimport { greet } from './index.ts'\n\nfunction main() {\n const name = process.argv[2] || 'World'\n console.log(greet(name))\n}\n\nmain()\n"],"mappings":";;;AAAO,SAAS,MAAM,OAAe,SAAiB;AACpD,SAAO,UAAU,IAAI;AACvB;;;ACEA,SAAS,OAAO;AACd,QAAM,OAAO,QAAQ,KAAK,CAAC,KAAK;AAChC,UAAQ,IAAI,MAAM,IAAI,CAAC;AACzB;AAEA,KAAK;","names":[]}
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all)
|
|
8
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
+
};
|
|
10
|
+
var __copyProps = (to, from, except, desc) => {
|
|
11
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
+
for (let key of __getOwnPropNames(from))
|
|
13
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
+
}
|
|
16
|
+
return to;
|
|
17
|
+
};
|
|
18
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
+
|
|
20
|
+
// src/index.ts
|
|
21
|
+
var index_exports = {};
|
|
22
|
+
__export(index_exports, {
|
|
23
|
+
greet: () => greet
|
|
24
|
+
});
|
|
25
|
+
module.exports = __toCommonJS(index_exports);
|
|
26
|
+
function greet(name = "World") {
|
|
27
|
+
return `Hello, ${name} from solana-auth-oauth2-server!`;
|
|
28
|
+
}
|
|
29
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
30
|
+
0 && (module.exports = {
|
|
31
|
+
greet
|
|
32
|
+
});
|
|
33
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export function greet(name: string = 'World'): string {\n return `Hello, ${name} from solana-auth-oauth2-server!`\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,SAAS,MAAM,OAAe,SAAiB;AACpD,SAAO,UAAU,IAAI;AACvB;","names":[]}
|
package/dist/index.d.cts
ADDED
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["export function greet(name: string = 'World'): string {\n return `Hello, ${name} from solana-auth-oauth2-server!`\n}\n"],"mappings":";AAAO,SAAS,MAAM,OAAe,SAAiB;AACpD,SAAO,UAAU,IAAI;AACvB;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"bin": {
|
|
3
|
+
"solana-auth-oauth2-server": "dist/cli.js"
|
|
4
|
+
},
|
|
5
|
+
"dependencies": {},
|
|
6
|
+
"devDependencies": {
|
|
7
|
+
"@biomejs/biome": "^2.3.11",
|
|
8
|
+
"@changesets/cli": "^2.29.8",
|
|
9
|
+
"@types/bun": "latest",
|
|
10
|
+
"pkg-pr-new": "^0.0.62",
|
|
11
|
+
"publint": "^0.3.16",
|
|
12
|
+
"tsup": "^8.5.1"
|
|
13
|
+
},
|
|
14
|
+
"exports": {
|
|
15
|
+
".": {
|
|
16
|
+
"import": {
|
|
17
|
+
"types": "./dist/index.d.ts",
|
|
18
|
+
"default": "./dist/index.js"
|
|
19
|
+
},
|
|
20
|
+
"require": {
|
|
21
|
+
"types": "./dist/index.d.cts",
|
|
22
|
+
"default": "./dist/index.cjs"
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"files": ["dist"],
|
|
27
|
+
"license": "MIT",
|
|
28
|
+
"main": "./dist/index.cjs",
|
|
29
|
+
"module": "./dist/index.js",
|
|
30
|
+
"name": "solana-auth-oauth2-server",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/solana-auth/solana-auth-oauth2-server.git"
|
|
34
|
+
},
|
|
35
|
+
"peerDependencies": {
|
|
36
|
+
"typescript": "^5"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"build": "tsup",
|
|
40
|
+
"changeset": "changeset",
|
|
41
|
+
"check-types": "tsc -b --noEmit",
|
|
42
|
+
"lint": "biome check --error-on-warnings",
|
|
43
|
+
"lint:fix": "biome check --error-on-warnings --write",
|
|
44
|
+
"release": "changeset publish",
|
|
45
|
+
"test": "bun test",
|
|
46
|
+
"test:watch": "bun test --watch",
|
|
47
|
+
"version": "changeset version && bun lint:fix"
|
|
48
|
+
},
|
|
49
|
+
"type": "module",
|
|
50
|
+
"types": "./dist/index.d.ts",
|
|
51
|
+
"version": "0.0.0"
|
|
52
|
+
}
|