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

@icholy/duration

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@icholy/duration - npm Package Compare versions

Comparing version 5.0.0 to 5.1.0

1

dist/duration.d.ts

@@ -46,1 +46,2 @@ export declare type DurationLike = Duration | string | number;

}
export default Duration;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.Duration = void 0;
var millisecond = 1, second = 1000 * millisecond, minute = 60 * second, hour = 60 * minute, day = 24 * hour, week = 7 * day;

@@ -201,1 +202,2 @@ var microsecond = millisecond / 1000, nanosecond = microsecond / 1000;

exports.Duration = Duration;
exports.default = Duration;

@@ -270,1 +270,3 @@

}
export default Duration;

5

package.json
{
"name": "@icholy/duration",
"version": "5.0.0",
"version": "5.1.0",
"description": "class for working with time durations",

@@ -18,3 +18,4 @@ "repository": {

"chai": "~1.7.2",
"mocha": "~1.13.0"
"mocha": "^8.2.1",
"typescript": "^4.1.3"
},

@@ -21,0 +22,0 @@ "publishConfig": {

@@ -6,11 +6,9 @@ # Duration [![Build Status](https://travis-ci.org/icholy/Duration.js.png?branch=master)](https://travis-ci.org/icholy/Duration.js)

**Note:** For compatibility with Go's `time.Duration` use the [golang_compatible](https://github.com/icholy/Duration.js/tree/golang_compatible) branch.
``` sh
$ npm install duration-js
$ npm install @icholy/duration
```
``` js
var Duration = require("duration-js");
import { Duration } from "@icholy/duration";
```

@@ -17,0 +15,0 @@

var { Duration} = require("./dist/duration.js"),
{ expect } = require("chai");
var { Duration } = require("./dist/duration.js"),
{ expect } = require("chai");

@@ -5,0 +5,0 @@ var millisecond = 1,

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