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

strava-v3

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

strava-v3 - npm Package Compare versions

Comparing version 1.9.0 to 1.10.0

14

lib/activities.js

@@ -170,2 +170,16 @@ /**

};
activities.listRelated = function(args,done) {
var endpoint = 'activities/'
, err = null;
if(typeof args.id === 'undefined') {
err = {msg:'args must include an activity id'};
return done(err);
}
endpoint += args.id + '/related';
this._listHelper(endpoint,args,done);
};
//===== activities endpoint =====

@@ -172,0 +186,0 @@

2

package.json
{
"name": "strava-v3",
"version": "1.9.0",
"version": "1.10.0",
"description": "Simple wrapper for strava v3 api",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -169,2 +169,3 @@

* `strava.athlete.listRoutes(args,done)`
* `strava.athlete.listClubs(args,done)`

@@ -192,2 +193,3 @@ Athletes:

* `strava.activities.listPhotos(args,done)`
* `strava.activities.listRelated(args,done)`

@@ -194,0 +196,0 @@ Clubs:

@@ -194,2 +194,23 @@ /**

//TODO ideally we'd test for some real related activities but since we created a
// fake activity without location data, there are no related activities.
describe('#listRelated()', function () {
it('should list activities related to activity', function(done) {
strava.activities.listRelated({id:testActivity.id}, function (err, payload) {
if (!err) {
//console.log(payload);
payload.should.be.instanceof(Array);
}
else {
console.log(err);
}
done();
});
});
});
describe('#delete()', function () {

@@ -196,0 +217,0 @@

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