Implement protected Studio catalog API and bounded public source reader

This commit is contained in:
khondokartowsif171
2026-10-18 21:10:07 +06:00
parent 3847a5e6a1
commit cbe6e0ae94
18 changed files with 1391 additions and 18 deletions
+4
View File
@@ -85,3 +85,7 @@ test('Woo variable parent range is not treated as an exact selected variant pric
assert.equal(row.requiresVariantSelection, true);
assert.deepEqual(row.priceRange, { minimum: 100, maximum: 200 });
});
test('a repeated oversized product field cannot expand a small source into an unbounded catalog', () => {
assert.throws(() => shopifyProducts({ products: [{ id: 1, title: 'x'.repeat(1025), variants: [{ id: 1, price: '1' }] }] }, context), { code: 'SOURCE_FIELD_TOO_LARGE' });
});