Skip to content

Commit 29d1fb4

Browse files
committed
feat: make pricing value case insensitive
1 parent 11e68aa commit 29d1fb4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/package.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ export function validateManifest(manifest: Manifest): Manifest {
11501150
throw new Error('Manifest missing field: version');
11511151
}
11521152

1153-
if (manifest.pricing && !['Free', 'Trial'].includes(manifest.pricing)) {
1153+
if (manifest.pricing && !['free', 'trial'].includes(manifest.pricing.toLowerCase())) {
11541154
throw new Error('Pricing should be Free or Trial');
11551155
}
11561156

0 commit comments

Comments
 (0)