Socket
Socket
Sign inDemoInstall

make-dev-fast

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

make-dev-fast - npm Package Compare versions

Comparing version 0.2.17 to 0.2.18

dist/static.js

2

dist/index.js

@@ -30,2 +30,3 @@ var __create = Object.create;

var import_where = __toModule(require("./where"));
var import_static = __toModule(require("./static"));
class CLI extends import_command_core.CoreBaseCLI {

@@ -54,2 +55,3 @@ loadExtensions() {

this.core.addPlugin(import_where.WherePlugin);
this.core.addPlugin(import_static.StaticServerPlugin);
}

@@ -56,0 +58,0 @@ async loadDefaultOptions() {

@@ -30,5 +30,7 @@ var __create = Object.create;

getGlobalCache: () => getGlobalCache,
getIp: () => getIp,
getVersion: () => getVersion,
setCache: () => setCache,
sleep: () => sleep
sleep: () => sleep,
time: () => time
});

@@ -107,5 +109,5 @@ var import_child_process = __toModule(require("child_process"));

};
const sleep = (time) => {
const sleep = (time2) => {
return new Promise((resolve) => {
setTimeout(resolve, time || 1e3);
setTimeout(resolve, time2 || 1e3);
});

@@ -121,2 +123,20 @@ };

};
const time = () => {
const date = new Date();
return `${padZero(date.getMonth() + 1)}/${padZero(date.getDate())} ${padZero(date.getHours())}:${padZero(date.getMinutes())}:${padZero(date.getSeconds())}`;
};
const padZero = (num, len = 2) => {
return ("0000" + num).slice(-len);
};
const getIp = () => {
const interfaces = (0, import_os.networkInterfaces)();
for (const devName in interfaces) {
const iface = interfaces[devName];
for (const alias of iface) {
if (alias.family === "IPv4" && alias.address !== "127.0.0.1" && !alias.internal) {
return alias.address;
}
}
}
};
// Annotate the CommonJS export names for ESM import in node:

@@ -129,5 +149,7 @@ 0 && (module.exports = {

getGlobalCache,
getIp,
getVersion,
setCache,
sleep
sleep,
time
});

4

package.json
{
"name": "make-dev-fast",
"version": "0.2.17",
"version": "0.2.18",
"description": "make-dev-fast",

@@ -22,2 +22,4 @@ "main": "./dist/index.js",

"fs-extra": "^10.0.0",
"koa": "^2.14.2",
"koa-static": "^5.0.0",
"light-spinner": "^1.0.4",

@@ -24,0 +26,0 @@ "minimist": "^1.2.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