Socket
Socket
Sign inDemoInstall

@pretendonetwork/grpc

Package Overview
Dependencies
14
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

2

account/account_service.d.ts

@@ -179,2 +179,3 @@ import type { CallContext, CallOptions } from "nice-grpc-common";

friendCode?: string | undefined;
deviceType?: import("./get_nex_data_rpc").DeviceType | undefined;
} | undefined): GetNEXDataResponse;

@@ -188,2 +189,3 @@ fromPartial(object: {

friendCode?: string | undefined;
deviceType?: import("./get_nex_data_rpc").DeviceType | undefined;
}): GetNEXDataResponse;

@@ -190,0 +192,0 @@ };

import _m0 from "protobufjs/minimal";
export declare const protobufPackage = "account";
export declare enum DeviceType {
CTR = 0,
WUP = 1,
UNRECOGNIZED = -1
}
export declare function deviceTypeFromJSON(object: any): DeviceType;
export declare function deviceTypeToJSON(object: DeviceType): string;
export interface GetNEXDataRequest {

@@ -13,2 +20,3 @@ pid: number;

friendCode: string;
deviceType: DeviceType;
}

@@ -15,0 +23,0 @@ export declare const GetNEXDataRequest: {

@@ -6,6 +6,39 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.GetNEXDataResponse = exports.GetNEXDataRequest = exports.protobufPackage = void 0;
exports.GetNEXDataResponse = exports.GetNEXDataRequest = exports.deviceTypeToJSON = exports.deviceTypeFromJSON = exports.DeviceType = exports.protobufPackage = void 0;
/* eslint-disable */
const minimal_1 = __importDefault(require("protobufjs/minimal"));
exports.protobufPackage = "account";
var DeviceType;
(function (DeviceType) {
DeviceType[DeviceType["CTR"] = 0] = "CTR";
DeviceType[DeviceType["WUP"] = 1] = "WUP";
DeviceType[DeviceType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(DeviceType || (exports.DeviceType = DeviceType = {}));
function deviceTypeFromJSON(object) {
switch (object) {
case 0:
case "CTR":
return DeviceType.CTR;
case 1:
case "WUP":
return DeviceType.WUP;
case -1:
case "UNRECOGNIZED":
default:
return DeviceType.UNRECOGNIZED;
}
}
exports.deviceTypeFromJSON = deviceTypeFromJSON;
function deviceTypeToJSON(object) {
switch (object) {
case DeviceType.CTR:
return "CTR";
case DeviceType.WUP:
return "WUP";
case DeviceType.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.deviceTypeToJSON = deviceTypeToJSON;
function createBaseGetNEXDataRequest() {

@@ -62,3 +95,3 @@ return { pid: 0 };

function createBaseGetNEXDataResponse() {
return { pid: 0, password: "", owningPid: 0, accessLevel: 0, serverAccessLevel: "", friendCode: "" };
return { pid: 0, password: "", owningPid: 0, accessLevel: 0, serverAccessLevel: "", friendCode: "", deviceType: 0 };
}

@@ -85,2 +118,5 @@ exports.GetNEXDataResponse = {

}
if (message.deviceType !== 0) {
writer.uint32(56).int32(message.deviceType);
}
return writer;

@@ -131,2 +167,8 @@ },

continue;
case 7:
if (tag !== 56) {
break;
}
message.deviceType = reader.int32();
continue;
}

@@ -148,2 +190,3 @@ if ((tag & 7) === 4 || tag === 0) {

friendCode: isSet(object.friendCode) ? String(object.friendCode) : "",
deviceType: isSet(object.deviceType) ? deviceTypeFromJSON(object.deviceType) : 0,
};

@@ -171,2 +214,5 @@ },

}
if (message.deviceType !== 0) {
obj.deviceType = deviceTypeToJSON(message.deviceType);
}
return obj;

@@ -185,2 +231,3 @@ },

message.friendCode = object.friendCode ?? "";
message.deviceType = object.deviceType ?? 0;
return message;

@@ -187,0 +234,0 @@ },

@@ -269,2 +269,6 @@ /// <reference types="node" />

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
creatorPid?: number | undefined;

@@ -289,2 +293,6 @@ name?: string | undefined;

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
creatorPid?: number | undefined;

@@ -317,2 +325,6 @@ name?: string | undefined;

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
name?: string | undefined;

@@ -330,2 +342,6 @@ type?: string | undefined;

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
name?: string | undefined;

@@ -353,2 +369,6 @@ type?: string | undefined;

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
creatorPid?: number | undefined;

@@ -373,2 +393,6 @@ name?: string | undefined;

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
creatorPid?: number | undefined;

@@ -403,2 +427,6 @@ name?: string | undefined;

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
name?: string | undefined;

@@ -417,2 +445,6 @@ type?: string | undefined;

supportedLanguages?: string[] | undefined;
password?: string | undefined;
attribute1?: string | undefined;
attribute2?: string | undefined;
attribute3?: string | undefined;
name?: string | undefined;

@@ -419,0 +451,0 @@ type?: string | undefined;

@@ -10,2 +10,6 @@ import _m0 from "protobufjs/minimal";

supportedLanguages: string[];
password: string;
attribute1: string;
attribute2: string;
attribute3: string;
creatorPid: number;

@@ -12,0 +16,0 @@ name: string;

100

boss/file.js

@@ -19,2 +19,6 @@ "use strict";

supportedLanguages: [],
password: "",
attribute1: "",
attribute2: "",
attribute3: "",
creatorPid: 0,

@@ -51,28 +55,40 @@ name: "",

}
if (message.password !== "") {
writer.uint32(58).string(message.password);
}
if (message.attribute1 !== "") {
writer.uint32(66).string(message.attribute1);
}
if (message.attribute2 !== "") {
writer.uint32(74).string(message.attribute2);
}
if (message.attribute3 !== "") {
writer.uint32(82).string(message.attribute3);
}
if (message.creatorPid !== 0) {
writer.uint32(56).uint32(message.creatorPid);
writer.uint32(88).uint32(message.creatorPid);
}
if (message.name !== "") {
writer.uint32(66).string(message.name);
writer.uint32(98).string(message.name);
}
if (message.type !== "") {
writer.uint32(74).string(message.type);
writer.uint32(106).string(message.type);
}
if (message.hash !== "") {
writer.uint32(82).string(message.hash);
writer.uint32(114).string(message.hash);
}
if (message.size !== BigInt("0")) {
writer.uint32(88).uint64(message.size.toString());
writer.uint32(120).uint64(message.size.toString());
}
for (const v of message.notifyOnNew) {
writer.uint32(98).string(v);
writer.uint32(130).string(v);
}
if (message.notifyLed === true) {
writer.uint32(104).bool(message.notifyLed);
writer.uint32(136).bool(message.notifyLed);
}
if (message.createdTimestamp !== BigInt("0")) {
writer.uint32(112).uint64(message.createdTimestamp.toString());
writer.uint32(144).uint64(message.createdTimestamp.toString());
}
if (message.updatedTimestamp !== BigInt("0")) {
writer.uint32(120).uint64(message.updatedTimestamp.toString());
writer.uint32(152).uint64(message.updatedTimestamp.toString());
}

