forge-apis
Advanced tools
Comparing version 0.9.8 to 0.9.9
{ | ||
"name": "forge-apis", | ||
"version": "0.9.8", | ||
"version": "0.9.9", | ||
"description": "The Forge Platform contains an expanding collection of web service components that can be used with Autodesk cloud-based products or your own technologies. Take advantage of Autodesk’s expertise in design and engineering.", | ||
@@ -31,14 +31,15 @@ "license": "Apache-2.0", | ||
"test": "node node_modules/mocha/bin/mocha --colors --recursive --timeout 10000 test", | ||
"test-oauth": "node_modules/mocha/bin/mocha --colors --recursive --timeout 10000 test/auth", | ||
"test-api": "node_modules/mocha/bin/mocha --colors --recursive --timeout 10000 test/api", | ||
"test-model": "node_modules/mocha/bin/mocha --colors --recursive --timeout 10000 test/model", | ||
"test-hubs": "node_modules/mocha/bin/mocha --colors --timeout 10000 test/api/HubsApi.spec", | ||
"test-oss": "node_modules/mocha/bin/mocha --colors --timeout 10000 test/api/ObjectsApi.spec", | ||
"test-oauth": "node node_modules/mocha/bin/mocha --colors --recursive --timeout 10000 test/auth", | ||
"test-api": "node node_modules/mocha/bin/mocha --colors --recursive --timeout 10000 test/api", | ||
"test-model": "node node_modules/mocha/bin/mocha --colors --recursive --timeout 10000 test/model", | ||
"test-hubs": "node node_modules/mocha/bin/mocha --colors --timeout 10000 test/api/HubsApi.spec", | ||
"test-oss": "node node_modules/mocha/bin/mocha --colors --timeout 10000 test/api/ObjectsApi.spec", | ||
"test-user": "node node_modules/mocha/bin/mocha --colors --timeout 10000 --inspect-brk test/api/UserProfileApi.spec", | ||
"coverage": "nyc npm run test" | ||
}, | ||
"dependencies": { | ||
"axios": "^0.27.2", | ||
"jsonwebtoken": "^9.0.0", | ||
"jwks-rsa": "^2.1.4", | ||
"retry-axios": "^3.0.0" | ||
"axios": "^1.6.5", | ||
"jsonwebtoken": "^9.0.2", | ||
"jwks-rsa": "^3.1.0", | ||
"retry-axios": "^3.1.3" | ||
}, | ||
@@ -48,7 +49,7 @@ "devDependencies": { | ||
"expect.js": "^0.3.1", | ||
"mocha": "^9.2.1", | ||
"nock": "^13.2.4", | ||
"mocha": "^10.2.0", | ||
"nock": "^13.4.0", | ||
"nyc": "^15.1.0", | ||
"sinon": "^13.0.1" | ||
"sinon": "^17.0.1" | ||
} | ||
} |
@@ -378,3 +378,3 @@ /** | ||
requestParams.encoding = null; | ||
headerParams['User-Agent'] = 'forge-apis/0.9.8 (nodejs)'; | ||
headerParams['User-Agent'] = 'forge-apis/0.9.9 (nodejs)'; | ||
_this.debug('request params were', requestParams); | ||
@@ -507,3 +507,3 @@ | ||
exports.version = '0.9.8'; | ||
exports.version = '0.9.9'; | ||
@@ -510,0 +510,0 @@ exports.userAgentHeaders = { |
@@ -75,12 +75,15 @@ /** | ||
mockedApiClientRequest.withArgs('/userprofile/v1/users/@me', 'GET', | ||
mockedApiClientRequest.withArgs( | ||
'/userinfo', 'GET', | ||
pathParams, queryParams, headerParams, formParams, postBody, | ||
contentTypes, accepts, returnType, oauth2client, credentials).returns(Promise.resolve('Success result')); | ||
contentTypes, accepts, returnType, oauth2client, credentials | ||
).returns(Promise.resolve('Success result')); | ||
instance.getUserProfile(oauth2client, credentials).then(function (response) { | ||
expect(response).to.be.ok(); | ||
done(); | ||
}, function (err) { | ||
done(err); | ||
}); | ||
instance.getUserProfile(oauth2client, credentials) | ||
.then(function (response) { | ||
expect(response).to.be.ok(); | ||
done(); | ||
}, function (err) { | ||
done(err); | ||
}); | ||
}); | ||
@@ -87,0 +90,0 @@ }); |
@@ -175,4 +175,3 @@ /** | ||
it('authenticate should work', function (done) { | ||
mockedPostRequest = sinon.stub(oauth2client2legged, 'doPostRequest'); | ||
mockedPostRequest = sinon.stub(oauth2client2legged, 'doPostRequestWithHeaders'); | ||
var credentials = { | ||
@@ -208,3 +207,2 @@ access_token: 'abcdef', | ||
it('authenticate should work', function (done) { | ||
mockedPostRequest = sinon.stub(oauth2client2leggedV2, 'doPostRequestWithHeaders'); | ||
@@ -211,0 +209,0 @@ var credentials = { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1859296
31658
+ Added@types/jsonwebtoken@9.0.7(transitive)
+ Addedaxios@1.7.7(transitive)
+ Addedjose@4.15.9(transitive)
+ Addedjwks-rsa@3.1.0(transitive)
+ Addedproxy-from-env@1.1.0(transitive)
- Removed@panva/asn1.js@1.0.0(transitive)
- Removed@types/jsonwebtoken@8.5.9(transitive)
- Removedaxios@0.27.2(transitive)
- Removedjose@2.0.7(transitive)
- Removedjwks-rsa@2.1.5(transitive)
Updatedaxios@^1.6.5
Updatedjsonwebtoken@^9.0.2
Updatedjwks-rsa@^3.1.0
Updatedretry-axios@^3.1.3