Socket
Socket
Sign inDemoInstall

@cloudcommerce/config

Package Overview
Dependencies
2
Maintainers
1
Versions
294
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.0.67 to 0.0.68

5

lib/config.js

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

const _env = (typeof process === 'object' && process?.env) || globalThis;
// @ts-ignore
const _env = import.meta.env
|| (typeof process === 'object' && process?.env)
|| globalThis;
const deepmerge = Deepmerge();

@@ -9,0 +12,0 @@ const self = globalThis.__cloudCommerce || {

@@ -1,2 +0,5 @@

const _env = (typeof process === 'object' && process?.env) || globalThis;
// @ts-ignore
const _env = import.meta.env
|| (typeof process === 'object' && process?.env)
|| globalThis;

@@ -3,0 +6,0 @@ export default () => {

6

package.json
{
"name": "@cloudcommerce/config",
"type": "module",
"version": "0.0.67",
"version": "0.0.68",
"description": "E-Com Plus Cloud Commerce base config",

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

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

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

@@ -9,5 +9,2 @@ import Deepmerge from '@fastify/deepmerge';

const _env: Record<string, any> = (typeof process === 'object' && process?.env) || globalThis;
const deepmerge = Deepmerge();
type BaseConfig = {

@@ -21,2 +18,9 @@ lang: string,

// @ts-ignore
const _env: Record<string, any> = import.meta.env
|| (typeof process === 'object' && process?.env)
|| globalThis;
const deepmerge = Deepmerge();
const self: { config: BaseConfig } = globalThis.__cloudCommerce || {

@@ -23,0 +27,0 @@ config: {

@@ -10,3 +10,6 @@ type Env = {

const _env: Record<string, any> = (typeof process === 'object' && process?.env) || globalThis;
// @ts-ignore
const _env: Record<string, any> = import.meta.env
|| (typeof process === 'object' && process?.env)
|| globalThis;

@@ -13,0 +16,0 @@ export default () => {

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc