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

@tokks/strava

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tokks/strava - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1-peer

7

mocks/e2eCalls/index.js

@@ -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>",

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