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

cms-module-client

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cms-module-client - npm Package Compare versions

Comparing version 0.3.3 to 0.3.4

74

lib/index.js

@@ -358,2 +358,17 @@ "use strict";

value: function _changedSincePublish() {
return true;
/* const sections = this.sections;
for(let section of sections)
if(section.saved_text !== section.original_text)
return true;
return false; */
}
/**
* Set the content that was just published as the original text.
* @private
*/
}, {
key: "_setPublished",
value: function _setPublished() {
var sections = this.sections;

@@ -367,3 +382,3 @@ var _iteratorNormalCompletion2 = true;

var section = _step2.value;
if (section.saved_text !== section.original_text) return true;
section.original_text = section.saved_text;
}

@@ -385,37 +400,2 @@ } catch (err) {

return false;
}
/**
* Set the content that was just published as the original text.
* @private
*/
}, {
key: "_setPublished",
value: function _setPublished() {
var sections = this.sections;
var _iteratorNormalCompletion3 = true;
var _didIteratorError3 = false;
var _iteratorError3 = undefined;
try {
for (var _iterator3 = sections[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
var section = _step3.value;
section.original_text = section.saved_text;
}
} catch (err) {
_didIteratorError3 = true;
_iteratorError3 = err;
} finally {
try {
if (!_iteratorNormalCompletion3 && _iterator3["return"] != null) {
_iterator3["return"]();
}
} finally {
if (_didIteratorError3) {
throw _iteratorError3;
}
}
}
this._setPublishStatus();

@@ -462,9 +442,9 @@ }

var sections = this.sections;
var _iteratorNormalCompletion4 = true;
var _didIteratorError4 = false;
var _iteratorError4 = undefined;
var _iteratorNormalCompletion3 = true;
var _didIteratorError3 = false;
var _iteratorError3 = undefined;
try {
var _loop = function _loop() {
var section = _step4.value;
var section = _step3.value;
var element = section.element;

@@ -476,16 +456,16 @@ changedSections.forEach(function (changedSection) {

for (var _iterator4 = sections[Symbol.iterator](), _step4; !(_iteratorNormalCompletion4 = (_step4 = _iterator4.next()).done); _iteratorNormalCompletion4 = true) {
for (var _iterator3 = sections[Symbol.iterator](), _step3; !(_iteratorNormalCompletion3 = (_step3 = _iterator3.next()).done); _iteratorNormalCompletion3 = true) {
_loop();
}
} catch (err) {
_didIteratorError4 = true;
_iteratorError4 = err;
_didIteratorError3 = true;
_iteratorError3 = err;
} finally {
try {
if (!_iteratorNormalCompletion4 && _iterator4["return"] != null) {
_iterator4["return"]();
if (!_iteratorNormalCompletion3 && _iterator3["return"] != null) {
_iterator3["return"]();
}
} finally {
if (_didIteratorError4) {
throw _iteratorError4;
if (_didIteratorError3) {
throw _iteratorError3;
}

@@ -492,0 +472,0 @@ }

{
"name": "cms-module-client",
"version": "0.3.3",
"version": "0.3.4",
"description": "An editor for html pages. This is the client side part of the JS CMS module tool. It lets you edit a webpage in a WYSIWYG way. Together with the Server side module, it creates nicely integrated content management system for Node JS.",

@@ -5,0 +5,0 @@ "main": "lib/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