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

cmk

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cmk - npm Package Compare versions

Comparing version 0.1.0 to 0.1.1

14

lib/index.js

@@ -96,3 +96,3 @@ "use strict";

*/
async function create({title, category, image, description, keyword, label, order, content, hide, top, author, review}) {
async function create({title, category, image, description, keyword, label, order, format, content, hide, top, author, review}) {
//标题,分类,图片,简介,顺序,隐藏,作者

@@ -118,3 +118,4 @@ if (!isString(title, true)) {

}
content = await this.getContent(content, category);
format = String(format);
content = await this.getContent(content, format, category);
hide = Boolean(hide);

@@ -153,3 +154,3 @@ top = Boolean(top);

*/
async function set(id, {title, category, image, description, keyword, label, order, content, hide, top, author, review}) {
async function set(id, {title, category, image, description, keyword, label, order, format, content, hide, top, author, review}) {
if (!(id = getId(id))) {

@@ -195,3 +196,8 @@ return false;

if (content) {
$set.content = await this.getContent(content, category);
if (typeof format === "string") {
$set.format = format;
} else {
format = info.format;
}
$set.content = await this.getContent(content, format, category);
}

@@ -198,0 +204,0 @@ if (typeof hide === "boolean") {

{
"name": "cmk",
"version": "0.1.0",
"version": "0.1.1",
"description": "Content Management Kernel",

@@ -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