@1auth/authn-recovery-codes 0.0.0-alpha.35 → 0.0.0-alpha.37

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 -5
  2. package/package.json +7 -4
package/index.js CHANGED
@@ -40,14 +40,14 @@ export default (opt = {}) => {
40
40
 
41
41
  export const count = async (sub) => {
42
42
  if (options.log) {
43
- options.log('@1auth/autn-recovery-codes count(', sub, ')')
43
+ options.log('@1auth/authn-recovery-codes count(', sub, ')')
44
44
  }
45
45
  return await authnCount(options.secret, sub)
46
46
  }
47
47
 
48
48
  export const list = async (sub) => {
49
49
  if (options.log) {
50
- options.log('@1auth/autn-recovery-codes list(', sub, ')')
50
+ options.log('@1auth/authn-recovery-codes list(', sub, ')')
51
51
  }
52
52
  return await authnList(options.secret, sub)
53
53
  }
@@ -58,7 +58,7 @@ export const authenticate = async (username, secret) => {
58
58
 
59
59
  export const create = async (sub) => {
60
60
  if (options.log) {
61
- options.log('@1auth/autn-recovery-codes create(', sub, ')')
61
+ options.log('@1auth/authn-recovery-codes create(', sub, ')')
62
62
  }
63
63
  const secrets = await createSecrets(sub, options.count)
64
64
  await options.notify.trigger('authn-recovery-codes-create', sub)
@@ -67,7 +67,7 @@ export const create = async (sub) => {
67
67
 
68
68
  export const update = async (sub) => {
69
69
  if (options.log) {
70
- options.log('@1auth/autn-recovery-codes update(', sub, ')')
70
+ options.log('@1auth/authn-recovery-codes update(', sub, ')')
71
71
  }
72
72
  const existingSecrets = await options.store.selectList(options.table, {
73
73
  sub,
@@ -83,7 +83,7 @@ export const update = async (sub) => {
83
83
 
84
84
  export const remove = async (sub, id) => {
85
85
  if (options.log) {
86
- options.log('@1auth/autn-recovery-codes remove(', sub, id, ')')
86
+ options.log('@1auth/authn-recovery-codes remove(', sub, id, ')')
87
87
  }
88
88
  const existingSecrets = id
89
89
  ? await options.store.selectList(options.table, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@1auth/authn-recovery-codes",
3
- "version": "0.0.0-alpha.35",
3
+ "version": "0.0.0-alpha.37",
4
4
  "description": "",
5
5
  "type": "module",
6
6
  "engines": {
@@ -21,7 +21,10 @@
21
21
  }
22
22
  },
23
23
  "types": "index.d.ts",
24
- "files": ["index.js", "index.d.ts"],
24
+ "files": [
25
+ "index.js",
26
+ "index.d.ts"
27
+ ],
25
28
  "scripts": {
26
29
  "test": "npm run test:unit",
27
30
  "test:unit": "node --test"
@@ -47,7 +50,7 @@
47
50
  "homepage": "https://github.com/willfarrell/1auth",
48
51
  "gitHead": "7a6c0fbb8ab71d6a2171e678697de9f237568431",
49
52
  "dependencies": {
50
- "@1auth/authn": "0.0.0-alpha.35",
51
- "@1auth/crypto": "0.0.0-alpha.35"
53
+ "@1auth/authn": "0.0.0-alpha.37",
54
+ "@1auth/crypto": "0.0.0-alpha.37"
52
55
  }
53
56
  }