New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@fluidframework/protocol-base

Package Overview
Dependencies
Maintainers
3
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@fluidframework/protocol-base - npm Package Compare versions

Comparing version 0.1038.3000-121647 to 0.1038.3000-128735

2

dist/packageVersion.d.ts

@@ -8,3 +8,3 @@ /*!

export declare const pkgName = "@fluidframework/protocol-base";
export declare const pkgVersion = "0.1038.3000-121647";
export declare const pkgVersion = "0.1038.3000-128735";
//# sourceMappingURL=packageVersion.d.ts.map

@@ -11,3 +11,3 @@ "use strict";

exports.pkgName = "@fluidframework/protocol-base";
exports.pkgVersion = "0.1038.3000-121647";
exports.pkgVersion = "0.1038.3000-128735";
//# sourceMappingURL=packageVersion.js.map

@@ -82,3 +82,3 @@ /*!

* Snapshots the current state of the QuorumProposals
* @returns deep cloned arrays of proposals and values
* @returns arrays of proposals and values
*/

@@ -85,0 +85,0 @@ snapshot(): QuorumProposalsSnapshot;

@@ -6,10 +6,5 @@ "use strict";

*/
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.Quorum = exports.QuorumProposals = exports.QuorumClients = void 0;
const events_1 = require("events");
// eslint-disable-next-line import/no-internal-modules
const cloneDeep_1 = __importDefault(require("lodash/cloneDeep"));
const common_utils_1 = require("@fluidframework/common-utils");

@@ -44,3 +39,3 @@ /**

var _a;
(_a = this.snapshotCache) !== null && _a !== void 0 ? _a : (this.snapshotCache = (0, cloneDeep_1.default)(Array.from(this.members)));
(_a = this.snapshotCache) !== null && _a !== void 0 ? _a : (this.snapshotCache = Array.from(this.members));
return this.snapshotCache;

@@ -111,3 +106,3 @@ }

* Snapshots the current state of the QuorumProposals
* @returns deep cloned arrays of proposals and values
* @returns arrays of proposals and values
*/

@@ -121,3 +116,3 @@ snapshot() {

]));
(_b = this.valuesSnapshotCache) !== null && _b !== void 0 ? _b : (this.valuesSnapshotCache = (0, cloneDeep_1.default)(Array.from(this.values)));
(_b = this.valuesSnapshotCache) !== null && _b !== void 0 ? _b : (this.valuesSnapshotCache = Array.from(this.values));
return {

@@ -146,4 +141,3 @@ proposals: this.proposalsSnapshotCache,

getApprovalData(key) {
const proposal = this.values.get(key);
return proposal ? (0, cloneDeep_1.default)(proposal) : undefined;
return this.values.get(key);
}

@@ -150,0 +144,0 @@ /**

@@ -8,3 +8,3 @@ /*!

export declare const pkgName = "@fluidframework/protocol-base";
export declare const pkgVersion = "0.1038.3000-121647";
export declare const pkgVersion = "0.1038.3000-128735";
//# sourceMappingURL=packageVersion.d.ts.map

@@ -8,3 +8,3 @@ /*!

export const pkgName = "@fluidframework/protocol-base";
export const pkgVersion = "0.1038.3000-121647";
export const pkgVersion = "0.1038.3000-128735";
//# sourceMappingURL=packageVersion.js.map

@@ -82,3 +82,3 @@ /*!

* Snapshots the current state of the QuorumProposals
* @returns deep cloned arrays of proposals and values
* @returns arrays of proposals and values
*/

@@ -85,0 +85,0 @@ snapshot(): QuorumProposalsSnapshot;

@@ -6,4 +6,2 @@ /*!

import { EventEmitter } from "events";
// eslint-disable-next-line import/no-internal-modules
import cloneDeep from "lodash/cloneDeep";
import { assert, TypedEventEmitter } from "@fluidframework/common-utils";

@@ -38,3 +36,3 @@ /**

var _a;
(_a = this.snapshotCache) !== null && _a !== void 0 ? _a : (this.snapshotCache = cloneDeep(Array.from(this.members)));
(_a = this.snapshotCache) !== null && _a !== void 0 ? _a : (this.snapshotCache = Array.from(this.members));
return this.snapshotCache;

@@ -104,3 +102,3 @@ }

* Snapshots the current state of the QuorumProposals
* @returns deep cloned arrays of proposals and values
* @returns arrays of proposals and values
*/

@@ -114,3 +112,3 @@ snapshot() {

]));
(_b = this.valuesSnapshotCache) !== null && _b !== void 0 ? _b : (this.valuesSnapshotCache = cloneDeep(Array.from(this.values)));
(_b = this.valuesSnapshotCache) !== null && _b !== void 0 ? _b : (this.valuesSnapshotCache = Array.from(this.values));
return {

@@ -139,4 +137,3 @@ proposals: this.proposalsSnapshotCache,

getApprovalData(key) {
const proposal = this.values.get(key);
return proposal ? cloneDeep(proposal) : undefined;
return this.values.get(key);
}

@@ -143,0 +140,0 @@ /**

{
"name": "@fluidframework/protocol-base",
"version": "0.1038.3000-121647",
"version": "0.1038.3000-128735",
"description": "Fluid protocol base",

@@ -63,8 +63,11 @@ "homepage": "https://fluidframework.com",

"@fluidframework/common-utils": "^1.0.0",
"@fluidframework/gitresources": "0.1038.3000-121647",
"@fluidframework/gitresources": "0.1038.3000-128735",
"@fluidframework/protocol-definitions": "^1.1.0",
"events": "^3.1.0",
"lodash": "^4.17.21"
},
"devDependencies": {
"@fluid-tools/build-cli": "^0.8.0",
"@fluidframework/build-common": "^1.1.0",
"@fluidframework/build-tools": "^0.8.0",
"@fluidframework/eslint-config-fluid": "^2.0.0",

@@ -74,3 +77,2 @@ "@microsoft/api-extractor": "^7.22.2",

"@types/assert": "^1.5.1",
"@types/lodash": "^4.14.118",
"@types/mocha": "^10.0.0",

@@ -77,0 +79,0 @@ "@types/node": "^14.18.0",

@@ -9,2 +9,2 @@ /*!

export const pkgName = "@fluidframework/protocol-base";
export const pkgVersion = "0.1038.3000-121647";
export const pkgVersion = "0.1038.3000-128735";

@@ -8,5 +8,2 @@ /*!

// eslint-disable-next-line import/no-internal-modules
import cloneDeep from "lodash/cloneDeep";
import { assert, TypedEventEmitter } from "@fluidframework/common-utils";

@@ -87,3 +84,3 @@ import {

public snapshot(): QuorumClientsSnapshot {
this.snapshotCache ??= cloneDeep(Array.from(this.members));
this.snapshotCache ??= Array.from(this.members);

@@ -183,3 +180,3 @@ return this.snapshotCache;

* Snapshots the current state of the QuorumProposals
* @returns deep cloned arrays of proposals and values
* @returns arrays of proposals and values
*/

@@ -194,3 +191,3 @@ public snapshot(): QuorumProposalsSnapshot {

);
this.valuesSnapshotCache ??= cloneDeep(Array.from(this.values));
this.valuesSnapshotCache ??= Array.from(this.values);

@@ -222,4 +219,3 @@ return {

public getApprovalData(key: string): ICommittedProposal | undefined {
const proposal = this.values.get(key);
return proposal ? cloneDeep(proposal) : undefined;
return this.values.get(key);
}

@@ -226,0 +222,0 @@

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

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