@trezor/protobuf
Advanced tools
Comparing version 1.2.0 to 1.2.1-beta.1
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Type, Message } from 'protobufjs/light'; | ||
@@ -3,0 +2,0 @@ export declare function messageToJSON(MessageParam: Message<Record<string, unknown>>, fields: Type['fields']): { |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.decode = exports.messageToJSON = void 0; | ||
exports.decode = void 0; | ||
exports.messageToJSON = messageToJSON; | ||
const tslib_1 = require("tslib"); | ||
@@ -48,3 +49,2 @@ const utils_1 = require("./utils"); | ||
} | ||
exports.messageToJSON = messageToJSON; | ||
const decode = (MessageParam, data) => { | ||
@@ -51,0 +51,0 @@ const decoded = MessageParam.decode(new Uint8Array(data)); |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
import { Type } from 'protobufjs/light'; | ||
@@ -3,0 +2,0 @@ export declare function patch(Message: Type, payload: any): any; |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.encode = exports.patch = void 0; | ||
exports.encode = void 0; | ||
exports.patch = patch; | ||
const light_1 = require("protobufjs/light"); | ||
@@ -60,3 +61,2 @@ const utils_1 = require("./utils"); | ||
} | ||
exports.patch = patch; | ||
const encode = (Message, data) => { | ||
@@ -63,0 +63,0 @@ const payload = patch(Message, data); |
@@ -1,2 +0,1 @@ | ||
/// <reference types="node" /> | ||
export type UintType = string | number; | ||
@@ -3,0 +2,0 @@ export type SintType = string | number; |
import * as protobuf from 'protobufjs/light'; | ||
import type { MessageFromTrezor } from './types'; | ||
export declare const isPrimitiveField: (field: any) => boolean; | ||
@@ -10,4 +11,4 @@ export declare function parseConfigure(data: protobuf.INamespace): protobuf.Root; | ||
Message: protobuf.Type; | ||
messageName: keyof import("./messages").MessageType; | ||
messageName: MessageFromTrezor["type"]; | ||
}; | ||
//# sourceMappingURL=utils.d.ts.map |
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.createMessageFromType = exports.createMessageFromName = exports.parseConfigure = exports.isPrimitiveField = void 0; | ||
exports.createMessageFromType = exports.createMessageFromName = exports.isPrimitiveField = void 0; | ||
exports.parseConfigure = parseConfigure; | ||
const tslib_1 = require("tslib"); | ||
@@ -31,3 +32,2 @@ const protobuf = tslib_1.__importStar(require("protobufjs/light")); | ||
} | ||
exports.parseConfigure = parseConfigure; | ||
const createMessageFromName = (messages, name) => { | ||
@@ -34,0 +34,0 @@ const Message = messages.lookupType(name); |
{ | ||
"name": "@trezor/protobuf", | ||
"version": "1.2.0", | ||
"version": "1.2.1-beta.1", | ||
"license": "See LICENSE.md in repo root", | ||
@@ -38,7 +38,7 @@ "repository": { | ||
"dependencies": { | ||
"@trezor/schema-utils": "1.2.0", | ||
"protobufjs": "7.2.6" | ||
"@trezor/schema-utils": "1.2.1-beta.1", | ||
"protobufjs": "7.4.0" | ||
}, | ||
"devDependencies": { | ||
"protobufjs-cli": "^1.1.2", | ||
"protobufjs-cli": "^1.1.3", | ||
"tsx": "^4.16.3" | ||
@@ -45,0 +45,0 @@ }, |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1237971
22282
2
+ Added@sinclair/typebox@0.33.22(transitive)
+ Added@trezor/schema-utils@1.2.1-beta.1(transitive)
+ Addedprotobufjs@7.4.0(transitive)
- Removed@sinclair/typebox@0.31.28(transitive)
- Removed@trezor/schema-utils@1.2.0(transitive)
- Removedprotobufjs@7.2.6(transitive)
Updatedprotobufjs@7.4.0