@central-icons-react/round-outlined-radius-1-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-1-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.5H17M5 19H7C7.55228 19 8 18.5523 8 18V16C8 15.4477 7.55228 15 7 15H5C4.44772 15 4 15.4477 4 16V18C4 18.5523 4.44772 19 5 19ZM5 9H7C7.55228 9 8 8.55228 8 8V6C8 5.44772 7.55228 5 7 5H5C4.44772 5 4 5.44772 4 6V8C4 8.55228 4.44772 9 5 9Z\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>",
8039
8045
  "componentName": "IconTextBlock",