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

@shopify/theme-check-node

Package Overview
Dependencies
Maintainers
25
Versions
45
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/theme-check-node - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3

2

dist/config/load-config.d.ts

@@ -17,2 +17,2 @@ import { AbsolutePath, Config } from '@shopify/theme-check-common';

/** The root of the theme */
root?: AbsolutePath | undefined): Promise<Config>;
root: AbsolutePath): Promise<Config>;
"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.loadConfig = void 0;
const node_path_1 = __importDefault(require("node:path"));
const resolve_1 = require("./resolve");
const load_config_description_1 = require("./load-config-description");
const validation_1 = require("./validation");
const types_1 = require("./types");
/**

@@ -26,5 +21,3 @@ * Given an absolute path to a config file, this function returns

/** The root of the theme */
root = configPath && !types_1.ModernIdentifiers.includes(configPath)
? node_path_1.default.dirname(configPath)
: undefined) {
root) {
if (!root)

@@ -31,0 +24,0 @@ throw new Error('loadConfig cannot be called without a root argument');

import { Config, JSONSourceCode, LiquidSourceCode, Offense, Theme } from '@shopify/theme-check-common';
import { loadConfig } from './config';
import { loadConfig as resolveConfig } from './config';
export * from '@shopify/theme-check-common';
export * from './config/types';
export { loadConfig };
export declare const loadConfig: typeof resolveConfig;
export type ThemeCheckRun = {

@@ -7,0 +7,0 @@ theme: Theme;

@@ -29,3 +29,2 @@ "use strict";

const config_1 = require("./config");
Object.defineProperty(exports, "loadConfig", { enumerable: true, get: function () { return config_1.loadConfig; } });
const autofix_1 = require("./autofix");

@@ -36,2 +35,7 @@ const defaultLocale = 'en';

__exportStar(require("./config/types"), exports);
const loadConfig = async (configPath, root) => {
configPath !== null && configPath !== void 0 ? configPath : (configPath = await (0, config_1.findConfigPath)(root));
return (0, config_1.loadConfig)(configPath, root);
};
exports.loadConfig = loadConfig;
async function toSourceCode(absolutePath) {

@@ -87,4 +91,3 @@ try {

async function getThemeAndConfig(root, configPath) {
configPath = configPath !== null && configPath !== void 0 ? configPath : (await (0, config_1.findConfigPath)(root));
const config = await (0, config_1.loadConfig)(configPath, root);
const config = await (0, exports.loadConfig)(configPath, root);
const theme = await getTheme(config);

@@ -91,0 +94,0 @@ return {

{
"name": "@shopify/theme-check-node",
"version": "2.0.2",
"version": "2.0.3",
"main": "dist/index.js",

@@ -36,4 +36,4 @@ "types": "dist/index.d.ts",

"dependencies": {
"@shopify/theme-check-common": "2.0.2",
"@shopify/theme-check-docs-updater": "2.0.2",
"@shopify/theme-check-common": "2.0.3",
"@shopify/theme-check-docs-updater": "2.0.3",
"glob": "^8.0.3",

@@ -40,0 +40,0 @@ "yaml": "^2.3.0"

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