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

@foal/core

Package Overview
Dependencies
Maintainers
1
Versions
98
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@foal/core - npm Package Compare versions

Comparing version 1.2.0 to 1.3.0

2

lib/common/errors/object-does-not-exist.d.ts

@@ -10,3 +10,3 @@ /**

content?: any;
readonly isObjectDoesNotExist: boolean;
readonly isObjectDoesNotExist = true;
constructor(content?: any);

@@ -13,0 +13,0 @@ }

@@ -10,3 +10,3 @@ /**

content?: any;
readonly isPermissionDenied: boolean;
readonly isPermissionDenied = true;
constructor(content?: any);

@@ -13,0 +13,0 @@ }

@@ -10,3 +10,3 @@ /**

content?: any;
readonly isValidationError: boolean;
readonly isValidationError = true;
constructor(content?: any);

@@ -13,0 +13,0 @@ }

@@ -0,2 +1,3 @@

/// <reference types="node" />
export declare function sign(base64Value: string, base64Secret: string): Buffer;
export declare function signToken(unsignedToken: string, secret: string): string;

@@ -34,3 +34,3 @@ /**

*/
readonly isHttpResponse: boolean;
readonly isHttpResponse = true;
/**

@@ -161,3 +161,3 @@ * Status code of the response.

*/
readonly isHttpResponseSuccess: boolean;
readonly isHttpResponseSuccess = true;
/**

@@ -199,3 +199,3 @@ * Create an instance of HttpResponseSuccess.

*/
readonly isHttpResponseOK: boolean;
readonly isHttpResponseOK = true;
statusCode: number;

@@ -259,3 +259,3 @@ statusMessage: string;

*/
readonly isHttpResponseCreated: boolean;
readonly isHttpResponseCreated = true;
statusCode: number;

@@ -299,3 +299,3 @@ statusMessage: string;

*/
readonly isHttpResponseNoContent: boolean;
readonly isHttpResponseNoContent = true;
statusCode: number;

@@ -337,3 +337,3 @@ statusMessage: string;

*/
readonly isHttpResponseRedirection: boolean;
readonly isHttpResponseRedirection = true;
/**

@@ -377,5 +377,5 @@ * Create an instance of HttpResponseRedirection.

*/
readonly isHttpResponseMovedPermanently: boolean;
readonly statusCode: number;
readonly statusMessage: string;
readonly isHttpResponseMovedPermanently = true;
readonly statusCode = 301;
readonly statusMessage = "MOVED PERMANENTLY";
/**

@@ -417,3 +417,3 @@ * Create an instance of HttpResponseMovedPermanently.

*/
readonly isHttpResponseRedirect: boolean;
readonly isHttpResponseRedirect = true;
statusCode: number;

@@ -459,3 +459,3 @@ statusMessage: string;

*/
readonly isHttpResponseClientError: boolean;
readonly isHttpResponseClientError = true;
/**

@@ -498,3 +498,3 @@ * Create an instance of HttpResponseClientError.

*/
readonly isHttpResponseBadRequest: boolean;
readonly isHttpResponseBadRequest = true;
statusCode: number;

@@ -539,3 +539,3 @@ statusMessage: string;

*/
readonly isHttpResponseUnauthorized: boolean;
readonly isHttpResponseUnauthorized = true;
statusCode: number;

@@ -580,3 +580,3 @@ statusMessage: string;

*/
readonly isHttpResponseForbidden: boolean;
readonly isHttpResponseForbidden = true;
statusCode: number;

@@ -620,3 +620,3 @@ statusMessage: string;

*/
readonly isHttpResponseNotFound: boolean;
readonly isHttpResponseNotFound = true;
statusCode: number;

@@ -660,3 +660,3 @@ statusMessage: string;

*/
readonly isHttpResponseMethodNotAllowed: boolean;
readonly isHttpResponseMethodNotAllowed = true;
statusCode: number;

@@ -701,3 +701,3 @@ statusMessage: string;

*/
readonly isHttpResponseConflict: boolean;
readonly isHttpResponseConflict = true;
statusCode: number;

@@ -742,3 +742,3 @@ statusMessage: string;

