@kubun/credential 0.17.1 → 0.17.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/lib/api.js +5 -1
  2. package/package.json +2 -2
package/lib/api.js CHANGED
@@ -171,7 +171,11 @@ export function createCredentialAPI(params) {
171
171
  });
172
172
  }
173
173
  assertValidCredentialShape(parsed);
174
- const result = await store.bindAliasIfAbsent(providerName, owner, entryID);
174
+ const result = await store.bindAliasIfAbsent({
175
+ namespace: providerName,
176
+ aliasKey: owner,
177
+ entryID
178
+ });
175
179
  if (result === 'inserted') return;
176
180
  if (result === 'entry-missing') {
177
181
  throw new CredentialNotFound('Credential entry', entryID);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kubun/credential",
3
- "version": "0.17.1",
3
+ "version": "0.17.2",
4
4
  "keywords": [],
5
5
  "license": "see LICENSE.md",
6
6
  "sideEffects": false,
@@ -23,7 +23,7 @@
23
23
  "@kubun/hlc": "^0.17.0",
24
24
  "@kubun/id": "^0.17.0",
25
25
  "@kubun/logger": "^0.17.0",
26
- "@kubun/store-credential": "^0.17.3",
26
+ "@kubun/store-credential": "^0.17.4",
27
27
  "@noble/ciphers": "^2.4.0",
28
28
  "@noble/hashes": "^2.4.0",
29
29
  "@sozai/codec": "^0.4.0",