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

libp2p-record

Package Overview
Dependencies
Maintainers
3
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

libp2p-record - npm Package Compare versions

Comparing version 0.6.2 to 0.6.3

10

CHANGELOG.md

@@ -0,1 +1,11 @@

<a name="0.6.3"></a>
## [0.6.3](https://github.com/libp2p/js-libp2p-record/compare/v0.6.2...v0.6.3) (2019-05-23)
### Bug Fixes
* remove leftpad ([#16](https://github.com/libp2p/js-libp2p-record/issues/16)) ([4f46885](https://github.com/libp2p/js-libp2p-record/commit/4f46885))
<a name="0.6.2"></a>

@@ -2,0 +12,0 @@ ## [0.6.2](https://github.com/libp2p/js-libp2p-record/compare/v0.6.1...v0.6.2) (2019-02-20)

10

package.json
{
"name": "libp2p-record",
"version": "0.6.2",
"version": "0.6.3",
"description": "libp2p record implementation",

@@ -41,6 +41,6 @@ "leadMaintainer": "Vasco Santos <vasco.santos@moxy.studio>",

"devDependencies": {
"aegir": "^18.1.1",
"aegir": "^18.2.2",
"chai": "^4.2.0",
"dirty-chai": "^2.0.1",
"libp2p-crypto": "~0.16.0",
"libp2p-crypto": "~0.16.1",
"peer-id": "~0.12.2",

@@ -53,5 +53,4 @@ "pre-commit": "^1.2.2"

"err-code": "^1.1.2",
"left-pad": "^1.3.0",
"multihashes": "~0.4.14",
"multihashing-async": "~0.5.2",
"multihashing-async": "~0.6.0",
"protons": "^1.0.1"

@@ -62,2 +61,3 @@ },

"Friedel Ziegelmayer <dignifiedquire@gmail.com>",
"Hugo Dias <hugomrdias@gmail.com>",
"Matt Joiner <anacrolix@gmail.com>",

@@ -64,0 +64,0 @@ "Vasco Santos <vasco.santos@ua.pt>",

@@ -6,2 +6,3 @@ # js-libp2p-record

[![](https://img.shields.io/badge/freenode-%23libp2p-blue.svg?style=flat-square)](http://webchat.freenode.net/?channels=%23libp2p)
[![Discourse posts](https://img.shields.io/discourse/https/discuss.libp2p.io/posts.svg)](https://discuss.libp2p.io)
[![standard-readme compliant](https://img.shields.io/badge/standard--readme-OK-green.svg?style=flat-square)](https://github.com/RichardLitt/standard-readme)

@@ -8,0 +9,0 @@ [![Coverage Status](https://coveralls.io/repos/github/libp2p/js-libp2p-record/badge.svg?branch=master)](https://coveralls.io/github/libp2p/js-libp2p-record?branch=master)

'use strict'
const leftPad = require('left-pad')
/**

@@ -14,7 +12,7 @@ * Convert a JavaScript date into an `RFC3339Nano` formatted

const year = time.getUTCFullYear()
const month = leftPad(time.getUTCMonth() + 1, 2, '0')
const day = leftPad(time.getUTCDate(), 2, '0')
const hour = leftPad(time.getUTCHours(), 2, '0')
const minute = leftPad(time.getUTCMinutes(), 2, '0')
const seconds = leftPad(time.getUTCSeconds(), 2, '0')
const month = String(time.getUTCMonth() + 1).padStart(2, '0')
const day = String(time.getUTCDate()).padStart(2, '0')
const hour = String(time.getUTCHours()).padStart(2, '0')
const minute = String(time.getUTCMinutes()).padStart(2, '0')
const seconds = String(time.getUTCSeconds()).padStart(2, '0')
const milliseconds = time.getUTCMilliseconds()

@@ -21,0 +19,0 @@ const nanoseconds = milliseconds * 1000 * 1000

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