@central-icons-react/round-outlined-radius-2-stroke-2 0.0.43 → 0.0.45

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/license-check.js CHANGED
@@ -10,28 +10,32 @@ const licenseCheck = async () => {
10
10
  const controller = new AbortController();
11
11
  const timeoutId = setTimeout(() => controller.abort(), 5000);
12
12
 
13
- const response = await fetch("https://centralicons.com/license/check", {
14
- method: "POST",
15
- headers: {
16
- Authorization: `Bearer ${licenseKey}`,
17
- },
18
- signal: controller.signal,
19
- });
20
-
21
- clearTimeout(timeoutId);
22
-
23
- if (controller.signal.aborted || response.status >= 500) {
24
- // Server Error, handling in customer favour
25
- return;
26
- }
27
-
28
- const responseJson = await response.json();
29
-
30
- if (responseJson.error) {
31
- throw new Error(responseJson.error);
32
- }
33
- if (!responseJson.data.isValid) {
34
- throw new Error("Invalid license key");
13
+ try {
14
+ const response = await fetch("https://centralicons.com/license/check", {
15
+ method: "POST",
16
+ headers: {
17
+ Authorization: `Bearer ${licenseKey}`,
18
+ },
19
+ signal: controller.signal,
20
+ });
21
+
22
+ clearTimeout(timeoutId);
23
+
24
+ if (controller.signal.aborted || response.status >= 500) {
25
+ // Server Error, handling in customer favour
26
+ return;
27
+ }
28
+
29
+ const responseJson = await response.json();
30
+
31
+ if (responseJson.error) {
32
+ throw new Error(responseJson.error);
33
+ }
34
+ if (!responseJson.data.isValid) {
35
+ throw new Error("Invalid license key");
36
+ }
37
+ } catch (error) {
38
+ console.error(error);
35
39
  }
36
40
  };
37
41
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@central-icons-react/round-outlined-radius-2-stroke-2",
3
- "version": "0.0.43",
3
+ "version": "0.0.45",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "homepage": "https://iconists.co/central",
6
6
  "bugs": {
package/tsx-icons.json CHANGED
@@ -8034,6 +8034,12 @@
8034
8034
  "iconName": "text-2",
8035
8035
  "pathname": "src/IconText2"
8036
8036
  },
8037
+ {
8038
+ "svg": "<path d=\"M15 21L21 15\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\"/><path d=\"M7 21L21 7\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\"/>",
8039
+ "componentName": "IconTextareaDrag",
8040
+ "iconName": "textarea-drag",
8041
+ "pathname": "src/IconTextareaDrag"
8042
+ },
8037
8043
  {
8038
8044
  "svg": "<path d=\"M13 5.5H20M13 8.5H17M13 15.5H20M13 18.5H17M6 19C4.89543 19 4 18.1046 4 17C4 15.8954 4.89543 15 6 15C7.10457 15 8 15.8954 8 17C8 18.1046 7.10457 19 6 19ZM6 9C4.89543 9 4 8.10457 4 7C4 5.89543 4.89543 5 6 5C7.10457 5 8 5.89543 8 7C8 8.10457 7.10457 9 6 9Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>",
8039
8045
  "componentName": "IconTextBlock",