@jskit-ai/auth-provider-local-db-core 0.1.186 → 0.1.188

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
@@ -2,6 +2,7 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ - Its tests name `APP_ENV`, which local auth now reads in place of `NODE_ENV`.
5
6
  - A new account keeps the `emailVerifiedAt` it is created with (`users.create`), as local sign-in's email confirmation now gives it; without one it stays empty, as before.
6
7
  - Used one-time passes in the database: the table `auth_local_used_passes` (the hash of each pass's id, until it expires), created by the new migration `auth_local_db_used_passes`, behind the backend contract's `passes` collection, so a pass one server accepted is refused by every server on the database. Two first uses at once both find no row, and the later one's duplicate entry runs its transaction again, which finds it. `LOCAL_AUTH_DB_TABLES.passes` names the table, which the package owns.
7
8
  - The package manifest no longer requires `runtime.actions`: its feature declares no actions, so since the kernel's 9646ecf21 it does not require the action catalogue, and the catalog's manifest check reported the requirement as one no server provider has.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jskit-ai/auth-provider-local-db-core",
3
- "version": "0.1.186",
3
+ "version": "0.1.188",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "test": "jskit test"
@@ -11,14 +11,14 @@
11
11
  "./server/types": "./src/server/types.js"
12
12
  },
13
13
  "dependencies": {
14
- "@jskit-ai/auth-provider-local-core": "0.2.35",
15
- "@jskit-ai/resource-core": "0.1.217"
14
+ "@jskit-ai/auth-provider-local-core": "0.2.36",
15
+ "@jskit-ai/resource-core": "0.1.218"
16
16
  },
17
17
  "peerDependencies": {
18
- "@jskit-ai/auth-core": "0.2.29",
19
- "@jskit-ai/database-runtime": "0.1.275",
20
- "@jskit-ai/kernel": "0.2.26",
21
- "@jskit-ai/resource-runtime": "0.2.35"
18
+ "@jskit-ai/auth-core": "0.2.30",
19
+ "@jskit-ai/database-runtime": "0.1.276",
20
+ "@jskit-ai/kernel": "0.2.27",
21
+ "@jskit-ai/resource-runtime": "0.2.37"
22
22
  },
23
23
  "description": "Database-backed local auth storage backend for JSKIT local auth.",
24
24
  "jskit": {
@@ -12,7 +12,7 @@ test("a production server whose database has no account asks its first registrat
12
12
  const storeDir = await fs.mkdtemp(path.join(os.tmpdir(), "jskit-auth-db-setup-"));
13
13
  t.after(() => fs.rm(storeDir, { recursive: true, force: true }));
14
14
  const options = localServiceOptions({
15
- env: { NODE_ENV: "production", AUTH_LOCAL_STORE_DIR: storeDir, AUTH_LOCAL_RECOVERY_DEV_OUTPUT: "" }
15
+ env: { APP_ENV: "production", NODE_ENV: "production", AUTH_LOCAL_STORE_DIR: storeDir, AUTH_LOCAL_RECOVERY_DEV_OUTPUT: "" }
16
16
  });
17
17
  const codes = [];
18
18
  const logger = { info() {}, warn: (fields) => codes.push(fields.firstAccountSetupCode), error() {}, debug() {} };
@@ -442,7 +442,7 @@ test("installing the DB backend capability makes local auth database-backed", as
442
442
  AUTH_LOCAL_RECOVERY_DEV_OUTPUT: "response",
443
443
  APP_PUBLIC_URL: "http://localhost:5173",
444
444
  AUTH_LOCAL_EMAIL_CONFIRMATION: "false",
445
- NODE_ENV: "test"
445
+ APP_ENV: "test"
446
446
  },
447
447
  "runtime.logger": console,
448
448
  ...inputs