Comparing version 2.0.2 to 2.0.3
var authenticator = require('./authenticator') | ||
// Ref: https://developers.strava.com/docs/webhooks/ | ||
var pushSubscriptions = function (client) { | ||
this.client = client | ||
// Per Strava, this part of the API uses use the "api." subdomain, | ||
// not "www." like most of the API. | ||
// Ref: https://strava.github.io/api/v3/events/ | ||
this.baseUrl = 'https://api.strava.com/api/v3/' | ||
} | ||
@@ -11,0 +8,0 @@ |
{ | ||
"name": "strava-v3", | ||
"version": "2.0.2", | ||
"description": "Simple wrapper for strava v3 api", | ||
"version": "2.0.3", | ||
"description": "Simple wrapper for strava v3 API", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "scripts": { |
@@ -10,3 +10,3 @@ 'use strict' | ||
before(() => { | ||
nock('https://api.strava.com') | ||
nock('https://www.strava.com') | ||
.filteringPath(() => '/api/v3/push_subscriptions/') | ||
@@ -57,3 +57,3 @@ .get(/^\/api\/v3\/push_subscriptions/) | ||
before(() => { | ||
nock('https://api.strava.com') | ||
nock('https://www.strava.com') | ||
.filteringPath(() => '/api/v3/push_subscriptions') | ||
@@ -111,3 +111,3 @@ // The first reply just echo's the request headers so we can test them. | ||
// We return it here because the test can't easily access the HTTP status code. | ||
nock('https://api.strava.com') | ||
nock('https://www.strava.com') | ||
.filteringPath(() => '/api/v3/push_subscriptions/1/') | ||
@@ -114,0 +114,0 @@ // The first reply just echo's the request headers so we can test them. |
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
227405
2336