@ikas/storefront 0.0.6 → 0.0.7

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/build/index.es.js CHANGED
@@ -10894,9 +10894,10 @@ var Apollo = /** @class */ (function () {
10894
10894
  });
10895
10895
  var hostname = typeof window !== "undefined" ? window.location.hostname : null;
10896
10896
  var httpLink = createHttpLink({
10897
- uri: hostname && hostname !== "localhost"
10898
- ? "https://" + hostname + "/api/sf/graphql"
10899
- : process.env.NEXT_PUBLIC_GQL_URL,
10897
+ uri: IkasStorefrontConfig.apiUrlOverride ||
10898
+ (hostname && hostname !== "localhost"
10899
+ ? "https://" + hostname + "/api/sf/graphql"
10900
+ : process.env.NEXT_PUBLIC_GQL_URL),
10900
10901
  });
10901
10902
  _this._client = new ApolloClient({
10902
10903
  link: authLink.concat(httpLink),
package/build/index.js CHANGED
@@ -10907,9 +10907,10 @@ var Apollo = /** @class */ (function () {
10907
10907
  });
10908
10908
  var hostname = typeof window !== "undefined" ? window.location.hostname : null;
10909
10909
  var httpLink = createHttpLink({
10910
- uri: hostname && hostname !== "localhost"
10911
- ? "https://" + hostname + "/api/sf/graphql"
10912
- : process.env.NEXT_PUBLIC_GQL_URL,
10910
+ uri: IkasStorefrontConfig.apiUrlOverride ||
10911
+ (hostname && hostname !== "localhost"
10912
+ ? "https://" + hostname + "/api/sf/graphql"
10913
+ : process.env.NEXT_PUBLIC_GQL_URL),
10913
10914
  });
10914
10915
  _this._client = new ApolloClient({
10915
10916
  link: authLink.concat(httpLink),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ikas/storefront",
3
- "version": "0.0.6",
3
+ "version": "0.0.7",
4
4
  "main": "./build/index.js",
5
5
  "module": "./build/index.es.js",
6
6
  "author": "Umut Ozan Yıldırım",