@mpgd/adapter-devvit 0.8.0 → 0.8.2
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/dist/payments.js +3 -0
- package/package.json +2 -2
package/dist/payments.js
CHANGED
|
@@ -39,6 +39,9 @@ export function withDevvitCommerceAdapter(gateway, commerce) {
|
|
|
39
39
|
if (gateway.target !== 'reddit') {
|
|
40
40
|
throw new TypeError('Devvit commerce can only be installed on a reddit gateway.');
|
|
41
41
|
}
|
|
42
|
+
if ('getTargetRuntime' in gateway && typeof gateway.getTargetRuntime === 'function') {
|
|
43
|
+
throw new TypeError('Devvit commerce must be installed before target availability is applied.');
|
|
44
|
+
}
|
|
42
45
|
return {
|
|
43
46
|
...gateway,
|
|
44
47
|
async getCapabilities() {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mpgd/adapter-devvit",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.2",
|
|
4
4
|
"description": "Reddit Devvit Web platform adapter for mpgd games.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"dependencies": {
|
|
57
57
|
"@devvit/web": "0.13.8",
|
|
58
58
|
"@mpgd/bridge": "0.6.0",
|
|
59
|
-
"@mpgd/game-services": "0.8.
|
|
59
|
+
"@mpgd/game-services": "0.8.2",
|
|
60
60
|
"@mpgd/platform": "0.6.0"
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|