Socket
Socket
Sign inDemoInstall

litfass

Package Overview
Dependencies
249
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.5.1 to 1.5.2

14

litfass.js

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

const path = require('path');
const puppeteer = require('puppeteer');

@@ -60,2 +61,13 @@ const getDisplays = require('displays');

const purgeConfig = () => {
const configDir = process.env.NODE_CONFIG_DIR || path.join(process.cwd(), 'config');
for (var cacheFile in require.cache) {
if (cacheFile.includes(configDir)) {
delete require.cache[cacheFile];
}
}
delete require.cache[require.resolve('config')];
};
module.exports = new (class Litfass extends EventEmitter {

@@ -70,3 +82,3 @@ displays = [] // an array of displays after litfass was started

process.env.SUPPRESS_NO_CONFIG_WARNING = true;
const config = require('config');
purgeConfig(); const config = require('config');

@@ -73,0 +85,0 @@ // read & resolve the configuration and create a deep copy

5

package.json
{
"name": "litfass",
"version": "1.5.1",
"version": "1.5.2",
"description": "A library for advertising displays",

@@ -50,3 +50,6 @@ "keywords": [

"puppeteer": "^2.1.1"
},
"resolutions": {
"config": "3.3.1"
}
}
SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc