@cdek-it/widget 3.11.1 → 3.12.0

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.
package/dist/service.php CHANGED
@@ -72,7 +72,7 @@ class service
72
72
  {
73
73
  $this->http_response_code(400);
74
74
  header('Content-Type: application/json');
75
- header('X-Service-Version: 3.11.1');
75
+ header('X-Service-Version: 3.12.0');
76
76
  echo json_encode(array('message' => $message));
77
77
  exit();
78
78
  }
@@ -233,7 +233,7 @@ class service
233
233
  $headers = array(
234
234
  'Accept: application/json',
235
235
  'X-App-Name: widget_pvz',
236
- 'X-App-Version: 3.11.1'
236
+ 'X-App-Version: 3.12.0'
237
237
  );
238
238
 
239
239
  if ($this->authToken) {
@@ -256,7 +256,7 @@ class service
256
256
  }
257
257
 
258
258
  curl_setopt_array($ch, array(
259
- CURLOPT_USERAGENT => 'widget/3.11.1',
259
+ CURLOPT_USERAGENT => 'widget/3.12.0',
260
260
  CURLOPT_HTTPHEADER => $headers,
261
261
  CURLOPT_RETURNTRANSFER => true,
262
262
  CURLOPT_HEADER => true,
@@ -298,7 +298,7 @@ class service
298
298
  {
299
299
  $this->http_response_code(200);
300
300
  header('Content-Type: application/json');
301
- header('X-Service-Version: 3.11.1');
301
+ header('X-Service-Version: 3.12.0');
302
302
  if (!empty($data['addedHeaders'])) {
303
303
  foreach ($data['addedHeaders'] as $header) {
304
304
  header($header);
package/package.json CHANGED
@@ -1,8 +1,9 @@
1
1
  {
2
2
  "name": "@cdek-it/widget",
3
- "version": "3.11.1",
3
+ "version": "3.12.0",
4
4
  "type": "module",
5
5
  "license": "LGPL-3.0-only",
6
+ "packageManager": "yarn@4.1.1",
6
7
  "files": [
7
8
  "dist"
8
9
  ],
@@ -90,4 +91,4 @@
90
91
  "node": "20.13.1",
91
92
  "yarn": "4.1.1"
92
93
  }
93
- }
94
+ }