@veltrosecurity/sdk 0.18.0 → 0.19.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/index.cjs +3 -3
- 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 +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -53,7 +53,7 @@ var DEFAULT_MAX_RESPONSE_BYTES = 32 * 1024 * 1024;
|
|
|
53
53
|
var DEFAULT_RETRIES = 2;
|
|
54
54
|
var RETRY_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
|
|
55
55
|
var RETRY_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]);
|
|
56
|
-
var USER_AGENT = "veltro-sdk/0.
|
|
56
|
+
var USER_AGENT = "veltro-sdk/0.19.0 (+https://github.com/veltrosecurity/veltro)";
|
|
57
57
|
var VeltroError = class extends Error {
|
|
58
58
|
constructor(message) {
|
|
59
59
|
super(message);
|
|
@@ -407,7 +407,7 @@ var SuiteSession = class {
|
|
|
407
407
|
body: JSON.stringify({ email: this.email, password: this.password })
|
|
408
408
|
});
|
|
409
409
|
const hasSession = [...this.cookies.values()].some(
|
|
410
|
-
(cookie) => cookie.name.startsWith(SESSION_COOKIE_PREFIX)
|
|
410
|
+
(cookie) => cookie.name.replace(/^__Secure-/, "").startsWith(SESSION_COOKIE_PREFIX)
|
|
411
411
|
);
|
|
412
412
|
if (!hasSession) {
|
|
413
413
|
throw new VeltroApiError({
|
|
@@ -3527,7 +3527,7 @@ var VeltroClient = class _VeltroClient {
|
|
|
3527
3527
|
};
|
|
3528
3528
|
|
|
3529
3529
|
// src/index.ts
|
|
3530
|
-
var VERSION = "0.
|
|
3530
|
+
var VERSION = "0.19.0";
|
|
3531
3531
|
// Annotate the CommonJS export names for ESM import in node:
|
|
3532
3532
|
0 && (module.exports = {
|
|
3533
3533
|
BearerToken,
|