express-marshal
Advanced tools
Comparing version 1.1.1 to 1.1.2
@@ -5,2 +5,6 @@ # Changelog | ||
### [1.1.2](https://github.com/heydoctor/express-marshal/compare/v1.1.1...v1.1.2) (2019-10-17) | ||
### [1.1.1](https://github.com/heydoctor/express-marshal/compare/v1.1.0...v1.1.1) (2019-10-17) | ||
@@ -7,0 +11,0 @@ |
@@ -1,2 +0,2 @@ | ||
import Joi from 'joi'; | ||
import * as Joi from 'joi'; | ||
import { Router } from 'express'; | ||
@@ -3,0 +3,0 @@ export declare const prettyPath: (path: string) => string; |
@@ -10,3 +10,3 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
var joi_1 = require("joi"); | ||
var Joi = require("joi"); | ||
var express_1 = require("express"); | ||
@@ -88,3 +88,3 @@ exports.prettyPath = function (path) { | ||
try { | ||
joi_1.default.assert(payload, schema.isJoi ? schema : joi_1.default.object(schema)); | ||
Joi.assert(payload, schema.isJoi ? schema : Joi.object(schema)); | ||
return fn.apply(target, __spreadArrays([req, res], rest)); | ||
@@ -91,0 +91,0 @@ } |
{ | ||
"name": "express-marshal", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Helpful decorators to wire up Express controllers", | ||
@@ -18,3 +18,4 @@ "license": "MIT", | ||
"format": "prettier --single-quote --trailing-comma es5 --write '{src,test}/**/*.ts'", | ||
"build": "rimraf dist && tsc -p tsconfig.build.json" | ||
"build": "rimraf dist && tsc -p tsconfig.build.json", | ||
"release": "npm run build && standard-version" | ||
}, | ||
@@ -21,0 +22,0 @@ "main": "dist/index.js", |
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
14547