@quenty/marketplaceutils 7.0.0-canary.331.7eefa75.0 → 7.0.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 +76 -1
- package/LICENSE.md +1 -1
- package/package.json +4 -4
- package/src/Shared/MarketplaceUtils.lua +25 -0
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,82 @@
|
|
|
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
|
-
# [7.0.0
|
|
6
|
+
# [7.0.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.9.0...@quenty/marketplaceutils@7.0.0) (2023-10-11)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
# [6.9.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.8.0...@quenty/marketplaceutils@6.9.0) (2023-08-23)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
# [6.8.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.7.0...@quenty/marketplaceutils@6.8.0) (2023-07-28)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
# [6.7.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.6.0...@quenty/marketplaceutils@6.7.0) (2023-06-17)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
# [6.6.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.5.1...@quenty/marketplaceutils@6.6.0) (2023-04-10)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [6.5.1](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.5.0...@quenty/marketplaceutils@6.5.1) (2023-04-07)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
# [6.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.4.0...@quenty/marketplaceutils@6.5.0) (2023-03-31)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
# [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.3.0...@quenty/marketplaceutils@6.4.0) (2023-03-31)
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
### Features
|
|
66
|
+
|
|
67
|
+
* Add MarketplaceUtils.promisePlayerOwnsBundle(player, bundleId) ([b2dbcbb](https://github.com/Quenty/NevermoreEngine/commit/b2dbcbb8b2e002fdf519e71a73a7fcba1e4a2f5c))
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
# [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.2.0...@quenty/marketplaceutils@6.3.0) (2023-03-05)
|
|
74
|
+
|
|
75
|
+
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
# [6.2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/marketplaceutils@6.1.0...@quenty/marketplaceutils@6.2.0) (2023-02-27)
|
|
7
82
|
|
|
8
83
|
**Note:** Version bump only for package @quenty/marketplaceutils
|
|
9
84
|
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/marketplaceutils",
|
|
3
|
-
"version": "7.0.0
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "Provides utility methods for MarketplaceService",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@quenty/loader": "
|
|
30
|
-
"@quenty/promise": "7.0.0
|
|
29
|
+
"@quenty/loader": "^7.0.0",
|
|
30
|
+
"@quenty/promise": "^7.0.0"
|
|
31
31
|
},
|
|
32
32
|
"publishConfig": {
|
|
33
33
|
"access": "public"
|
|
34
34
|
},
|
|
35
|
-
"gitHead": "
|
|
35
|
+
"gitHead": "fdeae46099587019ec5fc15317dc673aed379400"
|
|
36
36
|
}
|
|
@@ -173,4 +173,29 @@ function MarketplaceUtils.promisePlayerOwnsAsset(player, assetId)
|
|
|
173
173
|
end)
|
|
174
174
|
end
|
|
175
175
|
|
|
176
|
+
--[=[
|
|
177
|
+
Retrieves whether a player owns a bundle
|
|
178
|
+
@param player Player
|
|
179
|
+
@param bundleId number
|
|
180
|
+
@return Promise<boolean>
|
|
181
|
+
]=]
|
|
182
|
+
function MarketplaceUtils.promisePlayerOwnsBundle(player, bundleId)
|
|
183
|
+
assert(typeof(player) == "Instance", "Bad player")
|
|
184
|
+
assert(type(bundleId) == "number", "Bad bundleId")
|
|
185
|
+
|
|
186
|
+
return Promise.spawn(function(resolve, reject)
|
|
187
|
+
local result
|
|
188
|
+
local ok, err = pcall(function()
|
|
189
|
+
result = MarketplaceService:PlayerOwnsBundle(player, bundleId)
|
|
190
|
+
end)
|
|
191
|
+
if not ok then
|
|
192
|
+
return reject(err)
|
|
193
|
+
end
|
|
194
|
+
if type(result) ~= "boolean" then
|
|
195
|
+
return reject("Bad result type")
|
|
196
|
+
end
|
|
197
|
+
return resolve(result)
|
|
198
|
+
end)
|
|
199
|
+
end
|
|
200
|
+
|
|
176
201
|
return MarketplaceUtils
|