mulguard 1.1.8 → 1.1.9

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.
Files changed (2) hide show
  1. package/LICENSE +70 -0
  2. package/package.json +117 -117
package/LICENSE ADDED
@@ -0,0 +1,70 @@
1
+
2
+ ---
3
+
4
+ **Mulverse M.U.V GENERAL PUBLIC LICENSE**
5
+
6
+ **Version 1.0**
7
+
8
+ **Copyright (C) [2022] Mulverse Inc.**
9
+
10
+ **1. Definitions**
11
+
12
+ 1.1 **"Software"** refers to the Mulverse software distributed under this license, including all associated files, documentation, and any updates or modifications.
13
+
14
+ 1.2 **"You"** means the individual or entity who receives or uses the Software.
15
+
16
+ 1.3 **"Distribution"** refers to any form of sharing or redistribution of the Software, including copies or derivative works.
17
+
18
+ **2. Permissions**
19
+
20
+ 2.1 **Use**: You are granted the right to use the Software for any purpose.
21
+
22
+ 2.2 **Copy and Distribution**: You may distribute copies of the Software, either in its original form or as modified, provided that all copies include the same license terms.
23
+
24
+ 2.3 **Modification**: You may modify the Software and distribute the modified versions, provided that the modified Software is also licensed under this Mulverse M.U.V General Public License and that you include a prominent notice stating the changes made.
25
+
26
+ **3. Copyleft**
27
+
28
+ 3.1 **Source Code**: If you distribute the Software or any derivative works, you must either include the source code or make it available in a manner specified by this license.
29
+
30
+ 3.2 **License Continuity**: All copies and derivative works of the Software must be distributed under the terms of this Mulverse M.U.V General Public License. You must include a copy of this license with all distributions.
31
+
32
+ **4. Conditions**
33
+
34
+ 4.1 **Attribution**: You must provide appropriate credit to Mulverse Inc., including a notice that the Software is licensed under the Mulverse M.U.V General Public License.
35
+
36
+ 4.2 **No Warranty**: The Software is provided "as is," without any warranty of any kind. Mulverse Inc. disclaims all warranties and conditions, including but not limited to implied warranties of merchantability and fitness for a particular purpose.
37
+
38
+ 4.3 **No Additional Restrictions**: You may not impose any additional restrictions on the rights granted by this license. This includes, but is not limited to, additional licenses or agreements.
39
+
40
+ **5. Termination**
41
+
42
+ 5.1 **Automatic Termination**: If you breach any of the terms of this license, your rights under this license will be terminated automatically.
43
+
44
+ 5.2 **Reinstatement**: You may be reinstated if you cure the breach and notify Mulverse Inc. of the cure within 30 days of the termination.
45
+
46
+ **6. Patent Grant**
47
+
48
+ 6.1 **Patent License**: You grant to Mulverse Inc. a non-exclusive, royalty-free license to any patents you may hold that are necessary to use the Software.
49
+
50
+ **7. Indemnity**
51
+
52
+ 7.1 **Indemnification**: You agree to indemnify and hold Mulverse Inc. harmless from any claims, damages, or liabilities arising from your use or distribution of the Software.
53
+
54
+ **8. Governing Law**
55
+
56
+ 8.1 **Jurisdiction**: This license shall be governed by and construed in accordance with the laws of [Your Jurisdiction].
57
+
58
+ **9. Miscellaneous**
59
+
60
+ 9.1 **Severability**: If any provision of this license is held to be invalid or unenforceable, the remaining provisions will remain in effect.
61
+
62
+ 9.2 **Entire Agreement**: This license constitutes the entire agreement between you and Mulverse Inc. regarding the Software and supersedes all prior agreements and understandings.
63
+
64
+ **10. Contact**
65
+
66
+ 10.1 **Inquiries**: For any questions or concerns regarding this license, please contact Mulverse Inc. at [Contact Information].
67
+
68
+ **End of License**
69
+
70
+ ---
package/package.json CHANGED
@@ -1,117 +1,117 @@
1
- {
2
- "name": "mulguard",
3
- "version": "1.1.8",
4
- "description": "Authentication for Next.js with Backend-First Architecture",
5
- "homepage": "https://mulverse.com/packages/mulguard",
6
- "repository": "https://github.com/mulverse/mulverse.git",
7
- "author": "Mohamed Alhabob <info@mulverse.com>",
8
- "contributors": [
9
- "Mohamed Alhabob <info@mulverse.com>"
10
- ],
11
- "type": "module",
12
- "exports": {
13
- ".": {
14
- "types": "./index.d.ts",
15
- "import": "./index.js",
16
- "default": "./index.js"
17
- },
18
- "./jwt": {
19
- "types": "./jwt.d.ts",
20
- "import": "./jwt.js",
21
- "default": "./jwt.js"
22
- },
23
- "./middleware": {
24
- "types": "./middleware.d.ts",
25
- "import": "./middleware.js",
26
- "default": "./middleware.js"
27
- },
28
- "./next": {
29
- "types": "./next.d.ts",
30
- "import": "./next.js",
31
- "default": "./next.js"
32
- },
33
- "./providers": {
34
- "types": "./providers/index.d.ts"
35
- },
36
- "./adapters": {
37
- "types": "./adapters.d.ts"
38
- },
39
- "./providers/*": {
40
- "types": "./providers/*.d.ts",
41
- "import": "./providers/*.js",
42
- "default": "./providers/*.js"
43
- },
44
- "./react": {
45
- "types": "./react.d.ts",
46
- "import": "./react.js",
47
- "default": "./react.js"
48
- },
49
- "./webauthn": {
50
- "types": "./webauthn.d.ts",
51
- "import": "./webauthn.js",
52
- "default": "./webauthn.js"
53
- },
54
- "./package.json": "./package.json"
55
- },
56
- "keywords": [
57
- "react",
58
- "nodejs",
59
- "oauth",
60
- "jwt",
61
- "oauth2",
62
- "authentication",
63
- "nextjs",
64
- "csrf",
65
- "oidc",
66
- "mulguard"
67
- ],
68
- "scripts": {
69
- "build": "pnpm clean && pnpm providers && node ../../node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/bin/tsc",
70
- "clean": "node -e \"const fs = require('fs'); const path = require('path'); ['*.js', '*.d.ts*', 'lib', 'providers'].forEach(p => { try { if (fs.existsSync(p)) fs.rmSync(p, {recursive: true, force: true}); } catch(e) {} });\"",
71
- "dev": "pnpm providers && tsc -w",
72
- "test": "vitest run -c ../utils/vitest.config.ts",
73
- "test:watch": "vitest -c ../utils/vitest.config.ts",
74
- "test:e2e": "playwright test",
75
- "providers": "node ../utils/scripts/providers"
76
- },
77
- "files": [
78
- "*.d.ts*",
79
- "*.js",
80
- "lib",
81
- "providers",
82
- "src"
83
- ],
84
- "license": "ISC",
85
- "publishConfig": {
86
- "access": "public"
87
- },
88
- "dependencies": {
89
- "@mulverse/mulguard-core": "workspace:*"
90
- },
91
- "peerDependencies": {
92
- "@simplewebauthn/browser": "^9.0.1",
93
- "@simplewebauthn/server": "^9.0.2",
94
- "next": "^14.0.0-0 || ^15.0.0 || ^16.0.0",
95
- "nodemailer": "^7.0.7",
96
- "react": "^18.2.0 || ^19.0.0"
97
- },
98
- "peerDependenciesMeta": {
99
- "@simplewebauthn/browser": {
100
- "optional": true
101
- },
102
- "@simplewebauthn/server": {
103
- "optional": true
104
- },
105
- "nodemailer": {
106
- "optional": true
107
- }
108
- },
109
- "devDependencies": {
110
- "@types/react": "18.0.37",
111
- "dotenv": "^10.0.0",
112
- "next": "15.3.1",
113
- "nodemailer": "^7.0.7",
114
- "react": "^18.2.0",
115
- "typescript": "5.3.3"
116
- }
117
- }
1
+ {
2
+ "name": "mulguard",
3
+ "version": "1.1.9",
4
+ "description": "Authentication for Next.js with Backend-First Architecture",
5
+ "homepage": "https://mulverse.com/packages/mulguard",
6
+ "repository": "https://github.com/mulverse/mulverse.git",
7
+ "author": "Mohamed Alhabob <info@mulverse.com>",
8
+ "contributors": [
9
+ "Mohamed Alhabob <info@mulverse.com>"
10
+ ],
11
+ "type": "module",
12
+ "exports": {
13
+ ".": {
14
+ "types": "./index.d.ts",
15
+ "import": "./index.js",
16
+ "default": "./index.js"
17
+ },
18
+ "./jwt": {
19
+ "types": "./jwt.d.ts",
20
+ "import": "./jwt.js",
21
+ "default": "./jwt.js"
22
+ },
23
+ "./middleware": {
24
+ "types": "./middleware.d.ts",
25
+ "import": "./middleware.js",
26
+ "default": "./middleware.js"
27
+ },
28
+ "./next": {
29
+ "types": "./next.d.ts",
30
+ "import": "./next.js",
31
+ "default": "./next.js"
32
+ },
33
+ "./providers": {
34
+ "types": "./providers/index.d.ts"
35
+ },
36
+ "./adapters": {
37
+ "types": "./adapters.d.ts"
38
+ },
39
+ "./providers/*": {
40
+ "types": "./providers/*.d.ts",
41
+ "import": "./providers/*.js",
42
+ "default": "./providers/*.js"
43
+ },
44
+ "./react": {
45
+ "types": "./react.d.ts",
46
+ "import": "./react.js",
47
+ "default": "./react.js"
48
+ },
49
+ "./webauthn": {
50
+ "types": "./webauthn.d.ts",
51
+ "import": "./webauthn.js",
52
+ "default": "./webauthn.js"
53
+ },
54
+ "./package.json": "./package.json"
55
+ },
56
+ "keywords": [
57
+ "react",
58
+ "nodejs",
59
+ "oauth",
60
+ "jwt",
61
+ "oauth2",
62
+ "authentication",
63
+ "nextjs",
64
+ "csrf",
65
+ "oidc",
66
+ "mulguard"
67
+ ],
68
+ "files": [
69
+ "*.d.ts*",
70
+ "*.js",
71
+ "lib",
72
+ "providers",
73
+ "src"
74
+ ],
75
+ "license": "ISC",
76
+ "publishConfig": {
77
+ "access": "public"
78
+ },
79
+ "dependencies": {
80
+ "@mulverse/mulguard-core": "^1.0.1"
81
+ },
82
+ "peerDependencies": {
83
+ "@simplewebauthn/browser": "^9.0.1",
84
+ "@simplewebauthn/server": "^9.0.2",
85
+ "next": "^14.0.0-0 || ^15.0.0 || ^16.0.0",
86
+ "nodemailer": "^7.0.7",
87
+ "react": "^18.2.0 || ^19.0.0"
88
+ },
89
+ "peerDependenciesMeta": {
90
+ "@simplewebauthn/browser": {
91
+ "optional": true
92
+ },
93
+ "@simplewebauthn/server": {
94
+ "optional": true
95
+ },
96
+ "nodemailer": {
97
+ "optional": true
98
+ }
99
+ },
100
+ "devDependencies": {
101
+ "@types/react": "18.0.37",
102
+ "dotenv": "^10.0.0",
103
+ "next": "15.3.1",
104
+ "nodemailer": "^7.0.7",
105
+ "react": "^18.2.0",
106
+ "typescript": "5.3.3"
107
+ },
108
+ "scripts": {
109
+ "build": "pnpm clean && pnpm providers && node ../../node_modules/.pnpm/typescript@5.2.2/node_modules/typescript/bin/tsc",
110
+ "clean": "node -e \"const fs = require('fs'); const path = require('path'); ['*.js', '*.d.ts*', 'lib', 'providers'].forEach(p => { try { if (fs.existsSync(p)) fs.rmSync(p, {recursive: true, force: true}); } catch(e) {} });\"",
111
+ "dev": "pnpm providers && tsc -w",
112
+ "test": "vitest run -c ../utils/vitest.config.ts",
113
+ "test:watch": "vitest -c ../utils/vitest.config.ts",
114
+ "test:e2e": "playwright test",
115
+ "providers": "node ../utils/scripts/providers"
116
+ }
117
+ }