Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

forge-apis

Package Overview
Dependencies
Maintainers
2
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

forge-apis - npm Package Compare versions

Comparing version 0.9.8 to 0.9.9

27

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc