@orangecheck/me-client 0.52.0 → 0.53.0
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 +12 -0
- package/README.md +1 -1
- package/dist/server.d.mts +1 -1
- package/dist/server.d.ts +1 -1
- package/dist/server.js +9 -0
- package/dist/server.js.map +1 -1
- package/dist/server.mjs +7 -2
- package/dist/server.mjs.map +1 -1
- package/package.json +2 -2
package/dist/server.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { verifyOcToken as verifyOcToken$1, checkOcToken as checkOcToken$1, readOcSessionToken, SAFE_METHODS, familyRevocationCheck, integratorRevocationCheck, bondMeets, readBondClaim } from '@orangecheck/auth-core';
|
|
2
|
-
export { bondMeets, readBondClaim } from '@orangecheck/auth-core';
|
|
1
|
+
import { verifyOcToken as verifyOcToken$1, checkOcToken as checkOcToken$1, readOcSessionToken, SAFE_METHODS, readBondNeed, familyRevocationCheck, integratorRevocationCheck, bondMeets, readBondClaim } from '@orangecheck/auth-core';
|
|
2
|
+
export { bondMeets, readBondClaim, readBondNeed } from '@orangecheck/auth-core';
|
|
3
3
|
import { isDidOc } from '@orangecheck/auth-core/identifiers';
|
|
4
4
|
|
|
5
5
|
var __defProp = Object.defineProperty;
|
|
@@ -1167,6 +1167,11 @@ function checkOptions(options) {
|
|
|
1167
1167
|
`@orangecheck/me-client: requireBond: unknown option ${extra.join(", ")}. It reads only ${[...BOND_OPTIONS].join(", ")}.`
|
|
1168
1168
|
);
|
|
1169
1169
|
}
|
|
1170
|
+
if (!readBondNeed(bond)) {
|
|
1171
|
+
throw new TypeError(
|
|
1172
|
+
"@orangecheck/me-client: requireBond: minSats, minDays and maxAgeSecs must each be left out or a whole number of 0 or more"
|
|
1173
|
+
);
|
|
1174
|
+
}
|
|
1170
1175
|
}
|
|
1171
1176
|
var BACK_ACCOUNT_URL = "https://ochk.app/me/account#backing";
|
|
1172
1177
|
var stamp = () => ({ mono: performance.now(), wall: Date.now() });
|