@khanacademy/wonder-blocks-data 9.1.0 → 9.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@khanacademy/wonder-blocks-data",
|
|
3
|
-
"version": "9.1.
|
|
3
|
+
"version": "9.1.1",
|
|
4
4
|
"design": "v1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -17,7 +17,7 @@
|
|
|
17
17
|
"@khanacademy/wonder-blocks-core": "^4.3.2"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
|
-
"@khanacademy/wonder-stuff-core": "^0.1
|
|
20
|
+
"@khanacademy/wonder-stuff-core": "^1.0.1",
|
|
21
21
|
"flow-enums-runtime": "^0.0.6",
|
|
22
22
|
"react": "16.14.0"
|
|
23
23
|
},
|
|
@@ -26,4 +26,4 @@
|
|
|
26
26
|
},
|
|
27
27
|
"author": "",
|
|
28
28
|
"license": "MIT"
|
|
29
|
-
}
|
|
29
|
+
}
|
|
@@ -18,7 +18,7 @@ describe("#graphQLDocumentNodeParser", () => {
|
|
|
18
18
|
|
|
19
19
|
it("should throw if the document lacks the kind property", () => {
|
|
20
20
|
// Arrange
|
|
21
|
-
const documentNode =
|
|
21
|
+
const documentNode: any = {};
|
|
22
22
|
|
|
23
23
|
// Act
|
|
24
24
|
const underTest = () => graphQLDocumentNodeParser(documentNode);
|
|
@@ -283,7 +283,7 @@ describe("#graphQLDocumentNodeParser", () => {
|
|
|
283
283
|
|
|
284
284
|
// Assert
|
|
285
285
|
expect(underTest).toThrowErrorMatchingInlineSnapshot(
|
|
286
|
-
`"We do not support subscriptions. {
|
|
286
|
+
`"We do not support subscriptions. {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"subscription","variableDefinitions":[],"name":{"kind":"Name","value":"subscription"}}]} had 1 subscriptions"`,
|
|
287
287
|
);
|
|
288
288
|
});
|
|
289
289
|
|
|
@@ -318,7 +318,7 @@ describe("#graphQLDocumentNodeParser", () => {
|
|
|
318
318
|
|
|
319
319
|
// Assert
|
|
320
320
|
expect(underTest).toThrowErrorMatchingInlineSnapshot(
|
|
321
|
-
`"We only support one query or mutation per component. {
|
|
321
|
+
`"We only support one query or mutation per component. {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","variableDefinitions":[],"name":{"kind":"Name","value":"query"}},{"kind":"OperationDefinition","operation":"query","variableDefinitions":[],"name":{"kind":"Name","value":"query"}}]} had 2 queries and 0 mutations. "`,
|
|
322
322
|
);
|
|
323
323
|
});
|
|
324
324
|
|
|
@@ -353,7 +353,7 @@ describe("#graphQLDocumentNodeParser", () => {
|
|
|
353
353
|
|
|
354
354
|
// Assert
|
|
355
355
|
expect(underTest).toThrowErrorMatchingInlineSnapshot(
|
|
356
|
-
`"We only support one query or mutation per component. {
|
|
356
|
+
`"We only support one query or mutation per component. {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"mutation","variableDefinitions":[],"name":{"kind":"Name","value":"mutation"}},{"kind":"OperationDefinition","operation":"mutation","variableDefinitions":[],"name":{"kind":"Name","value":"mutation"}}]} had 0 queries and 2 mutations. "`,
|
|
357
357
|
);
|
|
358
358
|
});
|
|
359
359
|
|
|
@@ -388,7 +388,7 @@ describe("#graphQLDocumentNodeParser", () => {
|
|
|
388
388
|
|
|
389
389
|
// Assert
|
|
390
390
|
expect(underTest).toThrowErrorMatchingInlineSnapshot(
|
|
391
|
-
`"We only support one query or mutation per component. {
|
|
391
|
+
`"We only support one query or mutation per component. {"kind":"Document","definitions":[{"kind":"OperationDefinition","operation":"query","variableDefinitions":[],"name":{"kind":"Name","value":"query"}},{"kind":"OperationDefinition","operation":"mutation","variableDefinitions":[],"name":{"kind":"Name","value":"mutation"}}]} had 1 queries and 1 mutations. "`,
|
|
392
392
|
);
|
|
393
393
|
});
|
|
394
394
|
});
|