sprint-es 0.0.84 → 0.0.86
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/index.cjs +56 -21
- package/dist/esm/index.js +56 -21
- package/dist/types/sprint.d.ts.map +1 -1
- package/dist/types/types.d.ts +8 -0
- package/dist/types/types.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -129,14 +129,18 @@ class Sprint {
|
|
|
129
129
|
this.loadedMiddlewares = [];
|
|
130
130
|
this.openapi = {
|
|
131
131
|
generateOnBuild: false,
|
|
132
|
+
path: "/openapi.json",
|
|
132
133
|
swaggerUi: {
|
|
133
|
-
enabled: false
|
|
134
|
+
enabled: false,
|
|
135
|
+
path: "/swagger"
|
|
134
136
|
}
|
|
135
137
|
};
|
|
136
138
|
this.graphql = {
|
|
137
139
|
enabled: false,
|
|
140
|
+
path: "/graphql",
|
|
138
141
|
graphiql: {
|
|
139
|
-
enabled: false
|
|
142
|
+
enabled: false,
|
|
143
|
+
path: "/grapiql"
|
|
140
144
|
}
|
|
141
145
|
};
|
|
142
146
|
this.graphqlSchema = null;
|
|
@@ -175,37 +179,63 @@ class Sprint {
|
|
|
175
179
|
this.prefix = finalConfig.prefix ? "/" + finalConfig.prefix.replace(/^\/+|\/+$/g, "") : "";
|
|
176
180
|
this.openapi = {
|
|
177
181
|
generateOnBuild: isEnabledInEnv(finalConfig.openapi?.generateOnBuild),
|
|
182
|
+
path: finalConfig.openapi?.path || "/openapi.json",
|
|
178
183
|
swaggerUi: {
|
|
179
|
-
enabled: isEnabledInEnv(finalConfig.openapi?.swaggerUi?.enabled)
|
|
184
|
+
enabled: isEnabledInEnv(finalConfig.openapi?.swaggerUi?.enabled),
|
|
185
|
+
path: finalConfig.openapi?.swaggerUi?.path || "/swagger"
|
|
180
186
|
}
|
|
181
187
|
};
|
|
182
188
|
this.graphql = {
|
|
183
189
|
enabled: isEnabledInEnv(finalConfig.graphql?.enabled),
|
|
190
|
+
path: finalConfig.graphql?.path || "/graphql",
|
|
184
191
|
graphiql: {
|
|
185
|
-
enabled: isEnabledInEnv(finalConfig.graphql?.graphiql?.enabled)
|
|
192
|
+
enabled: isEnabledInEnv(finalConfig.graphql?.graphiql?.enabled),
|
|
193
|
+
path: finalConfig.graphql?.graphiql?.path || "/grapiql"
|
|
186
194
|
}
|
|
187
195
|
};
|
|
196
|
+
const openApiPath = this.openapi.path;
|
|
197
|
+
const swaggerPath = this.openapi.swaggerUi.path;
|
|
198
|
+
const graphqlPath = this.graphql.path;
|
|
199
|
+
const graphiqlPath = this.graphql.graphiql.path;
|
|
200
|
+
const normalizePath = (p) => p.replace(/\/+/g, "/").replace(/\/$/, "") || "/";
|
|
201
|
+
const paths = [
|
|
202
|
+
{ name: "openapi.path", value: normalizePath(openApiPath) },
|
|
203
|
+
{ name: "openapi.swaggerUi.path", value: normalizePath(swaggerPath) },
|
|
204
|
+
{ name: "graphql.path", value: normalizePath(graphqlPath) },
|
|
205
|
+
{ name: "graphql.graphiql.path", value: normalizePath(graphiqlPath) }
|
|
206
|
+
];
|
|
207
|
+
const uniquePaths = /* @__PURE__ */ new Map();
|
|
208
|
+
for (const p of paths) {
|
|
209
|
+
if (uniquePaths.has(p.value)) {
|
|
210
|
+
console.error(`[Sprint] Error: Route conflict detected!`);
|
|
211
|
+
console.error(` - "${p.name}" = "${p.value}"`);
|
|
212
|
+
console.error(` - Conflicts with: "${uniquePaths.get(p.value)}"`);
|
|
213
|
+
console.error(` Please use different paths for each endpoint.`);
|
|
214
|
+
process.exit(1);
|
|
215
|
+
}
|
|
216
|
+
uniquePaths.set(p.value, p.name);
|
|
217
|
+
}
|
|
188
218
|
this.loadDefaults();
|
|
189
219
|
this.loadHealthcheck();
|
|
190
220
|
this.routesLoaded = this.init();
|
|
191
221
|
this.routesLoaded.then(async () => {
|
|
192
222
|
if (this.openapi.generateOnBuild) {
|
|
193
|
-
this.app.get(
|
|
223
|
+
this.app.get(this.openapi.path, (_, res) => {
|
|
194
224
|
res.json(this.generateOpenAPISpec());
|
|
195
225
|
});
|
|
196
|
-
if (
|
|
226
|
+
if (this.openapi.swaggerUi.enabled) {
|
|
197
227
|
try {
|
|
198
228
|
const swaggerUi = await import("swagger-ui-express");
|
|
199
229
|
const ui = swaggerUi.default;
|
|
200
|
-
this.app.use(
|
|
230
|
+
this.app.use(this.openapi.swaggerUi.path, (req, res, next) => {
|
|
201
231
|
res.setHeader(
|
|
202
232
|
"Content-Security-Policy",
|
|
203
233
|
"default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data: https:"
|
|
204
234
|
);
|
|
205
235
|
next();
|
|
206
236
|
});
|
|
207
|
-
this.app.use(
|
|
208
|
-
swaggerUrl:
|
|
237
|
+
this.app.use(this.openapi.swaggerUi.path, ui.serve, ui.setup(void 0, {
|
|
238
|
+
swaggerUrl: this.openapi.path
|
|
209
239
|
}));
|
|
210
240
|
} catch (err) {
|
|
211
241
|
console.warn("[Sprint] Failed to load swagger-ui-express:", err);
|
|
@@ -216,19 +246,21 @@ class Sprint {
|
|
|
216
246
|
try {
|
|
217
247
|
const { createHandler } = await import("graphql-http/lib/use/express");
|
|
218
248
|
const { ruruHTML } = await import("ruru/server");
|
|
219
|
-
|
|
220
|
-
this.app.all(graphqlPath, createHandler({
|
|
249
|
+
this.app.all(this.graphql.path, createHandler({
|
|
221
250
|
schema: this.graphqlSchema
|
|
222
251
|
}));
|
|
223
252
|
if (this.graphql.graphiql.enabled) {
|
|
224
|
-
|
|
225
|
-
|
|
253
|
+
this.app.get(this.graphql.graphiql.path, (_, res) => {
|
|
254
|
+
res.setHeader(
|
|
255
|
+
"Content-Security-Policy",
|
|
256
|
+
"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://unpkg.com; style-src 'self' 'unsafe-inline' https://unpkg.com; img-src 'self' data: https:; connect-src 'self' https:; font-src 'self' https:;"
|
|
257
|
+
);
|
|
226
258
|
res.type("html");
|
|
227
|
-
res.end(ruruHTML({ endpoint:
|
|
259
|
+
res.end(ruruHTML({ endpoint: this.graphql.path }));
|
|
228
260
|
});
|
|
229
|
-
if (isVerbose) console.log(`[Sprint] GraphiQL IDE: http://localhost:${this.port}${
|
|
261
|
+
if (isVerbose) console.log(`[Sprint] GraphiQL IDE: http://localhost:${this.port}${this.graphql.graphiql.path}`);
|
|
230
262
|
}
|
|
231
|
-
if (isVerbose) console.log(`[Sprint] GraphQL endpoint: http://localhost:${this.port}${
|
|
263
|
+
if (isVerbose) console.log(`[Sprint] GraphQL endpoint: http://localhost:${this.port}${this.graphql.path}`);
|
|
232
264
|
} catch (err) {
|
|
233
265
|
console.warn("[Sprint] Failed to load graphql-http or ruru:", err);
|
|
234
266
|
}
|
|
@@ -736,11 +768,14 @@ class Sprint {
|
|
|
736
768
|
console.log("");
|
|
737
769
|
console.log(` ${bold}${cyan}Sprint${reset} ready to handle requests`);
|
|
738
770
|
console.log("");
|
|
739
|
-
console.log(` ${dim}Local:${reset}
|
|
740
|
-
console.log(` ${dim}Prefix:${reset}
|
|
741
|
-
console.log(` ${dim}Healthcheck:${reset}
|
|
742
|
-
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset}
|
|
743
|
-
if (this.openapi.swaggerUi.enabled) console.log(` ${dim}Swagger UI:${reset}
|
|
771
|
+
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
772
|
+
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
|
773
|
+
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}${this.prefix}/healthcheck`);
|
|
774
|
+
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset} http://localhost:${port}${this.prefix}/openapi.json`);
|
|
775
|
+
if (this.openapi.swaggerUi.enabled) console.log(` ${dim}Swagger UI:${reset} http://localhost:${port}${this.prefix}/swagger`);
|
|
776
|
+
console.log("");
|
|
777
|
+
console.log(` ${dim}GraphQL API:${reset} http://localhost:${port}${this.prefix}/graphql`);
|
|
778
|
+
console.log(` ${dim}GraphQL Playground:${reset} http://localhost:${port}${this.prefix}/graphiql`);
|
|
744
779
|
console.log("");
|
|
745
780
|
console.log(` ${dim}Tip: Need stronger route protection? Learn more at${reset}`);
|
|
746
781
|
console.log(` ${dim}https://docs.tpeoficial.com/docs/dymo-api/private/request-verifier${reset}`);
|
package/dist/esm/index.js
CHANGED
|
@@ -104,14 +104,18 @@ class Sprint {
|
|
|
104
104
|
this.loadedMiddlewares = [];
|
|
105
105
|
this.openapi = {
|
|
106
106
|
generateOnBuild: false,
|
|
107
|
+
path: "/openapi.json",
|
|
107
108
|
swaggerUi: {
|
|
108
|
-
enabled: false
|
|
109
|
+
enabled: false,
|
|
110
|
+
path: "/swagger"
|
|
109
111
|
}
|
|
110
112
|
};
|
|
111
113
|
this.graphql = {
|
|
112
114
|
enabled: false,
|
|
115
|
+
path: "/graphql",
|
|
113
116
|
graphiql: {
|
|
114
|
-
enabled: false
|
|
117
|
+
enabled: false,
|
|
118
|
+
path: "/grapiql"
|
|
115
119
|
}
|
|
116
120
|
};
|
|
117
121
|
this.graphqlSchema = null;
|
|
@@ -150,37 +154,63 @@ class Sprint {
|
|
|
150
154
|
this.prefix = finalConfig.prefix ? "/" + finalConfig.prefix.replace(/^\/+|\/+$/g, "") : "";
|
|
151
155
|
this.openapi = {
|
|
152
156
|
generateOnBuild: isEnabledInEnv(finalConfig.openapi?.generateOnBuild),
|
|
157
|
+
path: finalConfig.openapi?.path || "/openapi.json",
|
|
153
158
|
swaggerUi: {
|
|
154
|
-
enabled: isEnabledInEnv(finalConfig.openapi?.swaggerUi?.enabled)
|
|
159
|
+
enabled: isEnabledInEnv(finalConfig.openapi?.swaggerUi?.enabled),
|
|
160
|
+
path: finalConfig.openapi?.swaggerUi?.path || "/swagger"
|
|
155
161
|
}
|
|
156
162
|
};
|
|
157
163
|
this.graphql = {
|
|
158
164
|
enabled: isEnabledInEnv(finalConfig.graphql?.enabled),
|
|
165
|
+
path: finalConfig.graphql?.path || "/graphql",
|
|
159
166
|
graphiql: {
|
|
160
|
-
enabled: isEnabledInEnv(finalConfig.graphql?.graphiql?.enabled)
|
|
167
|
+
enabled: isEnabledInEnv(finalConfig.graphql?.graphiql?.enabled),
|
|
168
|
+
path: finalConfig.graphql?.graphiql?.path || "/grapiql"
|
|
161
169
|
}
|
|
162
170
|
};
|
|
171
|
+
const openApiPath = this.openapi.path;
|
|
172
|
+
const swaggerPath = this.openapi.swaggerUi.path;
|
|
173
|
+
const graphqlPath = this.graphql.path;
|
|
174
|
+
const graphiqlPath = this.graphql.graphiql.path;
|
|
175
|
+
const normalizePath = (p) => p.replace(/\/+/g, "/").replace(/\/$/, "") || "/";
|
|
176
|
+
const paths = [
|
|
177
|
+
{ name: "openapi.path", value: normalizePath(openApiPath) },
|
|
178
|
+
{ name: "openapi.swaggerUi.path", value: normalizePath(swaggerPath) },
|
|
179
|
+
{ name: "graphql.path", value: normalizePath(graphqlPath) },
|
|
180
|
+
{ name: "graphql.graphiql.path", value: normalizePath(graphiqlPath) }
|
|
181
|
+
];
|
|
182
|
+
const uniquePaths = /* @__PURE__ */ new Map();
|
|
183
|
+
for (const p of paths) {
|
|
184
|
+
if (uniquePaths.has(p.value)) {
|
|
185
|
+
console.error(`[Sprint] Error: Route conflict detected!`);
|
|
186
|
+
console.error(` - "${p.name}" = "${p.value}"`);
|
|
187
|
+
console.error(` - Conflicts with: "${uniquePaths.get(p.value)}"`);
|
|
188
|
+
console.error(` Please use different paths for each endpoint.`);
|
|
189
|
+
process.exit(1);
|
|
190
|
+
}
|
|
191
|
+
uniquePaths.set(p.value, p.name);
|
|
192
|
+
}
|
|
163
193
|
this.loadDefaults();
|
|
164
194
|
this.loadHealthcheck();
|
|
165
195
|
this.routesLoaded = this.init();
|
|
166
196
|
this.routesLoaded.then(async () => {
|
|
167
197
|
if (this.openapi.generateOnBuild) {
|
|
168
|
-
this.app.get(
|
|
198
|
+
this.app.get(this.openapi.path, (_, res) => {
|
|
169
199
|
res.json(this.generateOpenAPISpec());
|
|
170
200
|
});
|
|
171
|
-
if (
|
|
201
|
+
if (this.openapi.swaggerUi.enabled) {
|
|
172
202
|
try {
|
|
173
203
|
const swaggerUi = await import("swagger-ui-express");
|
|
174
204
|
const ui = swaggerUi.default;
|
|
175
|
-
this.app.use(
|
|
205
|
+
this.app.use(this.openapi.swaggerUi.path, (req, res, next) => {
|
|
176
206
|
res.setHeader(
|
|
177
207
|
"Content-Security-Policy",
|
|
178
208
|
"default-src 'self'; style-src 'self' 'unsafe-inline'; script-src 'self' 'unsafe-inline' 'unsafe-eval'; img-src 'self' data: https:"
|
|
179
209
|
);
|
|
180
210
|
next();
|
|
181
211
|
});
|
|
182
|
-
this.app.use(
|
|
183
|
-
swaggerUrl:
|
|
212
|
+
this.app.use(this.openapi.swaggerUi.path, ui.serve, ui.setup(void 0, {
|
|
213
|
+
swaggerUrl: this.openapi.path
|
|
184
214
|
}));
|
|
185
215
|
} catch (err) {
|
|
186
216
|
console.warn("[Sprint] Failed to load swagger-ui-express:", err);
|
|
@@ -191,19 +221,21 @@ class Sprint {
|
|
|
191
221
|
try {
|
|
192
222
|
const { createHandler } = await import("graphql-http/lib/use/express");
|
|
193
223
|
const { ruruHTML } = await import("ruru/server");
|
|
194
|
-
|
|
195
|
-
this.app.all(graphqlPath, createHandler({
|
|
224
|
+
this.app.all(this.graphql.path, createHandler({
|
|
196
225
|
schema: this.graphqlSchema
|
|
197
226
|
}));
|
|
198
227
|
if (this.graphql.graphiql.enabled) {
|
|
199
|
-
|
|
200
|
-
|
|
228
|
+
this.app.get(this.graphql.graphiql.path, (_, res) => {
|
|
229
|
+
res.setHeader(
|
|
230
|
+
"Content-Security-Policy",
|
|
231
|
+
"default-src 'self'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https://unpkg.com; style-src 'self' 'unsafe-inline' https://unpkg.com; img-src 'self' data: https:; connect-src 'self' https:; font-src 'self' https:;"
|
|
232
|
+
);
|
|
201
233
|
res.type("html");
|
|
202
|
-
res.end(ruruHTML({ endpoint:
|
|
234
|
+
res.end(ruruHTML({ endpoint: this.graphql.path }));
|
|
203
235
|
});
|
|
204
|
-
if (isVerbose) console.log(`[Sprint] GraphiQL IDE: http://localhost:${this.port}${
|
|
236
|
+
if (isVerbose) console.log(`[Sprint] GraphiQL IDE: http://localhost:${this.port}${this.graphql.graphiql.path}`);
|
|
205
237
|
}
|
|
206
|
-
if (isVerbose) console.log(`[Sprint] GraphQL endpoint: http://localhost:${this.port}${
|
|
238
|
+
if (isVerbose) console.log(`[Sprint] GraphQL endpoint: http://localhost:${this.port}${this.graphql.path}`);
|
|
207
239
|
} catch (err) {
|
|
208
240
|
console.warn("[Sprint] Failed to load graphql-http or ruru:", err);
|
|
209
241
|
}
|
|
@@ -711,11 +743,14 @@ class Sprint {
|
|
|
711
743
|
console.log("");
|
|
712
744
|
console.log(` ${bold}${cyan}Sprint${reset} ready to handle requests`);
|
|
713
745
|
console.log("");
|
|
714
|
-
console.log(` ${dim}Local:${reset}
|
|
715
|
-
console.log(` ${dim}Prefix:${reset}
|
|
716
|
-
console.log(` ${dim}Healthcheck:${reset}
|
|
717
|
-
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset}
|
|
718
|
-
if (this.openapi.swaggerUi.enabled) console.log(` ${dim}Swagger UI:${reset}
|
|
746
|
+
console.log(` ${dim}Local:${reset} http://localhost:${bold}${port}${reset}`);
|
|
747
|
+
console.log(` ${dim}Prefix:${reset} ${bold}${prefixInfo}${reset}`);
|
|
748
|
+
console.log(` ${dim}Healthcheck:${reset} http://localhost:${port}${this.prefix}/healthcheck`);
|
|
749
|
+
if (this.openapi.generateOnBuild) console.log(` ${dim}OpenAPI Spec:${reset} http://localhost:${port}${this.prefix}/openapi.json`);
|
|
750
|
+
if (this.openapi.swaggerUi.enabled) console.log(` ${dim}Swagger UI:${reset} http://localhost:${port}${this.prefix}/swagger`);
|
|
751
|
+
console.log("");
|
|
752
|
+
console.log(` ${dim}GraphQL API:${reset} http://localhost:${port}${this.prefix}/graphql`);
|
|
753
|
+
console.log(` ${dim}GraphQL Playground:${reset} http://localhost:${port}${this.prefix}/graphiql`);
|
|
719
754
|
console.log("");
|
|
720
755
|
console.log(` ${dim}Tip: Need stronger route protection? Learn more at${reset}`);
|
|
721
756
|
console.log(` ${dim}https://docs.tpeoficial.com/docs/dymo-api/private/request-verifier${reset}`);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sprint.d.ts","sourceRoot":"","sources":["../../src/sprint.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAA+B,gBAAgB,EAAoB,MAAM,SAAS,CAAC;AACnG,OAAO,OAAO,EAAE,EAAE,WAAW,EAAoD,MAAM,SAAS,CAAC;AAejG,eAAO,MAAM,aAAa,SAAQ,CAAC;AACnC,eAAO,MAAM,YAAY,SAAS,CAAC;AAkDnC,qBAAa,MAAM;IACR,GAAG,EAAE,WAAW,CAAC;IACxB,OAAO,CAAC,IAAI,CAAwD;IACpE,OAAO,CAAC,UAAU,CAAsB;IACxC,OAAO,CAAC,eAAe,CAA2B;IAClD,OAAO,CAAC,YAAY,CAAwB;IAC5C,OAAO,CAAC,SAAS,CAAkB;IACnC,OAAO,CAAC,eAAe,CAAkB;IACzC,OAAO,CAAC,MAAM,CAAc;IAC5B,OAAO,CAAC,YAAY,CAAiB;IACrC,OAAO,CAAC,MAAM,CAAe;IAC7B,OAAO,CAAC,iBAAiB,CAA0B;IACnD,OAAO,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"sprint.d.ts","sourceRoot":"","sources":["../../src/sprint.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,OAAO,EAA+B,gBAAgB,EAAoB,MAAM,SAAS,CAAC;AACnG,OAAO,OAAO,EAAE,EAAE,WAAW,EAAoD,MAAM,SAAS,CAAC;AAejG,eAAO,MAAM,aAAa,SAAQ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,gBAAgB,EAAE,YAAY,CAAC,EAAE,OAAO;IAY9E,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,IAAI;IAIvC,MAAM,CAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,GAAG,IAAI;CA6DzC"}
|
package/dist/types/types.d.ts
CHANGED
|
@@ -86,14 +86,18 @@ export interface SprintOptions {
|
|
|
86
86
|
openapi?: {
|
|
87
87
|
enabled?: boolean | string[];
|
|
88
88
|
generateOnBuild?: boolean | string[];
|
|
89
|
+
path?: string;
|
|
89
90
|
swaggerUi?: {
|
|
90
91
|
enabled?: boolean | string[];
|
|
92
|
+
path?: string;
|
|
91
93
|
};
|
|
92
94
|
};
|
|
93
95
|
graphql?: {
|
|
94
96
|
enabled?: boolean | string[];
|
|
97
|
+
path?: string;
|
|
95
98
|
graphiql?: {
|
|
96
99
|
enabled?: boolean | string[];
|
|
100
|
+
path?: string;
|
|
97
101
|
};
|
|
98
102
|
};
|
|
99
103
|
}
|
|
@@ -109,14 +113,18 @@ export interface SprintConfig {
|
|
|
109
113
|
openapi?: {
|
|
110
114
|
enabled?: boolean | string[];
|
|
111
115
|
generateOnBuild?: boolean | string[];
|
|
116
|
+
path?: string;
|
|
112
117
|
swaggerUi?: {
|
|
113
118
|
enabled?: boolean | string[];
|
|
119
|
+
path?: string;
|
|
114
120
|
};
|
|
115
121
|
};
|
|
116
122
|
graphql?: {
|
|
117
123
|
enabled?: boolean | string[];
|
|
124
|
+
path?: string;
|
|
118
125
|
graphiql?: {
|
|
119
126
|
enabled?: boolean | string[];
|
|
127
|
+
path?: string;
|
|
120
128
|
};
|
|
121
129
|
};
|
|
122
130
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAC1E,OAAO,EAAE,SAAS,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