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

@coast-team/mute-core

Package Overview
Dependencies
Maintainers
4
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@coast-team/mute-core - npm Package Compare versions

Comparing version 10.0.0-experiment-3.0 to 10.0.0-experiment-3.1

10

CHANGELOG.md

@@ -5,2 +5,12 @@ # Change Log

<a name="10.0.0-experiment-3.1"></a>
# [10.0.0-experiment-3.1](https://github.com/coast-team/mute-core/compare/v10.0.0-experiment-3.0...v10.0.0-experiment-3.1) (2019-07-12)
### Bug Fixes
* **syncmessage:** emit deserialization times of all ops ([00f5dd8](https://github.com/coast-team/mute-core/commit/00f5dd8))
<a name="10.0.0-experiment-3.0"></a>

@@ -7,0 +17,0 @@ # [10.0.0-experiment-3.0](https://github.com/coast-team/mute-core/compare/v10.0.0-2.0...v10.0.0-experiment-3.0) (2019-07-10)

1

dist/types/src/core/SyncMessage.d.ts

@@ -25,2 +25,3 @@ import { Observable, Subject } from 'rxjs';

protected abstract deserializeRichOperation(richOperationMsg: proto.RichOperationMsg): RichOperation<Op>;
private wrapperDeserializeRichOperation;
private handleRichOpMsg;

@@ -27,0 +28,0 @@ private handleQuerySyncMsg;

2

package.json
{
"name": "@coast-team/mute-core",
"description": "Core component of MUTE collaborative editor",
"version": "10.0.0-experiment-3.0",
"version": "10.0.0-experiment-3.1",
"main": "./dist/mute-core.node.es5.cjs.js",

@@ -6,0 +6,0 @@ "module": "./dist/mutecore.node.es5.esm.js",

@@ -33,11 +33,3 @@ import { Observable, Subject, zip } from 'rxjs'

case 'richOpMsg':
const t1 = process.hrtime()
const richOpe = this.handleRichOpMsg(msg.richOpMsg as proto.RichOperationMsg)
const t2 = process.hrtime()
this.experimentLogsSubject.next({
type: 'remote',
operation: richOpe,
time1: t1,
time2: t2,
})
this.handleRichOpMsg(msg.richOpMsg as proto.RichOperationMsg)
break

@@ -130,4 +122,19 @@ case 'querySync':

private wrapperDeserializeRichOperation(
richOperationMsg: proto.RichOperationMsg
): RichOperation<Op> {
const t1 = process.hrtime()
const richOpe = this.deserializeRichOperation(richOperationMsg)
const t2 = process.hrtime()
this.experimentLogsSubject.next({
type: 'remote',
operation: richOpe,
time1: t1,
time2: t2,
})
return richOpe
}
private handleRichOpMsg(content: proto.RichOperationMsg): RichOperation<Op> {
const richOp = this.deserializeRichOperation(content)
const richOp = this.wrapperDeserializeRichOperation(content)
this.remoteRichOperationSubject.next(richOp)

@@ -147,3 +154,3 @@ return richOp

const richOps = richOpsMsg.map((o) =>
this.deserializeRichOperation(o as proto.RichOperationMsg)
this.wrapperDeserializeRichOperation(o as proto.RichOperationMsg)
)

@@ -150,0 +157,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

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