@tokks/strava
Advanced tools
Comparing version 1.1.0 to 1.1.1-peer
@@ -38,8 +38,9 @@ "use strict"; | ||
}; | ||
const allResources = ramda_1.mergeDeepRight(api_1.resources, api_1.authResource); | ||
const mockMethod = (resourceName, methodName) => (input, status = 200, responseBody = defaultResponseBodies[resourceName][methodName]) => { | ||
const { path, method, host: resourceHost } = api_1.resources[resourceName][methodName]; | ||
const { path, method, host: resourceHost } = allResources[resourceName][methodName]; | ||
return exports.mockEndpoint({ host: resourceHost || api_1.host, input, method, path, responseBody, status }); | ||
}; | ||
const mockResource = (resourceName) => ramda_1.mapObjIndexed((_methodValue, methodName) => mockMethod(resourceName, methodName), api_1.resources[resourceName]); | ||
const e2eCallsMocker = ramda_1.mapObjIndexed((_resourceValue, resourceName) => mockResource(resourceName), api_1.resources); | ||
const mockResource = (resourceName) => ramda_1.mapObjIndexed((_methodValue, methodName) => mockMethod(resourceName, methodName), allResources[resourceName]); | ||
const e2eCallsMocker = ramda_1.mapObjIndexed((_resourceValue, resourceName) => mockResource(resourceName), allResources); | ||
exports.default = e2eCallsMocker; |
{ | ||
"name": "@tokks/strava", | ||
"version": "1.1.0", | ||
"version": "1.1.1-peer", | ||
"main": "index.js", | ||
@@ -5,0 +5,0 @@ "author": "Marcelo Tokarnia<marcelo.tokarnia@gmail.com>", |
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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
33421
906
0
2