@central-icons-react/square-filled-radius-0-stroke-1 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=\"M22.1035 6.60352L6.60352 22.1035L5.89648 21.3965L21.3965 5.89648L22.1035 6.60352ZM21.75 14.2354L22.1035 14.5879L14.6035 22.1035L13.8965 21.3965L21.3965 13.8818L21.75 14.2354Z\" fill=\"currentColor\"/>",
|
|
8039
|
+
"componentName": "IconTextareaDrag",
|
|
8040
|
+
"iconName": "textarea-drag",
|
|
8041
|
+
"pathname": "src/IconTextareaDrag"
|
|
8042
|
+
},
|
|
8037
8043
|
{
|
|
8038
8044
|
"svg": "<path d=\"M3 4V10H9V4H3Z\" fill=\"currentColor\"/><path d=\"M12 5V6H21V5H12Z\" fill=\"currentColor\"/><path d=\"M12 8V9H18V8H12Z\" fill=\"currentColor\"/><path d=\"M3 14V20H9V14H3Z\" fill=\"currentColor\"/><path d=\"M12 15V16H21V15H12Z\" fill=\"currentColor\"/><path d=\"M12 18V19H18V18H12Z\" fill=\"currentColor\"/>",
|
|
8039
8045
|
"componentName": "IconTextBlock",
|