Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@fluidframework/container-utils

Package Overview
Dependencies
Maintainers
2
Versions
423
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluidframework/container-utils - npm Package Compare versions

Comparing version 2.0.0-dev.5.2.0.169897 to 2.0.0-dev.5.3.2.178189

12

CHANGELOG.md
# @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 @@

18

dist/error.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc