@quenty/receiptprocessing 2.1.1 → 2.2.0

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/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [2.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/receiptprocessing@2.1.1...@quenty/receiptprocessing@2.2.0) (2023-12-14)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Fix missing dependencies ([91e9170](https://github.com/Quenty/NevermoreEngine/commit/91e9170a2e34d2bdcc1ceb4f384ee59947a541ef))
12
+
13
+
14
+ ### Features
15
+
16
+ * Allow receipt processing to handle client-side initialization if we're in a plugin or other scenario ([299280f](https://github.com/Quenty/NevermoreEngine/commit/299280f68f6f2c689ebd11bbf337da7102c22709))
17
+
18
+
19
+
20
+
21
+
6
22
  ## [2.1.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/receiptprocessing@2.1.0...@quenty/receiptprocessing@2.1.1) (2023-10-28)
7
23
 
8
24
  **Note:** Version bump only for package @quenty/receiptprocessing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/receiptprocessing",
3
- "version": "2.1.1",
3
+ "version": "2.2.0",
4
4
  "description": "Centralize receipt processing within games since this is a constrained resource.",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -26,15 +26,16 @@
26
26
  ],
27
27
  "dependencies": {
28
28
  "@quenty/enumutils": "^3.1.0",
29
- "@quenty/loader": "^7.0.0",
29
+ "@quenty/loader": "^7.1.0",
30
30
  "@quenty/maid": "^2.6.0",
31
- "@quenty/promise": "^7.0.0",
32
- "@quenty/rx": "^8.1.1",
33
- "@quenty/servicebag": "^7.0.0",
34
- "@quenty/signal": "^3.0.0"
31
+ "@quenty/promise": "^7.1.0",
32
+ "@quenty/rx": "^8.2.0",
33
+ "@quenty/servicebag": "^7.1.0",
34
+ "@quenty/signal": "^3.1.0",
35
+ "@quenty/valueobject": "^8.2.0"
35
36
  },
36
37
  "publishConfig": {
37
38
  "access": "public"
38
39
  },
39
- "gitHead": "440aca7ce2b50b74317ee05fdc0b8d1e58001af3"
40
+ "gitHead": "2c2dbbc0cb2fbb46b4f3270c559c63890fe18b26"
40
41
  }
@@ -7,6 +7,7 @@
7
7
  local require = require(script.Parent.loader).load(script)
8
8
 
9
9
  local MarketplaceService = game:GetService("MarketplaceService")
10
+ local RunService = game:GetService("RunService")
10
11
 
11
12
  local Promise = require("Promise")
12
13
  local EnumUtils = require("EnumUtils")
@@ -33,8 +34,13 @@ function ReceiptProcessingService:Init(serviceBag)
33
34
  end
34
35
 
35
36
  function ReceiptProcessingService:Start()
36
- MarketplaceService.ProcessReceipt = function(...)
37
- return self:_handleProcessReceiptAsync(...)
37
+ if RunService:IsServer() then
38
+ MarketplaceService.ProcessReceipt = function(...)
39
+ return self:_handleProcessReceiptAsync(...)
40
+ end
41
+ else
42
+ -- Note: we're probably in test mode and initialized on the client
43
+ warn("[ReceiptProcessingService] - Failed to bind process receipt")
38
44
  end
39
45
  end
40
46