@icholy/duration
Advanced tools
Comparing version 5.0.0 to 5.1.0
@@ -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; |
{ | ||
"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, |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
654
29940
3
87