Socket
Socket
Sign inDemoInstall

@cloudcommerce/config

Package Overview
Dependencies
Maintainers
1
Versions
326
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.71 to 0.0.72

17

lib/config.js

@@ -12,9 +12,3 @@ import Deepmerge from '@fastify/deepmerge';

const self = globalThis.__cloudCommerce || {
config: {
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,
storeId: Number(_env.ECOM_STORE_ID),
},
config: {},
};

@@ -25,3 +19,10 @@ globalThis.__cloudCommerce = self;

get() {
return self.config;
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,
storeId: Number(_env.ECOM_STORE_ID),
...self.config,
};
},

@@ -28,0 +29,0 @@ set(config) {

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

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

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

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

@@ -24,10 +24,4 @@ import Deepmerge from '@fastify/deepmerge';

const self: { config: BaseConfig } = globalThis.__cloudCommerce || {
config: {
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,
storeId: Number(_env.ECOM_STORE_ID),
},
const self = globalThis.__cloudCommerce || {
config: {},
};

@@ -37,4 +31,11 @@ globalThis.__cloudCommerce = self;

export default {
get() {
return self.config;
get(): BaseConfig {
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,
storeId: Number(_env.ECOM_STORE_ID),
...self.config,
};
},

@@ -41,0 +42,0 @@ set(config) {

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