Socket
Socket
Sign inDemoInstall

live-directory

Package Overview
Dependencies
0
Maintainers
1
Versions
21
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.3 to 1.0.4

2

package.json
{
"name": "live-directory",
"version": "1.0.3",
"version": "1.0.4",
"description": "A Simple-To-Use Dynamic Template Content Manager For Webservers",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -5,2 +5,3 @@ const FileSystem = require('fs');

#path;
#extension = '';
#content;

@@ -18,5 +19,9 @@ #watcher;

this.#path = path;
const path_chunks = this.#path.split('.');
this.#extension = path_chunks[path_chunks.length - 1];
this.#watcher_delay = watcher_delay;
this.#last_update = Date.now() - watcher_delay;
this.#renderer = renderer;
this._init_watcher();

@@ -137,2 +142,6 @@ this._reload_content();

get extension() {
return this.#extension;
}
get content() {

@@ -139,0 +148,0 @@ return this.#content;

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