Content-Length: 303850 | pFad | http://github.com/sivasamyk/logtrail/commit/b833aeb7c5bb87b641c680a92dbfebc07ede1f0e

35 upgrade lodash version · sivasamyk/logtrail@b833aeb · GitHub
Skip to content

Commit

Permalink
upgrade lodash version
Browse files Browse the repository at this point in the history
  • Loading branch information
sivasamyk committed Mar 19, 2019
1 parent d2fd601 commit b833aeb
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 17 deletions.
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,7 @@
"dependencies": {
"ansi-to-html": "^0.6.4",
"handlebars": "4.0.6",
"lodash.escape": "4.0.1",
"lodash.get": "4.4.2",
"lodash.set": "4.3.2",
"lodash": "4.17.11",
"moment": "2.22.2",
"sugar-date": "1.5.1",
"yarn": "^1.13.0"
Expand Down
6 changes: 3 additions & 3 deletions server/routes/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ function convertToClientFormat(selectedConfig, esResponse) {
var event = {};
var source = hits[i]._source;
event.id = hits[i]._id;
let get = require('lodash.get');
let get = require('lodash/get');
event.timestamp = get(source, selectedConfig.fields.mapping.timestamp);
event.hostname = get(source, selectedConfig.fields.mapping.hostname);
event.program = get(source, selectedConfig.fields.mapping.program);
Expand All @@ -64,14 +64,14 @@ function convertToClientFormat(selectedConfig, esResponse) {

//Change the source['message'] to highlighter text if available
if (hits[i].highlight) {
var set = require('lodash.set');
var set = require('lodash/set');
var withHighlights = get(hits[i].highlight, [selectedConfig.fields.mapping.message,0]);
set(source, selectedConfig.fields.mapping.message, withHighlights);
source[selectedConfig.fields.mapping.message] = hits[i].highlight[selectedConfig.fields.mapping.message][0];
}
var message = source[selectedConfig.fields.mapping.message];
//sanitize html
var escape = require('lodash.escape');
var escape = require('lodash/escape');
message = escape(message);
//if highlight is present then replace pre and post tag with html
if (hits[i].highlight) {
Expand Down
15 changes: 4 additions & 11 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2393,14 +2393,6 @@ lodash.clonedeep@^4.3.2:
version "4.5.0"
resolved "https://registry.yarnpkg.com/lodash.clonedeep/-/lodash.clonedeep-4.5.0.tgz#e23f3f9c4f8fbdde872529c1071857a086e5ccef"

lodash.escape@4.0.1:
version "4.0.1"
resolved "https://registry.yarnpkg.com/lodash.escape/-/lodash.escape-4.0.1.tgz#c9044690c21e04294beaa517712fded1fa88de98"

lodash.get@4.4.2:
version "4.4.2"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-4.4.2.tgz#2d177f652fa31e939b4438d5341499dfa3825e99"

lodash.get@^3.7.0:
version "3.7.0"
resolved "https://registry.yarnpkg.com/lodash.get/-/lodash.get-3.7.0.tgz#3ce68ae2c91683b281cc5394128303cbf75e691f"
Expand All @@ -2416,9 +2408,10 @@ lodash.mergewith@^4.6.0:
version "4.6.1"
resolved "https://registry.yarnpkg.com/lodash.mergewith/-/lodash.mergewith-4.6.1.tgz#639057e726c3afbdb3e7d42741caa8d6e4335927"

lodash.set@4.3.2:
version "4.3.2"
resolved "https://registry.yarnpkg.com/lodash.set/-/lodash.set-4.3.2.tgz#d8757b1da807dde24816b0d6a84bea1a76230b23"
lodash@4.17.11:
version "4.17.11"
resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.11.tgz#b39ea6229ef607ecd89e2c8df12536891cac9b8d"
integrity sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==

lodash@^4.0.0, lodash@^4.17.10, lodash@^4.17.4, lodash@^4.2.0, lodash@^4.3.0, lodash@~4.17.10:
version "4.17.10"
Expand Down

0 comments on commit b833aeb

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/sivasamyk/logtrail/commit/b833aeb7c5bb87b641c680a92dbfebc07ede1f0e

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy