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

@men-mvc/foundation

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@men-mvc/foundation - npm Package Compare versions

Comparing version 0.92.0 to 0.93.0

lib/types/applicationEvents.d.ts

4

lib/types/errorCodes.d.ts

@@ -5,3 +5,5 @@ export declare enum ErrorCodes {

INVALID_PAYLOAD_FORMAT = "InvalidPayloadFormat",
UPLOAD_MAX_FILESIZE_LIMIT = "UploadMaxFilesizeLimit"
UPLOAD_MAX_FILESIZE_LIMIT = "UploadMaxFilesizeLimit",
APPLICATION_NOT_INITIALISED_YET = "ApplicationNotInitialisedYet",
FILE_NOT_PUBLIC = "FileNotPublic"
}

@@ -10,2 +10,4 @@ "use strict";

ErrorCodes["UPLOAD_MAX_FILESIZE_LIMIT"] = "UploadMaxFilesizeLimit";
ErrorCodes["APPLICATION_NOT_INITIALISED_YET"] = "ApplicationNotInitialisedYet";
ErrorCodes["FILE_NOT_PUBLIC"] = "FileNotPublic";
})(ErrorCodes = exports.ErrorCodes || (exports.ErrorCodes = {}));
export * from './deepPartial';
export * from './errorCodes';
export * from './abstractApplication';
export * from './baseApplication';
export * from './uploadedFile';

@@ -16,1 +16,4 @@ export * from './readableString';

export * from './requestValidator';
export * from './applicationEvents';
export * from './applicationNotInitialisedError';
export * from './fileNotPublicError';

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

__exportStar(require("./errorCodes"), exports);
__exportStar(require("./abstractApplication"), exports);
__exportStar(require("./baseApplication"), exports);
__exportStar(require("./uploadedFile"), exports);

@@ -33,1 +33,4 @@ __exportStar(require("./readableString"), exports);

__exportStar(require("./requestValidator"), exports);
__exportStar(require("./applicationEvents"), exports);
__exportStar(require("./applicationNotInitialisedError"), exports);
__exportStar(require("./fileNotPublicError"), exports);

@@ -7,1 +7,2 @@ export declare const setServerDirectory: (dir: string) => void;

export declare const clearIsInSourceDirCachedValue: () => void;
export declare const getAppBaseUrl: () => string;

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

Object.defineProperty(exports, "__esModule", { value: true });
exports.clearIsInSourceDirCachedValue = exports.isInSourceDirectory = exports.clearAppRootDirectoryCache = exports.getAppRootDirectory = exports.getServerDirectory = exports.setServerDirectory = void 0;
exports.getAppBaseUrl = exports.clearIsInSourceDirCachedValue = exports.isInSourceDirectory = exports.clearAppRootDirectoryCache = exports.getAppRootDirectory = exports.getServerDirectory = exports.setServerDirectory = void 0;
const path_1 = __importDefault(require("path"));
const config_1 = require("@men-mvc/config");
const types_1 = require("../types");
const setServerDirectory = (dir) => (0, config_1.setEnvVariable)('SERVER_DIRECTORY', dir);

@@ -68,1 +69,9 @@ exports.setServerDirectory = setServerDirectory;

exports.clearIsInSourceDirCachedValue = clearIsInSourceDirCachedValue;
const getAppBaseUrl = () => {
if ((0, config_1.getEnvVariable)(`APP_BASE_URL`)) {
return (0, config_1.getEnvVariable)(`APP_BASE_URL`);
}
const req = types_1.BaseApplication.getInstance().app.request;
return req.protocol + '://' + req.get('host');
};
exports.getAppBaseUrl = getAppBaseUrl;

@@ -8,1 +8,2 @@ export * from './str';

export * from './app';
export * from './route';

@@ -24,1 +24,2 @@ "use strict";

__exportStar(require("./app"), exports);
__exportStar(require("./route"), exports);
{
"name": "@men-mvc/foundation",
"version": "0.92.0",
"version": "0.93.0",
"description": "Package that includes shared variables, types and utility functions for MEN MVC framework.",

@@ -30,3 +30,3 @@ "private": false,

"dependencies": {
"@men-mvc/config": "^0.92.0",
"@men-mvc/config": "^0.93.0",
"express": "^4.18.2",

@@ -53,3 +53,3 @@ "joi": "^17.9.1",

"license": "MIT",
"gitHead": "4b41bce28afad8e364b7e38c3ecd7de477133bf7"
"gitHead": "8fe491f22e9d12fe8282755796e070aa76b32662"
}
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