
Security News
npm Tooling Bug Incorrectly Marks One-Character Packages as Security Holders
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.
@grapheng/time
Advanced tools
A library of custom GraphQL types.
TODO: Make a real package on npmjs.
For now...
npm pack this lib up.
npm install --save ../wherever/moar-types-1.0.0.tgz
There are 2 main ways of getting these types in your project.
import * as MoarTypes from 'moar-types'
const mySchema = makeExecutableSchema({
typeDefs: gql`
${MoarTypes.typeDefs}
${myApplicationTypeDefs}
`,
resolvers: {
...MoarTypes.resolvers,
...myApplicationResolvers
}
})
import { FormattedDuration } from 'moar-types'
const mySchema = makeExecutableSchema({
typeDefs: gql`
${FormattedDuration.typeDefs}
${myApplicationTypeDefs}
`,
resolvers: {
FormattedDuration: FormattedDuration.resolvers,
...myApplicationResolvers
}
})
Or if you don't use SDL+Resolvers
import { FormattedDate } from 'moar-types'
const mySchema = new GraphQLSchema({
query: new GraphQLObjectType({
name: 'Query',
fields: {
twoHoursAgo: {
type: new GraphQLNonNull(FormattedDate.FormattedDate),
resolve: () => getTwoHoursAgo()
}
}
})
})
FAQs
Time types for GraphQL
We found that @grapheng/time demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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
npm confirmed a tooling bug incorrectly marked several one-character packages as security holders and said it was working on a rollback.

Research
/Security News
Newer packages in this compromise use native extensions and .pth loaders to execute JavaScript stealers in developer environments.

Research
Socket found 37 malicious PyPI wheels that abuse Python startup hooks to launch a Bun-powered credential stealer tied to Mini Shai-Hulud/Miasma.