@base-cms/utils
Advanced tools
Comparing version 1.9.0 to 1.25.0
{ | ||
"name": "@base-cms/utils", | ||
"version": "1.9.0", | ||
"version": "1.25.0", | ||
"description": "Utility functions for JavaScript projects.", | ||
@@ -16,3 +16,3 @@ "main": "src/index.js", | ||
}, | ||
"gitHead": "ae5d1587301ed49214db2d701bb5266941eef46a" | ||
"gitHead": "f15ade0c4c9e94e2e0925174f16c76cec8ddfb5d" | ||
} |
@@ -10,2 +10,3 @@ const getDefaultContentTypes = require('./get-default-content-types'); | ||
since, | ||
after, | ||
} = {}) => { | ||
@@ -24,3 +25,6 @@ const date = since || new Date(); | ||
type, | ||
published: { $lte: date }, | ||
published: { | ||
$lte: date, | ||
...(after && { $gte: after }), | ||
}, | ||
$and: [ | ||
@@ -27,0 +31,0 @@ { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
7101
229