@fluidframework/container-utils
Advanced tools
Comparing version 2.0.0-dev.5.2.0.169897 to 2.0.0-dev.5.3.2.178189
# @fluidframework/container-utils | ||
## 2.0.0-internal.5.3.0 | ||
Dependency updates only. | ||
## 2.0.0-internal.5.2.0 | ||
Dependency updates only. | ||
## 2.0.0-internal.5.1.0 | ||
Dependency updates only. | ||
## 2.0.0-internal.5.0.0 | ||
@@ -4,0 +16,0 @@ |
@@ -77,15 +77,15 @@ /*! | ||
* @param dataProcessingCodepath - which codepath failed while processing data | ||
* @param sequencedMessage - Sequenced message to include info about via telemetry props | ||
* @param messageLike - Sequenced message to include info about via telemetry props | ||
* @returns Either a new DataProcessingError, or (if wrapping is deemed unnecessary) the given error | ||
*/ | ||
static wrapIfUnrecognized(originalError: any, dataProcessingCodepath: string, sequencedMessage?: ISequencedDocumentMessage): IFluidErrorBase; | ||
static wrapIfUnrecognized(originalError: any, dataProcessingCodepath: string, messageLike?: Partial<Pick<ISequencedDocumentMessage, "clientId" | "sequenceNumber" | "clientSequenceNumber" | "referenceSequenceNumber" | "minimumSequenceNumber" | "timestamp">>): IFluidErrorBase; | ||
} | ||
export declare const extractSafePropertiesFromMessage: (message: ISequencedDocumentMessage) => { | ||
messageClientId: string; | ||
messageSequenceNumber: number; | ||
messageClientSequenceNumber: number; | ||
messageReferenceSequenceNumber: number; | ||
messageMinimumSequenceNumber: number; | ||
messageTimestamp: number; | ||
export declare const extractSafePropertiesFromMessage: (messageLike: Partial<Pick<ISequencedDocumentMessage, "clientId" | "sequenceNumber" | "clientSequenceNumber" | "referenceSequenceNumber" | "minimumSequenceNumber" | "timestamp">>) => { | ||
messageClientId: string | undefined; | ||
messageSequenceNumber: number | undefined; | ||
messageClientSequenceNumber: number | undefined; | ||
messageReferenceSequenceNumber: number | undefined; | ||
messageMinimumSequenceNumber: number | undefined; | ||
messageTimestamp: number | undefined; | ||
}; | ||
//# sourceMappingURL=error.d.ts.map |
@@ -103,9 +103,9 @@ "use strict"; | ||
* @param dataProcessingCodepath - which codepath failed while processing data | ||
* @param sequencedMessage - Sequenced message to include info about via telemetry props | ||
* @param messageLike - Sequenced message to include info about via telemetry props | ||
* @returns Either a new DataProcessingError, or (if wrapping is deemed unnecessary) the given error | ||
*/ | ||
static wrapIfUnrecognized(originalError, dataProcessingCodepath, sequencedMessage) { | ||
const props = Object.assign({ dataProcessingError: 1, dataProcessingCodepath }, (sequencedMessage === undefined | ||
static wrapIfUnrecognized(originalError, dataProcessingCodepath, messageLike) { | ||
const props = Object.assign({ dataProcessingError: 1, dataProcessingCodepath }, (messageLike === undefined | ||
? undefined | ||
: (0, exports.extractSafePropertiesFromMessage)(sequencedMessage))); | ||
: (0, exports.extractSafePropertiesFromMessage)(messageLike))); | ||
const normalizedError = (0, telemetry_utils_1.normalizeError)(originalError, { props }); | ||
@@ -126,11 +126,11 @@ // Note that other errors may have the NORMALIZED_ERROR_TYPE errorType, | ||
exports.DataProcessingError = DataProcessingError; | ||
const extractSafePropertiesFromMessage = (message) => ({ | ||
messageClientId: message.clientId, | ||
messageSequenceNumber: message.sequenceNumber, | ||
messageClientSequenceNumber: message.clientSequenceNumber, | ||
messageReferenceSequenceNumber: message.referenceSequenceNumber, | ||
messageMinimumSequenceNumber: message.minimumSequenceNumber, | ||
messageTimestamp: message.timestamp, | ||
const extractSafePropertiesFromMessage = (messageLike) => ({ | ||
messageClientId: messageLike.clientId === null ? "null" : messageLike.clientId, | ||
messageSequenceNumber: messageLike.sequenceNumber, | ||
messageClientSequenceNumber: messageLike.clientSequenceNumber, | ||
messageReferenceSequenceNumber: messageLike.referenceSequenceNumber, | ||
messageMinimumSequenceNumber: messageLike.minimumSequenceNumber, | ||
messageTimestamp: messageLike.timestamp, | ||
}); | ||
exports.extractSafePropertiesFromMessage = extractSafePropertiesFromMessage; | ||
//# sourceMappingURL=error.js.map |
@@ -77,15 +77,15 @@ /*! | ||
* @param dataProcessingCodepath - which codepath failed while processing data | ||
* @param sequencedMessage - Sequenced message to include info about via telemetry props | ||
* @param messageLike - Sequenced message to include info about via telemetry props | ||
* @returns Either a new DataProcessingError, or (if wrapping is deemed unnecessary) the given error | ||
*/ | ||
static wrapIfUnrecognized(originalError: any, dataProcessingCodepath: string, sequencedMessage?: ISequencedDocumentMessage): IFluidErrorBase; | ||
static wrapIfUnrecognized(originalError: any, dataProcessingCodepath: string, messageLike?: Partial<Pick<ISequencedDocumentMessage, "clientId" | "sequenceNumber" | "clientSequenceNumber" | "referenceSequenceNumber" | "minimumSequenceNumber" | "timestamp">>): IFluidErrorBase; | ||
} | ||
export declare const extractSafePropertiesFromMessage: (message: ISequencedDocumentMessage) => { | ||
messageClientId: string; | ||
messageSequenceNumber: number; | ||
messageClientSequenceNumber: number; | ||
messageReferenceSequenceNumber: number; | ||
messageMinimumSequenceNumber: number; | ||
messageTimestamp: number; | ||
export declare const extractSafePropertiesFromMessage: (messageLike: Partial<Pick<ISequencedDocumentMessage, "clientId" | "sequenceNumber" | "clientSequenceNumber" | "referenceSequenceNumber" | "minimumSequenceNumber" | "timestamp">>) => { | ||
messageClientId: string | undefined; | ||
messageSequenceNumber: number | undefined; | ||
messageClientSequenceNumber: number | undefined; | ||
messageReferenceSequenceNumber: number | undefined; | ||
messageMinimumSequenceNumber: number | undefined; | ||
messageTimestamp: number | undefined; | ||
}; | ||
//# sourceMappingURL=error.d.ts.map |
@@ -95,9 +95,9 @@ /*! | ||
* @param dataProcessingCodepath - which codepath failed while processing data | ||
* @param sequencedMessage - Sequenced message to include info about via telemetry props | ||
* @param messageLike - Sequenced message to include info about via telemetry props | ||
* @returns Either a new DataProcessingError, or (if wrapping is deemed unnecessary) the given error | ||
*/ | ||
static wrapIfUnrecognized(originalError, dataProcessingCodepath, sequencedMessage) { | ||
const props = Object.assign({ dataProcessingError: 1, dataProcessingCodepath }, (sequencedMessage === undefined | ||
static wrapIfUnrecognized(originalError, dataProcessingCodepath, messageLike) { | ||
const props = Object.assign({ dataProcessingError: 1, dataProcessingCodepath }, (messageLike === undefined | ||
? undefined | ||
: extractSafePropertiesFromMessage(sequencedMessage))); | ||
: extractSafePropertiesFromMessage(messageLike))); | ||
const normalizedError = normalizeError(originalError, { props }); | ||
@@ -117,10 +117,10 @@ // Note that other errors may have the NORMALIZED_ERROR_TYPE errorType, | ||
} | ||
export const extractSafePropertiesFromMessage = (message) => ({ | ||
messageClientId: message.clientId, | ||
messageSequenceNumber: message.sequenceNumber, | ||
messageClientSequenceNumber: message.clientSequenceNumber, | ||
messageReferenceSequenceNumber: message.referenceSequenceNumber, | ||
messageMinimumSequenceNumber: message.minimumSequenceNumber, | ||
messageTimestamp: message.timestamp, | ||
export const extractSafePropertiesFromMessage = (messageLike) => ({ | ||
messageClientId: messageLike.clientId === null ? "null" : messageLike.clientId, | ||
messageSequenceNumber: messageLike.sequenceNumber, | ||
messageClientSequenceNumber: messageLike.clientSequenceNumber, | ||
messageReferenceSequenceNumber: messageLike.referenceSequenceNumber, | ||
messageMinimumSequenceNumber: messageLike.minimumSequenceNumber, | ||
messageTimestamp: messageLike.timestamp, | ||
}); | ||
//# sourceMappingURL=error.js.map |
{ | ||
"name": "@fluidframework/container-utils", | ||
"version": "2.0.0-dev.5.2.0.169897", | ||
"version": "2.0.0-dev.5.3.2.178189", | ||
"description": "Fluid container utils", | ||
@@ -40,14 +40,14 @@ "homepage": "https://fluidframework.com", | ||
"@fluidframework/common-utils": "^1.1.1", | ||
"@fluidframework/container-definitions": "2.0.0-dev.5.2.0.169897", | ||
"@fluidframework/container-definitions": "2.0.0-dev.5.3.2.178189", | ||
"@fluidframework/protocol-definitions": "^1.1.0", | ||
"@fluidframework/telemetry-utils": "2.0.0-dev.5.2.0.169897" | ||
"@fluidframework/telemetry-utils": "2.0.0-dev.5.3.2.178189" | ||
}, | ||
"devDependencies": { | ||
"@fluid-tools/build-cli": "^0.20.0-169245", | ||
"@fluid-tools/build-cli": "^0.21.0", | ||
"@fluidframework/build-common": "^1.2.0", | ||
"@fluidframework/build-tools": "^0.20.0-169245", | ||
"@fluidframework/container-utils-previous": "npm:@fluidframework/container-utils@2.0.0-internal.5.0.0", | ||
"@fluidframework/build-tools": "^0.21.0", | ||
"@fluidframework/container-utils-previous": "npm:@fluidframework/container-utils@2.0.0-internal.5.2.0", | ||
"@fluidframework/eslint-config-fluid": "^2.0.0", | ||
"@fluidframework/mocha-test-setup": "2.0.0-dev.5.2.0.169897", | ||
"@fluidframework/test-runtime-utils": "2.0.0-dev.5.2.0.169897", | ||
"@fluidframework/mocha-test-setup": "2.0.0-dev.5.3.2.178189", | ||
"@fluidframework/test-runtime-utils": "2.0.0-dev.5.3.2.178189", | ||
"@microsoft/api-extractor": "^7.34.4", | ||
@@ -96,4 +96,4 @@ "@types/mocha": "^9.1.1", | ||
"typetests:gen": "fluid-type-test-generator", | ||
"typetests:prepare": "flub generate typetests --prepare --dir . --pin" | ||
"typetests:prepare": "flub typetests --dir . --reset --previous --normalize" | ||
} | ||
} |
@@ -143,3 +143,3 @@ /*! | ||
* @param dataProcessingCodepath - which codepath failed while processing data | ||
* @param sequencedMessage - Sequenced message to include info about via telemetry props | ||
* @param messageLike - Sequenced message to include info about via telemetry props | ||
* @returns Either a new DataProcessingError, or (if wrapping is deemed unnecessary) the given error | ||
@@ -150,3 +150,13 @@ */ | ||
dataProcessingCodepath: string, | ||
sequencedMessage?: ISequencedDocumentMessage, | ||
messageLike?: Partial< | ||
Pick< | ||
ISequencedDocumentMessage, | ||
| "clientId" | ||
| "sequenceNumber" | ||
| "clientSequenceNumber" | ||
| "referenceSequenceNumber" | ||
| "minimumSequenceNumber" | ||
| "timestamp" | ||
> | ||
>, | ||
): IFluidErrorBase { | ||
@@ -156,5 +166,5 @@ const props = { | ||
dataProcessingCodepath, | ||
...(sequencedMessage === undefined | ||
...(messageLike === undefined | ||
? undefined | ||
: extractSafePropertiesFromMessage(sequencedMessage)), | ||
: extractSafePropertiesFromMessage(messageLike)), | ||
}; | ||
@@ -184,9 +194,21 @@ | ||
export const extractSafePropertiesFromMessage = (message: ISequencedDocumentMessage) => ({ | ||
messageClientId: message.clientId, | ||
messageSequenceNumber: message.sequenceNumber, | ||
messageClientSequenceNumber: message.clientSequenceNumber, | ||
messageReferenceSequenceNumber: message.referenceSequenceNumber, | ||
messageMinimumSequenceNumber: message.minimumSequenceNumber, | ||
messageTimestamp: message.timestamp, | ||
export const extractSafePropertiesFromMessage = ( | ||
messageLike: Partial< | ||
Pick< | ||
ISequencedDocumentMessage, | ||
| "clientId" | ||
| "sequenceNumber" | ||
| "clientSequenceNumber" | ||
| "referenceSequenceNumber" | ||
| "minimumSequenceNumber" | ||
| "timestamp" | ||
> | ||
>, | ||
) => ({ | ||
messageClientId: messageLike.clientId === null ? "null" : messageLike.clientId, | ||
messageSequenceNumber: messageLike.sequenceNumber, | ||
messageClientSequenceNumber: messageLike.clientSequenceNumber, | ||
messageReferenceSequenceNumber: messageLike.referenceSequenceNumber, | ||
messageMinimumSequenceNumber: messageLike.minimumSequenceNumber, | ||
messageTimestamp: messageLike.timestamp, | ||
}); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
94357
1042
+ Added@fluidframework/container-definitions@2.0.0-dev.5.3.2.178189(transitive)
+ Added@fluidframework/core-interfaces@2.0.0-dev.5.3.2.178189(transitive)
+ Added@fluidframework/core-utils@2.0.0-dev.5.3.2.178189(transitive)
+ Added@fluidframework/driver-definitions@2.0.0-dev.5.3.2.178189(transitive)
+ Added@fluidframework/telemetry-utils@2.0.0-dev.5.3.2.178189(transitive)
- Removed@fluidframework/container-definitions@2.0.0-dev.5.2.0.169897(transitive)
- Removed@fluidframework/core-interfaces@2.0.0-dev.5.2.0.169897(transitive)
- Removed@fluidframework/driver-definitions@2.0.0-dev.5.2.0.169897(transitive)
- Removed@fluidframework/telemetry-utils@2.0.0-dev.5.2.0.169897(transitive)
Updated@fluidframework/container-definitions@2.0.0-dev.5.3.2.178189
Updated@fluidframework/telemetry-utils@2.0.0-dev.5.3.2.178189