express-response-formatter
Advanced tools
Comparing version 1.1.0 to 1.2.0
@@ -8,2 +8,9 @@ # Changelog | ||
## [1.2.0] - 2020-03-05 | ||
### Added | ||
- Support TypeScript. | ||
- Add CI. | ||
## [1.1.0] - 2019-06-04 | ||
@@ -10,0 +17,0 @@ |
@@ -9,6 +9,3 @@ const app = require('express')() | ||
app.get('/success', (req, res) => { | ||
const users = [ | ||
{ name: 'Dana Kennedy' }, | ||
{ name: 'Warren Young' }, | ||
] | ||
const users = [{ name: 'Dana Kennedy' }, { name: 'Warren Young' }] | ||
@@ -20,6 +17,3 @@ res.formatter.ok(users) | ||
app.get('/success-with-meta', (req, res) => { | ||
const users = [ | ||
{ name: 'Dana Kennedy' }, | ||
{ name: 'Warren Young' }, | ||
] | ||
const users = [{ name: 'Dana Kennedy' }, { name: 'Warren Young' }] | ||
@@ -26,0 +20,0 @@ const meta = { |
{ | ||
"name": "express-response-formatter", | ||
"version": "1.1.0", | ||
"version": "1.2.0", | ||
"main": "lib/index.js", | ||
"scripts": { | ||
"build": "babel src/ -d lib/", | ||
"build": "babel src -d lib --extensions \".ts\"", | ||
"demo": "nodemon example/index.js", | ||
"format": "prettier --write src/**/*.js", | ||
"format": "prettier --write src/**/*.ts", | ||
"test": "jest" | ||
}, | ||
"repository": "https://github.com/aofleejay/express-response-formatter.git", | ||
"author": "kunapot <aofleejay@github.com>", | ||
"author": "aofleejay", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@babel/cli": "7.4.4", | ||
"@babel/core": "7.4.5", | ||
"@babel/preset-env": "7.4.5", | ||
"express": "4.16.2", | ||
"husky": "2.3.0", | ||
"jest": "24.8.0", | ||
"nodemon": "1.14.11", | ||
"prettier": "1.17.1", | ||
"pretty-quick": "1.11.0", | ||
"supertest": "4.0.2" | ||
"@babel/cli": "^7.8.4", | ||
"@babel/core": "^7.8.7", | ||
"@babel/preset-env": "^7.8.7", | ||
"@babel/preset-typescript": "^7.8.3", | ||
"@types/jest": "^25.1.3", | ||
"@types/supertest": "^2.0.8", | ||
"@typescript-eslint/eslint-plugin": "^2.22.0", | ||
"@typescript-eslint/parser": "^2.22.0", | ||
"babel-jest": "^25.1.0", | ||
"eslint": "^6.8.0", | ||
"express": "^4.17.1", | ||
"husky": "^4.2.3", | ||
"jest": "^25.1.0", | ||
"nodemon": "^2.0.2", | ||
"prettier": "^1.19.1", | ||
"pretty-quick": "^2.0.1", | ||
"supertest": "^4.0.2", | ||
"typescript": "^3.8.3" | ||
}, | ||
@@ -26,0 +34,0 @@ "husky": { |
@@ -1,3 +0,5 @@ | ||
# express-response-formatter [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/aofleejay/express-response-formatter/blob/master/LICENSE.md) [![npm](https://img.shields.io/npm/v/express-response-formatter.svg)](https://www.npmjs.com/package/express-response-formatter) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) | ||
# express-response-formatter | ||
[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/aofleejay/express-response-formatter/blob/master/LICENSE.md) [![npm](https://img.shields.io/npm/v/express-response-formatter.svg)](https://www.npmjs.com/package/express-response-formatter) [![code style: prettier](https://img.shields.io/badge/code_style-prettier-ff69b4.svg)](https://github.com/prettier/prettier) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](http://makeapullrequest.com) [![Build Status](https://travis-ci.org/aofleejay/express-response-formatter.svg?branch=master)](https://travis-ci.org/aofleejay/express-response-formatter) | ||
Better way to format Express response | ||
@@ -4,0 +6,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Native code
Supply chain riskContains native code (e.g., compiled binaries or shared libraries). Including native code can obscure malicious behavior.
Found 1 instance in 1 package
135
12946
18
12
266