
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
graphql-ast-types-browser
Advanced tools
:warning: This package is a temporary clone of [`graphql-ast-types`](https://www.npmjs.com/package/graphql-ast-types). It will be deleted as soon as the issue [#7](https://github.com/imranolas/graphql-ast-types/issues/7) is closed.
:warning: This package is a temporary clone of graphql-ast-types
.
It will be deleted as soon as the issue #7 is closed.
Use it at your own risk.
Autogenerated helper functions for generating a GraphQL AST
This project generates helpers functions from the graphql/language AST flow descriptions. It is intended to help with building a valid GraphQL AST.
yarn add graphql-ast-types
import * as t from 'graphql-ast-types';
The implementation here mimics that of babel-types
. Thanks Babel team.
The following is an example of how to build a simple query with AST types.
import * as t from 'graphql-ast-types';
import { print } from 'graphql/language';
const ast = t.document([
t.operationDefinition(
'query',
t.selectionSet([
t.field(t.name('foo')),
t.field(t.name('bar'))
])
)
]);
print(ast);
/*
query {
foo
bar
}
*/
In addition, method calls are validated for correctness and accompanied by is
and assert
helpers.
t.isName(t.name('Hello')); // true
t.isName({ kind: 'Name' }); // true
t.assert({ kind: 'Name' }); // no error
t.isName({ kind: 'IntValue' }); // false
t.assert({ kind: 'IntValue' }); // error
The full API can be found here.
FAQs
:warning: This package is a temporary clone of [`graphql-ast-types`](https://www.npmjs.com/package/graphql-ast-types). It will be deleted as soon as the issue [#7](https://github.com/imranolas/graphql-ast-types/issues/7) is closed.
The npm package graphql-ast-types-browser receives a total of 3,628 weekly downloads. As such, graphql-ast-types-browser popularity was classified as popular.
We found that graphql-ast-types-browser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.