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.10.0 to 1.11.0

25

lib/activities.js

@@ -159,12 +159,27 @@ /**

, err = null;
//require activity id
if(typeof args.id === 'undefined') {
err = {msg:'args must include an activity id'};
if (typeof args.id === 'undefined') {
err = { msg: 'args must include an activity id' };
return done(err);
}
endpoint += args.id + '/photos';
var pageQS = util.getPaginationQS(args);
var completeQS = pageQS;
// should be true according to Strava API docs
args.photo_sources = true;
var argsQS = util.getQS(['size', 'photo_sources'], args);
if (completeQS && completeQS.length) {
completeQS += '&';
}
completeQS += argsQS;
endpoint += '?' + completeQS;
this._listHelper(endpoint,args,done);
util.getEndpoint(endpoint, args, done);
};

@@ -171,0 +186,0 @@ activities.listRelated = function(args,done) {

@@ -31,2 +31,22 @@ /**

};
clubs.listAnnouncements = function(args,done) {
this._listHelper('announcements',args,done);
};
clubs.listEvents = function(args,done) {
this._listHelper('group_events',args,done);
};
clubs.listAdmins = function(args,done) {
this._listHelper('admins',args,done);
};
clubs.joinClub = function(args,done) {
this._listHelper('join',args,done);
};
clubs.leaveClub = function(args,done) {
this._listHelper('leave',args,done);
};
//===== clubs endpoint =====

@@ -33,0 +53,0 @@

2

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

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

@@ -198,2 +198,7 @@

* `strava.clubs.listActivities(args,done)`
* `strava.clubs.listAnnouncements(args,done)`
* `strava.clubs.listEvents(args,done)`
* `strava.clubs.listAdmins(args,done)`
* `strava.clubs.joinClub(args,done)`
* `strava.clubs.leaveClub(args,done)`

@@ -200,0 +205,0 @@ Gear:

@@ -69,3 +69,7 @@

strava.athlete.listActivities({},function(err,payload){
var nowSeconds = Math.floor(Date.now()/1000);
strava.athlete.listActivities({
after: nowSeconds + 3600,
before: nowSeconds + 3600
},function(err,payload){

@@ -72,0 +76,0 @@ if(!err) {

@@ -8,3 +8,3 @@

describe('segmentEfforts_test', function() {
describe.skip('segmentEfforts_test', function() {

@@ -11,0 +11,0 @@ before(function(done) {

@@ -8,3 +8,3 @@

describe('segments_test', function() {
describe.skip('segments_test', function() {

@@ -11,0 +11,0 @@ before(function(done) {

@@ -26,4 +26,4 @@ /**

_activity_id = _sampleActivity.id;
_segmentEffort_id = _sampleActivity.segment_efforts[0].id;
_segment_id = _sampleActivity.segment_efforts[0].segment.id;
//_segmentEffort_id = _sampleActivity.segment_efforts[0].id;
//_segment_id = _sampleActivity.segment_efforts[0].segment.id;

@@ -62,3 +62,3 @@ testHelper.getSampleRoute(function (err, payload) {

describe('#effort()', function () {
describe.skip('#effort()', function () {

@@ -86,3 +86,3 @@ it('should return raw data associated to segment_effort', function(done) {

describe('#segment()', function () {
describe.skip('#segment()', function () {

@@ -89,0 +89,0 @@ it('should return raw data associated to segment', function(done) {

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