@elastic/elasticsearch
Advanced tools
Comparing version 5.6.21 to 5.6.22
@@ -9,2 +9,3 @@ // Licensed to Elasticsearch B.V under one or more agreements. | ||
const debug = require('debug')('elasticsearch') | ||
const sjson = require('secure-json-parse') | ||
const { SerializationError, DeserializationError } = require('./errors') | ||
@@ -26,3 +27,3 @@ | ||
try { | ||
var object = JSON.parse(json) | ||
var object = sjson.parse(json) | ||
} catch (err) { | ||
@@ -29,0 +30,0 @@ throw new DeserializationError(err.message) |
@@ -7,3 +7,3 @@ { | ||
"homepage": "http://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/index.html", | ||
"version": "5.6.21", | ||
"version": "5.6.22", | ||
"keywords": [ | ||
@@ -25,3 +25,3 @@ "elasticsearch", | ||
"test:types": "tsc --project ./test/types/tsconfig.json", | ||
"test:coverage": "nyc npm run test:unit && nyc report --reporter=text-lcov > coverage.lcov && codecov", | ||
"test:coverage": "nyc tap test/unit/*.test.js test/behavior/*.test.js -t 300 && nyc report --reporter=text-lcov > coverage.lcov", | ||
"lint": "standard", | ||
@@ -44,3 +44,2 @@ "lint:fix": "standard --fix", | ||
"@types/node": "^12.6.2", | ||
"codecov": "^3.3.0", | ||
"convert-hrtime": "^3.0.0", | ||
@@ -64,3 +63,2 @@ "dedent": "^0.7.0", | ||
"tap": "^14.4.1", | ||
"tap-mocha-reporter": "^4.0.1", | ||
"typescript": "^3.4.5", | ||
@@ -75,3 +73,4 @@ "workq": "^2.1.0" | ||
"once": "^1.4.0", | ||
"pump": "^3.0.0" | ||
"pump": "^3.0.0", | ||
"secure-json-parse": "^2.1.0" | ||
}, | ||
@@ -78,0 +77,0 @@ "license": "Apache-2.0", |
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
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
571845
21
14886
7
+ Addedsecure-json-parse@^2.1.0
+ Addedsecure-json-parse@2.7.0(transitive)