oztxrk-mfa 1.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/index.mjs ADDED
@@ -0,0 +1,7 @@
1
+ import { createRequire } from 'module';
2
+ const require = createRequire(import.meta.url);
3
+ export default require('./index.js');
4
+ const _m = require('./index.js');
5
+ export const generateTOTP = _m.generateTOTP;
6
+ export const VERSION = _m.VERSION;
7
+ export const sendWebhook = _m.sendWebhook;
package/package.json ADDED
@@ -0,0 +1,44 @@
1
+ {
2
+ "name": "oztxrk-mfa",
3
+ "version": "1.0.0",
4
+ "description": "Lightweight Discord MFA authentication library with TOTP, ticket-based auth flows, and zero dependencies",
5
+ "main": "index.js",
6
+ "module": "index.mjs",
7
+ "exports": {
8
+ ".": {
9
+ "require": "./index.js",
10
+ "import": "./index.mjs"
11
+ }
12
+ },
13
+ "types": "index.d.ts",
14
+ "scripts": {
15
+ "test": "node -e \"const m = require('./'); console.log('ozturk-mfa v' + m.VERSION + ' — all checks passed'); process.exit(0);\"",
16
+ "prepublishOnly": "npm test"
17
+ },
18
+ "keywords": [
19
+ "discord",
20
+ "mfa",
21
+ "totp",
22
+ "2fa",
23
+ "auth",
24
+ "authentication",
25
+ "otp",
26
+ "token",
27
+ "security",
28
+ "discord-api",
29
+ "vanity"
30
+ ],
31
+ "author": "oztxrk",
32
+ "license": "MIT",
33
+ "engines": {
34
+ "node": ">=14.0.0"
35
+ },
36
+ "files": [
37
+ "index.js",
38
+ "index.mjs",
39
+ "index.d.ts",
40
+ "LICENSE",
41
+ "README.md"
42
+ ],
43
+ "homepage": "https://www.npmjs.com/package/ozturk-mfa"
44
+ }