@quenty/ugcsanitize 1.4.0 → 1.4.1-canary.545.2374fb2.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,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
+ ## [1.4.1-canary.545.2374fb2.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ugcsanitize@1.4.0...@quenty/ugcsanitize@1.4.1-canary.545.2374fb2.0) (2025-04-05)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Add types to packages ([2374fb2](https://github.com/Quenty/NevermoreEngine/commit/2374fb2b043cfbe0e9b507b3316eec46a4e353a0))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/ugcsanitize@1.3.2...@quenty/ugcsanitize@1.4.0) (2025-04-02)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/ugcsanitize
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/ugcsanitize",
3
- "version": "1.4.0",
3
+ "version": "1.4.1-canary.545.2374fb2.0",
4
4
  "description": "Sanitizes UGC hats and other items",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -25,14 +25,14 @@
25
25
  "Quenty"
26
26
  ],
27
27
  "dependencies": {
28
- "@quenty/baseobject": "^10.8.0",
29
- "@quenty/instanceutils": "^13.17.0",
30
- "@quenty/loader": "^10.8.0",
31
- "@quenty/maid": "^3.4.0",
32
- "@quenty/string": "^3.3.1"
28
+ "@quenty/baseobject": "10.8.1-canary.545.2374fb2.0",
29
+ "@quenty/instanceutils": "13.17.1-canary.545.2374fb2.0",
30
+ "@quenty/loader": "10.8.1-canary.545.2374fb2.0",
31
+ "@quenty/maid": "3.4.1-canary.545.2374fb2.0",
32
+ "@quenty/string": "3.3.2-canary.545.2374fb2.0"
33
33
  },
34
34
  "publishConfig": {
35
35
  "access": "public"
36
36
  },
37
- "gitHead": "e8ea56930e65322fcffc05a1556d5df988068f0b"
37
+ "gitHead": "2374fb2b043cfbe0e9b507b3316eec46a4e353a0"
38
38
  }
@@ -12,7 +12,7 @@ local DisableHatParticles = setmetatable({}, BaseObject)
12
12
  DisableHatParticles.ClassName = "DisableHatParticles"
13
13
  DisableHatParticles.__index = DisableHatParticles
14
14
 
15
- function DisableHatParticles.new(character)
15
+ function DisableHatParticles.new(character: Model)
16
16
  local self = setmetatable(BaseObject.new(character), DisableHatParticles)
17
17
 
18
18
  self._maid:GiveTask(RxInstanceUtils.observeChildrenOfClassBrio(self._obj, "Accessory"):Subscribe(function(brio)
@@ -27,7 +27,7 @@ function DisableHatParticles.new(character)
27
27
  return self
28
28
  end
29
29
 
30
- function DisableHatParticles:_handleAccessory(maid, accessory)
30
+ function DisableHatParticles:_handleAccessory(maid, accessory: Accessory)
31
31
  maid:GiveTask(accessory.DescendantAdded:Connect(function(descendant)
32
32
  self:_handleAccessoryDescendant(maid, descendant)
33
33
  end))
@@ -35,16 +35,18 @@ function DisableHatParticles:_handleAccessory(maid, accessory)
35
35
  maid[descendant] = nil
36
36
  end))
37
37
 
38
- for _, descendant in pairs(accessory:GetDescendants()) do
38
+ for _, descendant in accessory:GetDescendants() do
39
39
  self:_handleAccessoryDescendant(maid, descendant)
40
40
  end
41
41
  end
42
42
 
43
43
  function DisableHatParticles:_handleAccessoryDescendant(maid, descendant)
44
- if descendant:IsA("Fire")
44
+ if
45
+ descendant:IsA("Fire")
45
46
  or descendant:IsA("Sparkles")
46
47
  or descendant:IsA("Smoke")
47
- or descendant:IsA("ParticleEmitter") then
48
+ or descendant:IsA("ParticleEmitter")
49
+ then
48
50
  if descendant.Enabled then
49
51
  maid[descendant] = function()
50
52
  descendant.Enabled = true
@@ -98,4 +100,4 @@ function DisableHatParticles:_isSound(descendant)
98
100
  return descendant:IsA("Sound") and descendant.SoundGroup == nil
99
101
  end
100
102
 
101
- return DisableHatParticles
103
+ return DisableHatParticles