@prampta/sdk 0.11.1 → 0.11.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.
- package/README.md +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -40,8 +40,8 @@ exists solely so an already-connected provider keeps working mid-migration.
|
|
|
40
40
|
|
|
41
41
|
`createPregen` speaks the simplified PRE-GEN v5 formats at `/v2`: signed
|
|
42
42
|
answers bound to your request, signed reports, signed acknowledgements. Set it
|
|
43
|
-
up once; wrap each generation in one call. Use 0.11.
|
|
44
|
-
0.11.
|
|
43
|
+
up once; wrap each generation in one call. Use 0.11.2 or later: 0.10.0, 0.11.0
|
|
44
|
+
and 0.11.1 had defects found by external reviews (see CHANGELOG). A complete
|
|
45
45
|
program you can run as it stands: https://prampta.com/get-started-v2.md.
|
|
46
46
|
|
|
47
47
|
```typescript
|
package/dist/index.js
CHANGED
|
@@ -502,7 +502,7 @@ function checkBasis(b) {
|
|
|
502
502
|
if (!isObj(b)) return false;
|
|
503
503
|
if (b.kind === "grant") {
|
|
504
504
|
const g = b.grant;
|
|
505
|
-
return keysWithin(b, ["kind", "grant"]) && isObj(g) && typeof g.format === "string" &&
|
|
505
|
+
return keysWithin(b, ["kind", "grant"]) && isObj(g) && typeof g.format === "string" && Object.hasOwn(GRANT_FORMATS, g.format) && GRANT_FORMATS[g.format](g) === true;
|
|
506
506
|
}
|
|
507
507
|
return b.kind === "policy" && keysWithin(b, ["kind", "rule"]) && str(b.rule);
|
|
508
508
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -437,7 +437,7 @@ function checkBasis(b) {
|
|
|
437
437
|
if (!isObj(b)) return false;
|
|
438
438
|
if (b.kind === "grant") {
|
|
439
439
|
const g = b.grant;
|
|
440
|
-
return keysWithin(b, ["kind", "grant"]) && isObj(g) && typeof g.format === "string" &&
|
|
440
|
+
return keysWithin(b, ["kind", "grant"]) && isObj(g) && typeof g.format === "string" && Object.hasOwn(GRANT_FORMATS, g.format) && GRANT_FORMATS[g.format](g) === true;
|
|
441
441
|
}
|
|
442
442
|
return b.kind === "policy" && keysWithin(b, ["kind", "rule"]) && str(b.rule);
|
|
443
443
|
}
|