catto.js 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.
@@ -0,0 +1,29 @@
1
+ # This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
2
+ # For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
3
+
4
+ name: Node.js CI
5
+
6
+ on:
7
+ pull_request:
8
+ branches: [ "main" ]
9
+
10
+ jobs:
11
+ build:
12
+
13
+ runs-on: ubuntu-latest
14
+
15
+ strategy:
16
+ matrix:
17
+ node-version: [19.x]
18
+ # See supported Node.js release schedule at https://nodejs.org/en/about/releases/
19
+
20
+ steps:
21
+ - uses: actions/checkout@v3
22
+ - name: Use Node.js ${{ matrix.node-version }}
23
+ uses: actions/setup-node@v3
24
+ with:
25
+ node-version: ${{ matrix.node-version }}
26
+ cache: 'npm'
27
+ - run: npm ci
28
+ - run: npm run build --if-present
29
+ - run: npm test
@@ -1,7 +1,7 @@
1
1
  # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
2
  # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
3
 
4
- name: Node.js Package
4
+ name: Build
5
5
 
6
6
  on:
7
7
  release:
package/README.md CHANGED
@@ -0,0 +1,22 @@
1
+ ## catto.js
2
+ #### Everything is easy!
3
+ ![Build](https://github.com/BoryaGames/catto.js/actions/workflows/npm-publish.yml/badge.svg)
4
+ ![Contributors](https://img.shields.io/github/contributors/BoryaGames/catto.js)
5
+ ![Chat on Discord](https://img.shields.io/discord/916772281747931198?logo=discord)
6
+ ✨ catto.js is a new version of universal catto package, which allows easy web server making, random generation and Discord authorization. ✨
7
+ ## Features
8
+ - Creating web server.
9
+ - Adding SSL certificate and key to your web server.
10
+ - Using WebSocket in your web server.
11
+ - Saving sessions.
12
+ - Authorizing users using Discord API OAuth2.
13
+ - Generating random numbers and booleans.
14
+ - Easy removing elements from Arrays.
15
+ And of course Dillinger itself is open source with a [public repository][dill]
16
+ on GitHub.
17
+ ## Installation
18
+ ```sh
19
+ npm i catto.js
20
+ ```
21
+ ## Usage
22
+ > Currently unavailable.
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  var mod = {};
2
- ["random", "Server", "HTML", "request", "AuthClient", "utils", "GitHub", "Base64"].forEach(part => {
2
+ ["random", "Server", "HTML", "request", "AuthClient", "utils", "GitHub", "Base64", "User"].forEach(part => {
3
3
  mod[part] = require(`./${part}`);
4
4
  });
5
- module.exports = mod;
5
+ module.exports = mod;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "0.0.2",
3
+ "version": "0.0.4",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {