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

@certusone/wormhole-sdk-proto-web

Package Overview
Dependencies
Maintainers
3
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@certusone/wormhole-sdk-proto-web - npm Package Compare versions

Comparing version 0.0.2 to 0.0.3

2

lib/cjs/gossip/v1/gossip.d.ts

@@ -36,2 +36,4 @@ import _m0 from "protobufjs/minimal";

bootTimestamp: string;
/** List of features enabled on this node. */
features: string[];
}

@@ -38,0 +40,0 @@ export interface Heartbeat_Network {

94

lib/cjs/gossip/v1/gossip.js

@@ -261,6 +261,7 @@ "use strict";

bootTimestamp: "0",
features: "",
};
exports.Heartbeat = {
encode: function (message, writer) {
var e_1, _a;
var e_1, _a, e_2, _b;
if (writer === void 0) { writer = minimal_1.default.Writer.create(); }

@@ -277,4 +278,4 @@ if (message.nodeName !== "") {

try {
for (var _b = __values(message.networks), _c = _b.next(); !_c.done; _c = _b.next()) {
var v = _c.value;
for (var _c = __values(message.networks), _d = _c.next(); !_d.done; _d = _c.next()) {
var v = _d.value;
exports.Heartbeat_Network.encode(v, writer.uint32(34).fork()).ldelim();

@@ -286,3 +287,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}

@@ -300,2 +301,15 @@ finally { if (e_1) throw e_1.error; }

}
try {
for (var _e = __values(message.features), _f = _e.next(); !_f.done; _f = _e.next()) {
var v = _f.value;
writer.uint32(66).string(v);
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
}
finally { if (e_2) throw e_2.error; }
}
return writer;

@@ -308,2 +322,3 @@ },

message.networks = [];
message.features = [];
while (reader.pos < end) {

@@ -333,2 +348,5 @@ var tag = reader.uint32();

break;
case 8:
message.features.push(reader.string());
break;
default:

@@ -342,5 +360,6 @@ reader.skipType(tag & 7);

fromJSON: function (object) {
var e_2, _a;
var e_3, _a, e_4, _b;
var message = __assign({}, baseHeartbeat);
message.networks = [];
message.features = [];
if (object.nodeName !== undefined && object.nodeName !== null) {

@@ -366,13 +385,13 @@ message.nodeName = String(object.nodeName);

try {
for (var _b = __values(object.networks), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
for (var _c = __values(object.networks), _d = _c.next(); !_d.done; _d = _c.next()) {
var e = _d.value;
message.networks.push(exports.Heartbeat_Network.fromJSON(e));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}
finally { if (e_2) throw e_2.error; }
finally { if (e_3) throw e_3.error; }
}

@@ -398,2 +417,17 @@ }

}
if (object.features !== undefined && object.features !== null) {
try {
for (var _e = __values(object.features), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
message.features.push(String(e));
}
}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
finally {
try {
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
}
finally { if (e_4) throw e_4.error; }
}
}
return message;

@@ -419,8 +453,15 @@ },

(obj.bootTimestamp = message.bootTimestamp);
if (message.features) {
obj.features = message.features.map(function (e) { return e; });
}
else {
obj.features = [];
}
return obj;
},
fromPartial: function (object) {
var e_3, _a;
var e_5, _a, e_6, _b;
var message = __assign({}, baseHeartbeat);
message.networks = [];
message.features = [];
if (object.nodeName !== undefined && object.nodeName !== null) {

@@ -446,13 +487,13 @@ message.nodeName = object.nodeName;

try {
for (var _b = __values(object.networks), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
for (var _c = __values(object.networks), _d = _c.next(); !_d.done; _d = _c.next()) {
var e = _d.value;
message.networks.push(exports.Heartbeat_Network.fromPartial(e));
}
}
catch (e_3_1) { e_3 = { error: e_3_1 }; }
catch (e_5_1) { e_5 = { error: e_5_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}
finally { if (e_3) throw e_3.error; }
finally { if (e_5) throw e_5.error; }
}

@@ -478,2 +519,17 @@ }

}
if (object.features !== undefined && object.features !== null) {
try {
for (var _e = __values(object.features), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
message.features.push(e);
}
}
catch (e_6_1) { e_6 = { error: e_6_1 }; }
finally {
try {
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
}
finally { if (e_6) throw e_6.error; }
}
}
return message;

@@ -970,3 +1026,3 @@ },

function base64FromBytes(arr) {
var e_4, _a;
var e_7, _a;
var bin = [];

@@ -979,3 +1035,3 @@ try {

}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
catch (e_7_1) { e_7 = { error: e_7_1 }; }
finally {

@@ -985,3 +1041,3 @@ try {

}
finally { if (e_4) throw e_4.error; }
finally { if (e_7) throw e_7.error; }
}

@@ -988,0 +1044,0 @@ return btoa(bin.join(""));

@@ -36,2 +36,4 @@ import _m0 from "protobufjs/minimal";

bootTimestamp: string;
/** List of features enabled on this node. */
features: string[];
}

@@ -38,0 +40,0 @@ export interface Heartbeat_Network {

@@ -255,6 +255,7 @@ var __assign = (this && this.__assign) || function () {

bootTimestamp: "0",
features: "",
};
export var Heartbeat = {
encode: function (message, writer) {
var e_1, _a;
var e_1, _a, e_2, _b;
if (writer === void 0) { writer = _m0.Writer.create(); }

@@ -271,4 +272,4 @@ if (message.nodeName !== "") {

try {
for (var _b = __values(message.networks), _c = _b.next(); !_c.done; _c = _b.next()) {
var v = _c.value;
for (var _c = __values(message.networks), _d = _c.next(); !_d.done; _d = _c.next()) {
var v = _d.value;
Heartbeat_Network.encode(v, writer.uint32(34).fork()).ldelim();

@@ -280,3 +281,3 @@ }

try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}

@@ -294,2 +295,15 @@ finally { if (e_1) throw e_1.error; }

}
try {
for (var _e = __values(message.features), _f = _e.next(); !_f.done; _f = _e.next()) {
var v = _f.value;
writer.uint32(66).string(v);
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
finally {
try {
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
}
finally { if (e_2) throw e_2.error; }
}
return writer;

@@ -302,2 +316,3 @@ },

message.networks = [];
message.features = [];
while (reader.pos < end) {

@@ -327,2 +342,5 @@ var tag = reader.uint32();

break;
case 8:
message.features.push(reader.string());
break;
default:

@@ -336,5 +354,6 @@ reader.skipType(tag & 7);

fromJSON: function (object) {
var e_2, _a;
var e_3, _a, e_4, _b;
var message = __assign({}, baseHeartbeat);
message.networks = [];
message.features = [];
if (object.nodeName !== undefined && object.nodeName !== null) {

@@ -360,13 +379,13 @@ message.nodeName = String(object.nodeName);

try {
for (var _b = __values(object.networks), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
for (var _c = __values(object.networks), _d = _c.next(); !_d.done; _d = _c.next()) {
var e = _d.value;
message.networks.push(Heartbeat_Network.fromJSON(e));
}
}
catch (e_2_1) { e_2 = { error: e_2_1 }; }
catch (e_3_1) { e_3 = { error: e_3_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}
finally { if (e_2) throw e_2.error; }
finally { if (e_3) throw e_3.error; }
}

@@ -392,2 +411,17 @@ }

}
if (object.features !== undefined && object.features !== null) {
try {
for (var _e = __values(object.features), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
message.features.push(String(e));
}
}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
finally {
try {
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
}
finally { if (e_4) throw e_4.error; }
}
}
return message;

@@ -413,8 +447,15 @@ },

(obj.bootTimestamp = message.bootTimestamp);
if (message.features) {
obj.features = message.features.map(function (e) { return e; });
}
else {
obj.features = [];
}
return obj;
},
fromPartial: function (object) {
var e_3, _a;
var e_5, _a, e_6, _b;
var message = __assign({}, baseHeartbeat);
message.networks = [];
message.features = [];
if (object.nodeName !== undefined && object.nodeName !== null) {

@@ -440,13 +481,13 @@ message.nodeName = object.nodeName;

try {
for (var _b = __values(object.networks), _c = _b.next(); !_c.done; _c = _b.next()) {
var e = _c.value;
for (var _c = __values(object.networks), _d = _c.next(); !_d.done; _d = _c.next()) {
var e = _d.value;
message.networks.push(Heartbeat_Network.fromPartial(e));
}
}
catch (e_3_1) { e_3 = { error: e_3_1 }; }
catch (e_5_1) { e_5 = { error: e_5_1 }; }
finally {
try {
if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
if (_d && !_d.done && (_a = _c.return)) _a.call(_c);
}
finally { if (e_3) throw e_3.error; }
finally { if (e_5) throw e_5.error; }
}

@@ -472,2 +513,17 @@ }

}
if (object.features !== undefined && object.features !== null) {
try {
for (var _e = __values(object.features), _f = _e.next(); !_f.done; _f = _e.next()) {
var e = _f.value;
message.features.push(e);
}
}
catch (e_6_1) { e_6 = { error: e_6_1 }; }
finally {
try {
if (_f && !_f.done && (_b = _e.return)) _b.call(_e);
}
finally { if (e_6) throw e_6.error; }
}
}
return message;

@@ -964,3 +1020,3 @@ },

function base64FromBytes(arr) {
var e_4, _a;
var e_7, _a;
var bin = [];

@@ -973,3 +1029,3 @@ try {

}
catch (e_4_1) { e_4 = { error: e_4_1 }; }
catch (e_7_1) { e_7 = { error: e_7_1 }; }
finally {

@@ -979,3 +1035,3 @@ try {

}
finally { if (e_4) throw e_4.error; }
finally { if (e_7) throw e_7.error; }
}

@@ -982,0 +1038,0 @@ return btoa(bin.join(""));

{
"name": "@certusone/wormhole-sdk-proto-web",
"version": "0.0.2",
"version": "0.0.3",
"description": "Web client protobuf for interacting with Wormhole",

@@ -5,0 +5,0 @@ "homepage": "https://wormholenetwork.com",

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