Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
@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.
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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.