New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@transloadit/format-duration-ms

Package Overview
Dependencies
Maintainers
5
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@transloadit/format-duration-ms - npm Package Compare versions

Comparing version 0.4.1 to 0.4.2

dist/formatDurationMs.test.d.ts

3

dist/formatDurationMs.d.ts

@@ -1,2 +0,1 @@

declare const _default: (ms: number) => string;
export = _default;
export default function formatDurationMs(ms: number): string;
"use strict";
const prettyMS = require("pretty-ms");
module.exports = function formatDurationMs(ms) {
let human = prettyMS(ms);
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const pretty_ms_1 = __importDefault(require("pretty-ms"));
function formatDurationMs(ms) {
let human = (0, pretty_ms_1.default)(ms);
human = human.replace(/(\d+)\.\d+s/g, '$1s');
human = human.replace(/\s+/g, '');
return human;
};
}
exports.default = formatDurationMs;
//# sourceMappingURL=formatDurationMs.js.map
{
"name": "@transloadit/format-duration-ms",
"version": "0.4.1",
"version": "0.4.2",
"repository": {

@@ -26,3 +26,3 @@ "type": "git",

},
"gitHead": "0a3041d61326d5de201cb1728e1a1a2d7a0cd5bc"
"gitHead": "412a97c914bd1a8c6d21df01c9f7e18ab19b218a"
}

@@ -5,5 +5,5 @@ {

"outDir": "dist/",
"rootDir": "src/",
"rootDir": "src/"
},
"include": ["src/"],
"include": ["src/"]
}

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