
Company News
Socket Partners with Replit to Block Malicious Packages in AI-Powered Development
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.
@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.

Company News
Replit is integrating Socket Firewall into its AI-powered development experience to help protect builders from malicious open source packages.

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.