n8n-nodes-jygse-vw-weconnect 0.1.11 → 0.1.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -147,10 +147,11 @@ const VW_SCOPE = 'openid profile badge cars dealers vin';
147
147
  const VW_REDIRECT_URI = 'weconnect://authenticated';
148
148
  const VW_RESPONSE_TYPE = 'code id_token token';
149
149
  // WeConnect App User-Agent and headers (critical for authentication)
150
- // Using exact version from WeConnect-python
150
+ // Using exact version from WeConnect-python v0.60.9
151
151
  const VW_USER_AGENT = 'Volkswagen/3.51.1-android/14';
152
152
  const VW_APP_PACKAGE = 'com.volkswagen.weconnect';
153
153
  const VW_ACCEPT_LANGUAGE = 'de-de';
154
+ const VW_NEWRELIC_ID = 'VgAEWV9QDRAEXFlRAAYPUA==';
154
155
  function generateTraceId() {
155
156
  // Generate UUID v4 format
156
157
  return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, (c) => {
@@ -178,12 +179,16 @@ async function vwLogin(context, email, password) {
178
179
  try {
179
180
  const traceId = generateTraceId();
180
181
  const nonce = generateNonce();
181
- // Common headers used for all requests (matching WeConnect-python exactly)
182
+ // Common headers used for all requests (matching WeConnect-python v0.60.9 exactly)
182
183
  const commonHeaders = {
183
184
  'User-Agent': VW_USER_AGENT,
184
- 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
185
+ 'Accept': '*/*',
185
186
  'Accept-Language': VW_ACCEPT_LANGUAGE,
187
+ 'Content-Type': 'application/json',
188
+ 'content-version': '1',
186
189
  'Cache-Control': 'no-cache',
190
+ 'Pragma': 'no-cache',
191
+ 'x-newrelic-id': VW_NEWRELIC_ID,
187
192
  'x-android-package-name': VW_APP_PACKAGE,
188
193
  'weconnect-trace-id': traceId,
189
194
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n8n-nodes-jygse-vw-weconnect",
3
- "version": "0.1.11",
3
+ "version": "0.1.12",
4
4
  "description": "n8n community node for VW We Connect - Control your Volkswagen T6.1 and other VW vehicles",
5
5
  "keywords": [
6
6
  "n8n-community-node-package",