sveltekit-auth-example 1.0.10 → 1.0.13

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/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ # Backlog for 1.0.14
2
+ * Refactor routing to be folder, not file-based - https://github.com/sveltejs/kit/discussions/5774 (file system router). More info: https://github.com/sveltejs/kit/discussions/5774#discussioncomment-3294867
3
+
4
+ # 1.0.13
5
+ * Bump dependencies
6
+
7
+ # 1.0.12
8
+ * Remove unnecessary reference from app.d.ts
9
+ * Remove commented lines in svelte.config.js
10
+
1
11
  # 1.0.10
2
12
  * Bump dependencies
3
13
  * Adjust for changes to SvelteKit
package/README.md CHANGED
@@ -31,8 +31,8 @@ The forgot password functionality uses SendInBlue to send the email. You would n
31
31
 
32
32
  ## Prerequisites
33
33
  - PostgreSQL 14 or higher
34
- - Node.js 16.16.0 or higher
35
- - npm 8.14.0 or higher
34
+ - Node.js 18.7.0 or higher
35
+ - npm 8.18.0 or higher
36
36
  - Google API client
37
37
  - SendInBlue account (only used for emailing password reset link - the sample can run without it but forgot password will not work)
38
38
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sveltekit-auth-example",
3
3
  "description": "SvelteKit Authentication Example",
4
- "version": "1.0.10",
4
+ "version": "1.0.13",
5
5
  "private": false,
6
6
  "author": "Nate Stuyvesant",
7
7
  "license": "https://github.com/nstuyvesant/sveltekit-auth-example/blob/master/LICENSE",
@@ -34,39 +34,38 @@
34
34
  },
35
35
  "engines": {
36
36
  "node": "~18.7.0",
37
- "npm": "^8.15.1"
37
+ "npm": "^8.18.0"
38
38
  },
39
39
  "type": "module",
40
40
  "dependencies": {
41
41
  "cookie": "^0.5.0",
42
42
  "dotenv": "^16.0.1",
43
- "google-auth-library": "^8.1.1",
43
+ "google-auth-library": "^8.2.0",
44
44
  "jsonwebtoken": "^8.5.1",
45
- "pg": "^8.7.3",
46
- "pg-native": "^3.0.0"
45
+ "pg": "^8.7.3"
47
46
  },
48
47
  "devDependencies": {
49
48
  "@sveltejs/adapter-node": "latest",
50
- "@sveltejs/kit": "latest",
51
- "@types/bootstrap": "5.2.1",
49
+ "@sveltejs/kit": "1.0.0-next.405",
50
+ "@types/bootstrap": "5.2.2",
52
51
  "@types/cookie": "^0.5.1",
53
52
  "@types/jsonwebtoken": "^8.5.8",
54
53
  "@types/pg": "^8.6.5",
55
- "@typescript-eslint/eslint-plugin": "^5.32.0",
56
- "@typescript-eslint/parser": "^5.32.0",
54
+ "@typescript-eslint/eslint-plugin": "^5.33.1",
55
+ "@typescript-eslint/parser": "^5.33.1",
57
56
  "bootstrap": "^5.2.0",
58
57
  "bootstrap-icons": "^1.9.1",
59
- "eslint": "^8.21.0",
58
+ "eslint": "^8.22.0",
60
59
  "eslint-config-prettier": "^8.5.0",
61
60
  "eslint-plugin-svelte3": "^4.0.0",
62
61
  "prettier": "^2.7.1",
63
62
  "prettier-plugin-svelte": "^2.7.0",
64
- "sass": "^1.54.0",
63
+ "sass": "^1.54.4",
65
64
  "svelte": "^3.49.0",
66
- "svelte-check": "^2.8.0",
65
+ "svelte-check": "^2.8.1",
67
66
  "svelte-preprocess": "^4.10.7",
68
67
  "tslib": "^2.4.0",
69
68
  "typescript": "^4.7.4",
70
- "vite": "^3.0.4"
69
+ "vite": "^3.0.8"
71
70
  }
72
71
  }
package/src/app.d.ts CHANGED
@@ -1,8 +1,5 @@
1
- /// <reference types="@sveltejs/kit" />
2
1
  /// <reference types="bootstrap" />
3
2
 
4
- /* eslint-disable @typescript-eslint/no-explicit-any */
5
-
6
3
  // See https://kit.svelte.dev/docs/typescript
7
4
  // for information about these interfaces
8
5
  declare namespace App {
@@ -99,6 +96,8 @@ type UserSession = {
99
96
  user: User
100
97
  }
101
98
 
99
+ /* eslint-disable @typescript-eslint/no-explicit-any */
100
+
102
101
  interface Window {
103
102
  google?: any
104
103
  grecaptcha: any
package/svelte.config.js CHANGED
@@ -5,7 +5,6 @@ const production = process.env.NODE_ENV === 'production'
5
5
 
6
6
  const baseCsp = [
7
7
  'self',
8
- // 'strict-dynamic', // issues with datepicker on classes, add to calendar scripts
9
8
  'https://www.gstatic.com/recaptcha/', // recaptcha
10
9
  'https://accounts.google.com/gsi/', // sign-in w/google
11
10
  'https://www.google.com/recaptcha/', // recapatcha
@@ -30,8 +29,7 @@ const config = {
30
29
  'img-src': ['data:', 'blob:', ...baseCsp],
31
30
  'style-src': ['unsafe-inline', ...baseCsp],
32
31
  'object-src': ['none'],
33
- 'base-uri': ['self'],
34
- // 'require-trusted-types-for': ["'script'"] // will require effort to get this working
32
+ 'base-uri': ['self']
35
33
  }
36
34
  }
37
35
  }