Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

configuration

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

configuration - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

6

dist/utils/file.js

@@ -5,3 +5,3 @@ "use strict";

const atomically_1 = require("atomically");
const fs = require("fs");
const watcher_1 = require("watcher");
/* FILE */

@@ -15,5 +15,3 @@ const File = {

const listener = () => callback();
const close = () => fs.unwatchFile(filePath, listener);
fs.watchFile(filePath, { persistent: false, interval: 3000 }, listener);
return { close };
return new watcher_1.default(filePath, { persistent: false, pollingInterval: 3000 }, listener);
}

@@ -20,0 +18,0 @@ };

{
"name": "configuration",
"description": "Performant and feature rich library for managing configurations/settings.",
"version": "2.1.0",
"version": "2.2.0",
"main": "dist/index.js",

@@ -55,3 +55,4 @@ "types": "dist/index.d.ts",

"plain-object-merge": "^1.0.1",
"strip-json-comments": "^3.1.1"
"strip-json-comments": "^3.1.1",
"watcher": "^1.0.0"
},

@@ -58,0 +59,0 @@ "devDependencies": {

@@ -5,3 +5,3 @@

import {readFile, readFileSync, writeFile, writeFileSync} from 'atomically';
import * as fs from 'fs';
import Watcher from 'watcher';
import {FSWatcher} from '../types';

@@ -18,5 +18,3 @@

const listener = () => callback ();
const close = () => fs.unwatchFile ( filePath, listener );
fs.watchFile ( filePath, { persistent: false, interval: 3000 }, listener );
return {close};
return new Watcher ( filePath, { persistent: false, pollingInterval: 3000 }, listener );
}

@@ -23,0 +21,0 @@ };

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