sprint-es 0.0.86 → 0.0.88

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.
@@ -190,7 +190,7 @@ class Sprint {
190
190
  path: finalConfig.graphql?.path || "/graphql",
191
191
  graphiql: {
192
192
  enabled: isEnabledInEnv(finalConfig.graphql?.graphiql?.enabled),
193
- path: finalConfig.graphql?.graphiql?.path || "/grapiql"
193
+ path: finalConfig.graphql?.graphiql?.path || "/graphiql"
194
194
  }
195
195
  };
196
196
  const openApiPath = this.openapi.path;
@@ -256,7 +256,7 @@ class Sprint {
256
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
257
  );
258
258
  res.type("html");
259
- res.end(ruruHTML({ endpoint: this.graphql.path }));
259
+ res.end(ruruHTML({ endpoint: this.graphql.path }).replace(/<title>.*?<\/title>/, "<title>Sprint GraphQL IDE</title>"));
260
260
  });
261
261
  if (isVerbose) console.log(`[Sprint] GraphiQL IDE: http://localhost:${this.port}${this.graphql.graphiql.path}`);
262
262
  }
package/dist/esm/index.js CHANGED
@@ -165,7 +165,7 @@ class Sprint {
165
165
  path: finalConfig.graphql?.path || "/graphql",
166
166
  graphiql: {
167
167
  enabled: isEnabledInEnv(finalConfig.graphql?.graphiql?.enabled),
168
- path: finalConfig.graphql?.graphiql?.path || "/grapiql"
168
+ path: finalConfig.graphql?.graphiql?.path || "/graphiql"
169
169
  }
170
170
  };
171
171
  const openApiPath = this.openapi.path;
@@ -231,7 +231,7 @@ class Sprint {
231
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
232
  );
233
233
  res.type("html");
234
- res.end(ruruHTML({ endpoint: this.graphql.path }));
234
+ res.end(ruruHTML({ endpoint: this.graphql.path }).replace(/<title>.*?<\/title>/, "<title>Sprint GraphQL IDE</title>"));
235
235
  });
236
236
  if (isVerbose) console.log(`[Sprint] GraphiQL IDE: http://localhost:${this.port}${this.graphql.graphiql.path}`);
237
237
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sprint-es",
3
- "version": "0.0.86",
3
+ "version": "0.0.88",
4
4
  "description": "Sprint - Quickly API",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",