
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
@nothing-but/graphstate
Advanced tools
A reactive GraphQL client generator.
Work in progress.
Example usage:
import * as graphstate from "graphstate/sdk.js"
const _test_schema = `
schema {
query: Query
}
type Query {
foo: [String!]!
bar(a: Int, b: Float): String
person(id: ID!): Person
}
type Person {
id: ID!
name: String!
age: Int!
}`
async function main() {
const out = await graphstate.wasm_generate_queries(_test_schema)
if (out instanceof Error) {
console.error(out)
return
}
console.log(out)
}
main()
Initial values for types:
# Type | Initial value
String # null
String! # ""
Int! # 0
Float! # 0
Boolean! # false
ID! # "" ?????
[String!]! # []
type Link { # {
title: String! # title: "",
url: String! # url: "",
} # }
enum LinkState { # "None" (always the first member)
None
Bookmark
InProgress
Completed
}
union LinkUnion = LinkState | Link
LinkUnion # null
LinkUnion! # "None" (LinkState is the first member of the union)
FAQs
A reactive GraphQL client generator.
The npm package @nothing-but/graphstate receives a total of 0 weekly downloads. As such, @nothing-but/graphstate popularity was classified as not popular.
We found that @nothing-but/graphstate 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.
Security News
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.