@rebilly/instruments 16.168.0 → 16.168.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/CHANGELOG.md +3 -3
- package/dist/index.js +45 -39
- package/dist/index.min.js +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
## [16.168.
|
|
1
|
+
## [16.168.2](https://github.com/Rebilly/rebilly/compare/instruments/core-v16.168.1...instruments/core-v16.168.2) (2026-08-06)
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
###
|
|
4
|
+
### Bug Fixes
|
|
5
5
|
|
|
6
|
-
* **recomm:**
|
|
6
|
+
* **recomm,rebilly-js-sdk:** Normalize collection sort parameters ([#24405](https://github.com/Rebilly/rebilly/issues/24405)) ([1e851cb](https://github.com/Rebilly/rebilly/commit/1e851cbb378db7520b8286c8639b026a94dbefa4))
|
package/dist/index.js
CHANGED
|
@@ -5424,23 +5424,23 @@ function te$1() {
|
|
|
5424
5424
|
if (Y$1) return x$1;
|
|
5425
5425
|
Y$1 = 1;
|
|
5426
5426
|
var t2 = Object.prototype.toString;
|
|
5427
|
-
x$1 = function(
|
|
5428
|
-
if (
|
|
5429
|
-
if (
|
|
5430
|
-
var h2 = typeof
|
|
5427
|
+
x$1 = function(p) {
|
|
5428
|
+
if (p === void 0) return "undefined";
|
|
5429
|
+
if (p === null) return "null";
|
|
5430
|
+
var h2 = typeof p;
|
|
5431
5431
|
if (h2 === "boolean") return "boolean";
|
|
5432
5432
|
if (h2 === "string") return "string";
|
|
5433
5433
|
if (h2 === "number") return "number";
|
|
5434
5434
|
if (h2 === "symbol") return "symbol";
|
|
5435
5435
|
if (h2 === "function")
|
|
5436
|
-
return o2(
|
|
5437
|
-
if (s(
|
|
5438
|
-
if (f(
|
|
5439
|
-
if (i(
|
|
5440
|
-
if (n2(
|
|
5441
|
-
if (r2(
|
|
5442
|
-
if (u(
|
|
5443
|
-
switch (e2(
|
|
5436
|
+
return o2(p) ? "generatorfunction" : "function";
|
|
5437
|
+
if (s(p)) return "array";
|
|
5438
|
+
if (f(p)) return "buffer";
|
|
5439
|
+
if (i(p)) return "arguments";
|
|
5440
|
+
if (n2(p)) return "date";
|
|
5441
|
+
if (r2(p)) return "error";
|
|
5442
|
+
if (u(p)) return "regexp";
|
|
5443
|
+
switch (e2(p)) {
|
|
5444
5444
|
case "Symbol":
|
|
5445
5445
|
return "symbol";
|
|
5446
5446
|
case "Promise":
|
|
@@ -5476,9 +5476,9 @@ function te$1() {
|
|
|
5476
5476
|
case "Float64Array":
|
|
5477
5477
|
return "float64array";
|
|
5478
5478
|
}
|
|
5479
|
-
if (l(
|
|
5479
|
+
if (l(p))
|
|
5480
5480
|
return "generator";
|
|
5481
|
-
switch (h2 = t2.call(
|
|
5481
|
+
switch (h2 = t2.call(p), h2) {
|
|
5482
5482
|
case "[object Object]":
|
|
5483
5483
|
return "object";
|
|
5484
5484
|
// iterators
|
|
@@ -5508,7 +5508,7 @@ function te$1() {
|
|
|
5508
5508
|
function u(g) {
|
|
5509
5509
|
return g instanceof RegExp ? true : typeof g.flags == "string" && typeof g.ignoreCase == "boolean" && typeof g.multiline == "boolean" && typeof g.global == "boolean";
|
|
5510
5510
|
}
|
|
5511
|
-
function o2(g,
|
|
5511
|
+
function o2(g, p) {
|
|
5512
5512
|
return e2(g) === "GeneratorFunction";
|
|
5513
5513
|
}
|
|
5514
5514
|
function l(g) {
|
|
@@ -5518,8 +5518,8 @@ function te$1() {
|
|
|
5518
5518
|
try {
|
|
5519
5519
|
if (typeof g.length == "number" && typeof g.callee == "function")
|
|
5520
5520
|
return true;
|
|
5521
|
-
} catch (
|
|
5522
|
-
if (
|
|
5521
|
+
} catch (p) {
|
|
5522
|
+
if (p.message.indexOf("callee") !== -1)
|
|
5523
5523
|
return true;
|
|
5524
5524
|
}
|
|
5525
5525
|
return false;
|
|
@@ -5779,7 +5779,7 @@ function O$1({ options: t2 }) {
|
|
|
5779
5779
|
}
|
|
5780
5780
|
function o2() {
|
|
5781
5781
|
const a = {
|
|
5782
|
-
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@
|
|
5782
|
+
"REB-API-CONSUMER": `${["Rebilly", t2.appName, "js-sdk"].filter((m2) => m2).join("/")}@1e851cb`
|
|
5783
5783
|
};
|
|
5784
5784
|
return t2.apiKey && (a["REB-APIKEY"] = t2.apiKey), a;
|
|
5785
5785
|
}
|
|
@@ -5797,7 +5797,7 @@ function O$1({ options: t2 }) {
|
|
|
5797
5797
|
const a = l();
|
|
5798
5798
|
t2.publishableKey = c, a.common.Authorization = `${c}`, e2.defaults.headers = a;
|
|
5799
5799
|
}
|
|
5800
|
-
function
|
|
5800
|
+
function p({ host: c, port: a, auth: m2 }) {
|
|
5801
5801
|
e2.defaults.proxy = {
|
|
5802
5802
|
host: c,
|
|
5803
5803
|
port: a,
|
|
@@ -5841,15 +5841,15 @@ function O$1({ options: t2 }) {
|
|
|
5841
5841
|
N2(v.response, c);
|
|
5842
5842
|
}
|
|
5843
5843
|
function w({ request: c, isCollection: a, config: m2 }) {
|
|
5844
|
-
const
|
|
5845
|
-
|
|
5844
|
+
const $2 = z2(m2), { id: b, cancelToken: $e2 } = q$1.save();
|
|
5845
|
+
$2.cancelToken = $e2;
|
|
5846
5846
|
const W2 = (async function() {
|
|
5847
5847
|
try {
|
|
5848
|
-
const d = await c(
|
|
5848
|
+
const d = await c($2);
|
|
5849
5849
|
return oe2({
|
|
5850
5850
|
response: d,
|
|
5851
5851
|
isCollection: a,
|
|
5852
|
-
config:
|
|
5852
|
+
config: $2
|
|
5853
5853
|
});
|
|
5854
5854
|
} catch (d) {
|
|
5855
5855
|
return L2({ error: d });
|
|
@@ -5884,8 +5884,14 @@ function O$1({ options: t2 }) {
|
|
|
5884
5884
|
}
|
|
5885
5885
|
function le2(c) {
|
|
5886
5886
|
return c.params !== void 0 && (c.params = Object.keys(c.params).filter(
|
|
5887
|
-
(a) =>
|
|
5888
|
-
|
|
5887
|
+
(a) => {
|
|
5888
|
+
var m2;
|
|
5889
|
+
return c.params[a] !== null && c.params[a] !== "" && !(a === "sort" && ((m2 = c.params[a]) == null ? void 0 : m2.length) === 0);
|
|
5890
|
+
}
|
|
5891
|
+
).reduce((a, m2) => {
|
|
5892
|
+
const $2 = c.params[m2];
|
|
5893
|
+
return a[m2] = m2 === "sort" && Array.isArray($2) ? $2.join(",") : $2, a;
|
|
5894
|
+
}, {})), c;
|
|
5889
5895
|
}
|
|
5890
5896
|
function z2(c = {}) {
|
|
5891
5897
|
return { ...le2(c) };
|
|
@@ -5904,15 +5910,15 @@ function O$1({ options: t2 }) {
|
|
|
5904
5910
|
});
|
|
5905
5911
|
}
|
|
5906
5912
|
function V2(c, a, m2 = {}) {
|
|
5907
|
-
let
|
|
5908
|
-
return m2.authenticate === false && (
|
|
5913
|
+
let $2 = {};
|
|
5914
|
+
return m2.authenticate === false && ($2 = { headers: l() }, delete $2.headers.common["REB-APIKEY"], delete $2.headers.common.Authorization), m2.params && ($2.params = { ...m2.params }), w({
|
|
5909
5915
|
request: (b) => e2.post(c, a, b),
|
|
5910
|
-
config:
|
|
5916
|
+
config: $2
|
|
5911
5917
|
});
|
|
5912
5918
|
}
|
|
5913
5919
|
function J2(c, a, m2 = {}) {
|
|
5914
5920
|
return w({
|
|
5915
|
-
request: (
|
|
5921
|
+
request: ($2) => e2.put(c, a, $2),
|
|
5916
5922
|
config: { params: m2 }
|
|
5917
5923
|
});
|
|
5918
5924
|
}
|
|
@@ -5934,9 +5940,9 @@ function O$1({ options: t2 }) {
|
|
|
5934
5940
|
config: { data: { ...a } }
|
|
5935
5941
|
});
|
|
5936
5942
|
}
|
|
5937
|
-
async function me2(c, a, m2,
|
|
5943
|
+
async function me2(c, a, m2, $2 = {}) {
|
|
5938
5944
|
if (a === "")
|
|
5939
|
-
return V2(c, m2, { params:
|
|
5945
|
+
return V2(c, m2, { params: $2 });
|
|
5940
5946
|
try {
|
|
5941
5947
|
if ((await U2(c)).response.status === 200)
|
|
5942
5948
|
throw new y.RebillyConflictError({
|
|
@@ -5944,17 +5950,17 @@ function O$1({ options: t2 }) {
|
|
|
5944
5950
|
});
|
|
5945
5951
|
} catch (b) {
|
|
5946
5952
|
if (b.name === "RebillyNotFoundError")
|
|
5947
|
-
return J2(c, m2,
|
|
5953
|
+
return J2(c, m2, $2);
|
|
5948
5954
|
throw b;
|
|
5949
5955
|
}
|
|
5950
5956
|
}
|
|
5951
5957
|
async function fe2(c, a) {
|
|
5952
5958
|
const m2 = z2(a);
|
|
5953
5959
|
try {
|
|
5954
|
-
const
|
|
5955
|
-
return new Ae$1(
|
|
5956
|
-
} catch (
|
|
5957
|
-
return L2({ error:
|
|
5960
|
+
const $2 = await e2.get(c, m2);
|
|
5961
|
+
return new Ae$1($2, m2);
|
|
5962
|
+
} catch ($2) {
|
|
5963
|
+
return L2({ error: $2 });
|
|
5958
5964
|
}
|
|
5959
5965
|
}
|
|
5960
5966
|
return {
|
|
@@ -5964,7 +5970,7 @@ function O$1({ options: t2 }) {
|
|
|
5964
5970
|
addResponseInterceptor: ne2,
|
|
5965
5971
|
removeResponseInterceptor: ue2,
|
|
5966
5972
|
setTimeout: i,
|
|
5967
|
-
setProxyAgent:
|
|
5973
|
+
setProxyAgent: p,
|
|
5968
5974
|
setSessionToken: f,
|
|
5969
5975
|
setPublishableKey: g,
|
|
5970
5976
|
setEndpoints: h2,
|
|
@@ -9998,7 +10004,7 @@ function As({ apiHandler: t2 }) {
|
|
|
9998
10004
|
offset: i = null,
|
|
9999
10005
|
filter: f = null,
|
|
10000
10006
|
sort: g = null,
|
|
10001
|
-
criteria:
|
|
10007
|
+
criteria: p = null
|
|
10002
10008
|
}) {
|
|
10003
10009
|
const h2 = {
|
|
10004
10010
|
aggregationField: e2,
|
|
@@ -10011,7 +10017,7 @@ function As({ apiHandler: t2 }) {
|
|
|
10011
10017
|
offset: i,
|
|
10012
10018
|
filter: f,
|
|
10013
10019
|
sort: g,
|
|
10014
|
-
criteria:
|
|
10020
|
+
criteria: p
|
|
10015
10021
|
};
|
|
10016
10022
|
return t2.get("reports/retention-value", h2);
|
|
10017
10023
|
},
|