@central-icons-react/round-outlined-radius-2-stroke-2 0.0.44 → 0.0.46

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/icons-index.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "package": "@central-icons-react/round-outlined-radius-2-stroke-2",
3
- "version": "0.0.44",
3
+ "version": "0.0.46",
4
4
  "style": "round-outlined-radius-2-stroke-2",
5
5
  "importExamples": {
6
6
  "individual": "import { IconHome } from '@central-icons-react/round-outlined-radius-2-stroke-2/IconHome';",
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.44",
3
+ "version": "0.0.46",
4
4
  "license": "SEE LICENSE IN LICENSE.md",
5
5
  "homepage": "https://iconists.co/central",
6
6
  "bugs": {
@@ -29,7 +29,7 @@
29
29
  "**/*.map",
30
30
  "**/*.d.ts",
31
31
  "**/*.md",
32
- "**/*.json"
32
+ "icons-index.json"
33
33
  ],
34
34
  "scripts": {
35
35
  "preinstall": "node ./license-check.js",
@@ -44,7 +44,7 @@
44
44
  "react": ">=14.0.0 <= 19"
45
45
  },
46
46
  "devDependencies": {
47
- "@types/node": "^22",
47
+ "@types/node": "^24",
48
48
  "@types/react": "^19",
49
49
  "tsup": "^8",
50
50
  "typescript": "^5",