Skip to content

Commit

Permalink
293735012 Security Fixes and Dependency Updates
Browse files Browse the repository at this point in the history
  - Replaced deprecated 'request' with 'postman-request', an actively maintained fork.
  - Updated and bumped versions of several vulnerable dependencies to enhance security.
  • Loading branch information
tapasthakkar authored and keyurkarnik committed Dec 12, 2023
1 parent bc34baa commit aa6c7c9
Show file tree
Hide file tree
Showing 10 changed files with 2,106 additions and 1,873 deletions.
3,957 changes: 2,095 additions & 1,862 deletions npm-shrinkwrap.json

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,14 @@
"microgateway-config": "^3.3.2",
"minimatch": "^3.0.4",
"opentracing": "^0.14.3",
"request": "~2.87.0",
"postman-request": "^2.88.1-postman.33",
"sanitizer": "^0.1.3",
"tunnel-agent": "^0.6.0",
"uuid": "^3.2.1"
},
"devDependencies": {
"chai": "~2.3.0",
"eslint": "^6.1.0",
"eslint": "^8.44.0",
"eslint-config-google": "^0.13.0",
"istanbul": "~0.4.2",
"jshint-stylish": "^2.2.1",
Expand All @@ -39,4 +39,4 @@
"lint": "eslint ./lib index.js",
"test": "NODE_ENV=test nyc mocha tests"
}
}
}
2 changes: 1 addition & 1 deletion tests/config-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require('lodash')
const assert = require('assert')
const gatewayService = require('../index')
const request = require('request')
const request = require('postman-request')
const restify = require('restify')
const should = require('should')

Expand Down
2 changes: 1 addition & 1 deletion tests/config_ssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require('lodash')
const assert = require('assert')
const gatewayService = require('../index')
const request = require('request')
const request = require('postman-request')
const restify = require('restify')
const should = require('should')
const fs = require('fs');
Expand Down
2 changes: 1 addition & 1 deletion tests/config_target_ssl.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require('lodash')
const assert = require('assert')
const gatewayService = require('../index')
const request = require('request')
const request = require('postman-request')
const https = require('https')
const should = require('should')
const fs = require('fs');
Expand Down
2 changes: 1 addition & 1 deletion tests/forwarded-header-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require('lodash')
const assert = require('assert')
const gatewayService = require('../index')
const request = require('request')
const request = require('postman-request')
const restify = require('restify')
const should = require('should')
const fs = require('fs');
Expand Down
2 changes: 1 addition & 1 deletion tests/plugin-lifecycle-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ var assert = require('assert');
var gatewayService = require('../index');
var serverFactory = require('./hello_rest/index');
var TestPlugin = require('./testPlugin');
var request = require('request');
var request = require('postman-request');
var should = require('should')


Expand Down
2 changes: 1 addition & 1 deletion tests/proxy-tests-tls.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require('lodash')
const assert = require('assert')
const gatewayService = require('../index')
const request = require('request')
const request = require('postman-request')
const http = require('http')
const https = require('https')
const should = require('should')
Expand Down
2 changes: 1 addition & 1 deletion tests/proxy-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require('lodash')
const assert = require('assert')
const gatewayService = require('../index')
const request = require('request')
const request = require('postman-request')
const http = require('http')
const should = require('should')
const fs = require('fs');
Expand Down
2 changes: 1 addition & 1 deletion tests/response-status-message-tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
const _ = require('lodash')
const assert = require('assert')
const gatewayService = require('../index')
const request = require('request')
const request = require('postman-request')
const http = require('http')
const should = require('should')
const fs = require('fs');
Expand Down

0 comments on commit aa6c7c9

Please sign in to comment.