@@ -125,6 +141,6 @@ return writer;

case 7:
if (tag !== 56) {
if (tag !== 58) {
break;
}
message.creatorPid = reader.uint32();
message.password = reader.string();
continue;

@@ -135,3 +151,3 @@ case 8:

}
message.name = reader.string();
message.attribute1 = reader.string();
continue;

@@ -142,3 +158,3 @@ case 9:

}
message.type = reader.string();
message.attribute2 = reader.string();
continue;

@@ -149,3 +165,3 @@ case 10:

}
message.hash = reader.string();
message.attribute3 = reader.string();
continue;

@@ -156,3 +172,3 @@ case 11:

}
message.size = longToBigint(reader.uint64());
message.creatorPid = reader.uint32();
continue;

@@ -163,15 +179,15 @@ case 12:

}
message.notifyOnNew.push(reader.string());
message.name = reader.string();
continue;
case 13:
if (tag !== 104) {
if (tag !== 106) {
break;
}
message.notifyLed = reader.bool();
message.type = reader.string();
continue;
case 14:
if (tag !== 112) {
if (tag !== 114) {
break;
}
message.createdTimestamp = longToBigint(reader.uint64());
message.hash = reader.string();
continue;

@@ -182,2 +198,26 @@ case 15:

}
message.size = longToBigint(reader.uint64());
continue;
case 16:
if (tag !== 130) {
break;
}
message.notifyOnNew.push(reader.string());
continue;
case 17:
if (tag !== 136) {
break;
}
message.notifyLed = reader.bool();
continue;
case 18:
if (tag !== 144) {
break;
}
message.createdTimestamp = longToBigint(reader.uint64());
continue;
case 19:
if (tag !== 152) {
break;
}
message.updatedTimestamp = longToBigint(reader.uint64());

@@ -205,2 +245,6 @@ continue;

: [],
password: isSet(object.password) ? String(object.password) : "",
attribute1: isSet(object.attribute1) ? String(object.attribute1) : "",
attribute2: isSet(object.attribute2) ? String(object.attribute2) : "",
attribute3: isSet(object.attribute3) ? String(object.attribute3) : "",
creatorPid: isSet(object.creatorPid) ? Number(object.creatorPid) : 0,

@@ -237,2 +281,14 @@ name: isSet(object.name) ? String(object.name) : "",

}
if (message.password !== "") {
obj.password = message.password;
}
if (message.attribute1 !== "") {
obj.attribute1 = message.attribute1;
}
if (message.attribute2 !== "") {
obj.attribute2 = message.attribute2;
}
if (message.attribute3 !== "") {
obj.attribute3 = message.attribute3;
}
if (message.creatorPid !== 0) {

@@ -278,2 +334,6 @@ obj.creatorPid = Math.round(message.creatorPid);

message.supportedLanguages = object.supportedLanguages?.map((e) => e) || [];
message.password = object.password ?? "";
message.attribute1 = object.attribute1 ?? "";
message.attribute2 = object.attribute2 ?? "";
message.attribute3 = object.attribute3 ?? "";
message.creatorPid = object.creatorPid ?? 0;

@@ -280,0 +340,0 @@ message.name = object.name ?? "";

@@ -8,2 +8,6 @@ import _m0 from "protobufjs/minimal";

supportedLanguages: string[];
password: string;
attribute1: string;
attribute2: string;
attribute3: string;
name: string;

@@ -10,0 +14,0 @@ type: string;

@@ -17,2 +17,6 @@ "use strict";

supportedLanguages: [],
password: "",
attribute1: "",
attribute2: "",
attribute3: "",
name: "",

@@ -38,13 +42,25 @@ type: "",

}
if (message.password !== "") {
writer.uint32(42).string(message.password);
}
if (message.attribute1 !== "") {
writer.uint32(50).string(message.attribute1);
}
if (message.attribute2 !== "") {
writer.uint32(58).string(message.attribute2);
}
if (message.attribute3 !== "") {
writer.uint32(66).string(message.attribute3);
}
if (message.name !== "") {
writer.uint32(42).string(message.name);
writer.uint32(74).string(message.name);
}
if (message.type !== "") {
writer.uint32(50).string(message.type);
writer.uint32(82).string(message.type);
}
for (const v of message.notifyOnNew) {
writer.uint32(58).string(v);
writer.uint32(90).string(v);
}
if (message.notifyLed === true) {
writer.uint32(64).bool(message.notifyLed);
writer.uint32(96).bool(message.notifyLed);
}

