sveltekit-auth-example 1.0.11 → 1.0.12

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,7 @@
1
+ # 1.0.12
2
+ * Remove unnecessary reference from app.d.ts
3
+ * Remove commented lines in svelte.config.js
4
+
1
5
  # 1.0.10
2
6
  * Bump dependencies
3
7
  * Adjust for changes to SvelteKit
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.11",
4
+ "version": "1.0.12",
5
5
  "private": false,
6
6
  "author": "Nate Stuyvesant",
7
7
  "license": "https://github.com/nstuyvesant/sveltekit-auth-example/blob/master/LICENSE",
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
  }