sveltekit-auth-example 2.0.6 → 2.0.8
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/.yarn/install-state.gz +0 -0
- package/.yarn/releases/yarn-4.4.1.cjs +925 -0
- package/.yarnrc.yml +1 -1
- package/CHANGELOG.md +8 -0
- package/README.md +1 -5
- package/eslint.config.js +15 -30
- package/package.json +23 -21
- package/.yarn/releases/yarn-4.1.1.cjs +0 -893
package/.yarnrc.yml
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
- Add password complexity checking on /register and /profile pages (only checks for length currently despite what the pages say)
|
|
4
4
|
|
|
5
|
+
# 2.0.8
|
|
6
|
+
- Bump svelte, @sveltejs/kit, @sveltejs/vite-plugin-svelte, google-auth-library and other devDependencies
|
|
7
|
+
|
|
8
|
+
# 2.0.7
|
|
9
|
+
- Bump pg, google-auth-library, svelte, svelte-check, yarn, typescript-eslint, @types/pg, eslint, prettier, prettier-plugin-svelte, sass, tslib, typescript, vite, vitest
|
|
10
|
+
- Install typescript-eslint, @eslint/js, globals, eslint-plugin-prettier
|
|
11
|
+
- Change eslint config to flat
|
|
12
|
+
|
|
5
13
|
# 2.0.6
|
|
6
14
|
- Bump google-auth-library, @sendgrid/mail, pg, @sveltejs/kit, @sveltejs/vite-plugin-svelte, @types/pg, @typescript-eslint, eslint, eslint-config-prettier, prettier-plugin-svelte, sass, svelte, svelte-check, typescript, vite, vitest
|
|
7
15
|
|
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# SvelteKit Authentication and Authorization Example
|
|
2
2
|
|
|
3
|
-
**Updated for SvelteKit 2.5.
|
|
3
|
+
**Updated for SvelteKit 2.5.26**
|
|
4
4
|
|
|
5
5
|
This is an example of how to register, authenticate, and update users and limit their access to
|
|
6
6
|
areas of the website by role (admin, teacher, student). It includes profile management and password resets via SendGrid.
|
|
@@ -85,7 +85,3 @@ The db_create.sql script adds three users to the database with obvious roles:
|
|
|
85
85
|
- admin@example.com password admin123
|
|
86
86
|
- teacher@example.com password teacher123
|
|
87
87
|
- student@example.com password student123
|
|
88
|
-
|
|
89
|
-
## My ask of you
|
|
90
|
-
|
|
91
|
-
Please report any issues [here](https://github.com/nstuyvesant/sveltekit-auth-example/issues). [Pull requests](https://github.com/nstuyvesant/sveltekit-auth-example/pulls) are encouraged especially as SvelteKit is evolving rapidly.
|
package/eslint.config.js
CHANGED
|
@@ -1,31 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
ignorePatterns: ['*.cjs'],
|
|
12
|
-
parserOptions: {
|
|
13
|
-
sourceType: 'module',
|
|
14
|
-
ecmaVersion: 2020,
|
|
15
|
-
extraFileExtensions: ['.svelte']
|
|
1
|
+
import eslint from '@eslint/js'
|
|
2
|
+
import globals from 'globals'
|
|
3
|
+
import prettierPluginRecommended from 'eslint-plugin-prettier/recommended'
|
|
4
|
+
import sveltePlugin from 'eslint-plugin-svelte'
|
|
5
|
+
import tseslint from 'typescript-eslint'
|
|
6
|
+
|
|
7
|
+
export default tseslint.config(
|
|
8
|
+
// Global - window and document objects
|
|
9
|
+
{
|
|
10
|
+
languageOptions: { globals: globals.browser }
|
|
16
11
|
},
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
overrides: [
|
|
23
|
-
{
|
|
24
|
-
files: ['*.svelte'],
|
|
25
|
-
parser: 'svelte-eslint-parser',
|
|
26
|
-
parserOptions: {
|
|
27
|
-
parser: '@typescript-eslint/parser'
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
]
|
|
31
|
-
}
|
|
12
|
+
eslint.configs.recommended,
|
|
13
|
+
...tseslint.configs.recommended,
|
|
14
|
+
...sveltePlugin.configs['flat/prettier'],
|
|
15
|
+
prettierPluginRecommended
|
|
16
|
+
)
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sveltekit-auth-example",
|
|
3
3
|
"description": "SvelteKit Authentication Example",
|
|
4
|
-
"version": "2.0.
|
|
4
|
+
"version": "2.0.8",
|
|
5
5
|
"author": "Nate Stuyvesant",
|
|
6
6
|
"license": "https://github.com/nstuyvesant/sveltekit-auth-example/blob/master/LICENSE",
|
|
7
7
|
"repository": {
|
|
@@ -36,34 +36,36 @@
|
|
|
36
36
|
"type": "module",
|
|
37
37
|
"dependencies": {
|
|
38
38
|
"@sendgrid/mail": "^8.1.3",
|
|
39
|
-
"pg": "^8.
|
|
39
|
+
"pg": "^8.12.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
|
-
"@
|
|
43
|
-
"@sveltejs/
|
|
44
|
-
"@sveltejs/
|
|
42
|
+
"@eslint/js": "^9.10.0",
|
|
43
|
+
"@sveltejs/adapter-node": "^5.2.2",
|
|
44
|
+
"@sveltejs/kit": "^2.5.26",
|
|
45
|
+
"@sveltejs/vite-plugin-svelte": "^3.1.2",
|
|
45
46
|
"@types/bootstrap": "5.2.10",
|
|
46
47
|
"@types/google.accounts": "^0.0.14",
|
|
47
48
|
"@types/jsonwebtoken": "^9.0.6",
|
|
48
|
-
"@types/pg": "^8.11.
|
|
49
|
-
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
|
50
|
-
"@typescript-eslint/parser": "^7.7.1",
|
|
49
|
+
"@types/pg": "^8.11.8",
|
|
51
50
|
"bootstrap": "^5.3.3",
|
|
52
|
-
"eslint": "^9.
|
|
51
|
+
"eslint": "^9.10.0",
|
|
53
52
|
"eslint-config-prettier": "^9.1.0",
|
|
54
|
-
"eslint-plugin-
|
|
55
|
-
"
|
|
53
|
+
"eslint-plugin-prettier": "^5.2.1",
|
|
54
|
+
"eslint-plugin-svelte": "^2.43.0",
|
|
55
|
+
"globals": "^15.9.0",
|
|
56
|
+
"google-auth-library": "^9.14.1",
|
|
56
57
|
"jsonwebtoken": "^9.0.2",
|
|
57
|
-
"prettier": "^3.
|
|
58
|
-
"prettier-plugin-svelte": "^3.2.
|
|
59
|
-
"sass": "^1.
|
|
60
|
-
"svelte": "^4.2.
|
|
61
|
-
"svelte-check": "^
|
|
62
|
-
"tslib": "^2.
|
|
63
|
-
"typescript": "^5.4
|
|
64
|
-
"
|
|
65
|
-
"
|
|
58
|
+
"prettier": "^3.3.3",
|
|
59
|
+
"prettier-plugin-svelte": "^3.2.6",
|
|
60
|
+
"sass": "^1.78.0",
|
|
61
|
+
"svelte": "^4.2.19",
|
|
62
|
+
"svelte-check": "^4.0.1",
|
|
63
|
+
"tslib": "^2.7.0",
|
|
64
|
+
"typescript": "^5.5.4",
|
|
65
|
+
"typescript-eslint": "^8.4.0",
|
|
66
|
+
"vite": "^5.4.3",
|
|
67
|
+
"vitest": "^2.0.5"
|
|
66
68
|
},
|
|
67
|
-
"packageManager": "yarn@4.
|
|
69
|
+
"packageManager": "yarn@4.4.1",
|
|
68
70
|
"prettier": "./prettier.config.mjs"
|
|
69
71
|
}
|