prostgles-server 4.2.156 → 4.2.158

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 (40) hide show
  1. package/dist/Auth/AuthHandler.d.ts +2 -0
  2. package/dist/Auth/AuthHandler.d.ts.map +1 -1
  3. package/dist/Auth/AuthHandler.js +4 -2
  4. package/dist/Auth/AuthHandler.js.map +1 -1
  5. package/dist/Auth/AuthTypes.d.ts +63 -16
  6. package/dist/Auth/AuthTypes.d.ts.map +1 -1
  7. package/dist/Auth/sendEmail.d.ts +7 -0
  8. package/dist/Auth/sendEmail.d.ts.map +1 -0
  9. package/dist/Auth/sendEmail.js +69 -0
  10. package/dist/Auth/sendEmail.js.map +1 -0
  11. package/dist/Auth/setAuthProviders.d.ts +4 -4
  12. package/dist/Auth/setAuthProviders.d.ts.map +1 -1
  13. package/dist/Auth/setAuthProviders.js +30 -52
  14. package/dist/Auth/setAuthProviders.js.map +1 -1
  15. package/dist/Auth/setEmailProvider.d.ts +4 -0
  16. package/dist/Auth/setEmailProvider.d.ts.map +1 -0
  17. package/dist/Auth/setEmailProvider.js +86 -0
  18. package/dist/Auth/setEmailProvider.js.map +1 -0
  19. package/dist/Auth/setupAuthRoutes.js +1 -1
  20. package/dist/Auth/setupAuthRoutes.js.map +1 -1
  21. package/dist/Prostgles.d.ts +1 -0
  22. package/dist/Prostgles.d.ts.map +1 -1
  23. package/dist/Prostgles.js +6 -0
  24. package/dist/Prostgles.js.map +1 -1
  25. package/dist/initProstgles.d.ts.map +1 -1
  26. package/dist/initProstgles.js +2 -6
  27. package/dist/initProstgles.js.map +1 -1
  28. package/lib/Auth/AuthHandler.ts +4 -2
  29. package/lib/Auth/AuthTypes.ts +55 -18
  30. package/lib/Auth/sendEmail.ts +83 -0
  31. package/lib/Auth/setAuthProviders.ts +42 -65
  32. package/lib/Auth/setEmailProvider.ts +85 -0
  33. package/lib/Auth/setupAuthRoutes.ts +1 -1
  34. package/lib/Prostgles.ts +6 -0
  35. package/lib/initProstgles.ts +2 -5
  36. package/package.json +11 -7
  37. package/tests/client/package-lock.json +8 -2689
  38. package/tests/client/package.json +1 -1
  39. package/tests/server/index.ts +5 -3
  40. package/tests/server/package-lock.json +11 -3
@@ -13,7 +13,7 @@
13
13
  "license": "ISC",
14
14
  "dependencies": {
15
15
  "@types/node": "^20.9.2",
16
- "prostgles-client": "^4.0.147",
16
+ "prostgles-client": "^4.0.150",
17
17
  "prostgles-types": "^4.0.51",
18
18
  "socket.io-client": "^4.7.5"
19
19
  },
@@ -201,9 +201,11 @@ function dd(){
201
201
  },
202
202
  registrations: {
203
203
  websiteUrl: "http://localhost:3001",
204
- github: {
205
- clientID: "GITHUB_CLIENT_ID",
206
- clientSecret: "GITHUB"
204
+ OAuthProviders: {
205
+ github: {
206
+ clientID: "GITHUB_CLIENT_ID",
207
+ clientSecret: "GITHUB"
208
+ },
207
209
  },
208
210
  onProviderLoginStart: async () => ({ ok: true }),
209
211
  onProviderLoginFail: console.error,
@@ -21,9 +21,11 @@
21
21
  },
22
22
  "../..": {
23
23
  "name": "prostgles-server",
24
- "version": "4.2.155",
24
+ "version": "4.2.157",
25
25
  "license": "MIT",
26
26
  "dependencies": {
27
+ "@aws-sdk/client-ses": "^3.699.0",
28
+ "@aws-sdk/credential-provider-node": "^3.699.0",
27
29
  "@types/passport": "^1.0.17",
28
30
  "@types/passport-facebook": "^3.0.3",
29
31
  "@types/passport-github2": "^1.2.9",
@@ -32,6 +34,7 @@
32
34
  "body-parser": "^1.20.3",
33
35
  "check-disk-space": "^3.4.0",
34
36
  "file-type": "^18.5.0",
37
+ "nodemailer": "^6.9.16",
35
38
  "passport": "^0.7.0",
36
39
  "passport-facebook": "^3.0.0",
37
40
  "passport-github2": "^0.1.12",
@@ -40,12 +43,13 @@
40
43
  "pg": "^8.11.5",
41
44
  "pg-cursor": "^2.11.0",
42
45
  "pg-promise": "^11.9.1",
43
- "prostgles-types": "^4.0.105"
46
+ "prostgles-types": "^4.0.107"
44
47
  },
45
48
  "devDependencies": {
46
49
  "@types/express": "^4.17.21",
47
50
  "@types/json-schema": "^7.0.15",
48
51
  "@types/node": "^22.8.1",
52
+ "@types/nodemailer": "^6.4.17",
49
53
  "@types/pg": "^8.11.5",
50
54
  "@types/pg-cursor": "^2.7.2",
51
55
  "@types/sharp": "^0.30.4",
@@ -1793,9 +1797,12 @@
1793
1797
  "prostgles-server": {
1794
1798
  "version": "file:../..",
1795
1799
  "requires": {
1800
+ "@aws-sdk/client-ses": "^3.699.0",
1801
+ "@aws-sdk/credential-provider-node": "^3.699.0",
1796
1802
  "@types/express": "^4.17.21",
1797
1803
  "@types/json-schema": "^7.0.15",
1798
1804
  "@types/node": "^22.8.1",
1805
+ "@types/nodemailer": "^6.4.17",
1799
1806
  "@types/passport": "^1.0.17",
1800
1807
  "@types/passport-facebook": "^3.0.3",
1801
1808
  "@types/passport-github2": "^1.2.9",
@@ -1810,6 +1817,7 @@
1810
1817
  "check-disk-space": "^3.4.0",
1811
1818
  "eslint": "^8.51.0",
1812
1819
  "file-type": "^18.5.0",
1820
+ "nodemailer": "^6.9.16",
1813
1821
  "passport": "^0.7.0",
1814
1822
  "passport-facebook": "^3.0.0",
1815
1823
  "passport-github2": "^0.1.12",
@@ -1818,7 +1826,7 @@
1818
1826
  "pg": "^8.11.5",
1819
1827
  "pg-cursor": "^2.11.0",
1820
1828
  "pg-promise": "^11.9.1",
1821
- "prostgles-types": "^4.0.105",
1829
+ "prostgles-types": "^4.0.107",
1822
1830
  "socket.io": "^4.8.1",
1823
1831
  "typescript": "^5.3.3"
1824
1832
  }