gscan 4.43.6 → 4.44.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/lib/checker.js +2 -1
  2. package/package.json +1 -1
package/lib/checker.js CHANGED
@@ -20,11 +20,12 @@ const labsEnabledHelpers = {
20
20
  * @param {string} [options.checkVersion] version to check the theme against
21
21
  * @param {string} [options.themeName] name of the checked theme
22
22
  * @param {Object=} [options.labs] object containing boolean flags for enabled labs features
23
+ * @param {boolean} [options.skipChecks] flag to allow reading theme without incurring check costs
23
24
  * @returns {Promise<Object>}
24
25
  */
25
26
  const check = async function checkAll(themePath, options = {}) {
26
27
  // Require checks late to avoid loading all until used
27
- const checks = requireDir('./checks');
28
+ const checks = options.skipChecks === true ? [] : requireDir('./checks');
28
29
  const passedVersion = _.get(options, 'checkVersion', versions.default);
29
30
  let version = passedVersion;
30
31
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gscan",
3
- "version": "4.43.6",
3
+ "version": "4.44.0",
4
4
  "description": "Scans Ghost themes looking for errors, deprecations, features and compatibility",
5
5
  "keywords": [
6
6
  "ghost",