Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@cloudcommerce/config

Package Overview
Dependencies
Maintainers
1
Versions
341
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cloudcommerce/config - npm Package Compare versions

Comparing version 0.0.115 to 0.0.116

16

lib/config.js

@@ -15,2 +15,6 @@ import Deepmerge from '@fastify/deepmerge';

globalThis.__cloudCommerce = self;
_env.ECOM_LANG = _env.ECOM_LANG || DEFAULT_LANG;
_env.ECOM_CURRENCY = _env.ECOM_CURRENCY || DEFAULT_CURRENCY;
_env.ECOM_CURRENCY_SYMBOL = _env.ECOM_CURRENCY_SYMBOL || DEFAULT_CURRENCY_SYMBOL;
_env.ECOM_COUNTRY_CODE = _env.ECOM_COUNTRY_CODE || DEFAULT_COUNTRY_CODE;

@@ -20,6 +24,6 @@ export default {

return {
lang: _env.ECOM_LANG || DEFAULT_LANG,
currency: _env.ECOM_CURRENCY || DEFAULT_CURRENCY,
currencySymbol: _env.ECOM_CURRENCY_SYMBOL || DEFAULT_CURRENCY_SYMBOL,
countryCode: _env.ECOM_COUNTRY_CODE || DEFAULT_COUNTRY_CODE,
lang: _env.ECOM_LANG,
currency: _env.ECOM_CURRENCY,
currencySymbol: _env.ECOM_CURRENCY_SYMBOL,
countryCode: _env.ECOM_COUNTRY_CODE,
storeId: Number(_env.ECOM_STORE_ID),

@@ -33,2 +37,6 @@ ...self.config,

_env.ECOM_STORE_ID = config.storeId;
_env.ECOM_LANG = _env.ECOM_LANG || self.config.lang;
_env.ECOM_CURRENCY = _env.ECOM_CURRENCY || self.config.currency;
_env.ECOM_CURRENCY_SYMBOL = _env.ECOM_CURRENCY_SYMBOL || self.config.currencySymbol;
_env.ECOM_COUNTRY_CODE = _env.ECOM_COUNTRY_CODE || self.config.countryCode;
}

@@ -35,0 +43,0 @@ },

{
"name": "@cloudcommerce/config",
"type": "module",
"version": "0.0.115",
"version": "0.0.116",
"description": "E-Com Plus Cloud Commerce base config",

@@ -24,7 +24,7 @@ "main": "lib/config.js",

"dependencies": {
"@cloudcommerce/api": "0.0.115",
"@cloudcommerce/api": "0.0.116",
"@fastify/deepmerge": "^1.1.0"
},
"devDependencies": {
"@cloudcommerce/types": "0.0.115"
"@cloudcommerce/types": "0.0.116"
},

@@ -31,0 +31,0 @@ "scripts": {

@@ -28,2 +28,6 @@ import Deepmerge from '@fastify/deepmerge';

globalThis.__cloudCommerce = self;
_env.ECOM_LANG = _env.ECOM_LANG || DEFAULT_LANG;
_env.ECOM_CURRENCY = _env.ECOM_CURRENCY || DEFAULT_CURRENCY;
_env.ECOM_CURRENCY_SYMBOL = _env.ECOM_CURRENCY_SYMBOL || DEFAULT_CURRENCY_SYMBOL;
_env.ECOM_COUNTRY_CODE = _env.ECOM_COUNTRY_CODE || DEFAULT_COUNTRY_CODE;

@@ -33,6 +37,6 @@ export default {

return {
lang: _env.ECOM_LANG || DEFAULT_LANG,
currency: _env.ECOM_CURRENCY || DEFAULT_CURRENCY,
currencySymbol: _env.ECOM_CURRENCY_SYMBOL || DEFAULT_CURRENCY_SYMBOL,
countryCode: _env.ECOM_COUNTRY_CODE || DEFAULT_COUNTRY_CODE,
lang: _env.ECOM_LANG,
currency: _env.ECOM_CURRENCY,
currencySymbol: _env.ECOM_CURRENCY_SYMBOL,
countryCode: _env.ECOM_COUNTRY_CODE,
storeId: Number(_env.ECOM_STORE_ID),

@@ -46,2 +50,6 @@ ...self.config,

_env.ECOM_STORE_ID = config.storeId;
_env.ECOM_LANG = _env.ECOM_LANG || self.config.lang;
_env.ECOM_CURRENCY = _env.ECOM_CURRENCY || self.config.currency;
_env.ECOM_CURRENCY_SYMBOL = _env.ECOM_CURRENCY_SYMBOL || self.config.currencySymbol;
_env.ECOM_COUNTRY_CODE = _env.ECOM_COUNTRY_CODE || self.config.countryCode;
}

@@ -48,0 +56,0 @@ },

Sorry, the diff of this file is not supported yet

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