cloudcommerce
Advanced tools
Comparing version 0.0.3 to 0.0.4
@@ -5,2 +5,10 @@ # Changelog | ||
### [0.0.4](https://github.com/ecomplus/cloud-commerce/compare/v0.0.3...v0.0.4) (2022-06-15) | ||
### Bug Fixes | ||
* **api:** Fix adding `:storeId` to default API base URL ([d424760](https://github.com/ecomplus/cloud-commerce/commit/d4247602168078acc0b05f5d1bbf5980f636bd71)) | ||
* **api:** No `procedures` and `triggers` resources on Store API v2 (remove from default types) ([66281d4](https://github.com/ecomplus/cloud-commerce/commit/66281d41f25a707fabda2233d2404724ba6b53f4)) | ||
### [0.0.3](https://github.com/ecomplus/cloud-commerce/compare/v0.0.2...v0.0.3) (2022-06-14) | ||
@@ -7,0 +15,0 @@ |
{ | ||
"name": "cloudcommerce", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "Open fair-code headless commerce platform: API-first, microservices based, event driven and cloud native", | ||
@@ -37,3 +37,5 @@ "main": "src/index.js", | ||
"husky": "^8.0.1", | ||
"node-fetch": "^3.2.6", | ||
"standard-version": "^9.5.0", | ||
"tsx": "^3.4.2", | ||
"turbo": "^1.2.16", | ||
@@ -40,0 +42,0 @@ "typescript": "^4.7.3", |
@@ -8,13 +8,11 @@ // @ts-ignore | ||
let url = config.baseUrl || env.API_BASE_URL || 'https://ecomplus.io/v2'; | ||
if (!url) { | ||
const storeId = config.storeId || env.ECOM_STORE_ID; | ||
if (!storeId) { | ||
throw new Error('`storeId` must be set in config or `ECOM_STORE_ID` env var'); | ||
} | ||
url += `/:${storeId}`; | ||
const lang = config.lang || env.ECOM_LANG; | ||
if (lang) { | ||
url += `,lang:${lang}`; | ||
} | ||
const storeId = config.storeId || env.ECOM_STORE_ID; | ||
if (!storeId) { | ||
throw new Error('`storeId` must be set in config or `ECOM_STORE_ID` env var'); | ||
} | ||
url += `/:${storeId}`; | ||
const lang = config.lang || env.ECOM_LANG; | ||
if (lang) { | ||
url += `,lang:${lang}`; | ||
} | ||
if (config.params) { | ||
@@ -21,0 +19,0 @@ if (typeof config.params === 'string') { |
{ | ||
"name": "@cloudcommerce/api", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "E-Com Plus Cloud Commerce APIs client/adapter", | ||
@@ -20,4 +20,4 @@ "main": "dist/index.js", | ||
"build": "zx scripts/build.mjs", | ||
"test": "tsc --noEmit --noImplicitAny" | ||
"test": "zx scripts/test.mjs" | ||
} | ||
} |
@@ -11,13 +11,11 @@ import type { Endpoint, Config, ResponseBody } from './types'; | ||
let url = config.baseUrl || env.API_BASE_URL || 'https://ecomplus.io/v2'; | ||
if (!url) { | ||
const storeId = config.storeId || env.ECOM_STORE_ID; | ||
if (!storeId) { | ||
throw new Error('`storeId` must be set in config or `ECOM_STORE_ID` env var'); | ||
} | ||
url += `/:${storeId}`; | ||
const lang = config.lang || env.ECOM_LANG; | ||
if (lang) { | ||
url += `,lang:${lang}`; | ||
} | ||
const storeId = config.storeId || env.ECOM_STORE_ID; | ||
if (!storeId) { | ||
throw new Error('`storeId` must be set in config or `ECOM_STORE_ID` env var'); | ||
} | ||
url += `/:${storeId}`; | ||
const lang = config.lang || env.ECOM_LANG; | ||
if (lang) { | ||
url += `,lang:${lang}`; | ||
} | ||
if (config.params) { | ||
@@ -24,0 +22,0 @@ if (typeof config.params === 'string') { |
{ | ||
"name": "@cloudcommerce/app-discounts", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "E-Com Plus Cloud Commerce app for complex discount rules", | ||
@@ -5,0 +5,0 @@ "main": "functions/dist/index.js", |
{ | ||
"name": "@cloudcommerce/storefront", | ||
"version": "0.0.3", | ||
"version": "0.0.4", | ||
"description": "E-Com Plus Cloud Commerce storefront with Astro", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
Sorry, the diff of this file is not supported yet
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
279737
18
59
10187