@shopify/theme-check-node
Advanced tools
Comparing version 2.0.1 to 2.0.2
@@ -28,5 +28,5 @@ import { ChecksSettings, Severity } from '@shopify/theme-check-common'; | ||
}; | ||
export declare const ModernIdentifiers: readonly ["theme-check:recommended", "theme-check:theme-app-extension", "theme-check:all"]; | ||
export declare const ModernIdentifiers: readonly ["theme-check:nothing", "theme-check:recommended", "theme-check:theme-app-extension", "theme-check:all"]; | ||
export type ModernIdentifier = (typeof ModernIdentifiers)[number]; | ||
export declare const LegacyIdentifiers: Map<string, string | undefined>; | ||
export declare const LegacyIdentifiers: Map<string, string>; | ||
export type ConvenienceSeverity = 'error' | 'suggestion' | 'style' | 'warning' | 'info'; | ||
@@ -33,0 +33,0 @@ export declare const ConvenienceSeverities: { |
@@ -6,2 +6,3 @@ "use strict"; | ||
exports.ModernIdentifiers = [ | ||
'theme-check:nothing', | ||
'theme-check:recommended', | ||
@@ -13,3 +14,3 @@ 'theme-check:theme-app-extension', | ||
default: 'theme-check:recommended', | ||
nothing: undefined, | ||
nothing: 'theme-check:nothing', | ||
theme_app_extensions: 'theme-check:theme-app-extension', | ||
@@ -16,0 +17,0 @@ })); |
@@ -41,3 +41,3 @@ "use strict"; | ||
if (value === undefined) { | ||
if (optional !== true) { | ||
if (optional !== true && defaultValue === undefined) { | ||
throw new Error(`Missing required setting: ${key}`); | ||
@@ -44,0 +44,0 @@ } |
{ | ||
"name": "@shopify/theme-check-node", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"main": "dist/index.js", | ||
@@ -36,4 +36,4 @@ "types": "dist/index.d.ts", | ||
"dependencies": { | ||
"@shopify/theme-check-common": "2.0.1", | ||
"@shopify/theme-check-docs-updater": "2.0.1", | ||
"@shopify/theme-check-common": "2.0.2", | ||
"@shopify/theme-check-docs-updater": "2.0.2", | ||
"glob": "^8.0.3", | ||
@@ -40,0 +40,0 @@ "yaml": "^2.3.0" |
47193
40
993
+ Added@shopify/liquid-html-parser@2.0.3(transitive)
+ Added@shopify/theme-check-common@2.0.2(transitive)
+ Added@shopify/theme-check-docs-updater@2.0.2(transitive)
- Removed@shopify/liquid-html-parser@2.0.2(transitive)
- Removed@shopify/theme-check-common@2.0.1(transitive)
- Removed@shopify/theme-check-docs-updater@2.0.1(transitive)