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

mushimas

Package Overview
Dependencies
Maintainers
1
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mushimas - npm Package Compare versions

Comparing version 0.10.0 to 0.11.0

2

package.json
{
"name": "mushimas",
"version": "0.10.0",
"version": "0.11.0",
"description": "A tool to bootstrap modern content management and delivery systems using GraphQL, MongoDB, Redis and Elasticsearch.",

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

@@ -14,2 +14,4 @@ const { GraphQLObjectType, GraphQLID, GraphQLNonNull } = require('graphql')

accumulator[`delete_${schemaKey}`] = createDeleteField(schemaKey, resolver)
accumulator[`publish_${schemaKey}`] = createPublishField(schemaKey, resolver)
accumulator[`archive_${schemaKey}`] = createArchiveField(schemaKey, resolver)
}

@@ -89,1 +91,41 @@

}
const createPublishField = (schemaKey, resolver) => {
return {
type: GraphQLID,
args: {
_id: {
type: new GraphQLNonNull(GraphQLID)
}
},
resolve: async (root, args, context) => {
return await resolver({
method: 'publish',
collection: schemaKey,
root,
args,
context
})
}
}
}
const createArchiveField = (schemaKey, resolver) => {
return {
type: GraphQLID,
args: {
_id: {
type: new GraphQLNonNull(GraphQLID)
}
},
resolve: async (root, args, context) => {
return await resolver({
method: 'archive',
collection: schemaKey,
root,
args,
context
})
}
}
}
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