@foal/core
Advanced tools
Comparing version 1.2.0 to 1.3.0
@@ -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"> |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
331944
7
8387
+ Addedajv@6.10.2(transitive)
+ Addedbody-parser@1.19.2(transitive)
+ Addedcookie@0.4.2(transitive)
+ Addeddepd@1.1.2(transitive)
+ Addeddestroy@1.0.4(transitive)
+ Addedexpress@4.17.3(transitive)
+ Addedfast-deep-equal@2.0.1(transitive)
+ Addedfinalhandler@1.1.2(transitive)
+ Addedhttp-errors@1.8.1(transitive)
+ Addedmerge-descriptors@1.0.1(transitive)
+ Addedmime@2.4.7(transitive)
+ Addedmorgan@1.9.1(transitive)
+ Addedpath-to-regexp@0.1.7(transitive)
+ Addedqs@6.9.7(transitive)
+ Addedraw-body@2.4.3(transitive)
+ Addedsend@0.17.2(transitive)
+ Addedserve-static@1.14.2(transitive)
+ Addedstatuses@1.5.0(transitive)
- Removedbody-parser@^1.19.0
- Removedajv@6.12.6(transitive)
- Removedbody-parser@1.20.3(transitive)
- Removedcall-bind@1.0.7(transitive)
- Removedcookie@0.7.1(transitive)
- Removeddefine-data-property@1.1.4(transitive)
- Removeddepd@2.0.0(transitive)
- Removeddestroy@1.2.0(transitive)
- Removedencodeurl@2.0.0(transitive)
- Removedes-define-property@1.0.0(transitive)
- Removedes-errors@1.3.0(transitive)
- Removedexpress@4.21.1(transitive)
- Removedfast-deep-equal@3.1.3(transitive)
- Removedfinalhandler@1.3.1(transitive)
- Removedfunction-bind@1.1.2(transitive)
- Removedget-intrinsic@1.2.4(transitive)
- Removedgopd@1.0.1(transitive)
- Removedhas-property-descriptors@1.0.2(transitive)
- Removedhas-proto@1.0.3(transitive)
- Removedhas-symbols@1.0.3(transitive)
- Removedhasown@2.0.2(transitive)
- Removedhttp-errors@2.0.0(transitive)
- Removedmerge-descriptors@1.0.3(transitive)
- Removedmime@2.6.0(transitive)
- Removedmorgan@1.10.0(transitive)
- Removedobject-inspect@1.13.3(transitive)
- Removedon-finished@2.4.1(transitive)
- Removedpath-to-regexp@0.1.10(transitive)
- Removedqs@6.13.0(transitive)
- Removedraw-body@2.5.2(transitive)
- Removedsend@0.19.0(transitive)
- Removedserve-static@1.16.2(transitive)
- Removedset-function-length@1.2.2(transitive)
- Removedside-channel@1.0.6(transitive)
- Removedstatuses@2.0.1(transitive)
Updated@types/express@~4.17.2
Updatedajv@~6.10.2
Updatedcookie-parser@~1.4.4
Updatedexpress@~4.17.1
Updatedmime@~2.4.4
Updatedmorgan@~1.9.1
Updatedreflect-metadata@~0.1.13