Socket
Socket
Sign inDemoInstall

@blossm/datetime

Package Overview
Dependencies
2
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.11 to 0.0.12

src/long_date_string.js

2

index.js

@@ -12,2 +12,3 @@ const timestampFromDate = require("./src/timestamp_from_date");

const longDateStringFromTimestamp = require("./src/long_date_string_from_timestamp");
const longDateString = require("./src/long_date_string");
const weekdayDateStringFromTimestamp = require("./src/weekday_date_string_from_timestamp");

@@ -32,2 +33,3 @@ const componentsFromMoment = require("./src/components_from_moment");

longDateStringFromTimestamp,
longDateString,
weekdayDateStringFromTimestamp,

@@ -34,0 +36,0 @@ componentsFromMoment,

4

package.json
{
"name": "@blossm/datetime",
"version": "0.0.11",
"version": "0.0.12",
"description": "Date and time functionality.",

@@ -27,3 +27,3 @@ "main": "index.js",

},
"gitHead": "064483398d911d10fb211fbd6bbd4e1ecadf870b"
"gitHead": "bc2886fc2fe4bc82187e05fcc6a216f900c400d1"
}
const momentFromTimestamp = require("./moment_from_timestamp");
module.exports = (timestamp) => {
const moment = momentFromTimestamp(timestamp);
return moment.format("MMMM Do YYYY, h:mm:ss a");
};
module.exports = (timestamp) =>
momentFromTimestamp(timestamp).format("MMMM Do YYYY, h:mm:ss a");
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc