From 986967e201974caa64d6cea77b907c78f583c3ad Mon Sep 17 00:00:00 2001 From: Xingheng Wang Date: Thu, 19 Sep 2024 11:36:15 -0700 Subject: [PATCH] remove unneeded code and bump version (#34) --- lib/dataUtils.js | 1 - lib/index.js | 2 +- package-lock.json | 4 ++-- package.json | 2 +- 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/dataUtils.js b/lib/dataUtils.js index 704a4e7..ad4aacd 100644 --- a/lib/dataUtils.js +++ b/lib/dataUtils.js @@ -251,7 +251,6 @@ function isStrBase64(str) { try { // Use Buffer for Node.js and atob for browsers const decoded = Buffer.from(str, "base64").toString("utf-8"); - console.log("" + decoded); return true; } catch (e) { return false; diff --git a/lib/index.js b/lib/index.js index be5d123..c9a7da4 100644 --- a/lib/index.js +++ b/lib/index.js @@ -70,7 +70,7 @@ module.exports = function (options, handler) { // config moesifapi var config = moesifapi.configuration; config.ApplicationId = options.applicationId || options.ApplicationId || process.env.MOESIF_APPLICATION_ID; - config.UserAgent = 'moesif-aws-lambda-nodejs/' + '2.0.5'; + config.UserAgent = 'moesif-aws-lambda-nodejs/' + '2.0.6'; config.BaseUri = options.baseUri || options.BaseUri || config.BaseUri; var moesifController = moesifapi.ApiController; diff --git a/package-lock.json b/package-lock.json index a33c503..8f35d5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "moesif-aws-lambda", - "version": "2.0.5", + "version": "2.0.6", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "moesif-aws-lambda", - "version": "2.0.5", + "version": "2.0.6", "license": "Apache-2.0", "dependencies": { "card-validator": "^6.2.0", diff --git a/package.json b/package.json index e0ff673..8d54408 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "moesif-aws-lambda", - "version": "2.0.5", + "version": "2.0.6", "description": "API Monitoring Middleware for AWS Lambda", "main": "lib/index.js", "keywords": [