@1auth/account-username 0.0.0-alpha.0 → 0.0.0-alpha.2

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.
Files changed (2) hide show
  1. package/index.js +5 -2
  2. package/package.json +4 -4
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import {
2
- options as accountOptions,
2
+ getOptions as accountOptions,
3
3
  update as accountUpdate
4
4
  } from '@1auth/account'
5
5
 
@@ -18,11 +18,14 @@ const options = {
18
18
  blacklist: ['admin', 'security']
19
19
  }
20
20
  export default (params) => {
21
- Object.assign(options, accountOptions, params)
21
+ console.log(accountOptions())
22
+ Object.assign(options, accountOptions(), params)
23
+ console.log(options)
22
24
  }
23
25
 
24
26
  export const exists = async (username) => {
25
27
  const usernameSanitized = __sanitize(username)
28
+ console.log(options)
26
29
  return options.store.exists(options.table, {
27
30
  digest: await createDigest(usernameSanitized)
28
31
  })
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "name": "@1auth/account-username",
3
- "version": "0.0.0-alpha.0",
3
+ "version": "0.0.0-alpha.2",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "engines": {
7
- "node": ">=18"
7
+ "node": ">=16"
8
8
  },
9
9
  "engineStrict": true,
10
10
  "publishConfig": {
@@ -48,8 +48,8 @@
48
48
  "url": "https://github.com/willfarrell/1auth/issues"
49
49
  },
50
50
  "homepage": "https://github.com/willfarrell/1auth",
51
- "gitHead": "dcd3cb3dcacdebbe21625f092187e7cf02473f68",
51
+ "gitHead": "a02b1e01f039718f213d79b91d04ed660a955c73",
52
52
  "dependencies": {
53
- "@1auth/account": "0.0.0-alpha.0"
53
+ "@1auth/account": "0.0.0-alpha.2"
54
54
  }
55
55
  }