@central-icons-react/round-outlined-radius-0-stroke-1.5 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/IconTextareaDrag/index.d.ts +4 -0
- package/IconTextareaDrag/index.js +2 -0
- package/IconTextareaDrag/index.js.map +1 -0
- package/IconTextareaDrag/index.mjs +2 -0
- package/IconTextareaDrag/index.mjs.map +1 -0
- package/README.md +1 -0
- package/filtered-icons.json +13 -0
- package/icons/index.d.ts +1 -0
- package/icons-index.json +5 -3
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/license-check.js +26 -22
- package/package.json +1 -1
- package/tsx-icons.json +6 -0
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
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
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=\"M14.75 21.25L21.25 14.75\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\"/><path d=\"M6.75 21.25L21.25 6.75\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\"/>",
|
8039
|
+
"componentName": "IconTextareaDrag",
|
8040
|
+
"iconName": "textarea-drag",
|
8041
|
+
"pathname": "src/IconTextareaDrag"
|
8042
|
+
},
|
8037
8043
|
{
|
8038
8044
|
"svg": "<path d=\"M12.75 5.25H20.25M12.75 8.75H17.25M12.75 15.25H20.25M12.75 18.75H17.25M3.75 4.75H8.25V9.25H3.75V4.75ZM3.75 14.75H8.25V19.25H3.75V14.75Z\" stroke=\"currentColor\" strokeWidth=\"1.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\"/>",
|
8039
8045
|
"componentName": "IconTextBlock",
|