*/
readonly isHttpResponseServerError: boolean;
readonly isHttpResponseServerError = true;
constructor(body?: any, options?: {

@@ -776,3 +776,3 @@ stream?: boolean;

*/
readonly isHttpResponseInternalServerError: boolean;
readonly isHttpResponseInternalServerError = true;
statusCode: number;

@@ -817,3 +817,3 @@ statusMessage: string;

*/
readonly isHttpResponseNotImplemented: boolean;
readonly isHttpResponseNotImplemented = true;
statusCode: number;

@@ -820,0 +820,0 @@ statusMessage: string;

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

@@ -69,3 +68,3 @@ const express = require("express");

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

@@ -72,0 +71,0 @@ const services = new core_1.ServiceManager();

@@ -8,2 +8,3 @@ "use strict";

const token_hook_1 = require("./token.hook");
// TODO: Add missing documentation.
function TokenOptional(options) {

@@ -10,0 +11,0 @@ return (target, propertyKey) => {

@@ -8,2 +8,3 @@ "use strict";

const token_hook_1 = require("./token.hook");
// TODO: Add missing documentation.
function TokenRequired(options) {

@@ -10,0 +11,0 @@ return (target, propertyKey) => {

@@ -8,2 +8,3 @@ "use strict";

const set_session_cookie_1 = require("./set-session-cookie");
// TODO: Add missing documentation.
class InvalidRequestResponse extends core_1.HttpResponseBadRequest {

@@ -10,0 +11,0 @@ constructor(description) {

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

@@ -79,34 +79,33 @@ "main": "./lib/index.js",

"dependencies": {
"@types/express": "^4.16.1",
"ajv": "^6.5.0",
"body-parser": "^1.19.0",
"cookie-parser": "^1.4.3",
"express": "^4.16.3",
"mime": "^2.4.0",
"morgan": "^1.9.0",
"reflect-metadata": "^0.1.10"
"@types/express": "~4.17.2",
"ajv": "~6.10.2",
"cookie-parser": "~1.4.4",
"express": "~4.17.1",
"mime": "~2.4.4",
"morgan": "~1.9.1",
"reflect-metadata": "~0.1.13"
},
"devDependencies": {
"@foal/ejs": "^1.2.0",
"@types/mocha": "^2.2.43",
"@types/node": "^10.1.2",
"@types/supertest": "^2.0.5",
"copy": "^0.3.2",
"ejs": "^2.6.2",
"mocha": "^5.2.0",
"mysql": "^2.15.0",
"node-mocks-http": "^1.7.0",
"nyc": "^12.0.2",
"pg": "^7.4.3",
"rimraf": "^2.6.2",
"source-map-support": "^0.5.6",
"supertest": "^3.1.0",
"ts-node": "^3.3.0",
"twig": "^1.13.3",
"typedoc": "^0.14.2",
"typedoc-plugin-markdown": "^1.2.0",
"typescript": "^2.5.2",
"yamljs": "^0.3.0"
"@foal/ejs": "^1.3.0",
"@types/mocha": "~2.2.43",
"@types/node": "~10.1.2",
"@types/supertest": "~2.0.5",
"copy": "~0.3.2",
"ejs": "~2.6.2",
"mocha": "~5.2.0",
"mysql": "~2.15.0",
"node-mocks-http": "~1.7.0",
"nyc": "~12.0.2",
"pg": "~7.4.3",
"rimraf": "~2.6.2",
"source-map-support": "~0.5.6",
"supertest": "~3.1.0",
"ts-node": "~3.3.0",
"twig": "~1.13.3",
"typedoc": "~0.14.2",
"typedoc-plugin-markdown": "~1.2.0",
"typescript": "~3.5.3",
"yamljs": "~0.3.0"
},
"gitHead": "e910c717ff6c6c62de715087426cac585a213cb0"
"gitHead": "1a89b1176ca5bf15eeffb5b9aec03fe47b34a16e"
}

@@ -19,4 +19,4 @@ <p align="center">

</a>
<a href="https://travis-ci.org/FoalTS/foal">
<img src="https://travis-ci.org/FoalTS/foal.svg?branch=add-travis" alt="Build Status">
<a href="https://github.com/FoalTS/foal/actions">
<img src="https://github.com/FoalTS/foal/workflows/Test/badge.svg" alt="Build Status">
</a>

@@ -23,0 +23,0 @@ <a href="https://codecov.io/github/FoalTS/foal">

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