@@ -88,3 +104,3 @@ return writer;

}
message.name = reader.string();
message.password = reader.string();
continue;

@@ -95,3 +111,3 @@ case 6:

}
message.type = reader.string();
message.attribute1 = reader.string();
continue;

@@ -102,8 +118,32 @@ case 7:

}
message.notifyOnNew.push(reader.string());
message.attribute2 = reader.string();
continue;
case 8:
if (tag !== 64) {
if (tag !== 66) {
break;
}
message.attribute3 = reader.string();
continue;
case 9:
if (tag !== 74) {
break;
}
message.name = reader.string();
continue;
case 10:
if (tag !== 82) {
break;
}
message.type = reader.string();
continue;
case 11:
if (tag !== 90) {
break;
}
message.notifyOnNew.push(reader.string());
continue;
case 12:
if (tag !== 96) {
break;
}
message.notifyLed = reader.bool();

@@ -129,2 +169,6 @@ continue;

: [],
password: isSet(object.password) ? String(object.password) : "",
attribute1: isSet(object.attribute1) ? String(object.attribute1) : "",
attribute2: isSet(object.attribute2) ? String(object.attribute2) : "",
attribute3: isSet(object.attribute3) ? String(object.attribute3) : "",
name: isSet(object.name) ? String(object.name) : "",

@@ -150,2 +194,14 @@ type: isSet(object.type) ? String(object.type) : "",

}
if (message.password !== "") {
obj.password = message.password;
}
if (message.attribute1 !== "") {
obj.attribute1 = message.attribute1;
}
if (message.attribute2 !== "") {
obj.attribute2 = message.attribute2;
}
if (message.attribute3 !== "") {
obj.attribute3 = message.attribute3;
}
if (message.name !== "") {

@@ -174,2 +230,6 @@ obj.name = message.name;

message.supportedLanguages = object.supportedLanguages?.map((e) => e) || [];
message.password = object.password ?? "";
message.attribute1 = object.attribute1 ?? "";
message.attribute2 = object.attribute2 ?? "";
message.attribute3 = object.attribute3 ?? "";
message.name = object.name ?? "";

@@ -176,0 +236,0 @@ message.type = object.type ?? "";

@@ -10,2 +10,6 @@ /// <reference types="node" />

supportedLanguages: string[];
password: string;
attribute1: string;
attribute2: string;
attribute3: string;
name: string;

@@ -12,0 +16,0 @@ type: string;

@@ -17,2 +17,6 @@ "use strict";

supportedLanguages: [],
password: "",
attribute1: "",
attribute2: "",
attribute3: "",
name: "",

@@ -40,19 +44,31 @@ type: "",

}
if (message.password !== "") {
writer.uint32(42).string(message.password);
}
if (message.attribute1 !== "") {
writer.uint32(50).string(message.attribute1);
}
if (message.attribute2 !== "") {
writer.uint32(58).string(message.attribute2);
}
if (message.attribute3 !== "") {
writer.uint32(66).string(message.attribute3);
}
if (message.name !== "") {
writer.uint32(42).string(message.name);
writer.uint32(74).string(message.name);
}
if (message.type !== "") {
writer.uint32(50).string(message.type);
writer.uint32(82).string(message.type);
}
for (const v of message.notifyOnNew) {
writer.uint32(58).string(v);
writer.uint32(90).string(v);
}
if (message.notifyLed === true) {
writer.uint32(64).bool(message.notifyLed);
writer.uint32(96).bool(message.notifyLed);
}
if (message.data.length !== 0) {
writer.uint32(74).bytes(message.data);
writer.uint32(106).bytes(message.data);
}
if (message.nameEqualsDataId === true) {
writer.uint32(80).bool(message.nameEqualsDataId);
writer.uint32(112).bool(message.nameEqualsDataId);
}

