Socket
Socket
Sign inDemoInstall

@foal/core

Package Overview
Dependencies
93
Maintainers
1
Versions
96
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.8 to 0.8.9

5

lib/core/config.js

@@ -151,3 +151,6 @@ "use strict";

}
const n = parseInt(value, 10);
if (value.replace(/ /g, '') === '') {
return value;
}
const n = Number(value);
if (!isNaN(n)) {

@@ -154,0 +157,0 @@ return n;

2

lib/express/create-app.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
// 3p
const bodyParser = require("body-parser");
const cookieParser = require("cookie-parser");

@@ -40,2 +41,3 @@ const csurf = require("csurf");

app.use(express.urlencoded({ extended: false }));
app.use(bodyParser.text({ type: ['text/*', 'application/graphql'] }));
app.use(cookieParser());

@@ -42,0 +44,0 @@ app.use(session({

{
"name": "@foal/core",
"version": "0.8.8",
"version": "0.8.9",
"description": "High level web framework to create enterprise-grade Node.JS applications.",

@@ -8,3 +8,3 @@ "main": "./lib/index.js",

"scripts": {
"generate:api:docs": "ts-docs-gen --entryFile ./src/index.ts --output ../../docs/api/core",
"docs": "typedoc --out ../../docs/api/core src/index.ts --readme none --theme markdown",
"test": "nyc --reporter=json --reporter=text mocha --require ts-node/register --require source-map-support/register \"./src/**/*.spec.ts\"",

@@ -81,2 +81,3 @@ "dev:test": "mocha --require ts-node/register --watch --watch-extensions ts \"./src/**/*.spec.ts\"",

"ajv": "^6.5.0",
"body-parser": "^1.19.0",
"cookie-parser": "^1.4.3",

@@ -91,3 +92,3 @@ "csurf": "^1.9.0",

"devDependencies": {
"@foal/ejs": "^0.8.8",
"@foal/ejs": "^0.8.9",
"@types/mocha": "^2.2.43",

@@ -104,4 +105,5 @@ "@types/node": "^10.1.2",

"supertest": "^3.1.0",
"ts-docs-gen": "0.2.0",
"ts-node": "^3.3.0",
"typedoc": "^0.14.2",
"typedoc-plugin-markdown": "^1.2.0",
"typescript": "^2.5.2",

@@ -108,0 +110,0 @@ "yamljs": "^0.3.0"

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc