Skip to content

Commit

Permalink
Merge pull request #787 from modx-pro/4.1.1
Browse files Browse the repository at this point in the history
4.1.1
  • Loading branch information
biz87 authored Feb 2, 2023
2 parents e0fd4e8 + 7f425db commit 4b5730a
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
2 changes: 1 addition & 1 deletion _build/build.config.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
const PKG_NAME = 'miniShop2';
define('PKG_NAME_LOWER', strtolower(PKG_NAME));

const PKG_VERSION = '4.1.0';
const PKG_VERSION = '4.1.1';
const PKG_RELEASE = 'pl';
const PKG_AUTO_INSTALL = true;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class MiniShop {
messageSettings = false;
if(prefix === 'message'){
prefix = 'notify';
response = await this.sendResponse({url: this.miniShop2Config.notifySettingsPath, method: 'GET'});
response = await this.sendRequest({url: this.miniShop2Config.notifySettingsPath, method: 'GET'});
if (response.ok) {
messageSettings = await response.json();
}
Expand Down Expand Up @@ -165,7 +165,7 @@ export default class MiniShop {
return true;
}

sendResponse(params) {
sendRequest(params) {
const body = params.body || new FormData(),
headers = params.headers || { 'X-Requested-With': 'XMLHttpRequest' },
url = params.url || this.miniShop2Config.actionUrl,
Expand Down Expand Up @@ -196,7 +196,7 @@ export default class MiniShop {
data += '&ctx=' + this.miniShop2Config.ctx;
}

const response = await this.sendResponse({ body: data, headers });
const response = await this.sendRequest({ body: data, headers });
if (response.ok) {
const result = await response.json();
if (result.success) {
Expand Down
6 changes: 6 additions & 0 deletions core/components/minishop2/docs/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [4.1.1-pl] - 2022-02-02

### Changed
- Update JS classes names in system settings
- Rename new JS method sendResponse to sendRequest

## [4.1.0-pl] - 2022-31-01

### Added
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

class miniShop2
{
public $version = '4.1.0-pl';
public $version = '4.1.1-pl';
/** @var modX $modx */
public $modx;
/** @var pdoFetch $pdoTools */
Expand Down

0 comments on commit 4b5730a

Please sign in to comment.