Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

json-logger-service

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-logger-service - npm Package Compare versions

Comparing version 1.0.20 to 7.6.4

23

dist/index.js
"use strict";
function __export(m) {
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
}
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
}) : (function(o, m, k, k2) {
if (k2 === undefined) k2 = k;
o[k2] = m[k];
}));
var __exportStar = (this && this.__exportStar) || function(m, exports) {
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
};
Object.defineProperty(exports, "__esModule", { value: true });
__export(require("./src/JsonLogger"));
__export(require("./src/LoggerFactory"));
__export(require("./src/JsonLoggerService"));
__export(require("./src/RequestLoggerOptions"));
__export(require("./src/RequestLogger"));
__exportStar(require("./src/JsonLogger"), exports);
__exportStar(require("./src/LoggerFactory"), exports);
__exportStar(require("./src/JsonLoggerService"), exports);
__exportStar(require("./src/RequestLoggerOptions"), exports);
__exportStar(require("./src/RequestLogger"), exports);
//# sourceMappingURL=index.js.map
"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -15,3 +16,3 @@ });

let jsonLoggerService;
beforeAll(() => __awaiter(this, void 0, void 0, function* () {
beforeAll(() => __awaiter(void 0, void 0, void 0, function* () {
process.env.LOGGER_ENV = 'test';

@@ -18,0 +19,0 @@ index_1.LoggerFactory.setDefaultLogCustomContextBuilder(undefined);

"use strict";
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : new P(function (resolve) { resolve(result.value); }).then(fulfilled, rejected); }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());

@@ -25,3 +26,3 @@ });

};
beforeEach(() => __awaiter(this, void 0, void 0, function* () {
beforeEach(() => __awaiter(void 0, void 0, void 0, function* () {
loggerMock = ts_mockito_1.mock(index_1.JsonLogger);

@@ -28,0 +29,0 @@ requestLogger = index_1.RequestLogger.buildExpressRequestLogger({ jsonLogger: ts_mockito_1.instance(loggerMock) });

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonLogger = void 0;
const LoggerFactory_1 = require("./LoggerFactory");

@@ -4,0 +5,0 @@ class JsonLogger {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.JsonLoggerService = void 0;
const LoggerFactory_1 = require("./LoggerFactory");

@@ -4,0 +5,0 @@ class JsonLoggerService {

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.LoggerFactory = void 0;
const Logger = require("bunyan");

@@ -4,0 +5,0 @@ const JsonLogger_1 = require("./JsonLogger");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestLogger = void 0;
const LoggerFactory_1 = require("./LoggerFactory");

@@ -4,0 +5,0 @@ const onFinished = require('on-finished');

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.RequestLoggerOptions = void 0;
class RequestLoggerOptions {

@@ -4,0 +5,0 @@ }

{
"name": "json-logger-service",
"version": "1.0.20",
"version": "7.6.4",
"description": "Nest Json LoggerService implementation.",

@@ -35,23 +35,30 @@ "main": "dist/index",

"dependencies": {
"@nestjs/common": "^6.0.0",
"@nestjs/core": "^6.0.0",
"@nestjs/platform-express": "^6.0.0",
"@nestjs/common": "^7.6.4",
"@nestjs/core": "^7.6.4",
"@nestjs/platform-express": "^7.6.4",
"bunyan": "^2.0.0",
"on-finished": "^2.3.0",
"reflect-metadata": "^0.1.13",
"rxjs": "^6.0.0"
"rxjs": "^6.6.3"
},
"devDependencies": {
"@types/jest": "^25.1.0",
"@types/node": "^10.12.18",
"@types/supertest": "^2.0.7",
"jest": "^25.0.0",
"rimraf": "^2.6.3",
"ts-jest": "^25.0.0",
"ts-mockito": "^2.5.0",
"tslint": "^5.0.0",
"tslint-config-airbnb": "^5.11.1",
"tslint-microsoft-contrib": "^6.1.0",
"typescript": "^3.4.3"
"@types/jest": "^26.0.19",
"@types/node": "^14.14.16",
"@types/supertest": "^2.0.10",
"@typescript-eslint/eslint-plugin": "^4.11.0",
"@typescript-eslint/eslint-plugin-tslint": "^4.11.0",
"@typescript-eslint/parser": "^4.11.0",
"eslint": "^7.16.0",
"eslint-plugin-jsdoc": "^30.7.9",
"eslint-plugin-no-null": "^1.0.2",
"eslint-plugin-prefer-arrow": "^1.2.2",
"jest": "^26.6.3",
"rimraf": "^3.0.2",
"ts-jest": "^26.4.4",
"ts-mockito": "^2.6.1",
"tslint": "^6.1.3",
"tslint-config-airbnb": "^5.11.2",
"tslint-microsoft-contrib": "^6.2.0",
"typescript": "^4.1.3"
}
}

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc