@jskit-ai/users-core 0.1.117 → 0.1.118
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/package.descriptor.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export default Object.freeze({
|
|
2
2
|
packageVersion: 1,
|
|
3
3
|
packageId: "@jskit-ai/users-core",
|
|
4
|
-
version: "0.1.
|
|
4
|
+
version: "0.1.118",
|
|
5
5
|
kind: "runtime",
|
|
6
6
|
description: "Users/account runtime plus HTTP routes for account features.",
|
|
7
7
|
dependsOn: [
|
|
@@ -146,16 +146,16 @@ export default Object.freeze({
|
|
|
146
146
|
mutations: {
|
|
147
147
|
dependencies: {
|
|
148
148
|
runtime: {
|
|
149
|
-
"@jskit-ai/auth-core": "0.1.
|
|
150
|
-
"@jskit-ai/crud-core": "0.1.
|
|
151
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
152
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
153
|
-
"@jskit-ai/json-rest-api-core": "0.1.
|
|
154
|
-
"@jskit-ai/kernel": "0.1.
|
|
155
|
-
"@jskit-ai/resource-core": "0.1.
|
|
156
|
-
"@jskit-ai/resource-crud-core": "0.1.
|
|
149
|
+
"@jskit-ai/auth-core": "0.1.107",
|
|
150
|
+
"@jskit-ai/crud-core": "0.1.116",
|
|
151
|
+
"@jskit-ai/database-runtime": "0.1.108",
|
|
152
|
+
"@jskit-ai/http-runtime": "0.1.107",
|
|
153
|
+
"@jskit-ai/json-rest-api-core": "0.1.53",
|
|
154
|
+
"@jskit-ai/kernel": "0.1.109",
|
|
155
|
+
"@jskit-ai/resource-core": "0.1.53",
|
|
156
|
+
"@jskit-ai/resource-crud-core": "0.1.53",
|
|
157
157
|
"@local/users": "file:packages/users",
|
|
158
|
-
"@jskit-ai/uploads-runtime": "0.1.
|
|
158
|
+
"@jskit-ai/uploads-runtime": "0.1.86"
|
|
159
159
|
},
|
|
160
160
|
dev: {}
|
|
161
161
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jskit-ai/users-core",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.118",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "node --test"
|
|
@@ -12,14 +12,14 @@
|
|
|
12
12
|
"./shared/resources/userSettingsResource": "./src/shared/resources/userSettingsResource.js"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@jskit-ai/auth-core": "0.1.
|
|
16
|
-
"@jskit-ai/database-runtime": "0.1.
|
|
17
|
-
"@jskit-ai/http-runtime": "0.1.
|
|
18
|
-
"@jskit-ai/json-rest-api-core": "0.1.
|
|
19
|
-
"@jskit-ai/kernel": "0.1.
|
|
20
|
-
"@jskit-ai/resource-crud-core": "0.1.
|
|
21
|
-
"@jskit-ai/resource-core": "0.1.
|
|
22
|
-
"@jskit-ai/uploads-runtime": "0.1.
|
|
15
|
+
"@jskit-ai/auth-core": "0.1.107",
|
|
16
|
+
"@jskit-ai/database-runtime": "0.1.108",
|
|
17
|
+
"@jskit-ai/http-runtime": "0.1.107",
|
|
18
|
+
"@jskit-ai/json-rest-api-core": "0.1.53",
|
|
19
|
+
"@jskit-ai/kernel": "0.1.109",
|
|
20
|
+
"@jskit-ai/resource-crud-core": "0.1.53",
|
|
21
|
+
"@jskit-ai/resource-core": "0.1.53",
|
|
22
|
+
"@jskit-ai/uploads-runtime": "0.1.86",
|
|
23
23
|
"json-rest-schema": "1.x.x"
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -15,7 +15,6 @@ exports.up = async function up(knex) {
|
|
|
15
15
|
table.string("avatar_version", 64).nullable();
|
|
16
16
|
table.timestamp("avatar_updated_at", { useTz: false }).nullable();
|
|
17
17
|
table.timestamp("created_at", { useTz: false }).notNullable().defaultTo(knex.fn.now());
|
|
18
|
-
table.timestamp("updated_at", { useTz: false }).notNullable().defaultTo(knex.fn.now());
|
|
19
18
|
table.unique(["auth_provider", "auth_provider_user_sid"], "uq_users_identity");
|
|
20
19
|
table.unique(["email"], "uq_users_email");
|
|
21
20
|
table.unique(["username"], "uq_users_username");
|
|
@@ -66,16 +66,17 @@ test("users-core installs all users profile schema migrations", async () => {
|
|
|
66
66
|
assert.ok(mutation.reason, `${migrationId} must document why it exists.`);
|
|
67
67
|
}
|
|
68
68
|
|
|
69
|
-
const initialMigrationSource = await readFile(
|
|
70
|
-
path.join(PACKAGE_ROOT, "templates/migrations/users_core_generic_initial.cjs"),
|
|
71
|
-
"utf8"
|
|
72
|
-
);
|
|
73
69
|
const updatedAtMigrationSource = await readFile(
|
|
74
70
|
path.join(PACKAGE_ROOT, "templates/migrations/users_core_profile_updated_at.cjs"),
|
|
75
71
|
"utf8"
|
|
76
72
|
);
|
|
73
|
+
const initialMigrationSource = await readFile(
|
|
74
|
+
path.join(PACKAGE_ROOT, "templates/migrations/users_core_generic_initial.cjs"),
|
|
75
|
+
"utf8"
|
|
76
|
+
);
|
|
77
|
+
const usersTableSection = initialMigrationSource.split("const hasUserSettingsTable")[0] || "";
|
|
77
78
|
|
|
78
|
-
assert.
|
|
79
|
+
assert.doesNotMatch(usersTableSection, /table\.timestamp\("updated_at"/);
|
|
79
80
|
assert.match(updatedAtMigrationSource, /hasColumn\("users", "updated_at"\)/);
|
|
80
81
|
assert.match(updatedAtMigrationSource, /COALESCE\(\?\?, CURRENT_TIMESTAMP\)/);
|
|
81
82
|
});
|