@ne1410s/xprest
Advanced tools
Comparing version 0.0.24 to 0.0.25
@@ -37,3 +37,2 @@ 'use strict'; | ||
var xp__default = /*#__PURE__*/_interopDefaultLegacy(xp); | ||
var bodyParser__namespace = /*#__PURE__*/_interopNamespace(bodyParser); | ||
var ejs__namespace = /*#__PURE__*/_interopNamespace(ejs); | ||
@@ -106,3 +105,3 @@ var path__namespace = /*#__PURE__*/_interopNamespace(path); | ||
this.api.use(cors__default['default']()); | ||
this.api.use(bodyParser__namespace.json()); | ||
this.api.use(bodyParser.json); | ||
this.api.engine('html', ejs__namespace.renderFile); | ||
@@ -109,0 +108,0 @@ this.api.engine('js', ejs__namespace.renderFile); |
import cors from 'cors'; | ||
import xp from 'express'; | ||
import * as bodyParser from 'body-parser'; | ||
import { json } from 'body-parser'; | ||
import * as ejs from 'ejs'; | ||
@@ -72,3 +72,3 @@ import * as path from 'path'; | ||
this.api.use(cors()); | ||
this.api.use(bodyParser.json()); | ||
this.api.use(json); | ||
this.api.engine('html', ejs.renderFile); | ||
@@ -75,0 +75,0 @@ this.api.engine('js', ejs.renderFile); |
{ | ||
"name": "@ne1410s/xprest", | ||
"version": "0.0.24", | ||
"version": "0.0.25", | ||
"description": "RESTful express core library", | ||
@@ -41,14 +41,14 @@ "main": "dist/ne14_xprest.cjs.min.js", | ||
"devDependencies": { | ||
"@types/cors": "^2.8.10", | ||
"@types/ejs": "^3.0.6", | ||
"@types/express": "^4.17.11", | ||
"@types/jws": "^3.2.3", | ||
"@types/node": "^15.6.0", | ||
"@types/cors": "^2.8.12", | ||
"@types/ejs": "^3.0.7", | ||
"@types/express": "^4.17.13", | ||
"@types/jws": "^3.2.4", | ||
"@types/node": "^16.3.3", | ||
"chai": "^4.3.4", | ||
"mocha": "^8.4.0", | ||
"prettier": "^2.3.0", | ||
"mocha": "^9.0.2", | ||
"prettier": "^2.3.2", | ||
"rimraf": "^3.0.2", | ||
"rollup": "^2.48.0", | ||
"rollup": "^2.53.2", | ||
"rollup-plugin-typescript2": "^0.30.0", | ||
"typescript": "^4.2.4" | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -55,0 +55,0 @@ "dependencies": { |
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
198
13
4
43883
941