mnfst 0.5.269 → 0.5.270
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/manifest.data.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"manifest.appwrite.auth.js": "sha384-gWLSeVPqCLMiUZB8MU7GqMg3x2yULFUsp8nTTZrPp/9Dlkix42rBn9yIimvwrHqZ",
|
|
3
|
-
"manifest.appwrite.data.js": "sha384-
|
|
3
|
+
"manifest.appwrite.data.js": "sha384-3B8BYXfmdDuSnUk17A9DL+ZLAlPab4fcSlE3or6PZU7lLsg5FAPGFnuob10+YcOk",
|
|
4
4
|
"manifest.appwrite.presences.js": "sha384-LINPhIPTCK+rA8zd+HPUzMSEgH6Sl2vQMEyItT97bnEE2FYGYKqjXX+CWdt6nl9z",
|
|
5
5
|
"manifest.bindings.js": "sha384-lPtMf8Ykaic9gNVZKq8Scia1881ZeMAyxer3WCIkUNwwrgzGBWto1OXADUwjvORF",
|
|
6
6
|
"manifest.charts.js": "sha384-AFbP7mQnigy7DU1s+YE30yKTeQAKfgNazhbfSNbfd9ZpLgeulZKaPi/fAq3gJHDO",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"manifest.combobox.js": "sha384-/lJo6vaxKjgnBSRs/dzkhK1dzGk3GBw8FISoNJZB70mwAVwu1k5veZyBXjOb4keS",
|
|
12
12
|
"manifest.components.js": "sha384-BUFA8h+G5Plr82sV7bKzO42pPoiRZwRQcKj1lt2ROFiKjjlkayU/vmkAFqEsdBA+",
|
|
13
13
|
"manifest.computed.js": "sha384-GYML/e81gQfN+iDbqhPUgny8bINCyL+SrbTofoGk4hlCnLLjv51mCv42JMqq+ku5",
|
|
14
|
-
"manifest.data.js": "sha384-
|
|
14
|
+
"manifest.data.js": "sha384-K+ZPmelLQY+iphwUQJB2xzSYmYLzZaDV5wJ0TCHlk6kOiAjQ/jtPFDjsexM89asO",
|
|
15
15
|
"manifest.datepicker.js": "sha384-EzlMwvIxlla/0BuyhAEqxN0M8TGcWIWgEIg840V0akKQQK1uY648wPWMkobvtq/o",
|
|
16
16
|
"manifest.defer.js": "sha384-PRp7+dCZHnnl55rX2xrHutLrQnszHo7o5o9Tq28M/yjLZPuXDzcwQNxCdvbtCYSz",
|
|
17
17
|
"manifest.device.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
|
|
@@ -22,13 +22,13 @@
|
|
|
22
22
|
"manifest.localization.js": "sha384-EImsIw8Z3l13V5eH9ZJF/yfsOfIvR1oPRNSArANkPji7V8O3IRf6zMwsNiAGj3Hk",
|
|
23
23
|
"manifest.markdown.js": "sha384-icbpHC8dIijEJSaW3CODo4Ft7dBQz53pUh/2OYVBEFrLQbrFs370D+eMygJx5cW8",
|
|
24
24
|
"manifest.native.js": "sha384-YeQaS56L8IILqrQNBSeAOLwIh5DuAOrE60cYLK1+46qJtUrXlAvqGe2j5mbV4Vq7",
|
|
25
|
-
"manifest.payments.js": "sha384-
|
|
25
|
+
"manifest.payments.js": "sha384-p10n6EHBWFKVW9KhI2A+RpkwqrwD068D+wvOJ7D3Gklz1MvmIlqv1lLG1R0cUqbw",
|
|
26
26
|
"manifest.rich.text.js": "sha384-ZBV9jXmu2nmprEHicddRE/m7nR4RPZtVc969Jte0+EJYBcVph7itkjcgN/61PyeC",
|
|
27
27
|
"manifest.router.js": "sha384-9LMIkwrgnxmmFDv70TND2MRJF1z6Nl4yqG7fH5DbJ8oUIhdu/u4yUPSime1/EYhP",
|
|
28
28
|
"manifest.slides.js": "sha384-3uRTkyK9XPLmnxI2+igZlpi4EyPlU/7IHj5j3BZJJ2KN455vXyk99fiXV3feO/XY",
|
|
29
29
|
"manifest.status.js": "sha384-ofu7nBnVIGZ1U1o2R9d2H3V8aEMPUCVbl5FO3gIToXqi0oa36fTviEdh5UU7Kitw",
|
|
30
30
|
"manifest.svg.js": "sha384-qr/8H9+2cIhSXNbRWRtIdrDlTOxKlNJqwEefHvCYoiBNW/kKhPTFa109Orv/EBnb",
|
|
31
|
-
"manifest.sw.js": "sha384-
|
|
31
|
+
"manifest.sw.js": "sha384-G6HWkuawf//LfV6UNbBQOHDwKUJmeNyP9JsO1N/YEkxuNzW3qOVAzDoY+C42Y8Eu",
|
|
32
32
|
"manifest.tabs.js": "sha384-otU09H7jnawVKQdLAYpMCd3jx00tgyPVr42D2hLIBzN5dG4se505YesavdnMqEi1",
|
|
33
33
|
"manifest.tailwind.js": "sha384-yuP3LEvWU+QVjxjkZ0YhErtC9RrGmhOmHjjFjhS9obqZbp5/KTIEnSR0CXDvHE0B",
|
|
34
34
|
"manifest.toasts.js": "sha384-UpOz9fAdGeGUhL0NamBg5iPepEfIy73p9HYdcxfOQC5b7CVsl7Our0skdZzaLNcC",
|
package/lib/manifest.payments.js
CHANGED
|
@@ -44,13 +44,22 @@ async function getPaymentsConfig() {
|
|
|
44
44
|
if (p.endpoint && endpoint === null) return null;
|
|
45
45
|
if (p.publicKey && publicKey === null) return null;
|
|
46
46
|
|
|
47
|
+
// Unset means live; anything but live/sandbox (typo, unresolved ${VAR}) stays sandbox
|
|
48
|
+
function environmentOf(v) {
|
|
49
|
+
if (v === undefined || v === null || v === '') return 'live';
|
|
50
|
+
const e = String(v).toLowerCase();
|
|
51
|
+
if (e === 'live' || e === 'sandbox') return e;
|
|
52
|
+
console.warn(`[Manifest Payments] Unknown environment "${v}"; using sandbox. Use "live" or "sandbox".`);
|
|
53
|
+
return 'sandbox';
|
|
54
|
+
}
|
|
55
|
+
|
|
47
56
|
_cache = {
|
|
48
57
|
provider: p.provider || null,
|
|
49
58
|
endpoint,
|
|
50
59
|
mode: p.mode === 'overlay' ? 'overlay' : 'redirect',
|
|
51
60
|
publicKey,
|
|
52
61
|
managed: p.managed === true,
|
|
53
|
-
environment: p.environment
|
|
62
|
+
environment: environmentOf(p.environment),
|
|
54
63
|
state: p.state && typeof p.state === 'object' ? p.state : null,
|
|
55
64
|
// Pass-through bag for adapter-specific options (locale, theme, etc.)
|
|
56
65
|
options: p.options && typeof p.options === 'object' ? p.options : {}
|
package/lib/manifest.schema.json
CHANGED
|
@@ -594,6 +594,12 @@
|
|
|
594
594
|
"endpoint": {
|
|
595
595
|
"type": "string",
|
|
596
596
|
"description": "Backend endpoint for checkout/portal/state calls. Supports env() references."
|
|
597
|
+
},
|
|
598
|
+
"environment": {
|
|
599
|
+
"type": "string",
|
|
600
|
+
"enum": ["live", "sandbox"],
|
|
601
|
+
"default": "live",
|
|
602
|
+
"description": "Provider SDK environment for overlay checkouts. Set sandbox to test with the provider's test keys."
|
|
597
603
|
}
|
|
598
604
|
},
|
|
599
605
|
"additionalProperties": true
|
package/lib/manifest.sw.js
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
// Build stamps the published version here; unstamped (dev) falls back to the
|
|
18
18
|
// registration URL's `v`, then 'dev'.
|
|
19
|
-
const BUILD_VERSION = '0.5.
|
|
19
|
+
const BUILD_VERSION = '0.5.270';
|
|
20
20
|
const CACHE_PREFIX = 'mnfst-sw:';
|
|
21
21
|
const META_CACHE = CACHE_PREFIX + 'meta';
|
|
22
22
|
// Sized to hold a full precache.json warm-up (PRECACHE_MAX_ENTRIES server-side)
|