sveltekit-auth-example 1.0.53 → 1.0.55
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 +7 -0
- package/db_create.sql +6 -6
- package/package.json +13 -13
- package/src/lib/server/db.ts +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,13 @@
|
|
|
1
1
|
# Backlog
|
|
2
2
|
* Add password complexity checking on /register and /profile pages (only checks for length currently despite what the pages say)
|
|
3
3
|
|
|
4
|
+
# 1.0.55
|
|
5
|
+
* Add comment to indicate property that should be removed if ssl is turned off on the PostgreSQL server (thanks Brazos)
|
|
6
|
+
* Update public.reset_password stored procedure to plpgsql (thanks Brazos)
|
|
7
|
+
|
|
8
|
+
# 1.0.54
|
|
9
|
+
* Bump sveltekit, @types/pg, @typescript*, boostrap, eslint, prettier-plugin-svelte, sass, tslib, typescript, vitest
|
|
10
|
+
|
|
4
11
|
# 1.0.53
|
|
5
12
|
* Fix service-worker.ts typing
|
|
6
13
|
* Bump pg, sveltekit, svelte, vite, tslib and other devDependencies
|
package/db_create.sql
CHANGED
|
@@ -234,14 +234,14 @@ CREATE PROCEDURE public.delete_session(input_id integer)
|
|
|
234
234
|
DELETE FROM sessions WHERE user_id = input_id;
|
|
235
235
|
$$;
|
|
236
236
|
|
|
237
|
-
CREATE OR REPLACE PROCEDURE public.reset_password(
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
AS $BODY$
|
|
237
|
+
CREATE OR REPLACE PROCEDURE public.reset_password(IN input_id integer, IN input_password text)
|
|
238
|
+
LANGUAGE plpgsql
|
|
239
|
+
AS $procedure$
|
|
240
|
+
BEGIN
|
|
242
241
|
UPDATE users SET password = crypt(input_password, gen_salt('bf', 8)) WHERE id = input_id;
|
|
243
242
|
END;
|
|
244
|
-
$
|
|
243
|
+
$procedure$
|
|
244
|
+
;
|
|
245
245
|
|
|
246
246
|
ALTER PROCEDURE public.reset_password(integer, text) OWNER TO auth;
|
|
247
247
|
|
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.
|
|
4
|
+
"version": "1.0.55",
|
|
5
5
|
"private": false,
|
|
6
6
|
"author": "Nate Stuyvesant",
|
|
7
7
|
"license": "https://github.com/nstuyvesant/sveltekit-auth-example/blob/master/LICENSE",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
},
|
|
34
34
|
"engines": {
|
|
35
35
|
"node": "^18.16.0",
|
|
36
|
-
"npm": "^9.
|
|
36
|
+
"npm": "^9.7.1"
|
|
37
37
|
},
|
|
38
38
|
"type": "module",
|
|
39
39
|
"dependencies": {
|
|
@@ -42,27 +42,27 @@
|
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@sveltejs/adapter-node": "^1.2.4",
|
|
45
|
-
"@sveltejs/kit": "^1.
|
|
45
|
+
"@sveltejs/kit": "^1.20.2",
|
|
46
46
|
"@types/bootstrap": "5.2.6",
|
|
47
47
|
"@types/google.accounts": "^0.0.7",
|
|
48
48
|
"@types/jsonwebtoken": "^9.0.2",
|
|
49
|
-
"@types/pg": "^8.10.
|
|
50
|
-
"@typescript-eslint/eslint-plugin": "^5.59.
|
|
51
|
-
"@typescript-eslint/parser": "^5.59.
|
|
52
|
-
"bootstrap": "^5.
|
|
53
|
-
"eslint": "^8.
|
|
49
|
+
"@types/pg": "^8.10.2",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^5.59.11",
|
|
51
|
+
"@typescript-eslint/parser": "^5.59.11",
|
|
52
|
+
"bootstrap": "^5.3.0",
|
|
53
|
+
"eslint": "^8.42.0",
|
|
54
54
|
"eslint-config-prettier": "^8.8.0",
|
|
55
55
|
"eslint-plugin-svelte3": "^4.0.0",
|
|
56
56
|
"google-auth-library": "^8.8.0",
|
|
57
57
|
"jsonwebtoken": "^9.0.0",
|
|
58
58
|
"prettier": "^2.8.8",
|
|
59
|
-
"prettier-plugin-svelte": "^2.10.
|
|
60
|
-
"sass": "^1.
|
|
59
|
+
"prettier-plugin-svelte": "^2.10.1",
|
|
60
|
+
"sass": "^1.63.4",
|
|
61
61
|
"svelte": "^3.59.1",
|
|
62
62
|
"svelte-check": "^3.4.3",
|
|
63
|
-
"tslib": "^2.5.
|
|
64
|
-
"typescript": "^5.
|
|
63
|
+
"tslib": "^2.5.3",
|
|
64
|
+
"typescript": "^5.1.3",
|
|
65
65
|
"vite": "^4.3.9",
|
|
66
|
-
"vitest": "^0.
|
|
66
|
+
"vitest": "^0.32.0"
|
|
67
67
|
}
|
|
68
68
|
}
|
package/src/lib/server/db.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { DATABASE_URL } from '$env/static/private'
|
|
|
6
6
|
const pool = new pg.Pool({
|
|
7
7
|
max: 10, // default
|
|
8
8
|
connectionString: DATABASE_URL,
|
|
9
|
-
ssl: {
|
|
9
|
+
ssl: { // If your postgresql.conf does not have `ssl = on`, remove the entire ssl property or you will get an error
|
|
10
10
|
rejectUnauthorized: false
|
|
11
11
|
}
|
|
12
12
|
})
|