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

lalog

Package Overview
Dependencies
Maintainers
1
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lalog - npm Package Compare versions

Comparing version 0.8.1 to 0.8.2

.github/workflows/continuous-integration-workflow.yml

5

.eslintrc.js

@@ -25,2 +25,7 @@ module.exports = {

"import/prefer-default-export": [0],
'import/extensions': [2, {
ts: 'never', // Never require .ts extensions
json: 'always', // Always require .json extensions
}
],
"jest/no-disabled-tests": [2],

@@ -27,0 +32,0 @@ "jest/no-focused-tests": [2],

11

dist/index.js
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const uuid_1 = __importDefault(require("uuid"));
const uuid_1 = require("uuid");
const utils_1 = require("./utils");

@@ -26,3 +23,3 @@ const loggly_wrapper_1 = require("./loggly-wrapper");

if (addTrackId && !this.presets.trackId) {
this.presets.trackId = uuid_1.default.v4();
this.presets.trackId = uuid_1.v4();
}

@@ -109,3 +106,3 @@ this.tag = `${serviceName}-${process.env.NODE_ENV}`;

writeTimeEnd(label, level, extraLogDat) {
const levelIndex = levels.indexOf((level !== null && level !== void 0 ? level : 'info'));
const levelIndex = levels.indexOf(level !== null && level !== void 0 ? level : 'info');
const extraLogData = extraLogDat || {};

@@ -137,3 +134,3 @@ const time = this.timers[label];

// that can be provided to the user and links back to the error log.
const errorId = logObj.errorId || uuid_1.default.v4();
const errorId = logObj.errorId || uuid_1.v4();
logObj.errorId = errorId;

@@ -140,0 +137,0 @@ const { res, code } = response;

@@ -12,2 +12,2 @@ export interface LogSingleOptions {

}
export declare const logBatch: (options: LogBatchOptions) => Promise<void | object>;
export declare const logBatch: (options: LogBatchOptions) => Promise<object | void>;

@@ -6,2 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.logBatch = exports.logSingle = void 0;
const node_fetch_1 = __importDefault(require("node-fetch"));

@@ -8,0 +9,0 @@ const utils_1 = require("./utils");

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.isObject = void 0;
exports.isObject = (obj) => !!obj && obj.toString() === '[object Object]' && !Array.isArray(obj);
//# sourceMappingURL=utils.js.map

@@ -1,2 +0,2 @@

import uuid from 'uuid';
import { v4 } from 'uuid';
import { isObject } from './utils';

@@ -89,3 +89,3 @@

if (addTrackId && !this.presets.trackId) {
this.presets.trackId = uuid.v4();
this.presets.trackId = v4();
}

@@ -220,3 +220,3 @@

// that can be provided to the user and links back to the error log.
const errorId = logObj.errorId || uuid.v4();
const errorId = logObj.errorId || v4();
logObj.errorId = errorId;

@@ -240,3 +240,2 @@ const { res, code } = response;

if (levelIndex >= currentLevelIndex || this.isTransient) {

@@ -243,0 +242,0 @@ logObj.level = levels[levelIndex];

@@ -7,26 +7,26 @@ {

"dependencies": {
"node-fetch": "2.6.0",
"uuid": "3.3.3"
"node-fetch": "2.6.1",
"uuid": "8.3.1"
},
"description": "Logging aggregation and distribution",
"devDependencies": {
"@types/jest": "24.0.23",
"@types/node": "12.12.14",
"@types/node-fetch": "2.5.4",
"@types/uuid": "3.4.6",
"@typescript-eslint/eslint-plugin": "2.9.0",
"@typescript-eslint/parser": "2.9.0",
"eslint": "6.7.1",
"eslint-config-airbnb-base": "14.0.0",
"eslint-plugin-import": "2.18.2",
"eslint-plugin-jest": "23.1.0",
"@types/jest": "26.0.15",
"@types/node": "14.14.7",
"@types/node-fetch": "2.5.7",
"@types/uuid": "8.3.0",
"@typescript-eslint/eslint-plugin": "2.34.0",
"@typescript-eslint/parser": "2.34.0",
"eslint": "6.8.0",
"eslint-config-airbnb-base": "14.2.1",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jest": "24.1.0",
"eslint-plugin-security": "1.4.0",
"jest": "24.9.0",
"jest-circus": "24.9.0",
"jest": "25.5.4",
"jest-circus": "26.6.3",
"pre-commit": "1.2.2",
"ts-jest": "24.2.0",
"typescript": "3.7.2"
"ts-jest": "25.5.1",
"typescript": "3.9.7"
},
"engines": {
"node": ">=10",
"node": ">=14",
"npm": ">=6"

@@ -56,8 +56,8 @@ },

"coverage-view": "google-chrome coverage/lcov-report/index.html",
"lint": "eslint --ext .js .",
"lintfix": "eslint --ext .js . --fix",
"lint": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx . --max-warnings 0",
"lintfix": "eslint --ext .js --ext .jsx --ext .ts --ext .tsx . --fix",
"test": "npm run lint && npm run coverage && tsc"
},
"types": "dist/index.d.ts",
"version": "0.8.1"
"version": "0.8.2"
}
# lalog
[![Greenkeeper badge](https://badges.greenkeeper.io/guyellis/lalog.svg)](https://greenkeeper.io/)
Logging aggregation and distribution

@@ -6,0 +4,0 @@

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