@quintype/framework 7.5.0-internal-api.1 → 7.5.0-internal-api.2

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/README.md CHANGED
@@ -286,7 +286,7 @@ Preloading app.js and /route-data.json can be triggered by passing preloadJS tru
286
286
 
287
287
  ### multiple publishers
288
288
 
289
- FIXME: Write notes on `host_to_api_host`, `host_to_automatic_api_host`, `wildcard_automatic_api_host` and `skip_warm_config`
289
+ FIXME: Write notes on `host_to_api_host`, `host_to_automatic_api_host`, `wildcard_to_api_host` and `skip_warm_config`
290
290
 
291
291
  ### forwardFavicon
292
292
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quintype/framework",
3
- "version": "7.5.0-internal-api.1",
3
+ "version": "7.5.0-internal-api.2",
4
4
  "description": "Libraries to help build Quintype Node.js apps",
5
5
  "main": "index.js",
6
6
  "engines": {
@@ -29,7 +29,7 @@ function createTemporaryClient(config, hostname) {
29
29
  return new Client(configuredHosts[hostname], true);
30
30
  }
31
31
 
32
- const matchedMadridUrl = (config.wildcard_automatic_api_host || []).find((str) => hostname.includes(str));
32
+ const matchedMadridUrl = (config.wildcard_to_api_host || []).find((str) => hostname.includes(str));
33
33
 
34
34
  if (matchedMadridUrl) return new Client(`http://${hostname.replace(matchedMadridUrl, ".internal")}`, true);
35
35
 
@@ -35,7 +35,7 @@ describe("ApiClient", function () {
35
35
 
36
36
  it("creates a wildcard temporary client if it matches a string", function () {
37
37
  const client = getClientImpl(
38
- { wildcard_automatic_api_host: [".madrid", "-madrid"] },
38
+ { wildcard_to_api_host: [".madrid", "-madrid"] },
39
39
  {},
40
40
  "foo.madrid.quintype.io"
41
41
  );