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.0.4 to 0.0.5

21

lib/index.js

@@ -312,10 +312,9 @@ "use strict";

if (category instanceof Array) {
for (let i = 0, l = category.length; i < l; i++) {
category[i] = yield this.getCategoryId(category[i]);
}
condition.category = { $in: category.filter(function (x) {
condition.category = { $in: (yield Promise.all(category.map(function (c) {
return _this.getCategoryId(c);
}))).filter(function (x) {
return x;
}) };
} else if (category) {
condition.category = yield this.getCategoryId(category);
} else if (category && (category = yield this.getCategoryId(category))) {
condition.category = category;
}

@@ -346,10 +345,10 @@ condition.delete = Boolean(del);

cursor.skip(from).limit(length);
ret.push(cursor.toArray().then(function (rs) {
let list = cursor.toArray().then(function (rs) {
return Promise.all(rs.map(function (r) {
return info.call(_this, r);
}));
}));
ret.push(cursor.count());
let [list, num] = yield Promise.all(ret);
return { list, num };
});
let total = cursor.count();
[list, total] = yield Promise.all([list, total]);
return { list, total };
});

@@ -356,0 +355,0 @@

{
"name": "cmk",
"version": "0.0.4",
"version": "0.0.5",
"description": "Content Management Kernel",

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

Sorry, the diff of this file is not supported yet

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