@shopify/theme-check-node
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -24,3 +24,5 @@ "use strict"; | ||
catch (error) { | ||
console.error(`Failed to get file size: ${error}`); | ||
if (process.env.SHOPIFY_FLAG_VERBOSE || process.argv.includes('--verbose')) { | ||
console.error(`Failed to get file size: ${error}`); | ||
} | ||
return 0; | ||
@@ -27,0 +29,0 @@ } |
@@ -5,2 +5,3 @@ import { Config, JSONSourceCode, LiquidSourceCode, Offense, Theme } from '@shopify/theme-check-common'; | ||
export * from './config/types'; | ||
export { PathHandler, findRoot, reusableFindRoot } from './find-root'; | ||
export declare const loadConfig: typeof resolveConfig; | ||
@@ -7,0 +8,0 @@ export type ThemeCheckRun = { |
@@ -20,12 +20,12 @@ "use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.getTheme = exports.themeCheckRun = exports.checkAndAutofix = exports.check = exports.toSourceCode = exports.loadConfig = void 0; | ||
exports.getTheme = exports.themeCheckRun = exports.checkAndAutofix = exports.check = exports.toSourceCode = exports.loadConfig = exports.reusableFindRoot = exports.findRoot = void 0; | ||
const theme_check_common_1 = require("@shopify/theme-check-common"); | ||
const theme_check_docs_updater_1 = require("@shopify/theme-check-docs-updater"); | ||
const promises_1 = __importDefault(require("node:fs/promises")); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const node_util_1 = require("node:util"); | ||
const node_path_1 = __importDefault(require("node:path")); | ||
const promises_1 = __importDefault(require("node:fs/promises")); | ||
const glob = require("glob"); | ||
const theme_check_docs_updater_1 = require("@shopify/theme-check-docs-updater"); | ||
const autofix_1 = require("./autofix"); | ||
const config_1 = require("./config"); | ||
const file_utils_1 = require("./file-utils"); | ||
const config_1 = require("./config"); | ||
const autofix_1 = require("./autofix"); | ||
const defaultLocale = 'en'; | ||
@@ -35,2 +35,5 @@ const asyncGlob = (0, node_util_1.promisify)(glob); | ||
__exportStar(require("./config/types"), exports); | ||
var find_root_1 = require("./find-root"); | ||
Object.defineProperty(exports, "findRoot", { enumerable: true, get: function () { return find_root_1.findRoot; } }); | ||
Object.defineProperty(exports, "reusableFindRoot", { enumerable: true, get: function () { return find_root_1.reusableFindRoot; } }); | ||
const loadConfig = async (configPath, root) => { | ||
@@ -37,0 +40,0 @@ configPath !== null && configPath !== void 0 ? configPath : (configPath = await (0, config_1.findConfigPath)(root)); |
{ | ||
"name": "@shopify/theme-check-node", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"main": "dist/index.js", | ||
@@ -36,4 +36,4 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@shopify/theme-check-common": "2.1.0", | ||
"@shopify/theme-check-docs-updater": "2.1.0", | ||
"@shopify/theme-check-common": "2.2.0", | ||
"@shopify/theme-check-docs-updater": "2.2.0", | ||
"glob": "^8.0.3", | ||
@@ -40,0 +40,0 @@ "yaml": "^2.3.0" |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
52986
42
1136
6
+ Added@shopify/theme-check-common@2.2.0(transitive)
+ Added@shopify/theme-check-docs-updater@2.2.0(transitive)
- Removed@shopify/theme-check-common@2.1.0(transitive)
- Removed@shopify/theme-check-docs-updater@2.1.0(transitive)