@delopay/sdk 0.361.0 → 0.363.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/dist/{chunk-P2Q4GXEB.js → chunk-5OPD7K5O.js} +18 -35
- package/dist/chunk-5OPD7K5O.js.map +1 -0
- package/dist/{index-BbyUEY-4.d.cts → index-DI8uA8rc.d.cts} +42 -37
- package/dist/{index-BbyUEY-4.d.ts → index-DI8uA8rc.d.ts} +42 -37
- package/dist/index.cjs +17 -34
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +17 -34
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +2 -2
- package/dist/internal.d.ts +2 -2
- package/dist/internal.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-P2Q4GXEB.js.map +0 -1
|
@@ -1983,29 +1983,6 @@ var ChargebackPrevention = class {
|
|
|
1983
1983
|
async listConnections() {
|
|
1984
1984
|
return this.request("GET", "/chargeback-prevention/connections");
|
|
1985
1985
|
}
|
|
1986
|
-
/**
|
|
1987
|
-
* Connect a provider account. DeloPay checks the key with the provider,
|
|
1988
|
-
* registers its webhooks there and starts reading alerts. Dashboard session
|
|
1989
|
-
* only.
|
|
1990
|
-
*/
|
|
1991
|
-
async connect(params) {
|
|
1992
|
-
return this.request("POST", "/chargeback-prevention/connections", { body: params });
|
|
1993
|
-
}
|
|
1994
|
-
/** Replace a connection's key; reconnects one whose key was refused. */
|
|
1995
|
-
async replaceKey(connectionId, params) {
|
|
1996
|
-
return this.request(
|
|
1997
|
-
"PUT",
|
|
1998
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/key`,
|
|
1999
|
-
{ body: params }
|
|
2000
|
-
);
|
|
2001
|
-
}
|
|
2002
|
-
/** Stop reading a connection. Its cases are kept. */
|
|
2003
|
-
async disconnect(connectionId) {
|
|
2004
|
-
return this.request(
|
|
2005
|
-
"DELETE",
|
|
2006
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}`
|
|
2007
|
-
);
|
|
2008
|
-
}
|
|
2009
1986
|
/** Read the connection's alerts again as soon as the provider allows. */
|
|
2010
1987
|
async syncNow(connectionId) {
|
|
2011
1988
|
return this.request(
|
|
@@ -2013,14 +1990,6 @@ var ChargebackPrevention = class {
|
|
|
2013
1990
|
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/sync`
|
|
2014
1991
|
);
|
|
2015
1992
|
}
|
|
2016
|
-
/** Set the shops a provider business account sells through; its cases are matched again. */
|
|
2017
|
-
async mapAccount(connectionId, providerAccountId, params) {
|
|
2018
|
-
return this.request(
|
|
2019
|
-
"PUT",
|
|
2020
|
-
`/chargeback-prevention/connections/${encodeURIComponent(connectionId)}/accounts/${encodeURIComponent(providerAccountId)}`,
|
|
2021
|
-
{ body: params }
|
|
2022
|
-
);
|
|
2023
|
-
}
|
|
2024
1993
|
/** Cases with what DeloPay's records say happened to each payment. */
|
|
2025
1994
|
async listCases(params) {
|
|
2026
1995
|
return this.request("GET", "/chargeback-prevention/cases", {
|
|
@@ -12344,6 +12313,7 @@ function enigmaCustomCssProblem(css) {
|
|
|
12344
12313
|
if (/[^\x20-\x7e\n\r\t]/.test(css)) return "not_ascii";
|
|
12345
12314
|
if (css.includes("<")) return "markup";
|
|
12346
12315
|
if (css.includes("\\")) return "escape";
|
|
12316
|
+
if (/["']/.test(css)) return "quote";
|
|
12347
12317
|
const lower = css.toLowerCase();
|
|
12348
12318
|
if (lower.includes("/*")) return "comment";
|
|
12349
12319
|
if (["url(", "image-set(", "image(", "element(", "cross-fade(", "src(", "data:"].some(
|
|
@@ -12359,9 +12329,19 @@ function enigmaCustomCssProblem(css) {
|
|
|
12359
12329
|
if (/@(?!media)/.test(lower)) return "at_rule";
|
|
12360
12330
|
const compact = lower.split(/\s+/).filter(Boolean).join(" ");
|
|
12361
12331
|
const blocks = [];
|
|
12332
|
+
const brackets = [];
|
|
12362
12333
|
let text = "";
|
|
12363
12334
|
for (const ch of compact) {
|
|
12364
|
-
if (ch === "{")
|
|
12335
|
+
if ((ch === "{" || ch === "}" || ch === ";") && brackets.length > 0) return "misplaced";
|
|
12336
|
+
if (ch === "(" || ch === "[") {
|
|
12337
|
+
brackets.push(ch);
|
|
12338
|
+
text += ch;
|
|
12339
|
+
} else if (ch === ")" || ch === "]") {
|
|
12340
|
+
if (brackets.pop() !== (ch === ")" ? "(" : "[")) return "unbalanced";
|
|
12341
|
+
text += ch;
|
|
12342
|
+
} else if (ch === "{") {
|
|
12343
|
+
const outer = blocks[blocks.length - 1];
|
|
12344
|
+
if (outer && !outer.media) return "misplaced";
|
|
12365
12345
|
const prelude = text.trim();
|
|
12366
12346
|
text = "";
|
|
12367
12347
|
const media = prelude.startsWith("@media");
|
|
@@ -12376,9 +12356,11 @@ function enigmaCustomCssProblem(css) {
|
|
|
12376
12356
|
const top = blocks[blocks.length - 1];
|
|
12377
12357
|
if (!top) {
|
|
12378
12358
|
if (ch === "}") return "unbalanced";
|
|
12359
|
+
if (declaration.trim()) return "misplaced";
|
|
12379
12360
|
continue;
|
|
12380
12361
|
}
|
|
12381
|
-
if (
|
|
12362
|
+
if (declaration.trim()) {
|
|
12363
|
+
if (top.media) return "misplaced";
|
|
12382
12364
|
const problem = declarationProblem(top.selector.replace(/, /g, ","), declaration);
|
|
12383
12365
|
if (problem) return problem;
|
|
12384
12366
|
}
|
|
@@ -12387,7 +12369,8 @@ function enigmaCustomCssProblem(css) {
|
|
|
12387
12369
|
text += ch;
|
|
12388
12370
|
}
|
|
12389
12371
|
}
|
|
12390
|
-
|
|
12372
|
+
if (blocks.length > 0 || brackets.length > 0) return "unbalanced";
|
|
12373
|
+
return text.trim() ? "misplaced" : null;
|
|
12391
12374
|
}
|
|
12392
12375
|
function enigmaCornerPx(corner) {
|
|
12393
12376
|
return { square: 0, small: 6, medium: 8, large: 12, pill: 22 }[corner];
|
|
@@ -16971,4 +16954,4 @@ export {
|
|
|
16971
16954
|
decodeNativePanes,
|
|
16972
16955
|
encodeNativePanes
|
|
16973
16956
|
};
|
|
16974
|
-
//# sourceMappingURL=chunk-
|
|
16957
|
+
//# sourceMappingURL=chunk-5OPD7K5O.js.map
|