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

typed-duration

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

typed-duration - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

2

dist/index.d.ts

@@ -24,4 +24,4 @@ import { millisecondsOf, secondsOf, minutesOf, hoursOf, daysOf } from "./lib";

valueFrom: (time: import("./lib").MaybeTimeDuration) => number;
isTypedDuration: (maybeTypedDuration: any) => maybeTypedDuration is import("./lib").TimeDuration;
};
export { isTypedDuration } from "./lib";
export type { Milliseconds, Seconds, Minutes, Hours, Days, TimeDuration, MaybeTimeDuration, } from "./lib";

@@ -25,5 +25,4 @@ "use strict";

},
valueFrom: lib_1.valueFrom
valueFrom: lib_1.valueFrom,
isTypedDuration: lib_1.isTypedDuration
};
var lib_2 = require("./lib");
exports.isTypedDuration = lib_2.isTypedDuration;

@@ -33,3 +33,3 @@ interface TypedDuration {

*/
export declare const isTypedDuration: (maybeTypedDuration: MaybeTimeDuration) => maybeTypedDuration is TimeDuration;
export declare const isTypedDuration: (maybeTypedDuration: any) => maybeTypedDuration is TimeDuration;
/**

@@ -36,0 +36,0 @@ * Return the unwrapped number from any typed duration, regardless of its type

{
"name": "typed-duration",
"version": "1.0.3",
"version": "1.0.4",
"description": "Zero-dependency typed duration library for JavaScript",

@@ -23,3 +23,4 @@ "main": "dist/index.js",

"scripts": {
"test": "jest"
"test": "jest",
"prepublishOnly": "jest && tsc"
},

@@ -26,0 +27,0 @@ "repository": {

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