@revolugo/booking-api-client
Advanced tools
Comparing version 1.1.8 to 1.1.9-beta.0
@@ -64,3 +64,8 @@ "use strict"; | ||
headers: { | ||
'x-api-key': this.config.apiKey | ||
'x-api-key': this.config.apiKey, | ||
...(process.env.NODE_ENV === 'development' && process.env.X_CONSUMER_CUSTOM_ID | ||
? { | ||
'x-consumer-custom-id': process.env.X_CONSUMER_CUSTOM_ID | ||
} | ||
: {}) | ||
}, | ||
@@ -67,0 +72,0 @@ middleware: [new CorsMiddleware()] |
@@ -33,3 +33,3 @@ { | ||
"types": "build/index.d.ts", | ||
"version": "1.1.8" | ||
"version": "1.1.9-beta.0" | ||
} |
@@ -57,3 +57,8 @@ import fetch from 'cross-fetch' | ||
headers: { | ||
'x-api-key': this.config.apiKey | ||
'x-api-key': this.config.apiKey, | ||
...(process.env.NODE_ENV === 'development' && process.env.X_CONSUMER_CUSTOM_ID | ||
? { | ||
'x-consumer-custom-id': process.env.X_CONSUMER_CUSTOM_ID | ||
} | ||
: {}) | ||
}, | ||
@@ -60,0 +65,0 @@ middleware: [new CorsMiddleware()] |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 2 instances in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
1115986
21833
1
5