catto.js 1.2.3 → 1.2.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,6 @@
1
+ version: 2
2
+ updates:
3
+ - package-ecosystem: "npm"
4
+ directory: "/"
5
+ schedule:
6
+ interval: "daily"
@@ -1,7 +1,4 @@
1
- # This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2
- # For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3
-
4
- name: Build
1
+ name: Publish
5
2
 
6
3
  on:
7
4
  release:
@@ -14,7 +11,8 @@ jobs:
14
11
  - uses: actions/checkout@v3
15
12
  - uses: actions/setup-node@v3
16
13
  with:
17
- node-version: 16
14
+ node-version: 20
15
+ - run: npm i --package-lock-only
18
16
  - run: npm ci
19
17
  - run: npm test
20
18
 
@@ -25,8 +23,9 @@ jobs:
25
23
  - uses: actions/checkout@v3
26
24
  - uses: actions/setup-node@v3
27
25
  with:
28
- node-version: 16
26
+ node-version: 20
29
27
  registry-url: https://registry.npmjs.org/
28
+ - run: npm i --package-lock-only
30
29
  - run: npm ci
31
30
  - run: npm publish
32
31
  env:
@@ -0,0 +1,17 @@
1
+ name: Build
2
+
3
+ on:
4
+ push:
5
+ branches: [ "main" ]
6
+
7
+ jobs:
8
+ build:
9
+ runs-on: ubuntu-latest
10
+ steps:
11
+ - uses: actions/checkout@v4
12
+ - uses: actions/setup-node@v4
13
+ with:
14
+ node-version: 20
15
+ registry-url: https://registry.npmjs.org/
16
+ - run: npm i
17
+ - run: npm test
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  ## catto.js
2
2
  #### Everything is easy!
3
- ![Build](https://github.com/BoryaGames/catto.js/actions/workflows/npm-publish.yml/badge.svg)
3
+ ![Build](https://github.com/BoryaGames/catto.js/actions/workflows/test.yml/badge.svg)
4
4
  ![Contributors](https://img.shields.io/github/contributors/BoryaGames/catto.js)
5
5
  ![Chat on Discord](https://img.shields.io/discord/916772281747931198?logo=discord)
6
6
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "catto.js",
3
- "version": "1.2.3",
3
+ "version": "1.2.4",
4
4
  "description": "Universal module for everything.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,7 +32,7 @@
32
32
  "api",
33
33
  "telegraf"
34
34
  ],
35
- "author": "cat1234",
35
+ "author": "topcatto",
36
36
  "license": "ISC",
37
37
  "bugs": {
38
38
  "url": "https://github.com/BoryaGames/catto.js/issues"
@@ -41,12 +41,12 @@
41
41
  "dependencies": {
42
42
  "body-parser": "^1.20.2",
43
43
  "discord-hybrid-sharding": "^2.2.0",
44
- "discord.js": "^14.16.3",
44
+ "discord.js": "^14.19.3",
45
45
  "ejs": "^3.1.10",
46
46
  "express": "^4.19.2",
47
47
  "express-session": "^1.18.0",
48
48
  "express-ws": "^5.0.2",
49
- "node-fetch": "^2.7.0",
49
+ "node-fetch": "^3.3.2",
50
50
  "session-file-store": "^1.5.0",
51
51
  "telegraf": "^4.16.3",
52
52
  "tweetnacl": "^1.0.3"
@@ -1,29 +0,0 @@
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