@alwaysmeticulous/client 2.288.0 → 2.288.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/dist/api/replay.api.d.ts +12 -0
- package/dist/api/replay.api.js +2 -2
- package/dist/api/replay.api.js.map +1 -1
- package/dist/api/test-run.api.d.ts +20 -1
- package/dist/api/test-run.api.js +21 -3
- package/dist/api/test-run.api.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/api/replay.api.d.ts
CHANGED
|
@@ -15,5 +15,17 @@ export type ReplayV3UploadLocations = Record<string, S3Location> & {
|
|
|
15
15
|
thumbnail: S3Location;
|
|
16
16
|
full: S3Location;
|
|
17
17
|
}>>;
|
|
18
|
+
/**
|
|
19
|
+
* Grouped, NESTED artifact: a map of custom-check type to its snapshot
|
|
20
|
+
* file. Unlike the flat `Record<string, S3Location>` index signature, the
|
|
21
|
+
* URL lives at `entry.file.signedUrl` (there is no top-level `signedUrl`).
|
|
22
|
+
* The backend returns `{}` for replays without custom-check snapshots.
|
|
23
|
+
*
|
|
24
|
+
* Declared explicitly so consumers don't mistake it for a flat
|
|
25
|
+
* `S3Location` (which would lead to `signedUrl === undefined`).
|
|
26
|
+
*/
|
|
27
|
+
customCheckSnapshots?: Record<string, {
|
|
28
|
+
file: S3Location;
|
|
29
|
+
}>;
|
|
18
30
|
};
|
|
19
31
|
export declare const getReplayV3DownloadUrls: (client: MeticulousClient, replayId: string) => Promise<ReplayV3UploadLocations | null>;
|
package/dist/api/replay.api.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="31eb5ce7-025f-5b07-a649-c97ce8d00078")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = void 0;
|
|
@@ -39,4 +39,4 @@ const getReplayV3DownloadUrls = async (client, replayId) => {
|
|
|
39
39
|
};
|
|
40
40
|
exports.getReplayV3DownloadUrls = getReplayV3DownloadUrls;
|
|
41
41
|
//# sourceMappingURL=replay.api.js.map
|
|
42
|
-
//# debugId=
|
|
42
|
+
//# debugId=31eb5ce7-025f-5b07-a649-c97ce8d00078
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay.api.js","sources":["../../src/api/replay.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AACA,sCAAgE;AAGzD,MAAM,SAAS,GAAG,KAAK,EAC5B,MAAwB,EACxB,QAAgB,EACkB,EAAE;IACpC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM,CAAC,GAAG,CAAC,WAAW,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACvE,IAAI,IAAA,qBAAY,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;YAC1D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,CAAC;QAED,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACH,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAZW,QAAA,SAAS,aAYpB;AAOK,MAAM,oBAAoB,GAGc,KAAK,EAAE,MAAM,EAAE,QAAQ,E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,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,IAAI,IAAA,qBAAY,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;YAC1D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,CAAC;QAED,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAdW,QAAA,oBAAoB,wBAc/B;AAoBK,MAAM,uBAAuB,GAGW,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE;IACxE,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAA0B,WAAW,QAAQ,gBAAgB,CAAC;SACjE,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,IAAI,IAAA,qBAAY,EAAC,KAAK,CAAC,IAAI,KAAK,CAAC,QAAQ,EAAE,MAAM,KAAK,GAAG,EAAE,CAAC;YAC1D,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;QACxB,CAAC;QAED,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAdW,QAAA,uBAAuB,2BAclC","debugId":"31eb5ce7-025f-5b07-a649-c97ce8d00078"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { ExecuteSecureTunnelTestRunOptions as ExecuteSecureTunnelTestRunPayload, ExecuteSecureTunnelTestRunResponse, TestRun, TestRunDataLocations } from "@alwaysmeticulous/api";
|
|
1
|
+
import type { ExecuteSecureTunnelTestRunOptions as ExecuteSecureTunnelTestRunPayload, ExecuteSecureTunnelTestRunResponse, Snapshot, TestRun, TestRunDataLocations } from "@alwaysmeticulous/api";
|
|
2
2
|
import { MeticulousClient } from "../types/client.types";
|
|
3
3
|
import { ReplayDiffResponse } from "./replay-diff.api";
|
|
4
4
|
export type ExecuteSecureTunnelTestRunOptions = ExecuteSecureTunnelTestRunPayload & {
|
|
@@ -31,3 +31,22 @@ export declare const emitTelemetry: ({ client, values, commitSha, }: {
|
|
|
31
31
|
values: Record<string, number>;
|
|
32
32
|
commitSha?: string;
|
|
33
33
|
}) => Promise<void>;
|
|
34
|
+
export interface GetSnapshotsFromTestRunOptions {
|
|
35
|
+
client: MeticulousClient;
|
|
36
|
+
testRunId: string;
|
|
37
|
+
/** The custom check snapshot types to fetch, e.g. ["network-requests"]. */
|
|
38
|
+
snapshotTypes: string[];
|
|
39
|
+
}
|
|
40
|
+
export interface SnapshotsFromTestRun {
|
|
41
|
+
testRunId: string;
|
|
42
|
+
/** The base test run the snapshots were compared against. */
|
|
43
|
+
baseTestRunId: string;
|
|
44
|
+
baseSnapshots: Snapshot[];
|
|
45
|
+
headSnapshots: Snapshot[];
|
|
46
|
+
}
|
|
47
|
+
/**
|
|
48
|
+
* Fetches the custom check snapshots gathered during the base and head replays
|
|
49
|
+
* of a test run, ready to be passed to a custom check's `execute`. Throws if the
|
|
50
|
+
* test run has no resolvable base test run.
|
|
51
|
+
*/
|
|
52
|
+
export declare const getSnapshotsFromTestRun: ({ client, testRunId, snapshotTypes, }: GetSnapshotsFromTestRunOptions) => Promise<SnapshotsFromTestRun>;
|
package/dist/api/test-run.api.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="6c1f22ad-d242-55ac-b041-1686e1d8da15")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.emitTelemetry = exports.getTestRunReplayDiffs = exports.getLatestTestRunResults = exports.getTestRunData = exports.getTestRun = exports.executeSecureTunnelTestRun = void 0;
|
|
5
|
+
exports.getSnapshotsFromTestRun = exports.emitTelemetry = exports.getTestRunReplayDiffs = exports.getLatestTestRunResults = exports.getTestRunData = exports.getTestRun = exports.executeSecureTunnelTestRun = void 0;
|
|
6
6
|
const errors_1 = require("../errors");
|
|
7
7
|
const executeSecureTunnelTestRun = async ({ client, headSha, tunnelUrl, basicAuthUser, basicAuthPassword, environment, isLockable, companionAssetsInfo, pullRequestHostingProviderId, postComment, debugContext, }) => {
|
|
8
8
|
const { data } = await client
|
|
@@ -83,5 +83,23 @@ const emitTelemetry = async ({ client, values, commitSha, }) => {
|
|
|
83
83
|
await client.post(`test-runs/telemetry`, { values, commitSha });
|
|
84
84
|
};
|
|
85
85
|
exports.emitTelemetry = emitTelemetry;
|
|
86
|
+
/**
|
|
87
|
+
* Fetches the custom check snapshots gathered during the base and head replays
|
|
88
|
+
* of a test run, ready to be passed to a custom check's `execute`. Throws if the
|
|
89
|
+
* test run has no resolvable base test run.
|
|
90
|
+
*/
|
|
91
|
+
const getSnapshotsFromTestRun = async ({ client, testRunId, snapshotTypes, }) => {
|
|
92
|
+
const params = new URLSearchParams();
|
|
93
|
+
for (const snapshotType of snapshotTypes) {
|
|
94
|
+
params.append("snapshotTypes", snapshotType);
|
|
95
|
+
}
|
|
96
|
+
const { data } = await client
|
|
97
|
+
.get(`test-runs/${testRunId}/custom-check-snapshots?${params.toString()}`)
|
|
98
|
+
.catch((error) => {
|
|
99
|
+
throw (0, errors_1.maybeEnrichFetchError)(error);
|
|
100
|
+
});
|
|
101
|
+
return data;
|
|
102
|
+
};
|
|
103
|
+
exports.getSnapshotsFromTestRun = getSnapshotsFromTestRun;
|
|
86
104
|
//# sourceMappingURL=test-run.api.js.map
|
|
87
|
-
//# debugId=
|
|
105
|
+
//# debugId=6c1f22ad-d242-55ac-b041-1686e1d8da15
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"test-run.api.js","sources":["../../src/api/test-run.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;
|
|
1
|
+
{"version":3,"file":"test-run.api.js","sources":["../../src/api/test-run.api.ts"],"sourceRoot":"","names":[],"mappings":";;;;;AAOA,sCAAgE;AAWzD,MAAM,0BAA0B,GAAG,KAAK,EAAE,EAC/C,MAAM,EACN,OAAO,EACP,SAAS,EACT,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,UAAU,EACV,mBAAmB,EACnB,4BAA4B,EAC5B,WAAW,EACX,YAAY,GACsB,EAA+C,EAAE;IACnF,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,IAAI,CAAC,6CAA6C,EAAE;QACnD,OAAO;QACP,SAAS;QACT,aAAa;QACb,iBAAiB;QACjB,WAAW;QACX,UAAU;QACV,GAAG,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvC,GAAG,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,mBAAmB,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACvD,GAAG,CAAC,4BAA4B,CAAC,CAAC,CAAC,EAAE,4BAA4B,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACzE,GAAG,CAAC,YAAY,CAAC,CAAC,CAAC,EAAE,YAAY,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KAC1C,CAAC;SACD,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAA0C,CAAC;AACpD,CAAC,CAAC;AA9BW,QAAA,0BAA0B,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M,EACN,SAAS,EACT,aAAa,GACkB,EAAiC,EAAE;IAClE,MAAM,MAAM,GAAG,IAAI,eAAe,EAAE,CAAC;IACrC,KAAK,MAAM,YAAY,IAAI,aAAa,EAAE,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,eAAe,EAAE,YAAY,CAAC,CAAC;IAC/C,CAAC;IACD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,MAAM;SAC1B,GAAG,CAGF,aAAa,SAAS,2BAA2B,MAAM,CAAC,QAAQ,EAAE,EAAE,CAAC;SACtE,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;QACf,MAAM,IAAA,8BAAqB,EAAC,KAAK,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IACL,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAlBW,QAAA,uBAAuB,2BAkBlC","debugId":"6c1f22ad-d242-55ac-b041-1686e1d8da15"}
|
package/dist/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export { ReplayV3UploadLocations, getReplay, getReplayDownloadUrl, getReplayV3Do
|
|
|
6
6
|
export { getRecordedSession, getRecordedSessionData, getRecordingCommandId, postSessionIdNotification, } from "./api/session.api";
|
|
7
7
|
export { ReplayDiffResponse, getReplayDiff } from "./api/replay-diff.api";
|
|
8
8
|
export { getPrDescriptionForTestRun, getPrDiff, getPrDiffForTestRun, } from "./api/source-code.api";
|
|
9
|
-
export { ExecuteSecureTunnelTestRunOptions, executeSecureTunnelTestRun, getTestRun, getTestRunData, getTestRunReplayDiffs, GetLatestTestRunOptions, getLatestTestRunResults, TestRun, emitTelemetry, } from "./api/test-run.api";
|
|
9
|
+
export { ExecuteSecureTunnelTestRunOptions, executeSecureTunnelTestRun, getTestRun, getTestRunData, getTestRunReplayDiffs, GetLatestTestRunOptions, getLatestTestRunResults, TestRun, emitTelemetry, GetSnapshotsFromTestRunOptions, SnapshotsFromTestRun, getSnapshotsFromTestRun, } from "./api/test-run.api";
|
|
10
10
|
export { GetIsLockedOptions, getIsLocked } from "./api/deployment-lock.api";
|
|
11
11
|
export { IN_PROGRESS_TEST_RUN_STATUS } from "./api/test-run.constants";
|
|
12
12
|
export { getApiToken, getAuthToken } from "./api-token.utils";
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="
|
|
2
|
+
!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="ba2ed0e7-7e96-57f1-9f8b-a23eb8d7a02e")}catch(e){}}();
|
|
3
3
|
|
|
4
4
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
5
|
if (k2 === undefined) k2 = k;
|
|
@@ -16,8 +16,8 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
16
16
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
17
17
|
};
|
|
18
18
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
19
|
-
exports.
|
|
20
|
-
exports.getRelevantSessions = exports.isFetchError = exports.getRegistryAuth = exports.getContainerDeployment = exports.downloadProjectDeployment = exports.completeContainerUpload = exports.completeAssetUpload = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = exports.retryTransientUploadErrors = exports.isTransientUploadError = exports.UploadError = exports.putFileToSignedUrl = void 0;
|
|
19
|
+
exports.isOAuthJwt = exports.isJwtExpired = exports.getJwtClaims = exports.setStoredProject = exports.getStoredProjectId = exports.getStoredProject = exports.getStoredOAuthTokens = exports.clearStoredProject = exports.clearOAuthTokens = exports.getValidAccessToken = exports.performOAuthLogin = exports.resolveApiTokenWithOAuth = exports.makeRequest = exports.isInteractiveContext = exports.createClientWithOAuth = exports.createClient = exports.getAuthToken = exports.getApiToken = exports.IN_PROGRESS_TEST_RUN_STATUS = exports.getIsLocked = exports.getSnapshotsFromTestRun = exports.emitTelemetry = exports.getLatestTestRunResults = exports.getTestRunReplayDiffs = exports.getTestRunData = exports.getTestRun = exports.executeSecureTunnelTestRun = exports.getPrDiffForTestRun = exports.getPrDiff = exports.getPrDescriptionForTestRun = exports.getReplayDiff = exports.postSessionIdNotification = exports.getRecordingCommandId = exports.getRecordedSessionData = exports.getRecordedSession = exports.getReplayV3DownloadUrls = exports.getReplayDownloadUrl = exports.getReplay = exports.requestSourceCodeUploadUrl = exports.getSourceArchiveUrl = exports.getRepoUrl = exports.getProject = exports.getOAuthProjects = exports.getWhoami = exports.trackAgentFeatureUsage = exports.getTimelineDiff = exports.getScreenshotUrls = exports.getScreenshotDomDiff = exports.getTestRunDiffsSummary = exports.getStructuredSessionData = void 0;
|
|
20
|
+
exports.getRelevantSessions = exports.isFetchError = exports.getRegistryAuth = exports.getContainerDeployment = exports.downloadProjectDeployment = exports.completeContainerUpload = exports.completeAssetUpload = exports.requestGitDiffUpload = exports.requestUploadPart = exports.requestMultipartAssetUpload = exports.requestAssetUpload = exports.retryTransientUploadErrors = exports.isTransientUploadError = exports.UploadError = exports.putFileToSignedUrl = exports.getProxyAgent = void 0;
|
|
21
21
|
var agent_api_1 = require("./api/agent.api");
|
|
22
22
|
Object.defineProperty(exports, "getStructuredSessionData", { enumerable: true, get: function () { return agent_api_1.getStructuredSessionData; } });
|
|
23
23
|
Object.defineProperty(exports, "getTestRunDiffsSummary", { enumerable: true, get: function () { return agent_api_1.getTestRunDiffsSummary; } });
|
|
@@ -56,6 +56,7 @@ Object.defineProperty(exports, "getTestRunData", { enumerable: true, get: functi
|
|
|
56
56
|
Object.defineProperty(exports, "getTestRunReplayDiffs", { enumerable: true, get: function () { return test_run_api_1.getTestRunReplayDiffs; } });
|
|
57
57
|
Object.defineProperty(exports, "getLatestTestRunResults", { enumerable: true, get: function () { return test_run_api_1.getLatestTestRunResults; } });
|
|
58
58
|
Object.defineProperty(exports, "emitTelemetry", { enumerable: true, get: function () { return test_run_api_1.emitTelemetry; } });
|
|
59
|
+
Object.defineProperty(exports, "getSnapshotsFromTestRun", { enumerable: true, get: function () { return test_run_api_1.getSnapshotsFromTestRun; } });
|
|
59
60
|
var deployment_lock_api_1 = require("./api/deployment-lock.api");
|
|
60
61
|
Object.defineProperty(exports, "getIsLocked", { enumerable: true, get: function () { return deployment_lock_api_1.getIsLocked; } });
|
|
61
62
|
var test_run_constants_1 = require("./api/test-run.constants");
|
|
@@ -108,4 +109,4 @@ Object.defineProperty(exports, "isFetchError", { enumerable: true, get: function
|
|
|
108
109
|
var local_changes_api_1 = require("./api/local-changes.api");
|
|
109
110
|
Object.defineProperty(exports, "getRelevantSessions", { enumerable: true, get: function () { return local_changes_api_1.getRelevantSessions; } });
|
|
110
111
|
//# sourceMappingURL=index.js.map
|
|
111
|
-
//# debugId=
|
|
112
|
+
//# debugId=ba2ed0e7-7e96-57f1-9f8b-a23eb8d7a02e
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../src/index.ts"],"sourceRoot":"","names":[],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA,6CAkByB;AANvB,qHAAA,wBAAwB,OAAA;AACxB,mHAAA,sBAAsB,OAAA;AACtB,iHAAA,oBAAoB,OAAA;AACpB,8GAAA,iBAAiB,OAAA;AACjB,4GAAA,eAAe,OAAA;AACf,mHAAA,sBAAsB,OAAA;AAExB,gEAA8C;AAC9C,6CAOyB;AAJvB,sGAAA,SAAS,OAAA;AAGT,6GAAA,gBAAgB,OAAA;AAElB,iDAW2B;AARzB,yGAAA,UAAU,OAAA;AACV,yGAAA,UAAU,O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OAAA;AAGnB,kIAAA,uBAAuB,OAAA;AAGvB,oIAAA,yBAAyB,OAAA;AAEzB,iIAAA,sBAAsB,OAAA;AAGxB,mDAA8E;AAA5C,+GAAA,eAAe,OAAA;AACjD,mCAAwC;AAA/B,sGAAA,YAAY,OAAA;AACrB,6DAMiC;AAD/B,wHAAA,mBAAmB,OAAA","debugId":"ba2ed0e7-7e96-57f1-9f8b-a23eb8d7a02e"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alwaysmeticulous/client",
|
|
3
|
-
"version": "2.288.
|
|
3
|
+
"version": "2.288.2",
|
|
4
4
|
"description": "Helper methods for using the Meticulous backend API",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"loglevel": "^1.8.0",
|
|
13
13
|
"proxy-agent": "^6.4.0",
|
|
14
14
|
"undici": "^6.24.1",
|
|
15
|
-
"@alwaysmeticulous/api": "2.288.
|
|
15
|
+
"@alwaysmeticulous/api": "2.288.2",
|
|
16
16
|
"@alwaysmeticulous/common": "2.287.1"
|
|
17
17
|
},
|
|
18
18
|
"author": {
|