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

libzap

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libzap - npm Package Compare versions

Comparing version 0.0.24 to 0.0.25

8

lib/ot/client.js

@@ -38,3 +38,5 @@ "use strict";

}
console.log(`Client=${process.env.ZAP_E2E_NAME} ACK @${this.rev}, wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`);
if (process.env.DEV) {
console.log(`Client=${process.env.ZAP_E2E_NAME} ACK @${this.rev}, wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`);
}
if (this.buf) {

@@ -66,3 +68,5 @@ if (this.send) {

}
console.log(`Client=${process.env.ZAP_E2E_NAME} >>> RECV @${this.rev}, transformed-op=${JSON.stringify(op)} wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`);
if (process.env.DEV) {
console.log(`Client=${process.env.ZAP_E2E_NAME} >>> RECV @${this.rev}, transformed-op=${JSON.stringify(op)} wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`);
}
this.rev++;

@@ -69,0 +73,0 @@ if (!workspace_1.noop(op)) {

@@ -84,3 +84,5 @@ "use strict";

}
console.log(`Client=${process.env.ZAP_E2E_NAME} SEND:${this.refID.ref} @${rev} ${JSON.stringify(op)}`);
if (process.env.DEV) {
console.log(`Client=${process.env.ZAP_E2E_NAME} SEND:${this.refID.ref} @${rev} ${JSON.stringify(op)}`);
}
this.remoteClient.sendRequest(protocol_1.RefUpdateUpstreamRequest.type, {

@@ -166,3 +168,5 @@ repo: this.refID.repo,

else if (params.op) {
console.log(`Client=${process.env.ZAP_E2E_NAME} RECV:${this.refID.ref} @${this.ot.rev} ${JSON.stringify(params.op)}`);
if (process.env.DEV) {
console.log(`Client=${process.env.ZAP_E2E_NAME} RECV:${this.refID.ref} @${this.ot.rev} ${JSON.stringify(params.op)}`);
}
yield this.ot.recv(params.op);

@@ -169,0 +173,0 @@ }

{
"name": "libzap",
"version": "0.0.24",
"version": "0.0.25",
"description": "JavaScript library for Zap",

@@ -32,3 +32,3 @@ "license": "none",

"tslint": "^4.1.0",
"typescript": "^2.1.4"
"typescript": "^2.1.5"
},

@@ -35,0 +35,0 @@ "engines": {

@@ -59,3 +59,3 @@ import { WorkspaceOp, compose, noop, transform } from "./workspace";

console.log(`Client=${process.env.ZAP_E2E_NAME} ACK @${this.rev}, wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`);
if (process.env.DEV) { console.log(`Client=${process.env.ZAP_E2E_NAME} ACK @${this.rev}, wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`); }
if (this.buf) {

@@ -86,3 +86,3 @@ if (this.send) { this.send(this.rev + 1, this.buf); }

}
console.log(`Client=${process.env.ZAP_E2E_NAME} >>> RECV @${this.rev}, transformed-op=${JSON.stringify(op)} wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`);
if (process.env.DEV) { console.log(`Client=${process.env.ZAP_E2E_NAME} >>> RECV @${this.rev}, transformed-op=${JSON.stringify(op)} wait=${JSON.stringify(this.wait)} buf=${JSON.stringify(this.buf)}`); }
this.rev++;

@@ -89,0 +89,0 @@ if (!noop(op)) {

@@ -113,3 +113,3 @@ import { Client as OTClient } from "../ot/client";

}
console.log(`Client=${process.env.ZAP_E2E_NAME} SEND:${this.refID.ref} @${rev} ${JSON.stringify(op)}`);
if (process.env.DEV) { console.log(`Client=${process.env.ZAP_E2E_NAME} SEND:${this.refID.ref} @${rev} ${JSON.stringify(op)}`); }
this.remoteClient.sendRequest(RefUpdateUpstreamRequest.type, {

@@ -200,3 +200,3 @@ repo: this.refID.repo,

} else if (params.op) {
console.log(`Client=${process.env.ZAP_E2E_NAME} RECV:${this.refID.ref} @${this.ot.rev} ${JSON.stringify(params.op)}`);
if (process.env.DEV) { console.log(`Client=${process.env.ZAP_E2E_NAME} RECV:${this.refID.ref} @${this.ot.rev} ${JSON.stringify(params.op)}`); }
await this.ot.recv(params.op);

@@ -203,0 +203,0 @@ } else if (params.delete) {

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