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
24
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.4.0 to 2.5.0

2

dist/config/load-config-description.js

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

async function loadConfigDescription(configDescription, root) {
var _a;
const nodeModuleRoot = await findNodeModuleRoot(root);

@@ -35,2 +36,3 @@ const thirdPartyChecksPaths = await Promise.all([

settings: unaliasedSettings(configDescription.checkSettings, checks),
context: (_a = configDescription.context) !== null && _a !== void 0 ? _a : 'theme',
checks,

@@ -37,0 +39,0 @@ ignore: configDescription.ignore,

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

function mergeFragments(baseConfigs, config) {
var _a;
return {

@@ -29,2 +30,4 @@ // we use the last one defined

.reduce(mergeDeep),
// We use the last one defined, or default to 'theme'
context: (_a = selectLatest(baseConfigs.map((b) => b.context), config.context)) !== null && _a !== void 0 ? _a : 'theme',
};

@@ -31,0 +34,0 @@ }

@@ -84,2 +84,8 @@ "use strict";

}
if (yamlFile.context) {
if (theme_check_common_1.Modes.includes(yamlFile.context)) {
config.context = yamlFile.context;
}
delete yamlFile.context;
}
// legacy settings that screw up assumptions

@@ -86,0 +92,0 @@ if (yamlFile.include_categories)

6

dist/config/types.d.ts

@@ -1,2 +0,2 @@

import { ChecksSettings, Severity } from '@shopify/theme-check-common';
import { ChecksSettings, Mode, Severity } from '@shopify/theme-check-common';
/**

@@ -23,6 +23,8 @@ * The pipeline goes like this:

checkSettings: ChecksSettings;
context?: Mode;
}
/** A ConfigDescription is a ConfigFragment that doesn't extend anything. */
export type ConfigDescription = Omit<ConfigFragment, 'extends'> & {
export type ConfigDescription = Omit<ConfigFragment, 'extends' | 'context'> & {
extends: [];
context: Mode;
};

@@ -29,0 +31,0 @@ export declare const ModernIdentifiers: readonly ["theme-check:nothing", "theme-check:recommended", "theme-check:theme-app-extension", "theme-check:all"];

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

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

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

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

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