New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cloudcommerce

Package Overview
Dependencies
Maintainers
1
Versions
451
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cloudcommerce - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

packages/api/scripts/test.mjs

8

CHANGELOG.md

@@ -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 @@

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc