@anuma/sdk 10.2.1 → 10.2.3
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/dist/client/index.d.mts +1 -4
- package/dist/client/index.d.ts +1 -4
- package/dist/expo/{chunk-WRZTH4OS.mjs → chunk-ZIN4E7MR.mjs} +7 -0
- package/dist/expo/{consolidate-HKL5EGZT.mjs → consolidate-4WLZMXOS.mjs} +1 -1
- package/dist/expo/index.cjs +200 -103
- package/dist/expo/index.d.mts +3 -0
- package/dist/expo/index.d.ts +3 -0
- package/dist/expo/index.mjs +168 -79
- package/dist/index.cjs +7 -0
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.mjs +7 -0
- package/dist/react/{chunk-RSA3S6OA.mjs → chunk-7JYVPYGQ.mjs} +7 -0
- package/dist/react/{consolidate-WFTPBHDV.mjs → consolidate-3RQL75PJ.mjs} +1 -1
- package/dist/react/index.cjs +506 -409
- package/dist/react/index.d.mts +3 -0
- package/dist/react/index.d.ts +3 -0
- package/dist/react/index.mjs +358 -269
- package/dist/server/{chunk-QEROZ4VH.mjs → chunk-QK62YWBH.mjs} +7 -0
- package/dist/server/{consolidate-PYED62LW.mjs → consolidate-NW4UVA6T.mjs} +1 -1
- package/dist/server/index.cjs +7 -0
- package/dist/server/index.d.mts +3 -0
- package/dist/server/index.d.ts +3 -0
- package/dist/server/index.mjs +2 -2
- package/package.json +1 -1
package/dist/client/index.d.mts
CHANGED
|
@@ -11837,10 +11837,7 @@ type GetOauthConsentResponses = {
|
|
|
11837
11837
|
};
|
|
11838
11838
|
type GetOauthConsentResponse = GetOauthConsentResponses[keyof GetOauthConsentResponses];
|
|
11839
11839
|
type PostOauthConsentData = {
|
|
11840
|
-
|
|
11841
|
-
* Daily spending cap in USD
|
|
11842
|
-
*/
|
|
11843
|
-
body?: number;
|
|
11840
|
+
body?: string;
|
|
11844
11841
|
path?: never;
|
|
11845
11842
|
query?: never;
|
|
11846
11843
|
url: '/oauth/consent';
|
package/dist/client/index.d.ts
CHANGED
|
@@ -11837,10 +11837,7 @@ type GetOauthConsentResponses = {
|
|
|
11837
11837
|
};
|
|
11838
11838
|
type GetOauthConsentResponse = GetOauthConsentResponses[keyof GetOauthConsentResponses];
|
|
11839
11839
|
type PostOauthConsentData = {
|
|
11840
|
-
|
|
11841
|
-
* Daily spending cap in USD
|
|
11842
|
-
*/
|
|
11843
|
-
body?: number;
|
|
11840
|
+
body?: string;
|
|
11844
11841
|
path?: never;
|
|
11845
11842
|
query?: never;
|
|
11846
11843
|
url: '/oauth/consent';
|
|
@@ -150,6 +150,7 @@ function isWordChar(ch) {
|
|
|
150
150
|
}
|
|
151
151
|
var PiiRedactor = class {
|
|
152
152
|
constructor(options = {}) {
|
|
153
|
+
this.disposed = false;
|
|
153
154
|
/** Maps original PII value → placeholder tag. */
|
|
154
155
|
this.valueToPlaceholder = /* @__PURE__ */ new Map();
|
|
155
156
|
/** Maps placeholder tag → original PII value (reverse lookup for de-anonymization). */
|
|
@@ -224,6 +225,7 @@ var PiiRedactor = class {
|
|
|
224
225
|
* The same value always gets the same placeholder within a redactor instance.
|
|
225
226
|
*/
|
|
226
227
|
getPlaceholder(category, value) {
|
|
228
|
+
if (this.disposed) throw new Error("PII redactor session ended");
|
|
227
229
|
const normalizedValue = value.trim();
|
|
228
230
|
const existing = this.valueToPlaceholder.get(normalizedValue);
|
|
229
231
|
if (existing) return existing;
|
|
@@ -599,6 +601,11 @@ var PiiRedactor = class {
|
|
|
599
601
|
this.warnedNonText = false;
|
|
600
602
|
this.warnedNerFailure = false;
|
|
601
603
|
}
|
|
604
|
+
/** Clear the mappings and prevent new reversible mappings. */
|
|
605
|
+
dispose() {
|
|
606
|
+
this.disposed = true;
|
|
607
|
+
this.clear();
|
|
608
|
+
}
|
|
602
609
|
};
|
|
603
610
|
function isPiiRedactor(value) {
|
|
604
611
|
return typeof value === "object" && value !== null && typeof value.redactMessages === "function" && typeof value.deAnonymize === "function";
|