rivet-graphql
Advanced tools
Comparing version 0.5.0-canary-20230119003206 to 0.5.0-canary-20230119004945
# rivet-graphql | ||
## 0.5.0-canary-20230119003206 | ||
## 0.5.0-canary-20230119004945 | ||
@@ -5,0 +5,0 @@ ### Minor Changes |
@@ -19,3 +19,3 @@ declare function _exports(url: string, options: import("graphql-request/dist/types.dom").RequestInit & { | ||
export type FragmentSpec = { | ||
fragment?: string; | ||
fragment?: string | DocumentNode; | ||
dependencies?: { | ||
@@ -22,0 +22,0 @@ fragmentSpec?: FragmentSpec; |
@@ -12,3 +12,3 @@ //@ts-check | ||
* @typedef {Object} FragmentSpec | ||
* @property {string} [fragment] | ||
* @property {string | DocumentNode} [fragment] | ||
* @property {{ fragmentSpec?: FragmentSpec }[]} [dependencies] | ||
@@ -92,3 +92,7 @@ * @property {Record<string, any>} [requiredVariables] | ||
if (component.fragment) { | ||
acc.push(component.fragment) | ||
acc.push( | ||
typeof component.fragment === 'string' | ||
? component.fragment | ||
: print(component.fragment) | ||
) | ||
} | ||
@@ -95,0 +99,0 @@ |
{ | ||
"name": "rivet-graphql", | ||
"description": "a relay-like graphql data loading system for nextjs", | ||
"version": "0.5.0-canary-20230119003206", | ||
"version": "0.5.0-canary-20230119004945", | ||
"author": "Jeff Escalante", | ||
@@ -6,0 +6,0 @@ "bugs": { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
37165
285
2