@zuplo/cli 6.69.6 → 6.69.8
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/__tests__/integration/confirm-production-deploy.integration.test.d.ts +2 -0
- package/dist/__tests__/integration/confirm-production-deploy.integration.test.d.ts.map +1 -0
- package/dist/__tests__/integration/confirm-production-deploy.integration.test.js +184 -0
- package/dist/__tests__/integration/confirm-production-deploy.integration.test.js.map +1 -0
- package/dist/__tests__/integration/deploy.integration.test.js +1 -0
- package/dist/__tests__/integration/deploy.integration.test.js.map +1 -1
- package/dist/__tests__/integration/jest-mocks-setup.js +3 -0
- package/dist/__tests__/integration/jest-mocks-setup.js.map +1 -1
- package/dist/__tests__/integration/whoami.integration.test.js +27 -0
- package/dist/__tests__/integration/whoami.integration.test.js.map +1 -1
- package/dist/bucket/list/handler.d.ts +8 -0
- package/dist/bucket/list/handler.d.ts.map +1 -0
- package/dist/bucket/list/handler.js +54 -0
- package/dist/bucket/list/handler.js.map +1 -0
- package/dist/bucket/models.d.ts +23 -0
- package/dist/bucket/models.d.ts.map +1 -0
- package/dist/bucket/models.js +2 -0
- package/dist/bucket/models.js.map +1 -0
- package/dist/cli.js +4 -0
- package/dist/cli.js.map +1 -1
- package/dist/cmds/bucket/index.d.ts +4 -0
- package/dist/cmds/bucket/index.d.ts.map +1 -0
- package/dist/cmds/bucket/index.js +9 -0
- package/dist/cmds/bucket/index.js.map +1 -0
- package/dist/cmds/bucket/list.d.ts +9 -0
- package/dist/cmds/bucket/list.d.ts.map +1 -0
- package/dist/cmds/bucket/list.js +60 -0
- package/dist/cmds/bucket/list.js.map +1 -0
- package/dist/cmds/deploy.d.ts.map +1 -1
- package/dist/cmds/deploy.js +4 -1
- package/dist/cmds/deploy.js.map +1 -1
- package/dist/cmds/logout.d.ts +9 -0
- package/dist/cmds/logout.d.ts.map +1 -0
- package/dist/cmds/logout.js +23 -0
- package/dist/cmds/logout.js.map +1 -0
- package/dist/cmds/whoami.d.ts.map +1 -1
- package/dist/cmds/whoami.js +1 -2
- package/dist/cmds/whoami.js.map +1 -1
- package/dist/common/middleware/confirm-production-deploy.d.ts +4 -0
- package/dist/common/middleware/confirm-production-deploy.d.ts.map +1 -0
- package/dist/common/middleware/confirm-production-deploy.js +49 -0
- package/dist/common/middleware/confirm-production-deploy.js.map +1 -0
- package/dist/common/middleware/get-environment-param.d.ts +6 -0
- package/dist/common/middleware/get-environment-param.d.ts.map +1 -1
- package/dist/common/middleware/get-environment-param.js +15 -0
- package/dist/common/middleware/get-environment-param.js.map +1 -1
- package/dist/common/middleware/get-environment-param.test.d.ts +2 -0
- package/dist/common/middleware/get-environment-param.test.d.ts.map +1 -0
- package/dist/common/middleware/get-environment-param.test.js +33 -0
- package/dist/common/middleware/get-environment-param.test.js.map +1 -0
- package/dist/common/output.d.ts +3 -0
- package/dist/common/output.d.ts.map +1 -1
- package/dist/common/output.js +11 -0
- package/dist/common/output.js.map +1 -1
- package/dist/common/read-linked-config.d.ts +6 -1
- package/dist/common/read-linked-config.d.ts.map +1 -1
- package/dist/common/read-linked-config.js +14 -4
- package/dist/common/read-linked-config.js.map +1 -1
- package/dist/common/read-linked-config.test.js +97 -0
- package/dist/common/read-linked-config.test.js.map +1 -1
- package/dist/deploy/environments.d.ts +1 -0
- package/dist/deploy/environments.d.ts.map +1 -1
- package/dist/deploy/environments.js +11 -7
- package/dist/deploy/environments.js.map +1 -1
- package/dist/login/logout.d.ts +5 -0
- package/dist/login/logout.d.ts.map +1 -0
- package/dist/login/logout.js +6 -0
- package/dist/login/logout.js.map +1 -0
- package/dist/login/tokens.d.ts +1 -0
- package/dist/login/tokens.d.ts.map +1 -1
- package/dist/login/tokens.js +16 -1
- package/dist/login/tokens.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/whoami/handler.d.ts +1 -1
- package/dist/whoami/handler.d.ts.map +1 -1
- package/dist/whoami/handler.js +8 -1
- package/dist/whoami/handler.js.map +1 -1
- package/node_modules/@zuplo/core/customer.cli.minified.js +225 -211
- package/node_modules/@zuplo/core/index.minified.js +237 -223
- package/node_modules/@zuplo/core/package.json +1 -1
- package/node_modules/@zuplo/editor/node_modules/find-my-way/.github/workflows/node.js.yml +1 -1
- package/node_modules/@zuplo/editor/node_modules/find-my-way/README.md +10 -0
- package/node_modules/@zuplo/editor/node_modules/find-my-way/index.d.ts +6 -0
- package/node_modules/@zuplo/editor/node_modules/find-my-way/index.js +37 -4
- package/node_modules/@zuplo/editor/node_modules/find-my-way/lib/handler-storage.js +2 -2
- package/node_modules/@zuplo/editor/node_modules/find-my-way/package.json +3 -3
- package/node_modules/@zuplo/editor/node_modules/find-my-way/test/repro-issue-414.test.js +57 -0
- package/node_modules/@zuplo/editor/node_modules/find-my-way/test/types/router.test-d.ts +1 -0
- package/node_modules/@zuplo/graphql/package.json +1 -1
- package/node_modules/@zuplo/openapi-tools/package.json +1 -1
- package/node_modules/@zuplo/otel/package.json +1 -1
- package/node_modules/@zuplo/runtime/package.json +1 -1
- package/node_modules/graphql/index.d.ts +1 -0
- package/node_modules/graphql/language/ast.d.ts +10 -1
- package/node_modules/graphql/language/ast.js +8 -1
- package/node_modules/graphql/language/ast.mjs +8 -1
- package/node_modules/graphql/language/directiveLocation.d.ts +1 -0
- package/node_modules/graphql/language/directiveLocation.js +1 -0
- package/node_modules/graphql/language/directiveLocation.mjs +1 -0
- package/node_modules/graphql/language/index.d.ts +1 -0
- package/node_modules/graphql/language/kinds.d.ts +1 -0
- package/node_modules/graphql/language/kinds.js +1 -0
- package/node_modules/graphql/language/kinds.mjs +1 -0
- package/node_modules/graphql/language/parser.d.ts +14 -0
- package/node_modules/graphql/language/parser.js +33 -0
- package/node_modules/graphql/language/parser.mjs +33 -0
- package/node_modules/graphql/language/predicates.js +3 -1
- package/node_modules/graphql/language/predicates.mjs +5 -1
- package/node_modules/graphql/language/printer.js +13 -1
- package/node_modules/graphql/language/printer.mjs +13 -1
- package/node_modules/graphql/package.json +1 -1
- package/node_modules/graphql/type/directives.d.ts +9 -1
- package/node_modules/graphql/type/directives.js +10 -1
- package/node_modules/graphql/type/directives.mjs +10 -1
- package/node_modules/graphql/type/introspection.js +24 -1
- package/node_modules/graphql/type/introspection.mjs +24 -1
- package/node_modules/graphql/utilities/buildASTSchema.js +4 -0
- package/node_modules/graphql/utilities/buildASTSchema.mjs +4 -0
- package/node_modules/graphql/utilities/buildClientSchema.js +1 -0
- package/node_modules/graphql/utilities/buildClientSchema.mjs +1 -0
- package/node_modules/graphql/utilities/extendSchema.js +58 -3
- package/node_modules/graphql/utilities/extendSchema.mjs +58 -3
- package/node_modules/graphql/utilities/getIntrospectionQuery.d.ts +16 -0
- package/node_modules/graphql/utilities/getIntrospectionQuery.js +31 -38
- package/node_modules/graphql/utilities/getIntrospectionQuery.mjs +31 -38
- package/node_modules/graphql/utilities/introspectionFromSchema.js +1 -0
- package/node_modules/graphql/utilities/introspectionFromSchema.mjs +1 -0
- package/node_modules/graphql/utilities/printSchema.js +1 -0
- package/node_modules/graphql/utilities/printSchema.mjs +1 -0
- package/node_modules/graphql/utilities/valueFromAST.js +12 -2
- package/node_modules/graphql/utilities/valueFromAST.mjs +12 -2
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.js +4 -0
- package/node_modules/graphql/validation/rules/KnownDirectivesRule.mjs +4 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.js +12 -0
- package/node_modules/graphql/validation/rules/UniqueDirectivesPerLocationRule.mjs +12 -0
- package/node_modules/graphql/version.js +3 -3
- package/node_modules/graphql/version.mjs +3 -3
- package/package.json +6 -6
|
@@ -16,7 +16,9 @@ function getIntrospectionQuery(options) {
|
|
|
16
16
|
directiveIsRepeatable: false,
|
|
17
17
|
schemaDescription: false,
|
|
18
18
|
inputValueDeprecation: false,
|
|
19
|
+
experimentalDirectiveDeprecation: false,
|
|
19
20
|
oneOf: false,
|
|
21
|
+
typeDepth: 9,
|
|
20
22
|
...options,
|
|
21
23
|
};
|
|
22
24
|
const descriptions = optionsWithDefault.descriptions ? 'description' : '';
|
|
@@ -34,7 +36,30 @@ function getIntrospectionQuery(options) {
|
|
|
34
36
|
return optionsWithDefault.inputValueDeprecation ? str : '';
|
|
35
37
|
}
|
|
36
38
|
|
|
39
|
+
function experimentalDirectiveDeprecation(str) {
|
|
40
|
+
return optionsWithDefault.experimentalDirectiveDeprecation ? str : '';
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
const oneOf = optionsWithDefault.oneOf ? 'isOneOf' : '';
|
|
44
|
+
|
|
45
|
+
function ofType(level, indent) {
|
|
46
|
+
if (level <= 0) {
|
|
47
|
+
return '';
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
if (level > 100) {
|
|
51
|
+
throw new Error(
|
|
52
|
+
'Please set typeDepth to a reasonable value between 0 and 100; the default is 9.',
|
|
53
|
+
);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
return `
|
|
57
|
+
${indent}ofType {
|
|
58
|
+
${indent} name
|
|
59
|
+
${indent} kind${ofType(level - 1, indent + ' ')}
|
|
60
|
+
${indent}}`;
|
|
61
|
+
}
|
|
62
|
+
|
|
38
63
|
return `
|
|
39
64
|
query IntrospectionQuery {
|
|
40
65
|
__schema {
|
|
@@ -45,10 +70,14 @@ function getIntrospectionQuery(options) {
|
|
|
45
70
|
types {
|
|
46
71
|
...FullType
|
|
47
72
|
}
|
|
48
|
-
directives
|
|
73
|
+
directives${experimentalDirectiveDeprecation(
|
|
74
|
+
'(includeDeprecated: true)',
|
|
75
|
+
)} {
|
|
49
76
|
name
|
|
50
77
|
${descriptions}
|
|
51
78
|
${directiveIsRepeatable}
|
|
79
|
+
${experimentalDirectiveDeprecation('isDeprecated')}
|
|
80
|
+
${experimentalDirectiveDeprecation('deprecationReason')}
|
|
52
81
|
locations
|
|
53
82
|
args${inputDeprecation('(includeDeprecated: true)')} {
|
|
54
83
|
...InputValue
|
|
@@ -103,43 +132,7 @@ function getIntrospectionQuery(options) {
|
|
|
103
132
|
|
|
104
133
|
fragment TypeRef on __Type {
|
|
105
134
|
kind
|
|
106
|
-
name
|
|
107
|
-
ofType {
|
|
108
|
-
kind
|
|
109
|
-
name
|
|
110
|
-
ofType {
|
|
111
|
-
kind
|
|
112
|
-
name
|
|
113
|
-
ofType {
|
|
114
|
-
kind
|
|
115
|
-
name
|
|
116
|
-
ofType {
|
|
117
|
-
kind
|
|
118
|
-
name
|
|
119
|
-
ofType {
|
|
120
|
-
kind
|
|
121
|
-
name
|
|
122
|
-
ofType {
|
|
123
|
-
kind
|
|
124
|
-
name
|
|
125
|
-
ofType {
|
|
126
|
-
kind
|
|
127
|
-
name
|
|
128
|
-
ofType {
|
|
129
|
-
kind
|
|
130
|
-
name
|
|
131
|
-
ofType {
|
|
132
|
-
kind
|
|
133
|
-
name
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
}
|
|
135
|
+
name${ofType(optionsWithDefault.typeDepth, ' ')}
|
|
143
136
|
}
|
|
144
137
|
`;
|
|
145
138
|
}
|
|
@@ -9,7 +9,9 @@ export function getIntrospectionQuery(options) {
|
|
|
9
9
|
directiveIsRepeatable: false,
|
|
10
10
|
schemaDescription: false,
|
|
11
11
|
inputValueDeprecation: false,
|
|
12
|
+
experimentalDirectiveDeprecation: false,
|
|
12
13
|
oneOf: false,
|
|
14
|
+
typeDepth: 9,
|
|
13
15
|
...options,
|
|
14
16
|
};
|
|
15
17
|
const descriptions = optionsWithDefault.descriptions ? 'description' : '';
|
|
@@ -27,7 +29,30 @@ export function getIntrospectionQuery(options) {
|
|
|
27
29
|
return optionsWithDefault.inputValueDeprecation ? str : '';
|
|
28
30
|
}
|
|
29
31
|
|
|
32
|
+
function experimentalDirectiveDeprecation(str) {
|
|
33
|
+
return optionsWithDefault.experimentalDirectiveDeprecation ? str : '';
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
const oneOf = optionsWithDefault.oneOf ? 'isOneOf' : '';
|
|
37
|
+
|
|
38
|
+
function ofType(level, indent) {
|
|
39
|
+
if (level <= 0) {
|
|
40
|
+
return '';
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
if (level > 100) {
|
|
44
|
+
throw new Error(
|
|
45
|
+
'Please set typeDepth to a reasonable value between 0 and 100; the default is 9.',
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return `
|
|
50
|
+
${indent}ofType {
|
|
51
|
+
${indent} name
|
|
52
|
+
${indent} kind${ofType(level - 1, indent + ' ')}
|
|
53
|
+
${indent}}`;
|
|
54
|
+
}
|
|
55
|
+
|
|
31
56
|
return `
|
|
32
57
|
query IntrospectionQuery {
|
|
33
58
|
__schema {
|
|
@@ -38,10 +63,14 @@ export function getIntrospectionQuery(options) {
|
|
|
38
63
|
types {
|
|
39
64
|
...FullType
|
|
40
65
|
}
|
|
41
|
-
directives
|
|
66
|
+
directives${experimentalDirectiveDeprecation(
|
|
67
|
+
'(includeDeprecated: true)',
|
|
68
|
+
)} {
|
|
42
69
|
name
|
|
43
70
|
${descriptions}
|
|
44
71
|
${directiveIsRepeatable}
|
|
72
|
+
${experimentalDirectiveDeprecation('isDeprecated')}
|
|
73
|
+
${experimentalDirectiveDeprecation('deprecationReason')}
|
|
45
74
|
locations
|
|
46
75
|
args${inputDeprecation('(includeDeprecated: true)')} {
|
|
47
76
|
...InputValue
|
|
@@ -96,43 +125,7 @@ export function getIntrospectionQuery(options) {
|
|
|
96
125
|
|
|
97
126
|
fragment TypeRef on __Type {
|
|
98
127
|
kind
|
|
99
|
-
name
|
|
100
|
-
ofType {
|
|
101
|
-
kind
|
|
102
|
-
name
|
|
103
|
-
ofType {
|
|
104
|
-
kind
|
|
105
|
-
name
|
|
106
|
-
ofType {
|
|
107
|
-
kind
|
|
108
|
-
name
|
|
109
|
-
ofType {
|
|
110
|
-
kind
|
|
111
|
-
name
|
|
112
|
-
ofType {
|
|
113
|
-
kind
|
|
114
|
-
name
|
|
115
|
-
ofType {
|
|
116
|
-
kind
|
|
117
|
-
name
|
|
118
|
-
ofType {
|
|
119
|
-
kind
|
|
120
|
-
name
|
|
121
|
-
ofType {
|
|
122
|
-
kind
|
|
123
|
-
name
|
|
124
|
-
ofType {
|
|
125
|
-
kind
|
|
126
|
-
name
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
}
|
|
135
|
-
}
|
|
128
|
+
name${ofType(optionsWithDefault.typeDepth, ' ')}
|
|
136
129
|
}
|
|
137
130
|
`;
|
|
138
131
|
}
|
|
@@ -286,6 +286,7 @@ function printDirective(directive) {
|
|
|
286
286
|
'directive @' +
|
|
287
287
|
directive.name +
|
|
288
288
|
printArgs(directive.args) +
|
|
289
|
+
printDeprecated(directive.deprecationReason) +
|
|
289
290
|
(directive.isRepeatable ? ' repeatable' : '') +
|
|
290
291
|
' on ' +
|
|
291
292
|
directive.locations.join(' | ')
|
|
@@ -262,6 +262,7 @@ function printDirective(directive) {
|
|
|
262
262
|
'directive @' +
|
|
263
263
|
directive.name +
|
|
264
264
|
printArgs(directive.args) +
|
|
265
|
+
printDeprecated(directive.deprecationReason) +
|
|
265
266
|
(directive.isRepeatable ? ' repeatable' : '') +
|
|
266
267
|
' on ' +
|
|
267
268
|
directive.locations.join(' | ')
|
|
@@ -45,7 +45,11 @@ function valueFromAST(valueNode, type, variables) {
|
|
|
45
45
|
if (valueNode.kind === _kinds.Kind.VARIABLE) {
|
|
46
46
|
const variableName = valueNode.name.value;
|
|
47
47
|
|
|
48
|
-
if (
|
|
48
|
+
if (
|
|
49
|
+
variables == null ||
|
|
50
|
+
variables[variableName] === undefined ||
|
|
51
|
+
!hasOwnProperty(variables, variableName)
|
|
52
|
+
) {
|
|
49
53
|
// No valid return value.
|
|
50
54
|
return;
|
|
51
55
|
}
|
|
@@ -192,6 +196,12 @@ function valueFromAST(valueNode, type, variables) {
|
|
|
192
196
|
function isMissingVariable(valueNode, variables) {
|
|
193
197
|
return (
|
|
194
198
|
valueNode.kind === _kinds.Kind.VARIABLE &&
|
|
195
|
-
(variables == null ||
|
|
199
|
+
(variables == null ||
|
|
200
|
+
variables[valueNode.name.value] === undefined ||
|
|
201
|
+
!hasOwnProperty(variables, valueNode.name.value))
|
|
196
202
|
);
|
|
197
203
|
}
|
|
204
|
+
|
|
205
|
+
function hasOwnProperty(obj, prop) {
|
|
206
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
207
|
+
}
|
|
@@ -39,7 +39,11 @@ export function valueFromAST(valueNode, type, variables) {
|
|
|
39
39
|
if (valueNode.kind === Kind.VARIABLE) {
|
|
40
40
|
const variableName = valueNode.name.value;
|
|
41
41
|
|
|
42
|
-
if (
|
|
42
|
+
if (
|
|
43
|
+
variables == null ||
|
|
44
|
+
variables[variableName] === undefined ||
|
|
45
|
+
!hasOwnProperty(variables, variableName)
|
|
46
|
+
) {
|
|
43
47
|
// No valid return value.
|
|
44
48
|
return;
|
|
45
49
|
}
|
|
@@ -179,6 +183,12 @@ export function valueFromAST(valueNode, type, variables) {
|
|
|
179
183
|
function isMissingVariable(valueNode, variables) {
|
|
180
184
|
return (
|
|
181
185
|
valueNode.kind === Kind.VARIABLE &&
|
|
182
|
-
(variables == null ||
|
|
186
|
+
(variables == null ||
|
|
187
|
+
variables[valueNode.name.value] === undefined ||
|
|
188
|
+
!hasOwnProperty(variables, valueNode.name.value))
|
|
183
189
|
);
|
|
184
190
|
}
|
|
191
|
+
|
|
192
|
+
function hasOwnProperty(obj, prop) {
|
|
193
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
194
|
+
}
|
|
@@ -140,6 +140,10 @@ function getDirectiveLocationForASTPath(ancestors) {
|
|
|
140
140
|
? _directiveLocation.DirectiveLocation.INPUT_FIELD_DEFINITION
|
|
141
141
|
: _directiveLocation.DirectiveLocation.ARGUMENT_DEFINITION;
|
|
142
142
|
}
|
|
143
|
+
|
|
144
|
+
case _kinds.Kind.DIRECTIVE_DEFINITION:
|
|
145
|
+
case _kinds.Kind.DIRECTIVE_EXTENSION:
|
|
146
|
+
return _directiveLocation.DirectiveLocation.DIRECTIVE_DEFINITION;
|
|
143
147
|
// Not reachable, all possible types have been considered.
|
|
144
148
|
|
|
145
149
|
/* c8 ignore next */
|
|
@@ -127,6 +127,10 @@ function getDirectiveLocationForASTPath(ancestors) {
|
|
|
127
127
|
? DirectiveLocation.INPUT_FIELD_DEFINITION
|
|
128
128
|
: DirectiveLocation.ARGUMENT_DEFINITION;
|
|
129
129
|
}
|
|
130
|
+
|
|
131
|
+
case Kind.DIRECTIVE_DEFINITION:
|
|
132
|
+
case Kind.DIRECTIVE_EXTENSION:
|
|
133
|
+
return DirectiveLocation.DIRECTIVE_DEFINITION;
|
|
130
134
|
// Not reachable, all possible types have been considered.
|
|
131
135
|
|
|
132
136
|
/* c8 ignore next */
|
|
@@ -42,6 +42,7 @@ function UniqueDirectivesPerLocationRule(context) {
|
|
|
42
42
|
|
|
43
43
|
const schemaDirectives = Object.create(null);
|
|
44
44
|
const typeDirectivesMap = Object.create(null);
|
|
45
|
+
const directiveDirectivesMap = Object.create(null);
|
|
45
46
|
return {
|
|
46
47
|
// Many different AST nodes may contain directives. Rather than listing
|
|
47
48
|
// them all, just listen for entering any node, and check to see if it
|
|
@@ -68,6 +69,17 @@ function UniqueDirectivesPerLocationRule(context) {
|
|
|
68
69
|
if (seenDirectives === undefined) {
|
|
69
70
|
typeDirectivesMap[typeName] = seenDirectives = Object.create(null);
|
|
70
71
|
}
|
|
72
|
+
} else if (
|
|
73
|
+
node.kind === _kinds.Kind.DIRECTIVE_DEFINITION ||
|
|
74
|
+
node.kind === _kinds.Kind.DIRECTIVE_EXTENSION
|
|
75
|
+
) {
|
|
76
|
+
const directiveName = node.name.value;
|
|
77
|
+
seenDirectives = directiveDirectivesMap[directiveName];
|
|
78
|
+
|
|
79
|
+
if (seenDirectives === undefined) {
|
|
80
|
+
directiveDirectivesMap[directiveName] = seenDirectives =
|
|
81
|
+
Object.create(null);
|
|
82
|
+
}
|
|
71
83
|
} else {
|
|
72
84
|
seenDirectives = Object.create(null);
|
|
73
85
|
}
|
|
@@ -35,6 +35,7 @@ export function UniqueDirectivesPerLocationRule(context) {
|
|
|
35
35
|
|
|
36
36
|
const schemaDirectives = Object.create(null);
|
|
37
37
|
const typeDirectivesMap = Object.create(null);
|
|
38
|
+
const directiveDirectivesMap = Object.create(null);
|
|
38
39
|
return {
|
|
39
40
|
// Many different AST nodes may contain directives. Rather than listing
|
|
40
41
|
// them all, just listen for entering any node, and check to see if it
|
|
@@ -58,6 +59,17 @@ export function UniqueDirectivesPerLocationRule(context) {
|
|
|
58
59
|
if (seenDirectives === undefined) {
|
|
59
60
|
typeDirectivesMap[typeName] = seenDirectives = Object.create(null);
|
|
60
61
|
}
|
|
62
|
+
} else if (
|
|
63
|
+
node.kind === Kind.DIRECTIVE_DEFINITION ||
|
|
64
|
+
node.kind === Kind.DIRECTIVE_EXTENSION
|
|
65
|
+
) {
|
|
66
|
+
const directiveName = node.name.value;
|
|
67
|
+
seenDirectives = directiveDirectivesMap[directiveName];
|
|
68
|
+
|
|
69
|
+
if (seenDirectives === undefined) {
|
|
70
|
+
directiveDirectivesMap[directiveName] = seenDirectives =
|
|
71
|
+
Object.create(null);
|
|
72
|
+
}
|
|
61
73
|
} else {
|
|
62
74
|
seenDirectives = Object.create(null);
|
|
63
75
|
}
|
|
@@ -10,7 +10,7 @@ exports.versionInfo = exports.version = void 0;
|
|
|
10
10
|
/**
|
|
11
11
|
* A string containing the version of the GraphQL.js library
|
|
12
12
|
*/
|
|
13
|
-
const version = '16.
|
|
13
|
+
const version = '16.14.0';
|
|
14
14
|
/**
|
|
15
15
|
* An object containing the components of the GraphQL.js version string
|
|
16
16
|
*/
|
|
@@ -18,8 +18,8 @@ const version = '16.13.2';
|
|
|
18
18
|
exports.version = version;
|
|
19
19
|
const versionInfo = Object.freeze({
|
|
20
20
|
major: 16,
|
|
21
|
-
minor:
|
|
22
|
-
patch:
|
|
21
|
+
minor: 14,
|
|
22
|
+
patch: 0,
|
|
23
23
|
preReleaseTag: null,
|
|
24
24
|
});
|
|
25
25
|
exports.versionInfo = versionInfo;
|
|
@@ -4,14 +4,14 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* A string containing the version of the GraphQL.js library
|
|
6
6
|
*/
|
|
7
|
-
export const version = '16.
|
|
7
|
+
export const version = '16.14.0';
|
|
8
8
|
/**
|
|
9
9
|
* An object containing the components of the GraphQL.js version string
|
|
10
10
|
*/
|
|
11
11
|
|
|
12
12
|
export const versionInfo = Object.freeze({
|
|
13
13
|
major: 16,
|
|
14
|
-
minor:
|
|
15
|
-
patch:
|
|
14
|
+
minor: 14,
|
|
15
|
+
patch: 0,
|
|
16
16
|
preReleaseTag: null,
|
|
17
17
|
});
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zuplo/cli",
|
|
3
|
-
"version": "6.69.
|
|
3
|
+
"version": "6.69.8",
|
|
4
4
|
"repository": "https://github.com/zuplo/zuplo",
|
|
5
5
|
"author": "Zuplo, Inc.",
|
|
6
6
|
"type": "module",
|
|
@@ -29,10 +29,10 @@
|
|
|
29
29
|
"@opentelemetry/api": "1.9.0",
|
|
30
30
|
"@sentry/node": "9.22.0",
|
|
31
31
|
"@swc/core": "1.10.18",
|
|
32
|
-
"@zuplo/core": "6.69.
|
|
32
|
+
"@zuplo/core": "6.69.8",
|
|
33
33
|
"@zuplo/editor": "1.0.20821740935",
|
|
34
|
-
"@zuplo/openapi-tools": "6.69.
|
|
35
|
-
"@zuplo/runtime": "6.69.
|
|
34
|
+
"@zuplo/openapi-tools": "6.69.8",
|
|
35
|
+
"@zuplo/runtime": "6.69.8",
|
|
36
36
|
"chalk": "5.4.1",
|
|
37
37
|
"chokidar": "3.5.3",
|
|
38
38
|
"cookie": "1.0.2",
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"workerd": "1.20241230.0",
|
|
67
67
|
"yargs": "17.7.2",
|
|
68
68
|
"zod": "^3.24.1",
|
|
69
|
-
"@zuplo/graphql": "6.69.
|
|
70
|
-
"@zuplo/otel": "6.69.
|
|
69
|
+
"@zuplo/graphql": "6.69.8",
|
|
70
|
+
"@zuplo/otel": "6.69.8"
|
|
71
71
|
},
|
|
72
72
|
"bundleDependencies": [
|
|
73
73
|
"@fastify/cors",
|