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

@elba-security/graphql-zeus

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@elba-security/graphql-zeus - npm Package Compare versions

Comparing version 4.0.7 to 4.0.8-alpha.0

lib/TreeToTS/templates/utils.d.ts

3

lib/TreeToTS/templates/resolveValueTypes.js

@@ -8,2 +8,3 @@ "use strict";

const customScalarsMap_1 = require("./customScalarsMap");
const utils_1 = require("./utils");
exports.VALUETYPES = 'ValueTypes';

@@ -77,3 +78,3 @@ const resolveValueType = (t) => `${exports.VALUETYPES}["${t}"]`;

if (i.data.type === Spec_1.TypeDefinition.EnumTypeDefinition) {
return `${plusDescription(i.description)}["${i.name}"]:${i.name}`;
return `${plusDescription(i.description)}["${i.name}"]:${(0, utils_1.toTypeNameFromEnum)(i.name)}`;
}

@@ -80,0 +81,0 @@ if (i.data.type === Spec_1.TypeDefinition.InputObjectTypeDefinition) {

@@ -7,2 +7,3 @@ "use strict";

const customScalarsMap_1 = require("./customScalarsMap");
const utils_1 = require("./utils");
exports.TYPES = 'GraphQLTypes';

@@ -63,5 +64,5 @@ const typeScriptMap = {

}
return `${plusDescription(i.description)}export enum ${i.name} {\n${i.args
.map((f) => `\t${f.name} = "${f.name}"`)
.join(',\n')}\n}`;
const typeName = (0, utils_1.toTypeNameFromEnum)(i.name);
const stringLiterals = i.args.map((f) => `'${f.name}'`).join(' | ');
return `${plusDescription(i.description)}export type ${typeName} = ${stringLiterals}\n`;
};

@@ -88,3 +89,3 @@ const resolveTypeFromRoot = (i, rootNodes) => {

if (i.data.type === Spec_1.TypeDefinition.EnumTypeDefinition) {
return `${plusDescription(i.description)}["${i.name}"]: ${i.name}`;
return `${plusDescription(i.description)}["${i.name}"]: ${(0, utils_1.toTypeNameFromEnum)(i.name)}`;
}

@@ -91,0 +92,0 @@ if (i.data.type === Spec_1.TypeDefinition.InputObjectTypeDefinition) {

{
"name": "@elba-security/graphql-zeus",
"version": "4.0.7",
"version": "4.0.8-alpha.0",
"private": false,

@@ -5,0 +5,0 @@ "license": "MIT",

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