@quenty/valuebaseutils 13.5.1-canary.497.496fc5b.0 → 13.5.1-canary.499.60b3012.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,7 +3,7 @@
|
|
|
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
|
-
## [13.5.1-canary.
|
|
6
|
+
## [13.5.1-canary.499.60b3012.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/valuebaseutils@13.5.0...@quenty/valuebaseutils@13.5.1-canary.499.60b3012.0) (2024-09-24)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @quenty/valuebaseutils
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@quenty/valuebaseutils",
|
|
3
|
-
"version": "13.5.1-canary.
|
|
3
|
+
"version": "13.5.1-canary.499.60b3012.0",
|
|
4
4
|
"description": "Provides utilities for working with valuesbase objects, like IntValue or ObjectValue in Roblox.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Roblox",
|
|
@@ -25,15 +25,15 @@
|
|
|
25
25
|
"Quenty"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@quenty/brio": "14.5.1-canary.
|
|
29
|
-
"@quenty/instanceutils": "13.5.1-canary.
|
|
30
|
-
"@quenty/loader": "10.4.
|
|
31
|
-
"@quenty/promise": "10.4.
|
|
32
|
-
"@quenty/rx": "13.5.1-canary.
|
|
33
|
-
"@quenty/rxsignal": "7.5.1-canary.
|
|
28
|
+
"@quenty/brio": "14.5.1-canary.499.60b3012.0",
|
|
29
|
+
"@quenty/instanceutils": "13.5.1-canary.499.60b3012.0",
|
|
30
|
+
"@quenty/loader": "10.4.0",
|
|
31
|
+
"@quenty/promise": "10.4.0",
|
|
32
|
+
"@quenty/rx": "13.5.1-canary.499.60b3012.0",
|
|
33
|
+
"@quenty/rxsignal": "7.5.1-canary.499.60b3012.0"
|
|
34
34
|
},
|
|
35
35
|
"publishConfig": {
|
|
36
36
|
"access": "public"
|
|
37
37
|
},
|
|
38
|
-
"gitHead": "
|
|
38
|
+
"gitHead": "60b3012c35a2bf7c3c6a01ec440f9d639b9ad0cc"
|
|
39
39
|
}
|
|
@@ -80,7 +80,8 @@ function ValueBaseUtils.getOrCreateValue(parent, instanceType, name, defaultValu
|
|
|
80
80
|
local foundChild = parent:FindFirstChild(name)
|
|
81
81
|
if foundChild then
|
|
82
82
|
if not foundChild:IsA(instanceType) then
|
|
83
|
-
warn(
|
|
83
|
+
warn(("[ValueBaseUtils.getOrCreateValue] - Value of type %q of name %q is of type %q in %s instead")
|
|
84
|
+
:format(instanceType, name, foundChild.ClassName, foundChild:GetFullName()))
|
|
84
85
|
end
|
|
85
86
|
|
|
86
87
|
return foundChild
|
|
@@ -111,7 +112,8 @@ function ValueBaseUtils.setValue(parent, instanceType, name, value)
|
|
|
111
112
|
local foundChild = parent:FindFirstChild(name)
|
|
112
113
|
if foundChild then
|
|
113
114
|
if not foundChild:IsA(instanceType) then
|
|
114
|
-
warn(
|
|
115
|
+
warn(("[ValueBaseUtils.setValue] - Value of type %q of name %q is of type %q in %s instead")
|
|
116
|
+
:format(instanceType, name, foundChild.ClassName, foundChild:GetFullName()))
|
|
115
117
|
end
|
|
116
118
|
|
|
117
119
|
foundChild.Value = value
|
|
@@ -142,7 +144,8 @@ function ValueBaseUtils.getValue(parent, instanceType, name, default)
|
|
|
142
144
|
if foundChild:IsA(instanceType) then
|
|
143
145
|
return foundChild.Value
|
|
144
146
|
else
|
|
145
|
-
warn(
|
|
147
|
+
warn(("[ValueBaseUtils.getValue] - Value of type %q of name %q is of type %q in %s instead")
|
|
148
|
+
:format(instanceType, name, foundChild.ClassName, foundChild:GetFullName()))
|
|
146
149
|
return nil
|
|
147
150
|
end
|
|
148
151
|
else
|
|
@@ -55,7 +55,7 @@ function ValueBaseValue:__index(index)
|
|
|
55
55
|
elseif ValueBaseValue[index] or index == "_defaultValue" then
|
|
56
56
|
return ValueBaseValue[index]
|
|
57
57
|
else
|
|
58
|
-
error(
|
|
58
|
+
error(("%q is not a member of ValueBaseValue"):format(tostring(index)))
|
|
59
59
|
end
|
|
60
60
|
end
|
|
61
61
|
|
|
@@ -63,7 +63,7 @@ function ValueBaseValue:__newindex(index, value)
|
|
|
63
63
|
if index == "Value" then
|
|
64
64
|
ValueBaseUtils.setValue(self._parent, self._className, self._name, value)
|
|
65
65
|
else
|
|
66
|
-
error(
|
|
66
|
+
error(("%q is not a member of ValueBaseValue"):format(tostring(index)))
|
|
67
67
|
end
|
|
68
68
|
end
|
|
69
69
|
|