Socket
Socket
Sign inDemoInstall

proto3-json-serializer

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

proto3-json-serializer - npm Package Compare versions

Comparing version 0.1.7 to 0.1.8

6

build/src/timestamp.js

@@ -42,3 +42,7 @@ "use strict";

// To keep the precision, we extract the fractional seconds and append 0 until the length is equal to 9.
const nanos = parseInt(json.split('.')[1].slice(0, -1).padEnd(9, '0'));
let nanos = 0;
const secondsFromDate = json.split('.')[1];
if (secondsFromDate) {
nanos = parseInt(secondsFromDate.slice(0, -1).padEnd(9, '0'));
}
const result = {};

@@ -45,0 +49,0 @@ if (seconds !== 0) {

# Changelog
### [0.1.8](https://github.com/googleapis/proto3-json-serializer-nodejs/compare/v0.1.7...v0.1.8) (2022-01-21)
### Bug Fixes
* timestamp without millisecond ([#30](https://github.com/googleapis/proto3-json-serializer-nodejs/issues/30)) ([a55d0b6](https://github.com/googleapis/proto3-json-serializer-nodejs/commit/a55d0b6f98f6d1c8b7d971d0a583bbd82ea66983))
### [0.1.7](https://github.com/googleapis/proto3-json-serializer-nodejs/compare/v0.1.6...v0.1.7) (2022-01-14)

@@ -4,0 +11,0 @@

2

package.json
{
"name": "proto3-json-serializer",
"version": "0.1.7",
"version": "0.1.8",
"repository": "googleapis/proto3-json-serializer-nodejs",

@@ -5,0 +5,0 @@ "description": "Support for proto3 JSON serialiazation/deserialization for protobuf.js",

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