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

sofa-api

Package Overview
Dependencies
Maintainers
1
Versions
120
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sofa-api - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

6

dist/express.js

@@ -187,6 +187,8 @@ "use strict";

var info = ast_1.getOperationInfo(operation);
var fieldType = queryType.getFields()[fieldName].type;
var field = queryType.getFields()[fieldName];
var fieldType = field.type;
var isSingle = graphql_1.isObjectType(fieldType) ||
(graphql_1.isNonNullType(fieldType) && graphql_1.isObjectType(fieldType.ofType));
var path = getPath(fieldName, isSingle);
var hasIdArgument = field.args.some(function (arg) { return arg.name === 'id'; });
var path = getPath(fieldName, isSingle && hasIdArgument);
router.get(path, useHandler({ info: info, fieldName: fieldName, sofa: sofa, operation: operation }));

@@ -193,0 +195,0 @@ logger_1.logger.debug("[Router] " + fieldName + " query available at " + path);

{
"name": "sofa-api",
"description": "Create REST APIs with GraphQL",
"version": "0.2.1",
"version": "0.2.2",
"main": "dist/index.js",

@@ -6,0 +6,0 @@ "typings": "dist/index.d.ts",

Sorry, the diff of this file is not supported yet

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