feat(packages): add standalone auth and payment
Some checks failed
Release / release-branches (auth) (push) Has been cancelled
Release / release-branches (payment) (push) Has been cancelled
Release / version-pr (push) Has been cancelled

This commit is contained in:
2026-08-21 08:08:42 +04:00
parent 216d376167
commit 5ffc1b1450
28 changed files with 5855 additions and 26 deletions

View File

@@ -0,0 +1,9 @@
import '@angular/compiler';
import assert from 'node:assert/strict';
import test from 'node:test';
import { MARKETPLACE_DOMAIN_HEADER, normalizeMarketplaceDomain } from '../dist/fesm2022/marketplaces-payment.mjs';
test('sends the full normalized storefront host as project context', () => {
assert.equal(MARKETPLACE_DOMAIN_HEADER, 'X-Marketplace-Domain');
assert.equal(normalizeMarketplaceDomain(' Store1.Example.COM. '), 'store1.example.com');
});