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

restapify

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

restapify - npm Package Compare versions

Comparing version 0.0.18 to 0.0.19

dist/configureServer.d.ts

6

dist/Restapify.d.ts

@@ -24,2 +24,6 @@ import { HttpVerb, RestapifyErrorCallbackParam, RestapifyEventCallback, RestapifyEventName } from './types';

};
export interface RunOptions {
hard?: boolean;
startServer?: boolean;
}
declare class Restapify {

@@ -54,3 +58,3 @@ private eventCallbacksStore;

private startServer;
run: (restartedBecauseOfHotWatch?: boolean) => void;
run: (options?: RunOptions | undefined) => void;
private configEventsCallbacks;

@@ -57,0 +61,0 @@ private removeState;

31

dist/Restapify.js

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

this.close();
this.run(!hardRestart);
this.run({ hard: hardRestart });
};

@@ -204,5 +204,11 @@ this.checkApiBaseUrl = () => {

};
this.run = (restartedBecauseOfHotWatch = false) => {
this.run = (options) => {
let hard = true;
let startServer = true;
if (options) {
hard = options.hard || true;
startServer = options.startServer || true;
}
try {
if (!restartedBecauseOfHotWatch) {
if (hard) {
this.configEventsCallbacks();

@@ -213,17 +219,20 @@ this.checkApiBaseUrl();

this.listRouteFiles();
this.configRoutesFromListedFiles();
this.checkJsonFiles();
this.configServer();
if (!restartedBecauseOfHotWatch)
if (startServer)
this.configServer();
if (hard && startServer)
this.configDashboard();
this.configInternalApi();
if (!restartedBecauseOfHotWatch)
if (startServer)
this.configInternalApi();
if (hard)
this.configHotWatch();
if (!restartedBecauseOfHotWatch && this.autoOpenDashboard)
if (hard && this.autoOpenDashboard && startServer)
this.openDashboard();
if (!restartedBecauseOfHotWatch)
if (hard && startServer)
this.executeCallbacks('server:start');
this.startServer();
if (!restartedBecauseOfHotWatch)
if (hard)
this.executeCallbacks('start');
else
else if (startServer)
this.executeCallbacks('server:restart');

@@ -230,0 +239,0 @@ }

{
"name": "restapify",
"version": "0.0.18",
"version": "0.0.19",
"main": "dist/index.js",

@@ -5,0 +5,0 @@ "files": [

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