Comparing version 1.0.0 to 1.0.1
{ | ||
"name": "reqlogs", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "A simple logger, which logs the request to server in form of tables, it helps to debug the connection with client and can also be used for metrics.", | ||
"main": "build/index.js", | ||
"main": "dist/index.js", | ||
"scripts": { | ||
"clean": "rimraf dist/*", | ||
"copy-assets": "ts-node src/tools/copyAssets", | ||
"lint": "tslint -c tslint.json -p tsconfig.json --fix", | ||
"tsc": "tsc", | ||
"build": "npm-run-all clean lint tsc copy-assets", | ||
"dev:start": "npm-run-all build start", | ||
"prepublish": "tsc", | ||
"test": "echo \"Error: no test specified\" && exit 1", | ||
"start": "ts-node src/index.ts", | ||
"build": "tsc", | ||
"dev": "nodemon --exec ts-node src/index.ts" | ||
"start": "ts-node index.ts", | ||
"dev": "nodemon --exec ts-node index.ts" | ||
}, | ||
"keywords": ["express", "logger", "request-logger", "debugging"], | ||
"types": "dist/index.d.ts", | ||
"keywords": [ | ||
"express", | ||
"logger", | ||
"request-logger", | ||
"debugging" | ||
], | ||
"author": "Akshat Garg", | ||
@@ -25,7 +37,14 @@ "license": "ISC", | ||
"@types/cors": "^2.8.10", | ||
"@types/express": "^4.17.11", | ||
"@types/fs-extra": "^9.0.11", | ||
"@types/node": "^14.14.39", | ||
"@types/shelljs": "^0.8.8", | ||
"fs-extra": "^9.1.0", | ||
"nodemon": "^2.0.7", | ||
"npm-run-all": "^4.1.5", | ||
"rimraf": "^3.0.2", | ||
"shelljs": "^0.8.4", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.2.4", | ||
"@types/express": "^4.17.11", | ||
"@types/node": "^14.14.39" | ||
"typescript": "^4.2.4" | ||
} | ||
} |
@@ -18,4 +18,5 @@ // import express , {Request, Response} from 'express' | ||
// }) | ||
// Copy all the view templates | ||
import {RequestLogger} from './request' | ||
export default RequestLogger |
@@ -33,4 +33,2 @@ import express, {Request, Response, NextFunction, Router} from 'express' | ||
this.ignore_urls = ignore_urls || [] | ||
@@ -37,0 +35,0 @@ // @ts-ignore |
@@ -13,7 +13,7 @@ { | ||
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */ | ||
// "declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
"declaration": true, /* Generates corresponding '.d.ts' file. */ | ||
// "declarationMap": true, /* Generates a sourcemap for each corresponding '.d.ts' file. */ | ||
// "sourceMap": true, /* Generates corresponding '.map' file. */ | ||
// "outFile": "./", /* Concatenate and emit output to single file. */ | ||
"outDir": "./build", /* Redirect output structure to the directory. */ | ||
"outDir": "./dist", /* Redirect output structure to the directory. */ | ||
"rootDir": "./src", /* Specify the root directory of input files. Use to control the output directory structure with --outDir. */ | ||
@@ -46,4 +46,10 @@ // "composite": true, /* Enable project compilation */ | ||
"moduleResolution": "node", /* Specify module resolution strategy: 'node' (Node.js) or 'classic' (TypeScript pre-1.6). */ | ||
// "baseUrl": "./", /* Base directory to resolve non-absolute module names. */ | ||
// "paths": {}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ | ||
"baseUrl": "./", /* Base directory to resolve non-absolute module names. */ | ||
"paths": { | ||
"*": [ | ||
"node_modules/*", | ||
"src/views/*", | ||
"src/types/*" | ||
] | ||
}, /* A series of entries which re-map imports to lookup locations relative to the 'baseUrl'. */ | ||
// "rootDirs": [], /* List of root folders whose combined content represents the structure of the project at runtime. */ | ||
@@ -50,0 +56,0 @@ // "typeRoots": [], /* List of folders to include type definitions from. */ |
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
59443
24
474
12
1