New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mock-config-server

Package Overview
Dependencies
Maintainers
0
Versions
33
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mock-config-server - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

8

dist/src/utils/helpers/graphql/getGraphQLInput/getGraphQLInput.js

@@ -13,3 +13,5 @@ "use strict";

if (request.method === 'GET') {
const { query, variables } = request.query;
var _request_query, _request_query1;
const query = (_request_query = request.query) === null || _request_query === void 0 ? void 0 : _request_query.query;
const variables = (_request_query1 = request.query) === null || _request_query1 === void 0 ? void 0 : _request_query1.variables;
// ✅ important:

@@ -23,3 +25,5 @@ // if 'variables' was sent as encoded uri component then it already decoded into object and we do not need to use JSON.parse

if (request.method === 'POST') {
const { query, variables } = request.body;
var _request_body, _request_body1;
const query = (_request_body = request.body) === null || _request_body === void 0 ? void 0 : _request_body.query;
const variables = (_request_body1 = request.body) === null || _request_body1 === void 0 ? void 0 : _request_body1.variables;
return {

@@ -26,0 +30,0 @@ query,

{
"name": "mock-config-server",
"version": "4.0.0",
"version": "4.0.1",
"description": "Tool that easily and quickly imitates server operation, create full fake api in few steps",

@@ -5,0 +5,0 @@ "author": {

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