Socket
Book a DemoInstallSign in
Socket

aeros

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aeros - npm Package Compare versions

Comparing version

to
0.0.3

21

index.js

@@ -6,2 +6,4 @@ const { makeExecutableSchema } = require('graphql-tools')

const noop = { noop: 'Boolean' }
module.exports = (config) => {

@@ -33,9 +35,13 @@ const { query, mutation, types = {}, scalars = {} } = config

type Noop {
noop: Boolean
}
schema {
${query ? 'query: RootQuery' : ''}
${mutation ? 'mutation: RootMutation' : ''}
query: ${query ? 'RootQuery' : 'Noop'}
mutation: ${mutation ? 'RootMutation' : 'Noop'}
}`
let typeSchema = ''
types.RootQuery = query
types.RootMutation = mutation
types.RootQuery = query || noop
types.RootMutation = mutation || noop
for (let typeKeyIndex in Object.keys(types)) {

@@ -90,8 +96,7 @@ const typeKey = Object.keys(types)[typeKeyIndex]

const typeDefs = [topLevelSchema, typeSchema]
const schema = makeExecutableSchema({
typeDefs,
resolvers
})
const schemaConfig = { typeDefs, resolvers }
console.log(schemaConfig)
const schema = makeExecutableSchema(schemaConfig)
return { typeDefs, resolvers, schema }
// build resolvers
}
{
"name": "aeros",
"version": "0.0.2",
"version": "0.0.3",
"description": "Low-friction GraphQL schemas",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.