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

webdash

Package Overview
Dependencies
Maintainers
1
Versions
62
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

webdash - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

scripts/webdash-config.json

18

api.js
const express = require('express');
const cors = require('cors');
const bodyParser = require('body-parser');
const fs = require('fs');

@@ -8,2 +9,9 @@ const app = express();

app.use(bodyParser.json());
app.locals.getConfig = () => {
let config = {};
if (fs.existsSync('./webdash.json')) {
config = require('./webdash.json');
}
return config;
}

@@ -41,3 +49,12 @@ const bowerJson = require('./bower.json');

app.get('/api/webdash/config', (req, res) => {
let config = {};
if (fs.existsSync('./webdash.json')){
config = require('./webdash.json');
}
res.send({ config });
});
app.get('/api/webdash/plugins', (req, res) => {

@@ -50,2 +67,3 @@ const plugins = getPlugins(bowerJson);

app.use(express.static(__dirname + '/build/es6-bundled'));

@@ -52,0 +70,0 @@

2

package.json
{
"name": "webdash",
"version": "0.0.5",
"version": "0.0.6",
"license": "MIT",

@@ -5,0 +5,0 @@ "scripts": {

const fs = require('fs');
const { COPYFILE_EXCL } = fs.constants;
fs.copyFile(`${__dirname}/webdash.json`, 'webdash.json', COPYFILE_EXCL, (err) => {
console.log(`${__dirname }/webdash-config.json`);
fs.copyFile(`${__dirname}/webdash-config.json`, 'webdash.json', COPYFILE_EXCL, (err) => {
if (err){

@@ -6,0 +7,0 @@ //configuration file already exists, we can safely proceed

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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