Research
Security News
Quasar RAT Disguised as an npm Package for Detecting Vulnerabilities in Ethereum Smart Contracts
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
@eucalyptusvc/schema-constructor
Advanced tools
This is a dedicated module for creating a Prisma Schema.
This is a helper for the engine to construct a prisma schema & combine GraphQL middlewares.
With yarn:
yarn add @eucalyptusvc/schema-constructor
With npm:
npm install @eucalyptusvc/schema-constructor
import { schemaConstructor } from '@eucalyptusvc/schema-constructor';
import { prisma } from './generated/prisma-client';
import { permissions } from './app/permissions';
import * as allTypes from './app/resolvers';
import datamodelInfo from './generated/nexus-prisma';
const schema = schemaConstructor({
types: allTypes,
datamodelInfo,
prismaClient: prisma,
outputs: {
schema: path.join(__dirname, './generated/schema.graphql'),
typegen: path.join(__dirname, './generated/nexus.ts'),
},
typegenAutoConfig: {
sources: [
{
source: path.join(__dirname, './types.ts'),
alias: 'types',
},
],
contextType: 'types.Context',
},
middlewares: [permissions],
});
yarn install
or npm install
yarn watch
FAQs
This is a dedicated module for creating a Prisma Schema.
The npm package @eucalyptusvc/schema-constructor receives a total of 0 weekly downloads. As such, @eucalyptusvc/schema-constructor popularity was classified as not popular.
We found that @eucalyptusvc/schema-constructor demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 7 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers uncover a malicious npm package posing as a tool for detecting vulnerabilities in Etherium smart contracts.
Security News
Research
A supply chain attack on Rspack's npm packages injected cryptomining malware, potentially impacting thousands of developers.
Research
Security News
Socket researchers discovered a malware campaign on npm delivering the Skuld infostealer via typosquatted packages, exposing sensitive data.