@quenty/rigbuilderutils 6.4.0 → 6.5.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 +11 -0
- package/LICENSE.md +1 -1
- package/package.json +3 -2
- package/src/Shared/AssetServiceUtils.lua +0 -39
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,17 @@
|
|
|
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
|
+
# [6.5.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rigbuilderutils@6.4.0...@quenty/rigbuilderutils@6.5.0) (2023-03-31)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* Add AssetServiceUtils package with additional API calls ([8074968](https://github.com/Quenty/NevermoreEngine/commit/8074968319abcdd077fc001d65102117f4c12b90))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
# [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/rigbuilderutils@6.3.0...@quenty/rigbuilderutils@6.4.0) (2023-03-05)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @quenty/rigbuilderutils
|
package/LICENSE.md
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/rigbuilderutils",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.5.0",
|
|
4
4
|
"description": "Utility functions for debugging, builds a Roblox character rig",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
"Quenty"
|
|
27
27
|
],
|
|
28
28
|
"dependencies": {
|
|
29
|
+
"@quenty/assetserviceutils": "^1.1.0",
|
|
29
30
|
"@quenty/humanoiddescriptionutils": "^6.3.0",
|
|
30
31
|
"@quenty/insertserviceutils": "^6.3.0",
|
|
31
32
|
"@quenty/loader": "^6.2.0",
|
|
@@ -38,5 +39,5 @@
|
|
|
38
39
|
"publishConfig": {
|
|
39
40
|
"access": "public"
|
|
40
41
|
},
|
|
41
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "cf537ed1fe265276971486129beb372cbaaca4a6"
|
|
42
43
|
}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
--[=[
|
|
2
|
-
Utility methods involving the AssetService
|
|
3
|
-
@class AssetServiceUtils
|
|
4
|
-
]=]
|
|
5
|
-
|
|
6
|
-
local require = require(script.Parent.loader).load(script)
|
|
7
|
-
|
|
8
|
-
local AssetService = game:GetService("AssetService")
|
|
9
|
-
|
|
10
|
-
local Promise = require("Promise")
|
|
11
|
-
|
|
12
|
-
local AssetServiceUtils = {}
|
|
13
|
-
|
|
14
|
-
--[=[
|
|
15
|
-
Retrieves the assetIds for a package
|
|
16
|
-
|
|
17
|
-
@param packageAssetId number
|
|
18
|
-
@return Promise<table>
|
|
19
|
-
]=]
|
|
20
|
-
function AssetServiceUtils.promiseAssetIdsForPackage(packageAssetId)
|
|
21
|
-
return Promise.spawn(function(resolve, reject)
|
|
22
|
-
local result
|
|
23
|
-
local ok, err = pcall(function()
|
|
24
|
-
result = AssetService:GetAssetIdsForPackage(packageAssetId)
|
|
25
|
-
end)
|
|
26
|
-
|
|
27
|
-
if not ok then
|
|
28
|
-
warn(err)
|
|
29
|
-
return reject(err)
|
|
30
|
-
end
|
|
31
|
-
if typeof(result) ~= "table" then
|
|
32
|
-
return reject("Result was not an table")
|
|
33
|
-
end
|
|
34
|
-
|
|
35
|
-
resolve(result)
|
|
36
|
-
end)
|
|
37
|
-
end
|
|
38
|
-
|
|
39
|
-
return AssetServiceUtils
|