@cedarjs/graphql-server 2.2.0-rc.34 → 2.2.1-next.0
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/dist/cjs/makeMergedSchema.d.ts.map +1 -1
- package/dist/cjs/makeMergedSchema.js +1 -1
- package/dist/cjs/plugins/useRedwoodDirective.js +1 -1
- package/dist/cjs/plugins/useRedwoodError.d.ts.map +1 -1
- package/dist/cjs/plugins/useRedwoodError.js +2 -3
- package/dist/makeMergedSchema.d.ts.map +1 -1
- package/dist/makeMergedSchema.js +1 -1
- package/dist/plugins/useRedwoodDirective.js +1 -1
- package/dist/plugins/useRedwoodError.d.ts.map +1 -1
- package/dist/plugins/useRedwoodError.js +2 -3
- package/package.json +16 -16
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeMergedSchema.d.ts","sourceRoot":"","sources":["../../src/makeMergedSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAUxE,OAAO,KAAK,EACV,aAAa,EAKd,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,KAAK,EAEV,mBAAmB,EAEnB,cAAc,EACd,mBAAmB,EACpB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"makeMergedSchema.d.ts","sourceRoot":"","sources":["../../src/makeMergedSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAUxE,OAAO,KAAK,EACV,aAAa,EAKd,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,KAAK,EAEV,mBAAmB,EAEnB,cAAc,EACd,mBAAmB,EACpB,MAAM,YAAY,CAAA;AAuUnB,eAAO,MAAM,gBAAgB,GAAI,+EAO9B;IACD,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,UAAU,EAAE,gBAAgB,EAAE,CAAA;IAC9B,aAAa,EAAE,mBAAmB,EAAE,CAAA;IACpC,cAAc,CAAC,EAAE,mBAAmB,CAAA;IAEpC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACrD,kBA+CA,CAAA"}
|
|
@@ -83,7 +83,7 @@ const mapFieldsToService = ({
|
|
|
83
83
|
[name]: async (root, args, context, info) => {
|
|
84
84
|
const captureResolvers = (
|
|
85
85
|
// @ts-expect-error context is unknown
|
|
86
|
-
context
|
|
86
|
+
context?.["OPEN_TELEMETRY_GRAPHQL"] !== void 0
|
|
87
87
|
);
|
|
88
88
|
if (captureResolvers) {
|
|
89
89
|
return wrapWithOpenTelemetry(
|
|
@@ -135,7 +135,7 @@ function wrapAffectedResolvers(schema, options) {
|
|
|
135
135
|
});
|
|
136
136
|
}
|
|
137
137
|
const useRedwoodDirective = (options) => {
|
|
138
|
-
const wasDirectiveApplied = Symbol.for(`useRedwoodDirective.${options.name}}`);
|
|
138
|
+
const wasDirectiveApplied = /* @__PURE__ */ Symbol.for(`useRedwoodDirective.${options.name}}`);
|
|
139
139
|
return {
|
|
140
140
|
onSchemaChange({ schema, replaceSchema }) {
|
|
141
141
|
if (schema.extensions?.[wasDirectiveApplied] === true) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRedwoodError.d.ts","sourceRoot":"","sources":["../../../src/plugins/useRedwoodError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAO1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAQ,MAAM,KACb,MAAM,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useRedwoodError.d.ts","sourceRoot":"","sources":["../../../src/plugins/useRedwoodError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAO1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAQ,MAAM,KACb,MAAM,CAAC,qBAAqB,CAsC9B,CAAA"}
|
|
@@ -32,14 +32,13 @@ const useRedwoodError = (logger) => {
|
|
|
32
32
|
payload,
|
|
33
33
|
({ result, setResult }) => {
|
|
34
34
|
const errors = result.errors?.map((error) => {
|
|
35
|
-
if (error.originalError
|
|
35
|
+
if (error.originalError instanceof import_api.RedwoodError) {
|
|
36
36
|
logger.debug(
|
|
37
37
|
{ custom: { name: error.originalError.name } },
|
|
38
38
|
"Converting RedwoodError to GraphQLError"
|
|
39
39
|
);
|
|
40
40
|
return (0, import_graphql_yoga.createGraphQLError)(error.message, {
|
|
41
|
-
extensions: error.extensions
|
|
42
|
-
originalError: error
|
|
41
|
+
extensions: error.extensions
|
|
43
42
|
});
|
|
44
43
|
} else {
|
|
45
44
|
return error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"makeMergedSchema.d.ts","sourceRoot":"","sources":["../src/makeMergedSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAUxE,OAAO,KAAK,EACV,aAAa,EAKd,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,KAAK,EAEV,mBAAmB,EAEnB,cAAc,EACd,mBAAmB,EACpB,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"makeMergedSchema.d.ts","sourceRoot":"","sources":["../src/makeMergedSchema.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,uBAAuB,CAAA;AAUxE,OAAO,KAAK,EACV,aAAa,EAKd,MAAM,SAAS,CAAA;AAIhB,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AAExE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AAC/E,OAAO,KAAK,EAEV,mBAAmB,EAEnB,cAAc,EACd,mBAAmB,EACpB,MAAM,YAAY,CAAA;AAuUnB,eAAO,MAAM,gBAAgB,GAAI,+EAO9B;IACD,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,EAAE,mBAAmB,CAAA;IAC7B,UAAU,EAAE,gBAAgB,EAAE,CAAA;IAC9B,aAAa,EAAE,mBAAmB,EAAE,CAAA;IACpC,cAAc,CAAC,EAAE,mBAAmB,CAAA;IAEpC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACrD,kBA+CA,CAAA"}
|
package/dist/makeMergedSchema.js
CHANGED
|
@@ -53,7 +53,7 @@ const mapFieldsToService = ({
|
|
|
53
53
|
[name]: async (root, args, context, info) => {
|
|
54
54
|
const captureResolvers = (
|
|
55
55
|
// @ts-expect-error context is unknown
|
|
56
|
-
context
|
|
56
|
+
context?.["OPEN_TELEMETRY_GRAPHQL"] !== void 0
|
|
57
57
|
);
|
|
58
58
|
if (captureResolvers) {
|
|
59
59
|
return wrapWithOpenTelemetry(
|
|
@@ -108,7 +108,7 @@ function wrapAffectedResolvers(schema, options) {
|
|
|
108
108
|
});
|
|
109
109
|
}
|
|
110
110
|
const useRedwoodDirective = (options) => {
|
|
111
|
-
const wasDirectiveApplied = Symbol.for(`useRedwoodDirective.${options.name}}`);
|
|
111
|
+
const wasDirectiveApplied = /* @__PURE__ */ Symbol.for(`useRedwoodDirective.${options.name}}`);
|
|
112
112
|
return {
|
|
113
113
|
onSchemaChange({ schema, replaceSchema }) {
|
|
114
114
|
if (schema.extensions?.[wasDirectiveApplied] === true) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useRedwoodError.d.ts","sourceRoot":"","sources":["../../src/plugins/useRedwoodError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAO1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAQ,MAAM,KACb,MAAM,CAAC,qBAAqB,
|
|
1
|
+
{"version":3,"file":"useRedwoodError.d.ts","sourceRoot":"","sources":["../../src/plugins/useRedwoodError.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAA;AAO1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAA;AAEjD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,GAC1B,QAAQ,MAAM,KACb,MAAM,CAAC,qBAAqB,CAsC9B,CAAA"}
|
|
@@ -12,14 +12,13 @@ const useRedwoodError = (logger) => {
|
|
|
12
12
|
payload,
|
|
13
13
|
({ result, setResult }) => {
|
|
14
14
|
const errors = result.errors?.map((error) => {
|
|
15
|
-
if (error.originalError
|
|
15
|
+
if (error.originalError instanceof RedwoodError) {
|
|
16
16
|
logger.debug(
|
|
17
17
|
{ custom: { name: error.originalError.name } },
|
|
18
18
|
"Converting RedwoodError to GraphQLError"
|
|
19
19
|
);
|
|
20
20
|
return createGraphQLError(error.message, {
|
|
21
|
-
extensions: error.extensions
|
|
22
|
-
originalError: error
|
|
21
|
+
extensions: error.extensions
|
|
23
22
|
});
|
|
24
23
|
} else {
|
|
25
24
|
return error;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cedarjs/graphql-server",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.1-next.0+2323281e7",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/cedarjs/cedar.git",
|
|
@@ -38,39 +38,39 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime-corejs3": "7.28.4",
|
|
41
|
-
"@cedarjs/api": "2.2.
|
|
42
|
-
"@cedarjs/context": "2.2.
|
|
41
|
+
"@cedarjs/api": "2.2.1-next.0+2323281e7",
|
|
42
|
+
"@cedarjs/context": "2.2.1-next.0+2323281e7",
|
|
43
43
|
"@envelop/core": "5.4.0",
|
|
44
44
|
"@envelop/depth-limit": "4.0.0",
|
|
45
45
|
"@envelop/disable-introspection": "6.0.0",
|
|
46
46
|
"@envelop/filter-operation-type": "6.0.0",
|
|
47
47
|
"@envelop/on-resolve": "4.1.1",
|
|
48
48
|
"@escape.tech/graphql-armor": "3.0.1",
|
|
49
|
-
"@graphql-tools/merge": "9.
|
|
50
|
-
"@graphql-tools/schema": "10.0.
|
|
51
|
-
"@graphql-tools/utils": "10.
|
|
52
|
-
"@graphql-yoga/plugin-persisted-operations": "3.
|
|
49
|
+
"@graphql-tools/merge": "9.1.6",
|
|
50
|
+
"@graphql-tools/schema": "10.0.30",
|
|
51
|
+
"@graphql-tools/utils": "10.11.0",
|
|
52
|
+
"@graphql-yoga/plugin-persisted-operations": "3.18.0",
|
|
53
53
|
"@opentelemetry/api": "1.8.0",
|
|
54
|
-
"core-js": "3.
|
|
55
|
-
"graphql": "16.
|
|
56
|
-
"graphql-scalars": "1.
|
|
54
|
+
"core-js": "3.47.0",
|
|
55
|
+
"graphql": "16.12.0",
|
|
56
|
+
"graphql-scalars": "1.25.0",
|
|
57
57
|
"graphql-tag": "2.12.6",
|
|
58
|
-
"graphql-yoga": "5.
|
|
58
|
+
"graphql-yoga": "5.18.0",
|
|
59
59
|
"lodash": "4.17.21",
|
|
60
60
|
"uuid": "10.0.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
63
|
"@babel/cli": "7.28.3",
|
|
64
64
|
"@babel/core": "^7.26.10",
|
|
65
|
-
"@cedarjs/framework-tools": "2.2.
|
|
66
|
-
"@cedarjs/project-config": "2.2.
|
|
67
|
-
"@cedarjs/realtime": "2.2.
|
|
65
|
+
"@cedarjs/framework-tools": "2.2.1-next.1",
|
|
66
|
+
"@cedarjs/project-config": "2.2.1-next.0+2323281e7",
|
|
67
|
+
"@cedarjs/realtime": "2.2.1-next.0+2323281e7",
|
|
68
68
|
"@envelop/types": "5.2.1",
|
|
69
69
|
"@types/aws-lambda": "8.10.159",
|
|
70
70
|
"@types/jsonwebtoken": "9.0.10",
|
|
71
71
|
"@types/lodash": "4.17.21",
|
|
72
72
|
"@types/uuid": "10.0.0",
|
|
73
|
-
"@whatwg-node/fetch": "0.
|
|
73
|
+
"@whatwg-node/fetch": "0.10.13",
|
|
74
74
|
"@whatwg-node/promise-helpers": "^1.3.0",
|
|
75
75
|
"concurrently": "8.2.2",
|
|
76
76
|
"jsonwebtoken": "9.0.3",
|
|
@@ -82,5 +82,5 @@
|
|
|
82
82
|
"publishConfig": {
|
|
83
83
|
"access": "public"
|
|
84
84
|
},
|
|
85
|
-
"gitHead": "
|
|
85
|
+
"gitHead": "2323281e7378c8b45faea9f1d70e8a1638144e8d"
|
|
86
86
|
}
|