@cdek-it/widget 3.9.4 → 3.9.6
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/cdek-widget.es.js +2330 -887
- package/dist/cdek-widget.umd.js +2 -2
- package/dist/service.php +4 -1
- package/package.json +27 -27
package/dist/service.php
CHANGED
|
@@ -65,6 +65,7 @@ class service
|
|
|
65
65
|
{
|
|
66
66
|
$this->http_response_code(400);
|
|
67
67
|
header('Content-Type: application/json');
|
|
68
|
+
header('X-Service-Version: 3.9.6');
|
|
68
69
|
echo json_encode(array('message' => $message));
|
|
69
70
|
exit();
|
|
70
71
|
}
|
|
@@ -214,6 +215,7 @@ class service
|
|
|
214
215
|
|
|
215
216
|
$headers = array(
|
|
216
217
|
'Accept: application/json',
|
|
218
|
+
'X-App-Name: widget_pvz',
|
|
217
219
|
);
|
|
218
220
|
|
|
219
221
|
if ($this->authToken) {
|
|
@@ -236,7 +238,7 @@ class service
|
|
|
236
238
|
}
|
|
237
239
|
|
|
238
240
|
curl_setopt_array($ch, array(
|
|
239
|
-
CURLOPT_USERAGENT => 'widget/3.
|
|
241
|
+
CURLOPT_USERAGENT => 'widget/3.9.6',
|
|
240
242
|
CURLOPT_HTTPHEADER => $headers,
|
|
241
243
|
CURLOPT_RETURNTRANSFER => true,
|
|
242
244
|
CURLOPT_HEADER => true,
|
|
@@ -266,6 +268,7 @@ class service
|
|
|
266
268
|
{
|
|
267
269
|
$this->http_response_code(200);
|
|
268
270
|
header('Content-Type: application/json');
|
|
271
|
+
header('X-Service-Version: 3.9.6');
|
|
269
272
|
if (!empty($data['addedHeaders'])) {
|
|
270
273
|
foreach ($data['addedHeaders'] as $header) {
|
|
271
274
|
header($header);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cdek-it/widget",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.6",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist"
|
|
@@ -43,47 +43,47 @@
|
|
|
43
43
|
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@vueuse/core": "^10.
|
|
46
|
+
"@vueuse/core": "^10.9.0",
|
|
47
47
|
"axios": "^1.6.7",
|
|
48
48
|
"lodash-es": "^4.17.21",
|
|
49
49
|
"perfect-scrollbar": "^1.5.5",
|
|
50
50
|
"pinia": "^2.1.7",
|
|
51
|
-
"vue": "^3.4.
|
|
52
|
-
"vue-i18n": "^9.
|
|
53
|
-
"vue-yandex-maps": "2.0.
|
|
54
|
-
"yup": "^1.
|
|
51
|
+
"vue": "^3.4.21",
|
|
52
|
+
"vue-i18n": "^9.10.1",
|
|
53
|
+
"vue-yandex-maps": "2.0.1",
|
|
54
|
+
"yup": "^1.4.0"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@iconify-json/tabler": "^1.1.
|
|
58
|
-
"@intlify/unplugin-vue-i18n": "^
|
|
57
|
+
"@iconify-json/tabler": "^1.1.108",
|
|
58
|
+
"@intlify/unplugin-vue-i18n": "^3.0.1",
|
|
59
59
|
"@types/lodash-es": "^4.17.12",
|
|
60
|
-
"@types/node": "^20.11.
|
|
61
|
-
"@typescript-eslint/eslint-plugin": "^
|
|
62
|
-
"@typescript-eslint/parser": "^
|
|
63
|
-
"@vitejs/plugin-vue": "^
|
|
60
|
+
"@types/node": "^20.11.27",
|
|
61
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
62
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
63
|
+
"@vitejs/plugin-vue": "^5.0.4",
|
|
64
64
|
"@vitejs/plugin-vue-jsx": "^3.1.0",
|
|
65
|
-
"@vue/eslint-config-typescript": "^
|
|
66
|
-
"@yandex/ymaps3-types": "^0.0.
|
|
67
|
-
"autoprefixer": "^10.4.
|
|
68
|
-
"cssnano": "^6.0
|
|
69
|
-
"eslint": "^8.
|
|
65
|
+
"@vue/eslint-config-typescript": "^13.0.0",
|
|
66
|
+
"@yandex/ymaps3-types": "^0.0.22",
|
|
67
|
+
"autoprefixer": "^10.4.18",
|
|
68
|
+
"cssnano": "^6.1.0",
|
|
69
|
+
"eslint": "^8.57.0",
|
|
70
70
|
"eslint-config-prettier": "^9.1.0",
|
|
71
71
|
"eslint-plugin-import": "^2.29.1",
|
|
72
72
|
"eslint-plugin-prettier": "^5.1.3",
|
|
73
|
-
"eslint-plugin-vue": "^9.
|
|
74
|
-
"postcss": "^8.4.
|
|
73
|
+
"eslint-plugin-vue": "^9.23.0",
|
|
74
|
+
"postcss": "^8.4.35",
|
|
75
75
|
"prettier": "^3.2.5",
|
|
76
|
-
"sass": "^1.
|
|
77
|
-
"terser": "^5.
|
|
78
|
-
"typescript": "^5.
|
|
79
|
-
"unocss": "^0.58.
|
|
80
|
-
"vite": "^5.
|
|
76
|
+
"sass": "^1.72.0",
|
|
77
|
+
"terser": "^5.29.2",
|
|
78
|
+
"typescript": "^5.4.2",
|
|
79
|
+
"unocss": "^0.58.6",
|
|
80
|
+
"vite": "^5.1.6",
|
|
81
81
|
"vite-plugin-css-injected-by-js": "^3.4.0",
|
|
82
|
-
"vite-plugin-dts": "^3.7.
|
|
82
|
+
"vite-plugin-dts": "^3.7.3",
|
|
83
83
|
"vite-plugin-static-copy": "^1.0.1",
|
|
84
84
|
"vite-plugin-transform": "^2.0.1",
|
|
85
85
|
"vite-svg-loader": "^5.1.0",
|
|
86
|
-
"vue-tsc": "^
|
|
86
|
+
"vue-tsc": "^2.0.6"
|
|
87
87
|
},
|
|
88
|
-
"packageManager": "yarn@4.
|
|
88
|
+
"packageManager": "yarn@4.1.1"
|
|
89
89
|
}
|