@quenty/marketplaceutils 11.22.0 → 11.24.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 +10 -0
- package/package.json +4 -4
- package/src/Shared/MarketplaceUtils.lua +29 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,16 @@
|
|
|
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
|
+
# [11.24.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@11.23.0...@quenty/marketplaceutils@11.24.0) (2026-07-20)
|
|
7
|
+
|
|
8
|
+
### Features
|
|
9
|
+
|
|
10
|
+
- **gameproductservice:** add paid-access game ownership tracking ([581a595](https://github.com/Quenty/NevermoreEngine/commit/581a5950d433ea4d6dfbcc33e88f254f9f13e14c))
|
|
11
|
+
|
|
12
|
+
# [11.23.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@11.22.0...@quenty/marketplaceutils@11.23.0) (2026-07-18)
|
|
13
|
+
|
|
14
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
15
|
+
|
|
6
16
|
# [11.22.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@11.21.0...@quenty/marketplaceutils@11.22.0) (2026-07-18)
|
|
7
17
|
|
|
8
18
|
**Note:** Version bump only for package @quenty/marketplaceutils
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/marketplaceutils",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.24.0",
|
|
4
4
|
"description": "Provides utility methods for MarketplaceService",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -31,11 +31,11 @@
|
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"@quenty/loader": "10.11.0",
|
|
33
33
|
"@quenty/memoize": "1.10.0",
|
|
34
|
-
"@quenty/promise": "10.
|
|
35
|
-
"@quenty/servicebag": "11.
|
|
34
|
+
"@quenty/promise": "10.20.0",
|
|
35
|
+
"@quenty/servicebag": "11.19.0"
|
|
36
36
|
},
|
|
37
37
|
"publishConfig": {
|
|
38
38
|
"access": "public"
|
|
39
39
|
},
|
|
40
|
-
"gitHead": "
|
|
40
|
+
"gitHead": "2c903e91ae2ea1702ae1ce94af20af83af81e4fe"
|
|
41
41
|
}
|
|
@@ -221,6 +221,35 @@ function MarketplaceUtils.promisePlayerOwnsAsset(player: Player, assetId: number
|
|
|
221
221
|
end)
|
|
222
222
|
end
|
|
223
223
|
|
|
224
|
+
--[=[
|
|
225
|
+
Retrieves whether a player owns an asset via the async variant. Unlike
|
|
226
|
+
[MarketplaceUtils.promisePlayerOwnsAsset], this queries whether the player owns
|
|
227
|
+
paid access to a game (universe), which is the mechanism paid-access games use.
|
|
228
|
+
See [MarketplaceService.PlayerOwnsAssetAsync].
|
|
229
|
+
|
|
230
|
+
@param player Player
|
|
231
|
+
@param assetId number
|
|
232
|
+
@return Promise<boolean>
|
|
233
|
+
]=]
|
|
234
|
+
function MarketplaceUtils.promisePlayerOwnsAssetAsync(player: Player, assetId: number): Promise.Promise<boolean>
|
|
235
|
+
assert(typeof(player) == "Instance", "Bad player")
|
|
236
|
+
assert(type(assetId) == "number", "Bad assetId")
|
|
237
|
+
|
|
238
|
+
return Promise.spawn(function(resolve, reject)
|
|
239
|
+
local result
|
|
240
|
+
local ok, err = pcall(function()
|
|
241
|
+
result = MarketplaceService:PlayerOwnsAssetAsync(player, assetId)
|
|
242
|
+
end)
|
|
243
|
+
if not ok then
|
|
244
|
+
return reject(err)
|
|
245
|
+
end
|
|
246
|
+
if type(result) ~= "boolean" then
|
|
247
|
+
return reject("Bad result type")
|
|
248
|
+
end
|
|
249
|
+
return resolve(result)
|
|
250
|
+
end)
|
|
251
|
+
end
|
|
252
|
+
|
|
224
253
|
--[=[
|
|
225
254
|
Retrieves whether a player owns a bundle
|
|
226
255
|
@param player Player
|