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

obsidian-daily-notes-interface

Package Overview
Dependencies
Maintainers
1
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

obsidian-daily-notes-interface - npm Package Compare versions

Comparing version 0.8.3 to 0.8.4

17

dist/main.js

@@ -226,3 +226,3 @@ 'use strict';

.replace(/{{\s*title\s*}}/gi, filename)
.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.*)?}}/gi, (_, _timeOrDate, calc, timeDelta, unit, momentFormat) => {
.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi, (_, _timeOrDate, calc, timeDelta, unit, momentFormat) => {
const now = moment();

@@ -309,11 +309,16 @@ const currentDate = date.clone().set({

const createdFile = await vault.create(normalizedPath, templateContents
.replace(/{{\s*(date|time)\s*:(.*?)}}/gi, (_, _timeOrDate, momentFormat) => {
.replace(/{{\s*(date|time)\s*(([+-]\d+)([yqmwdhs]))?\s*(:.+?)?}}/gi, (_, _timeOrDate, calc, timeDelta, unit, momentFormat) => {
const now = window.moment();
return date
.set({
const currentDate = date.clone().set({
hour: now.get("hour"),
minute: now.get("minute"),
second: now.get("second"),
})
.format(momentFormat.trim());
});
if (calc) {
currentDate.add(parseInt(timeDelta, 10), unit);
}
if (momentFormat) {
return currentDate.format(momentFormat.substring(1).trim());
}
return currentDate.format(format);
})

@@ -320,0 +325,0 @@ .replace(/{{\s*title\s*}}/gi, filename)

{
"name": "obsidian-daily-notes-interface",
"version": "0.8.3",
"version": "0.8.4",
"description": "Interface for creating daily notes in Obsidian",

@@ -5,0 +5,0 @@ "author": "liamcain",

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