@ecommaps/client 1.3.0 → 1.3.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
@@ -25,7 +25,7 @@ The client automatically reads from environment variables but can also be config
25
25
  import { ecommapsClient } from "@ecommaps/client";
26
26
 
27
27
  // Set these in your .env
28
- // NEXT_PUBLIC_ECOMMAPS_API_URL=http://localhost:8001/api/v1/storefront
28
+ // NEXT_PUBLIC_ECOMMAPS_API_URL=https://api.ecommaps.com/api/v1/storefront
29
29
  // ECOMMAPS_API_KEY=your_store_key
30
30
  ```
31
31
 
package/dist/index.js CHANGED
@@ -26,7 +26,7 @@ __export(index_exports, {
26
26
  module.exports = __toCommonJS(index_exports);
27
27
 
28
28
  // src/client.ts
29
- var API_URL = process.env.NEXT_PUBLIC_ECOMMAPS_API_URL || "http://127.0.0.1:8001/api/v1/storefront";
29
+ var API_URL = process.env.NEXT_PUBLIC_ECOMMAPS_API_URL || "https://api.ecommaps.com/api/v1/storefront";
30
30
  var API_KEY = process.env.ECOMMAPS_API_KEY || "";
31
31
  var EcommapsAPIError = class extends Error {
32
32
  status;
package/dist/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  // src/client.ts
2
- var API_URL = process.env.NEXT_PUBLIC_ECOMMAPS_API_URL || "http://127.0.0.1:8001/api/v1/storefront";
2
+ var API_URL = process.env.NEXT_PUBLIC_ECOMMAPS_API_URL || "https://api.ecommaps.com/api/v1/storefront";
3
3
  var API_KEY = process.env.ECOMMAPS_API_KEY || "";
4
4
  var EcommapsAPIError = class extends Error {
5
5
  status;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ecommaps/client",
3
- "version": "1.3.0",
3
+ "version": "1.3.2",
4
4
  "description": "The official JS SDK for Ecommaps Headless Storefronts.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -16,6 +16,14 @@
16
16
  "tsup": "^8.0.2",
17
17
  "typescript": "^5.4.5"
18
18
  },
19
- "author": "EcoBaseAI",
20
- "license": "ISC"
19
+ "author": "labobankcom",
20
+ "license": "ISC",
21
+ "repository": {
22
+ "type": "git",
23
+ "url": "https://github.com/labobankcom/ecommaps-js-sdk.git"
24
+ },
25
+ "publishConfig": {
26
+ "access": "public",
27
+ "registry": "https://registry.npmjs.org/"
28
+ }
21
29
  }
package/src/client.ts CHANGED
@@ -8,7 +8,7 @@ import {
8
8
 
9
9
  const API_URL =
10
10
  process.env.NEXT_PUBLIC_ECOMMAPS_API_URL ||
11
- "http://127.0.0.1:8001/api/v1/storefront"
11
+ "https://api.ecommaps.com/api/v1/storefront"
12
12
  const API_KEY = process.env.ECOMMAPS_API_KEY || ""
13
13
 
14
14
  export class EcommapsAPIError extends Error {