Skip to content

Commit 5f992ea

Browse files
1.1.6 (#132)
* Create SECURITY.md (#127) * replaced webpack with bun * wip * Update wpc2o-options-api.php * Update wpc2o-options-api.php * Update .distignore * Update phpcs.yml * Bump versiion to 1.1.3 * Update package.json * WC HPOS compat & stock sync improvements * phpcs fix * Docs tag fix * Bump npm-check-updates from 16.14.20 to 17.0.0 (#131) * bump --------- Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent 4cce39d commit 5f992ea

10 files changed

Lines changed: 35 additions & 31 deletions

File tree

.github/ISSUE_TEMPLATE/bug.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ body:
2020
attributes:
2121
label: Plugin version
2222
description: |
23-
e.g `1.1.5`
23+
e.g `1.1.6`
2424
validations:
2525
required: true
2626

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Help & support - FAQ
4-
url: https://github.com/ajrsoftware/WPClothes2Order/discussions/new?category=q-a&body=%23%23%23%20Your%20question%20here%0A%0A-%20What%20version%20of%20the%20plugin%20are%20you%20using%3F%20e.g%20%601.1.5%60%0A-%20What%20PHP%20version%20are%20you%20using%3F%20e.g%20%607.4%60%0A-%20Where%20did%20you%20install%20the%20plugin%20from%3F%20e.g%20%60WordPress%20org%60%0A%0A---
4+
url: https://github.com/ajrsoftware/WPClothes2Order/discussions/new?category=q-a&body=%23%23%23%20Your%20question%20here%0A%0A-%20What%20version%20of%20the%20plugin%20are%20you%20using%3F%20e.g%20%601.1.6%60%0A-%20What%20PHP%20version%20are%20you%20using%3F%20e.g%20%607.4%60%0A-%20Where%20did%20you%20install%20the%20plugin%20from%3F%20e.g%20%60WordPress%20org%60%0A%0A---
55
about: "If you can't get something to work the way you expect, check out our FAQ's."
66
- name: Feature Request
77
url: https://github.com/ajrsoftware/WPClothes2Order/discussions/new?category=ideas

SECURITY.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
| Version | Supported |
66
| ------- | ------------------ |
7-
| 1.1.5 | :white_check_mark: |
8-
| > 1.1.5 | :x: |
7+
| 1.1.6 | :white_check_mark: |
8+
| > 1.1.6 | :x: |
99

1010
## Reporting a Vulnerability
1111

bun.lockb

-111 KB
Binary file not shown.

composer.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/app.js

Lines changed: 9 additions & 9 deletions
Large diffs are not rendered by default.

includes/wpc2o-constant.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
*/
66

77
/** Our plugin version, used to asset cache busting & more. */
8-
define('WP_C2O_VERSION', '1.1.5');
8+
define('WP_C2O_VERSION', '1.1.6');
99

1010
/** API option values. */
1111
define('WPC2O_API_KEY', '_wpc2o_api_key');

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "wpclothes2order",
3-
"version": "1.1.5",
3+
"version": "1.1.6",
44
"author": "AJRSoftware",
55
"repository": {
66
"type": "git",
77
"url": "git+https://github.com/ajrsoftware/WPClothes2Order.git"
88
},
99
"devDependencies": {
10-
"npm-check-updates": "^16.14.12",
11-
"prettier": "^3.2.4",
12-
"typescript": "^5.3.3"
10+
"npm-check-updates": "^17.1.3",
11+
"prettier": "^3.3.3",
12+
"typescript": "^5.6.2"
1313
},
1414
"bugs": {
1515
"url": "https://github.com/ajrsoftware/WPClothes2Order/issues"
@@ -28,6 +28,6 @@
2828
},
2929
"type": "module",
3030
"dependencies": {
31-
"json-formatter-js": "^2.3.4"
31+
"json-formatter-js": "^2.5.18"
3232
}
3333
}

src/ts/stock-sync.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,21 @@ export const sync = async (): Promise<Response | null> => {
77
let res: Response | null = null;
88

99
try {
10-
const response = await fetch(`/wp-json/wpc2o/v1/stock-sync`, {
10+
const response = await fetch(`/wp-json/wpc2o/v1/stock-sync/`, {
1111
method: 'get',
1212
headers: {
1313
'Content-Type': 'application/json'
1414
}
1515
});
16+
res = await response.json();
17+
18+
console.log(res);
1619

1720
if (response.ok) {
1821
res = await response.json();
1922
}
2023
} catch (err) {
24+
console.log({ err });
2125
res = {
2226
status: false,
2327
message: 'There was a problem requesting a stock sync.'

wpclothes2order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Plugin Name: WPClothes2Order
55
* Plugin URI: https://wpclothes2order.com
66
* Description: Unofficial WooCommerce Plugin for <a href="https://www.clothes2order.com/">Clothes2Order</a>
7-
* Version: 1.1.5
7+
* Version: 1.1.6
88
* Plugin URI: https://www.wpclothes2order.com
99
* Author: AJR Software
1010
* Author URI: https://www.ajrsoftware.com

0 commit comments

Comments
 (0)