
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
com.github.k0kubun:graphql-query-builder
Advanced tools
GraphQL query builder for Java
<dependencies>
<dependency>
<groupId>com.github.k0kubun</groupId>
<artifactId>graphql-query-builder</artifactId>
<version>0.4.2</version>
</dependency>
</dependencies>
dependencies {
compile 'com.github.k0kubun:graphql-query-builder:0.4.2'
}
To build following query:
user(name:"k0kubun") {
name
friends(first:10 after:"Y3Vyc29yMQ==") {
totalCount
edges {
cursor
node {
... on User {
name
}
}
}
}
}
You can write code in the following way:
import com.github.k0kubun.builder.query.graphql.GraphQLQueryBuilder;
import java.util.HashMap;
import java.util.Map;
public class Example {
public example() {
Map<String, Object> userParams =
Map.of("name", "k0kubun");
String query = GraphQLQueryBuilder.query()
.object("user", userParams, GraphQLQueryBuilder.object()
.field("name")
.objects("friends", 10, "Y3Vyc29yMQ==", GraphQLQueryBuilder.object()
.field("totalCount")
.object("edges", GraphQLQueryBuilder.object()
.field("cursor")
.object("node", GraphQLQueryBuilder.object()
.on("User", GraphQLQueryBuilder.object()
.field("name")
.build()
).build()
).build()
).build()
).build()
).build();
}
}
Experimental.
@include
@skip
Airlift
Create ~/.gradle/gradle.properties
like:
sonatypeUsername=k0kubun
sonatypePassword=PASSWORD
signing.keyId=KEYID
signing.password=PASSWORD
signing.secretKeyRingFile=/Users/k0kubun/.gnupg/secring.gpg
KEYID is the last 8 characters of what's shown at gpg -K
.
Then run:
$ ./gradlew uploadArchives
At https://oss.sonatype.org/#stagingRepositories, push "Close" and then "Release". Sync to maven repository might take some time.
MIT License
FAQs
GraphQL query builder for Java
We found that com.github.k0kubun:graphql-query-builder demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 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
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.