Skip to content

Commit

Permalink
Change compiler options and license
Browse files Browse the repository at this point in the history
  • Loading branch information
TTTaevas committed Oct 20, 2024
1 parent 48d8109 commit 9f531ea
Show file tree
Hide file tree
Showing 8 changed files with 57 additions and 17 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Node.js Test CI
on:
push:
branches:
- "**"
pull_request:
branches:
- "**"

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run test
env:
ID: ${{ secrets.OSU_ID }}
SECRET: ${{ secrets.OSU_SECRET }}
3 changes: 1 addition & 2 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
.gitignore
lib/
docs/
test.*
interactive_test.*
tests/
yarn.lock
tsconfig.json
CONTRIBUTING.md
29 changes: 20 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,13 +1,24 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
This is free and unencumbered software released into the public domain.

Copyright (C) 2004 Sam Hocevar <[email protected]>
Anyone is free to copy, modify, publish, use, compile, sell, or
distribute this software, either in source code form or as a compiled
binary, for any purpose, commercial or non-commercial, and by any
means.

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
In jurisdictions that recognize copyright laws, the author or authors
of this software dedicate any and all copyright interest in the
software to the public domain. We make this dedication for the benefit
of the public at large and to the detriment of our heirs and
successors. We intend this dedication to be an overt act of
relinquishment in perpetuity of all present and future rights to this
software under copyright law.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
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 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.

0. You just DO WHAT THE FUCK YOU WANT TO.
For more information, please refer to <https://unlicense.org>
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ You can find this package's documentation on [osu-v2.taevas.xyz](https://osu-v2.

## How to install and get started

Before installing, if using Node.js, check if you're running version 16 or above:
Before installing, if using Node.js, check if you're running version 18 or above:

```bash
node -v # displays your version of node.js
Expand Down
File renamed without changes.
File renamed without changes.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
"scripts": {
"prepublish": "npm run build",
"build": "tsc",
"test": "npm run build && node ./dist/tests/test.js",
"test-authorized": "npm run build && node ./dist/tests/test_authorized.js",
"test": "npm run build && node ./dist/tests/guest.js",
"test-authorized": "npm run build && node ./dist/tests/authenticated.js",
"doc": "npx typedoc lib/index.ts --cname osu-v2.taevas.xyz"
},
"engines": {
Expand All @@ -30,7 +30,7 @@
"api-wrapper",
"lazer"
],
"license": "WTFPL",
"license": "Unlicense",
"devDependencies": {
"@types/node": "^20.8.10",
"@types/prompt-sync": "^4.2.2",
Expand Down
5 changes: 3 additions & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"compilerOptions": {
"target": "ES6",
"module": "NodeNext",
"lib": ["ES2023"],
"module": "Node16",
"target": "ES2022",
"declaration": true,
"outDir": "./dist",
"strict": true
Expand Down

0 comments on commit 9f531ea

Please sign in to comment.