Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
updated packages; npm audit fix; typescript package ver 4.9.5; intuit…
…-oauth 4.2.0
  • Loading branch information
rgupta24723 committed Feb 13, 2025
commit cd012b937b83c5ce1f9da8c20293c615e97390c0
15 changes: 9 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"test-debug": "mocha --inspect-brk --watch test",
"show-coverage": "npm test; open -a 'Google Chrome' coverage/index.html",
"clean-install": "rm -rf node_modules && npm install",
"snyk-protect": "snyk protect",
"snyk-protect": "snyk-protect",
"prepublish": "npm run snyk-protect",
"test-ts": "mocha -r ts-node/register test/**/*.test.ts"
},
Expand Down Expand Up @@ -71,14 +71,18 @@
"dependencies": {
"atob": "2.1.2",
"csrf": "^3.0.4",
"jsonwebtoken": "^8.3.0",
"popsicle": "10.0.1",
"express": "^4.17.1",
"jsonwebtoken": "^9.0.2",
"n": "^10.1.0",
"popsicle": "^12.1.2",
"query-string": "^6.12.1",
"rsa-pem-from-mod-exp": "^0.8.4",
"winston": "^3.1.0"
},
"devDependencies": {
"@snyk/protect": "^1.657.0",
"@types/chai": "^4.2.14",
"@types/express": "^4.17.1",
"@types/mocha": "^8.0.3",
"btoa": "^1.2.1",
"chai": "^4.1.2",
Expand All @@ -87,14 +91,13 @@
"eslint-config-airbnb-base": "^14.1.0",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-import": "^2.20.2",
"mocha": "^7.1.2",
"mocha": "^11.1.0",
"nock": "^9.2.3",
"nyc": "^15.0.1",
"prettier": "^2.0.5",
"sinon": "^9.0.2",
"snyk": "^1.316.1",
"ts-node": "^9.0.0",
"typescript": "^4.0.3"
"typescript": "^4.9.5"
},
"snyk": true
}
5 changes: 3 additions & 2 deletions sample/typescript/dist/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ app.get('/getCompanyInfo', function (req, res) {
var url = oauthClient.environment == 'sandbox' ? intuit_oauth_1.default.environment.sandbox : intuit_oauth_1.default.environment.production;
oauthClient.makeApiCall({ url: url + 'v3/company/' + companyID + '/companyinfo/' + companyID })
.then(function (authResponse) {
console.log("The response for API call is :" + JSON.stringify(authResponse));
res.send(JSON.parse(authResponse.text()));
console.log("authResponse: ", authResponse);
console.log("The response for API call is :" + JSON.stringify(authResponse.json));
res.send(authResponse.json);
})
.catch(function (e) {
console.error(e);
Expand Down
6 changes: 3 additions & 3 deletions sample/typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
"dependencies": {
"body-parser": "latest",
"dotenv": "^8.2.0",
"ejs": "^2.5.2",
"ejs": "^3.1.10",
"express": "^4.14.0",
"express-session": "^1.14.2",
"intuit-oauth": "1.3.0",
"ngrok": "^2.2.9",
"intuit-oauth": "^4.2.0",
"ngrok": "^5.0.0-beta.2",
"path": "^0.12.7"
},
"devDependencies": {
Expand Down