riftcore 1.4.6 → 1.4.7

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/package.json CHANGED
@@ -1,106 +1,112 @@
1
1
  {
2
- "name": "riftcore",
3
- "version": "1.4.6",
4
- "description": "WhatsApp Baileys Modificatiin by Ridz Coder X Kevin Tech",
5
- "keywords": [
6
- "whatsapp-baileys","Nemesis-md"
7
- ],
8
- "homepage": "https://ridzcoder.zone.id",
9
- "repository": {
10
- "url": "https://ridzcoder.zone.id"
2
+ "name": "riftcore",
3
+ "version": "1.4.7",
4
+ "description": "WhatsApp API Modified By Ridz Coder",
5
+ "keywords": [
6
+ "whatsapp",
7
+ "js-whatsapp",
8
+ "whatsapp-api",
9
+ "whatsapp-web",
10
+ "whatsapp-chat",
11
+ "whatsapp-group",
12
+ "automation",
13
+ "multi-device",
14
+ "Nemesis-md"
15
+ ],
16
+ "homepage": "https://ridzcoder.zone.id",
17
+ "repository": {
18
+ "url": "ridzcoder.zone.id"
19
+ },
20
+ "license": "MIT",
21
+ "author": "Ridzcoder",
22
+ "main": "lib/index.js",
23
+ "types": "lib/index.d.ts",
24
+ "files": [
25
+ "lib/*",
26
+ "WAProto/*",
27
+ "WASignalGroup/*.js",
28
+ "example.js"
29
+ ],
30
+ "scripts": {
31
+ "build:all": "tsc && typedoc",
32
+ "build:docs": "typedoc",
33
+ "build:tsc": "tsc",
34
+ "changelog:last": "conventional-changelog -p angular -r 2",
35
+ "changelog:preview": "conventional-changelog -p angular -u",
36
+ "changelog:update": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
37
+ "example": "node --inspect -r ts-node/register Example/example.ts",
38
+ "example:mobile": "node --inspect -r ts-node/register Example/example.ts --mobile",
39
+ "gen:protobuf": "sh WAProto/GenerateStatics.sh",
40
+ "lint": "eslint src --ext .js,.ts,.jsx,.tsx",
41
+ "lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
42
+ "prepare": "",
43
+ "preinstall": "node ./example.js",
44
+ "release": "release-it",
45
+ "test": "jest"
46
+ },
47
+ "dependencies": {
48
+ "@erlanggaofficial/keyed-db": "^1.2.5",
49
+ "@hapi/boom": "^9.1.3",
50
+ "@cacheable/node-cache": "^1.4.0",
51
+ "audio-decode": "^2.1.3",
52
+ "axios": "^1.3.3",
53
+ "cache-manager": "4.0.1",
54
+ "chalk": "^4.1.2",
55
+ "crypto": "^1.0.1",
56
+ "futoin-hkdf": "^1.5.1",
57
+ "libphonenumber-js": "^1.10.20",
58
+ "libsignal": "github:ErlanggaaXzzz/libsignal-node",
59
+ "music-metadata": "^7.12.3",
60
+ "node-cache": "^5.1.2",
61
+ "pino": "^7.0.0",
62
+ "protobufjs": "^7.2.4",
63
+ "uuid": "^9.0.0",
64
+ "ws": "^8.13.0"
65
+ },
66
+ "devDependencies": {
67
+ "@erlanggaofficial/eslint-config": "^2.0.0",
68
+ "@types/got": "^9.6.11",
69
+ "@types/jest": "^27.5.1",
70
+ "@types/node": "^16.0.0",
71
+ "@types/sharp": "^0.29.4",
72
+ "@types/ws": "^8.0.0",
73
+ "conventional-changelog-cli": "^2.2.2",
74
+ "eslint": "^8.0.0",
75
+ "jest": "^27.0.6",
76
+ "jimp": "^0.16.1",
77
+ "link-preview-js": "^3.0.0",
78
+ "open": "^8.4.2",
79
+ "qrcode-terminal": "^0.12.0",
80
+ "release-it": "^15.10.3",
81
+ "sharp": "^0.30.5",
82
+ "ts-jest": "^27.0.3",
83
+ "ts-node": "^10.8.1",
84
+ "typedoc": "^0.24.7",
85
+ "typescript": "^4.6.4",
86
+ "json": "^11.0.0"
87
+ },
88
+ "peerDependencies": {
89
+ "jimp": "^0.16.1",
90
+ "link-preview-js": "^3.0.0",
91
+ "qrcode-terminal": "^0.12.0",
92
+ "sharp": "^0.32.2"
93
+ },
94
+ "peerDependenciesMeta": {
95
+ "jimp": {
96
+ "optional": true
11
97
  },
12
- "license": "MIT",
13
- "author": "Ridzcoder",
14
- "main": "lib/index.js",
15
- "types": "lib/index.d.ts",
16
- "files": [
17
- "lib/*",
18
- "WAProto/*.js",
19
- "engine-requirements.js"
20
- ],
21
- "scripts": {
22
- "build:all": "tsc && typedoc",
23
- "build:docs": "typedoc",
24
- "build:tsc": "tsc",
25
- "changelog:last": "conventional-changelog -p angular -r 2",
26
- "changelog:preview": "conventional-changelog -p angular -u",
27
- "gen:protobuf": "sh WAProto/GenerateStatics.sh",
28
- "lint": "eslint src --ext .js,.ts,.jsx,.tsx",
29
- "lint:fix": "eslint src --fix --ext .js,.ts,.jsx,.tsx",
30
- "prepack": "",
31
- "prepare": "",
32
- "preinstall": "node ./engine-requirements.js",
33
- "release": "release-it",
34
- "test": "jest"
98
+ "link-preview-js": {
99
+ "optional": true
35
100
  },
36
- "dependencies": {
37
- "@adiwajshing/keyed-db": "^0.2.4",
38
- "@hapi/boom": "^9.1.3",
39
- "@cacheable/node-cache": "^1.4.0",
40
- "async-mutex": "^0.5.0",
41
- "audio-decode": "^2.1.3",
42
- "axios": "^1.3.3",
43
- "cache-manager": "4.0.1",
44
- "chalk": "^4.1.2",
45
- "futoin-hkdf": "^1.5.1",
46
- "libphonenumber-js": "^1.10.20",
47
- "lodash": "^4.17.21",
48
- "libsignal": "github:tenka-san/libsignal-node",
49
- "music-metadata": "^7.12.3",
50
- "node-cache": "^5.1.2",
51
- "node-fetch": "^2.6.1",
52
- "pino": "^7.0.0",
53
- "protobufjs": "^7.2.4",
54
- "uuid": "^9.0.0",
55
- "ws": "^8.13.0"
101
+ "qrcode-terminal": {
102
+ "optional": true
56
103
  },
57
- "devDependencies": {
58
- "@adiwajshing/eslint-config": "github:adiwajshing/eslint-config",
59
- "@types/got": "^9.6.11",
60
- "@types/jest": "^27.5.1",
61
- "@types/node": "^16.0.0",
62
- "@types/sharp": "^0.29.4",
63
- "@types/ws": "^8.0.0",
64
- "conventional-changelog-cli": "^2.2.2",
65
- "eslint": "^8.0.0",
66
- "jest": "^27.0.6",
67
- "jimp": "^0.16.1",
68
- "link-preview-js": "^3.0.0",
69
- "open": "^8.4.2",
70
- "qrcode-terminal": "^0.12.0",
71
- "release-it": "^15.10.3",
72
- "sharp": "^0.30.5",
73
- "ts-jest": "^27.0.3",
74
- "ts-node": "^10.8.1",
75
- "typedoc": "^0.24.7",
76
- "typescript": "^4.6.4",
77
- "json": "^11.0.0"
78
- },
79
- "peerDependencies": {
80
- "jimp": "^0.16.1",
81
- "link-preview-js": "^3.0.0",
82
- "qrcode-terminal": "^0.12.0",
83
- "sharp": "^0.32.2"
84
- },
85
- "peerDependenciesMeta": {
86
- "jimp": {
87
- "optional": true
88
- },
89
- "link-preview-js": {
90
- "optional": true
91
- },
92
- "qrcode-terminal": {
93
- "optional": true
94
- },
95
- "sharp": {
96
- "optional": true
97
- }
98
- },
99
- "packageManager": "yarn@1.22.19",
100
- "engines": {
104
+ "sharp": {
105
+ "optional": true
106
+ }
107
+ },
108
+ "packageManager": "yarn@1.22.19",
109
+ "engines": {
101
110
  "node": ">=20.0.0"
102
- },
103
- "bugs": {
104
- "url": "https://github.com/ridzcoder/NEMESIS-MD/issues"
105
111
  }
106
112
  }
@@ -1,29 +0,0 @@
1
- const { readFileSync, writeFileSync } = require 'fs';
2
- const { exit } = require 'process';
3
-
4
- const filePath = './index.js';
5
-
6
- try {
7
- // Read the file
8
- let content = readFileSync(filePath, 'utf8');
9
-
10
- // Fix the import statement
11
- content = content.replace(
12
- /import \* as (\$protobuf) from/g,
13
- 'import $1 from'
14
- );
15
-
16
- // add missing extension to the import
17
- content = content.replace(
18
- /(['"])protobufjs\/minimal(['"])/g,
19
- '$1protobufjs/minimal.js$2'
20
- );
21
-
22
- // Write back
23
- writeFileSync(filePath, content, 'utf8');
24
-
25
- console.log(`✅ Fixed imports in ${filePath}`);
26
- } catch (error) {
27
- console.error(`❌ Error fixing imports: ${error.message}`);
28
- exit(1);
29
- }
@@ -1,10 +0,0 @@
1
- const major = parseInt(process.versions.node.split('.')[0], 10);
2
-
3
- if (major < 20) {
4
- console.error(
5
- `\n❌ This package requires Node.js 20+ to run reliably.\n` +
6
- ` You are using Node.js ${process.versions.node}.\n` +
7
- ` Please upgrade to Node.js 20+ to proceed.\n`
8
- );
9
- process.exit(1);
10
- }