@quenty/canceltoken 6.3.0 → 6.4.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
+ # [6.4.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/canceltoken@6.3.0...@quenty/canceltoken@6.4.0) (2023-03-31)
7
+
8
+
9
+ ### Features
10
+
11
+ * Add CancelToken.isCancelToken(value) ([a02f4bf](https://github.com/Quenty/NevermoreEngine/commit/a02f4bfea23266f6321329f850e17dba06ecd591))
12
+
13
+
14
+
15
+
16
+
6
17
  # [6.3.0](https://github.com/Quenty/NevermoreEngine/compare/@quenty/canceltoken@6.2.0...@quenty/canceltoken@6.3.0) (2023-03-05)
7
18
 
8
19
  **Note:** Version bump only for package @quenty/canceltoken
package/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2014-2022 Quenty
3
+ Copyright (c) 2014-2023 James Onnen (Quenty)
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@quenty/canceltoken",
3
- "version": "6.3.0",
3
+ "version": "6.4.0",
4
4
  "description": "Cancellation tokens for Roblox Lua",
5
5
  "keywords": [
6
6
  "Roblox",
@@ -27,11 +27,11 @@
27
27
  ],
28
28
  "dependencies": {
29
29
  "@quenty/loader": "^6.2.0",
30
- "@quenty/promise": "^6.3.0",
30
+ "@quenty/promise": "^6.4.0",
31
31
  "@quenty/signal": "^2.3.0"
32
32
  },
33
33
  "publishConfig": {
34
34
  "access": "public"
35
35
  },
36
- "gitHead": "e62b5eac2e5d9084ab9083f128452dd2d98b6f1a"
36
+ "gitHead": "2a1c35a8d2e90b291a83a6e2def0ec69f3f24837"
37
37
  }
@@ -39,6 +39,16 @@ function CancelToken.new(executor)
39
39
  return self
40
40
  end
41
41
 
42
+ --[=[
43
+ Returns true if the value is a cancel token
44
+ @param value any
45
+ @return boolean
46
+ ]=]
47
+ function CancelToken.isCancelToken(value)
48
+ return type(value) == "table"
49
+ and getmetatable(value) == CancelToken
50
+ end
51
+
42
52
  local EMPTY_FUNCTION = function() end
43
53
 
44
54
  --[=[