Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@kohanajs/mod-cms

Package Overview
Dependencies
Maintainers
1
Versions
56
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kohanajs/mod-cms - npm Package Compare versions

Comparing version 9.3.0 to 9.4.0

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

## [9.4.0](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.3.0...v9.4.0) (2022-07-28)
### Features
* page schedule sync with live version ([16b925b](https://gitlab.com/kohana-js/proposals/level0/mod-cms/commit/16b925bc35f68dc59067fae415866f3a9582c7ca))
## [9.3.0](https://gitlab.com/kohana-js/proposals/level0/mod-cms/compare/v9.2.0...v9.3.0) (2022-07-27)

@@ -7,0 +14,0 @@

@@ -90,2 +90,5 @@ const { ControllerAdmin } = require('@kohanajs/mod-admin');

//page start and end should sync with live version
await this.updateLiveSchedule(instance);
if($_POST['action'] === "publish"){

@@ -99,2 +102,11 @@ await this.publish(instance);

async updateLiveSchedule(instance){
const database = this.state.get(ControllerMixinDatabase.DATABASES).get('live');
const livePage = await ORM.readBy(Page, 'id', [instance.id], {database, limit: 1, asArray: false});
if(!livePage)return;
livePage.start = instance.start;
livePage.end = instance.end;
await livePage.write();
}
async unpublish(id){

@@ -101,0 +113,0 @@ const database = this.state.get(ControllerMixinDatabase.DATABASES).get('live');

2

package.json
{
"name": "@kohanajs/mod-cms",
"version": "9.3.0",
"version": "9.4.0",
"description": "The CMS module for KohanaJS",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc