Comparing version 0.0.24 to 0.0.25
@@ -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
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
229942
4475
11