@@ -96,3 +112,3 @@ return writer;

}
message.name = reader.string();
message.password = reader.string();
continue;

@@ -103,3 +119,3 @@ case 6:

}
message.type = reader.string();
message.attribute1 = reader.string();
continue;

@@ -110,9 +126,9 @@ case 7:

}
message.notifyOnNew.push(reader.string());
message.attribute2 = reader.string();
continue;
case 8:
if (tag !== 64) {
if (tag !== 66) {
break;
}
message.notifyLed = reader.bool();
message.attribute3 = reader.string();
continue;

@@ -123,8 +139,32 @@ case 9:

}
message.data = reader.bytes();
message.name = reader.string();
continue;
case 10:
if (tag !== 80) {
if (tag !== 82) {
break;
}
message.type = reader.string();
continue;
case 11:
if (tag !== 90) {
break;
}
message.notifyOnNew.push(reader.string());
continue;
case 12:
if (tag !== 96) {
break;
}
message.notifyLed = reader.bool();
continue;
case 13:
if (tag !== 106) {
break;
}
message.data = reader.bytes();
continue;
case 14:
if (tag !== 112) {
break;
}
message.nameEqualsDataId = reader.bool();

@@ -150,2 +190,6 @@ continue;

: [],
password: isSet(object.password) ? String(object.password) : "",
attribute1: isSet(object.attribute1) ? String(object.attribute1) : "",
attribute2: isSet(object.attribute2) ? String(object.attribute2) : "",
attribute3: isSet(object.attribute3) ? String(object.attribute3) : "",
name: isSet(object.name) ? String(object.name) : "",

@@ -173,2 +217,14 @@ type: isSet(object.type) ? String(object.type) : "",

}
if (message.password !== "") {
obj.password = message.password;
}
if (message.attribute1 !== "") {
obj.attribute1 = message.attribute1;
}
if (message.attribute2 !== "") {
obj.attribute2 = message.attribute2;
}
if (message.attribute3 !== "") {
obj.attribute3 = message.attribute3;
}
if (message.name !== "") {

@@ -203,2 +259,6 @@ obj.name = message.name;

message.supportedLanguages = object.supportedLanguages?.map((e) => e) || [];
message.password = object.password ?? "";
message.attribute1 = object.attribute1 ?? "";
message.attribute2 = object.attribute2 ?? "";
message.attribute3 = object.attribute3 ?? "";
message.name = object.name ?? "";

@@ -205,0 +265,0 @@ message.type = object.type ?? "";

{
"name": "@pretendonetwork/grpc",
"version": "1.0.3",
"version": "1.0.4",
"description": "Compiled gRPC protobufs",

@@ -5,0 +5,0 @@ "scripts": {

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc