@innspel/core 0.2.0 → 0.2.1
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 +6 -2
- package/dist/index.d.ts +6 -2
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -400,7 +400,11 @@ interface CaptureBase {
|
|
|
400
400
|
* og kan feile alene (DD-42) — se `CaptureResult.attachment`.
|
|
401
401
|
*/
|
|
402
402
|
attachment?: AttachmentInput;
|
|
403
|
-
/**
|
|
403
|
+
/**
|
|
404
|
+
* Legges på konteksten fra `init` — typisk `screen`. Et felt satt til
|
|
405
|
+
* `undefined` FJERNES fra innsendingen (DD-05, «Fjern» i kontekstlinja); et
|
|
406
|
+
* felt som ikke nevnes, beholdes fra `init`.
|
|
407
|
+
*/
|
|
404
408
|
context?: Partial<ContextInput>;
|
|
405
409
|
/**
|
|
406
410
|
* Idempotensnøkkel for offline-køen. Settes av kjernen hvis den utelates:
|
|
@@ -724,6 +728,6 @@ declare function dekkerAlt(rekter: readonly MaskRect[], bilde: {
|
|
|
724
728
|
* ikke kan lese JSON, og `test/versjon.test.ts` holder den i takt med
|
|
725
729
|
* `package.json`.
|
|
726
730
|
*/
|
|
727
|
-
declare const VERSJON = "0.2.
|
|
731
|
+
declare const VERSJON = "0.2.1";
|
|
728
732
|
|
|
729
733
|
export { type AttachmentBody, type AttachmentInput, type SubmissionsAttachmentMime as AttachmentMime, type AttachmentOutcome, type SubmissionsAttachmentView as AttachmentView, type CaptureFeil, type CaptureInput, type CaptureOnske, type CaptureResult, type ContextInput, type CommonCorrelation as Correlation, type CommonErrorCode as ErrorCode, type FlushResult, type IdentityProvider, InnspelApiError, type InnspelClient, InnspelConfigError, type InnspelOptions, InnspelQueueFullError, type InnspelStorage, KONTEKST_FELTER, KO_TAK, type KnownIssuesKnownIssueCard as KnownIssueCard, type KnownIssueQuery, type SubmissionsKnownIssueRef as KnownIssueRef, type KnownIssuesKnownIssueStatus as KnownIssueStatus, type MaskPoint, type MaskRect, type ProgramsMyPrograms as MyPrograms, type MySubmission, type OpenFeedbackOptions, type PatternFinding, type PatternKind, type CommonPlatform as Platform, type Presenter, type QueuedSubmission, type SubmissionsReasonCode as ReasonCode, type SubmissionsReplyView as ReplyView, type ResolvedSettings, type SubmissionsStatusType as StatusType, type SubmissionsSubmissionStatus as SubmissionStatus, type SubmissionsSubmissionStatusView as SubmissionStatusView, type SubmissionsSubmissionType as SubmissionType, TILLATTE_MIME, type Telemetry, type TelemetryEvent, type TextMaxLength, VEDLEGG_GRENSER, VERSJON, dekkerAlt, init, klipp, scanText, skaler, strokTilRekter, treffer, trykkTilRekt };
|
package/dist/index.d.ts
CHANGED
|
@@ -400,7 +400,11 @@ interface CaptureBase {
|
|
|
400
400
|
* og kan feile alene (DD-42) — se `CaptureResult.attachment`.
|
|
401
401
|
*/
|
|
402
402
|
attachment?: AttachmentInput;
|
|
403
|
-
/**
|
|
403
|
+
/**
|
|
404
|
+
* Legges på konteksten fra `init` — typisk `screen`. Et felt satt til
|
|
405
|
+
* `undefined` FJERNES fra innsendingen (DD-05, «Fjern» i kontekstlinja); et
|
|
406
|
+
* felt som ikke nevnes, beholdes fra `init`.
|
|
407
|
+
*/
|
|
404
408
|
context?: Partial<ContextInput>;
|
|
405
409
|
/**
|
|
406
410
|
* Idempotensnøkkel for offline-køen. Settes av kjernen hvis den utelates:
|
|
@@ -724,6 +728,6 @@ declare function dekkerAlt(rekter: readonly MaskRect[], bilde: {
|
|
|
724
728
|
* ikke kan lese JSON, og `test/versjon.test.ts` holder den i takt med
|
|
725
729
|
* `package.json`.
|
|
726
730
|
*/
|
|
727
|
-
declare const VERSJON = "0.2.
|
|
731
|
+
declare const VERSJON = "0.2.1";
|
|
728
732
|
|
|
729
733
|
export { type AttachmentBody, type AttachmentInput, type SubmissionsAttachmentMime as AttachmentMime, type AttachmentOutcome, type SubmissionsAttachmentView as AttachmentView, type CaptureFeil, type CaptureInput, type CaptureOnske, type CaptureResult, type ContextInput, type CommonCorrelation as Correlation, type CommonErrorCode as ErrorCode, type FlushResult, type IdentityProvider, InnspelApiError, type InnspelClient, InnspelConfigError, type InnspelOptions, InnspelQueueFullError, type InnspelStorage, KONTEKST_FELTER, KO_TAK, type KnownIssuesKnownIssueCard as KnownIssueCard, type KnownIssueQuery, type SubmissionsKnownIssueRef as KnownIssueRef, type KnownIssuesKnownIssueStatus as KnownIssueStatus, type MaskPoint, type MaskRect, type ProgramsMyPrograms as MyPrograms, type MySubmission, type OpenFeedbackOptions, type PatternFinding, type PatternKind, type CommonPlatform as Platform, type Presenter, type QueuedSubmission, type SubmissionsReasonCode as ReasonCode, type SubmissionsReplyView as ReplyView, type ResolvedSettings, type SubmissionsStatusType as StatusType, type SubmissionsSubmissionStatus as SubmissionStatus, type SubmissionsSubmissionStatusView as SubmissionStatusView, type SubmissionsSubmissionType as SubmissionType, TILLATTE_MIME, type Telemetry, type TelemetryEvent, type TextMaxLength, VEDLEGG_GRENSER, VERSJON, dekkerAlt, init, klipp, scanText, skaler, strokTilRekter, treffer, trykkTilRekt };
|
package/dist/index.js
CHANGED
|
@@ -1041,8 +1041,8 @@ function validerKontekst(kontekst, sti, krevPlatform) {
|
|
|
1041
1041
|
function sl\u00E5SammenKontekst(base, p\u00E5Lagt, sdkVersion) {
|
|
1042
1042
|
const ut = {};
|
|
1043
1043
|
for (const felt of KONTEKST_FELTER) {
|
|
1044
|
-
const verdi = p\u00E5Lagt
|
|
1045
|
-
if (verdi !== void 0) ut[felt] = verdi;
|
|
1044
|
+
const verdi = p\u00E5Lagt && felt in p\u00E5Lagt ? p\u00E5Lagt[felt] : base[felt];
|
|
1045
|
+
if (verdi !== void 0 && verdi !== null) ut[felt] = verdi;
|
|
1046
1046
|
}
|
|
1047
1047
|
ut["sdkVersion"] = sdkVersion;
|
|
1048
1048
|
return ut;
|
|
@@ -1208,7 +1208,7 @@ async function lastOppTilLagring(fetchImpl, presign, body, signal) {
|
|
|
1208
1208
|
}
|
|
1209
1209
|
|
|
1210
1210
|
// src/versjon.ts
|
|
1211
|
-
var VERSJON = "0.2.
|
|
1211
|
+
var VERSJON = "0.2.1";
|
|
1212
1212
|
|
|
1213
1213
|
// src/klient.ts
|
|
1214
1214
|
var STANDARD_TIMEOUT_MS = 1e4;
|