Socket
Socket
Sign inDemoInstall

ts-proto

Package Overview
Dependencies
Maintainers
1
Versions
352
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ts-proto - npm Package Compare versions

Comparing version 1.165.3 to 1.166.0

8

build/encode.js

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

let value = (0, ts_poet_1.code) `value`;
if (ctx.options.useDate === options_1.DateOption.DATE || ctx.options.useDate === options_1.DateOption.STRING) {
if (ctx.options.useDate === options_1.DateOption.DATE ||
ctx.options.useDate === options_1.DateOption.STRING ||
ctx.options.useDate === options_1.DateOption.STRING_NANO) {
value = (0, ts_poet_1.code) `${ctx.utils.toTimestamp}(${value})`;

@@ -63,3 +65,5 @@ }

const decoder = (0, ts_poet_1.code) `${TypeValue}.decode(value)`;
if (ctx.options.useDate === options_1.DateOption.DATE || ctx.options.useDate === options_1.DateOption.STRING) {
if (ctx.options.useDate === options_1.DateOption.DATE ||
ctx.options.useDate === options_1.DateOption.STRING ||
ctx.options.useDate === options_1.DateOption.STRING_NANO) {
return (0, ts_poet_1.code) `${ctx.utils.fromTimestamp}(${decoder})`;

@@ -66,0 +70,0 @@ }

@@ -15,2 +15,3 @@ "use strict";

DateOption["STRING"] = "string";
DateOption["STRING_NANO"] = "string-nano";
DateOption["TIMESTAMP"] = "timestamp";

@@ -17,0 +18,0 @@ })(DateOption || (exports.DateOption = DateOption = {}));

@@ -557,3 +557,3 @@ "use strict";

}
if (options.useDate == options_1.DateOption.STRING) {
if (options.useDate == options_1.DateOption.STRING || options.useDate == options_1.DateOption.STRING_NANO) {
return (0, ts_poet_1.code) `string`;

@@ -560,0 +560,0 @@ }

{
"name": "ts-proto",
"version": "1.165.3",
"version": "1.166.0",
"description": "",

@@ -55,2 +55,3 @@ "main": "build/plugin.js",

"mongodb": "^5.7.0",
"nano-date": "^4.1.0",
"nice-grpc": "^2.1.4",

@@ -57,0 +58,0 @@ "object-hash": "^3.0.0",

Sorry, the diff of this file is too big to display

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