Socket
Socket
Sign inDemoInstall

@voiceflow/common

Package Overview
Dependencies
Maintainers
18
Versions
130
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@voiceflow/common - npm Package Compare versions

Comparing version 7.5.0 to 7.6.0

20

build/utils/time.js

@@ -13,2 +13,3 @@ "use strict";

const relativeTime_1 = __importDefault(require("dayjs/plugin/relativeTime"));
const updateLocale_1 = __importDefault(require("dayjs/plugin/updateLocale"));
const utc_1 = __importDefault(require("dayjs/plugin/utc"));

@@ -21,2 +22,21 @@ dayjs_1.default.extend(utc_1.default);

dayjs_1.default.extend(advancedFormat_1.default);
dayjs_1.default.extend(updateLocale_1.default);
// https://day.js.org/docs/en/customization/relative-time
dayjs_1.default.updateLocale('en', {
relativeTime: {
future: 'in %s',
past: '%s ago',
s: 'seconds',
m: 'a minute',
mm: '%d minutes',
h: 'an hour',
hh: '%d hours',
d: 'a day',
dd: '%d days',
M: 'a month',
MM: '%d months',
y: 'a year',
yy: '%d years',
},
});
const getCurrentTimestamp = () => Math.floor(Date.now() / 1000);

@@ -23,0 +43,0 @@ exports.getCurrentTimestamp = getCurrentTimestamp;

2

package.json
{
"name": "@voiceflow/common",
"description": "Junk drawer of utility functions",
"version": "7.5.0",
"version": "7.6.0",
"author": "Voiceflow",

@@ -6,0 +6,0 @@ "bugs": {

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