@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.d.cts
CHANGED
|
@@ -1908,6 +1908,6 @@ declare class VeltroClient {
|
|
|
1908
1908
|
* No runtime dependencies: the transport is `fetch`.
|
|
1909
1909
|
*/
|
|
1910
1910
|
|
|
1911
|
-
declare const VERSION = "0.
|
|
1911
|
+
declare const VERSION = "0.19.0";
|
|
1912
1912
|
|
|
1913
1913
|
export { type Auth, BearerToken, ChadClient, ChadResources, DEFAULT_MAX_RESPONSE_BYTES, DEFAULT_RETRIES, DEFAULT_TIMEOUT_MS, MissingCredentialError, NoAuth, type ProductClientOptions, type QueryValue, type RequestOptions, Resource, SESSION_COOKIE_PREFIX, SUITE_PREFIXES, SuiteSession, type SuiteSessionOptions, Transport, type TransportOptions, VERSION, VectorFlowClient, VectorflowResources, VeltroApiError, VeltroClient, type VeltroClientOptions, VeltroError, type VeltroLoginOptions, VeltroResponseTooLargeError, VeltroTransportError, WardenClient, WardenResources, quoteSegment };
|
package/dist/index.d.ts
CHANGED
|
@@ -1908,6 +1908,6 @@ declare class VeltroClient {
|
|
|
1908
1908
|
* No runtime dependencies: the transport is `fetch`.
|
|
1909
1909
|
*/
|
|
1910
1910
|
|
|
1911
|
-
declare const VERSION = "0.
|
|
1911
|
+
declare const VERSION = "0.19.0";
|
|
1912
1912
|
|
|
1913
1913
|
export { type Auth, BearerToken, ChadClient, ChadResources, DEFAULT_MAX_RESPONSE_BYTES, DEFAULT_RETRIES, DEFAULT_TIMEOUT_MS, MissingCredentialError, NoAuth, type ProductClientOptions, type QueryValue, type RequestOptions, Resource, SESSION_COOKIE_PREFIX, SUITE_PREFIXES, SuiteSession, type SuiteSessionOptions, Transport, type TransportOptions, VERSION, VectorFlowClient, VectorflowResources, VeltroApiError, VeltroClient, type VeltroClientOptions, VeltroError, type VeltroLoginOptions, VeltroResponseTooLargeError, VeltroTransportError, WardenClient, WardenResources, quoteSegment };
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ var DEFAULT_MAX_RESPONSE_BYTES = 32 * 1024 * 1024;
|
|
|
4
4
|
var DEFAULT_RETRIES = 2;
|
|
5
5
|
var RETRY_STATUSES = /* @__PURE__ */ new Set([429, 502, 503, 504]);
|
|
6
6
|
var RETRY_METHODS = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS", "PUT", "DELETE"]);
|
|
7
|
-
var USER_AGENT = "veltro-sdk/0.
|
|
7
|
+
var USER_AGENT = "veltro-sdk/0.19.0 (+https://github.com/veltrosecurity/veltro)";
|
|
8
8
|
var VeltroError = class extends Error {
|
|
9
9
|
constructor(message) {
|
|
10
10
|
super(message);
|
|
@@ -358,7 +358,7 @@ var SuiteSession = class {
|
|
|
358
358
|
body: JSON.stringify({ email: this.email, password: this.password })
|
|
359
359
|
});
|
|
360
360
|
const hasSession = [...this.cookies.values()].some(
|
|
361
|
-
(cookie) => cookie.name.startsWith(SESSION_COOKIE_PREFIX)
|
|
361
|
+
(cookie) => cookie.name.replace(/^__Secure-/, "").startsWith(SESSION_COOKIE_PREFIX)
|
|
362
362
|
);
|
|
363
363
|
if (!hasSession) {
|
|
364
364
|
throw new VeltroApiError({
|
|
@@ -3478,7 +3478,7 @@ var VeltroClient = class _VeltroClient {
|
|
|
3478
3478
|
};
|
|
3479
3479
|
|
|
3480
3480
|
// src/index.ts
|
|
3481
|
-
var VERSION = "0.
|
|
3481
|
+
var VERSION = "0.19.0";
|
|
3482
3482
|
export {
|
|
3483
3483
|
BearerToken,
|
|
3484
3484
|
ChadClient,
|