@licensespring/node-sdk 1.0.2
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/README.md +1 -0
- package/dist/.env.prod +22 -0
- package/dist/hwid/hardware_id_generator/CHANGELOG.md +4 -0
- package/dist/hwid/hardware_id_generator/bin/linux/aarch64/glibc/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/aarch64/musl/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/arm/glibc/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/arm/musl/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/i686/glibc/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/i686/musl/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/ppc64le/glibc/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/ppc64le/musl/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/riscv64/glibc/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/riscv64/musl/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/s390x/glibc/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/s390x/musl/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/x86_64/glibc/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/linux/x86_64/musl/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/macos/arm64/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/macos/x86_64/libhardware_id_generator.so +0 -0
- package/dist/hwid/hardware_id_generator/bin/windows/arm/hardware_id_generator.dll +0 -0
- package/dist/hwid/hardware_id_generator/bin/windows/arm64/hardware_id_generator.dll +0 -0
- package/dist/hwid/hardware_id_generator/bin/windows/x64/hardware_id_generator.dll +0 -0
- package/dist/hwid/hardware_id_generator/bin/windows/x86/hardware_id_generator.dll +0 -0
- package/dist/hwid/hardware_id_generator/documentation/Documentation.html +1 -0
- package/dist/hwid/hardware_id_generator/documentation/README.md +25 -0
- package/dist/hwid/hardware_id_generator/documentation/html/annotated.html +115 -0
- package/dist/hwid/hardware_id_generator/documentation/html/annotated_dup.js +10 -0
- package/dist/hwid/hardware_id_generator/documentation/html/bc_s.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/bc_sd.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider-members.html +114 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider.html +338 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider.js +5 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProvider.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud-members.html +114 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud.html +184 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderCloud.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux-members.html +114 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux.html +184 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderLinux.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos-members.html +114 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos.html +184 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderMacos.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows-members.html +114 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows.html +192 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classLicenseSpring_1_1HardwareIdProviderWindows.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/classes.html +111 -0
- package/dist/hwid/hardware_id_generator/documentation/html/closed.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/dir_a49c68042076af89c9be520540c36a5a.html +106 -0
- package/dist/hwid/hardware_id_generator/documentation/html/dir_d44c64559bbebec7f509842c48db8b23.html +122 -0
- package/dist/hwid/hardware_id_generator/documentation/html/dir_d44c64559bbebec7f509842c48db8b23.js +9 -0
- package/dist/hwid/hardware_id_generator/documentation/html/doc.svg +12 -0
- package/dist/hwid/hardware_id_generator/documentation/html/docd.svg +12 -0
- package/dist/hwid/hardware_id_generator/documentation/html/doxygen.css +2045 -0
- package/dist/hwid/hardware_id_generator/documentation/html/doxygen.svg +28 -0
- package/dist/hwid/hardware_id_generator/documentation/html/dynsections.js +192 -0
- package/dist/hwid/hardware_id_generator/documentation/html/exports_8h_source.html +137 -0
- package/dist/hwid/hardware_id_generator/documentation/html/files.html +116 -0
- package/dist/hwid/hardware_id_generator/documentation/html/files_dup.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/folderclosed.svg +11 -0
- package/dist/hwid/hardware_id_generator/documentation/html/folderclosedd.svg +11 -0
- package/dist/hwid/hardware_id_generator/documentation/html/folderopen.svg +17 -0
- package/dist/hwid/hardware_id_generator/documentation/html/folderopend.svg +12 -0
- package/dist/hwid/hardware_id_generator/documentation/html/functions.html +110 -0
- package/dist/hwid/hardware_id_generator/documentation/html/functions_func.html +110 -0
- package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider_8h_source.html +161 -0
- package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__cloud_8h_source.html +142 -0
- package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__linux_8h_source.html +131 -0
- package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__macos_8h_source.html +131 -0
- package/dist/hwid/hardware_id_generator/documentation/html/hardware__id__provider__windows_8h_source.html +149 -0
- package/dist/hwid/hardware_id_generator/documentation/html/hierarchy.html +114 -0
- package/dist/hwid/hardware_id_generator/documentation/html/hierarchy.js +9 -0
- package/dist/hwid/hardware_id_generator/documentation/html/index.html +132 -0
- package/dist/hwid/hardware_id_generator/documentation/html/index.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/jquery.js +34 -0
- package/dist/hwid/hardware_id_generator/documentation/html/logo_small.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/menu.js +136 -0
- package/dist/hwid/hardware_id_generator/documentation/html/menudata.js +35 -0
- package/dist/hwid/hardware_id_generator/documentation/html/minus.svg +8 -0
- package/dist/hwid/hardware_id_generator/documentation/html/minusd.svg +8 -0
- package/dist/hwid/hardware_id_generator/documentation/html/nav_f.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/nav_fd.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/nav_g.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/nav_h.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/nav_hd.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/navtree.css +149 -0
- package/dist/hwid/hardware_id_generator/documentation/html/navtree.js +559 -0
- package/dist/hwid/hardware_id_generator/documentation/html/navtreedata.js +50 -0
- package/dist/hwid/hardware_id_generator/documentation/html/navtreeindex0.js +31 -0
- package/dist/hwid/hardware_id_generator/documentation/html/open.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/plus.svg +9 -0
- package/dist/hwid/hardware_id_generator/documentation/html/plusd.svg +9 -0
- package/dist/hwid/hardware_id_generator/documentation/html/resize.js +155 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_0.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_1.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_2.js +6 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_3.js +9 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_4.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_5.js +5 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_6.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_7.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_8.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/all_9.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/classes_0.js +8 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/close.svg +18 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/functions_0.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/functions_1.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/functions_2.js +6 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/functions_3.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/mag.svg +24 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/mag_d.svg +24 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/mag_sel.svg +31 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/mag_seld.svg +31 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/pages_0.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/pages_1.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/pages_2.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/pages_3.js +4 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/search.css +291 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/search.js +840 -0
- package/dist/hwid/hardware_id_generator/documentation/html/search/searchdata.js +24 -0
- package/dist/hwid/hardware_id_generator/documentation/html/splitbar.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/splitbard.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/sync_off.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/sync_on.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_a.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_ad.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_b.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_bd.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_h.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_hd.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_s.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tab_sd.png +0 -0
- package/dist/hwid/hardware_id_generator/documentation/html/tabs.css +1 -0
- package/dist/hwid/hardware_id_generator/documentation/licenses/curl/LICENSE.txt +11 -0
- package/dist/hwid/hardware_id_generator/documentation/licenses/openssl/LICENSE.txt +177 -0
- package/dist/hwid/index.d.ts +12 -0
- package/dist/hwid/index.js +82 -0
- package/dist/hwid/index.js.map +1 -0
- package/dist/hwid/install.d.ts +1 -0
- package/dist/hwid/install.js +49 -0
- package/dist/hwid/install.js.map +1 -0
- package/dist/src/abstract-manager.d.ts +21 -0
- package/dist/src/abstract-manager.js +170 -0
- package/dist/src/abstract-manager.js.map +1 -0
- package/dist/src/api.d.ts +2765 -0
- package/dist/src/api.js +2533 -0
- package/dist/src/api.js.map +1 -0
- package/dist/src/common.d.ts +11 -0
- package/dist/src/common.js +87 -0
- package/dist/src/common.js.map +1 -0
- package/dist/src/floating.d.ts +46 -0
- package/dist/src/floating.js +273 -0
- package/dist/src/floating.js.map +1 -0
- package/dist/src/index.d.ts +4 -0
- package/dist/src/index.js +13 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/license-data.d.ts +52 -0
- package/dist/src/license-data.js +214 -0
- package/dist/src/license-data.js.map +1 -0
- package/dist/src/license-file.d.ts +23 -0
- package/dist/src/license-file.js +238 -0
- package/dist/src/license-file.js.map +1 -0
- package/dist/src/license-manager.d.ts +34 -0
- package/dist/src/license-manager.js +1010 -0
- package/dist/src/license-manager.js.map +1 -0
- package/dist/src/license.d.ts +644 -0
- package/dist/src/license.js +630 -0
- package/dist/src/license.js.map +1 -0
- package/dist/src/offline-activation.d.ts +6 -0
- package/dist/src/offline-activation.js +10 -0
- package/dist/src/offline-activation.js.map +1 -0
- package/dist/src/service.d.ts +21 -0
- package/dist/src/service.js +100 -0
- package/dist/src/service.js.map +1 -0
- package/dist/src/types.d.ts +513 -0
- package/dist/src/types.js +14 -0
- package/dist/src/types.js.map +1 -0
- package/dist/src/version.d.ts +2 -0
- package/dist/src/version.js +5 -0
- package/dist/src/version.js.map +1 -0
- package/dist/src/watchdog.d.ts +18 -0
- package/dist/src/watchdog.js +80 -0
- package/dist/src/watchdog.js.map +1 -0
- package/package.json +45 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
var indexSectionsWithContent =
|
|
2
|
+
{
|
|
3
|
+
0: "bcghilmpt~",
|
|
4
|
+
1: "h",
|
|
5
|
+
2: "bcg~",
|
|
6
|
+
3: "hilm"
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
var indexSectionNames =
|
|
10
|
+
{
|
|
11
|
+
0: "all",
|
|
12
|
+
1: "classes",
|
|
13
|
+
2: "functions",
|
|
14
|
+
3: "pages"
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var indexSectionLabels =
|
|
18
|
+
{
|
|
19
|
+
0: "All",
|
|
20
|
+
1: "Classes",
|
|
21
|
+
2: "Functions",
|
|
22
|
+
3: "Pages"
|
|
23
|
+
};
|
|
24
|
+
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.sm{position:relative;z-index:9999}.sm,.sm ul,.sm li{display:block;list-style:none;margin:0;padding:0;line-height:normal;direction:ltr;text-align:left;-webkit-tap-highlight-color:rgba(0,0,0,0)}.sm-rtl,.sm-rtl ul,.sm-rtl li{direction:rtl;text-align:right}.sm>li>h1,.sm>li>h2,.sm>li>h3,.sm>li>h4,.sm>li>h5,.sm>li>h6{margin:0;padding:0}.sm ul{display:none}.sm li,.sm a{position:relative}.sm a{display:block}.sm a.disabled{cursor:not-allowed}.sm:after{content:"\00a0";display:block;height:0;font:0px/0 serif;clear:both;visibility:hidden;overflow:hidden}.sm,.sm *,.sm *:before,.sm *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.main-menu-btn{position:relative;display:inline-block;width:36px;height:36px;text-indent:36px;margin-left:8px;white-space:nowrap;overflow:hidden;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0)}.main-menu-btn-icon,.main-menu-btn-icon:before,.main-menu-btn-icon:after{position:absolute;top:50%;left:2px;height:2px;width:24px;background:var(--nav-menu-button-color);-webkit-transition:all 0.25s;transition:all 0.25s}.main-menu-btn-icon:before{content:'';top:-7px;left:0}.main-menu-btn-icon:after{content:'';top:7px;left:0}#main-menu-state:checked~.main-menu-btn .main-menu-btn-icon{height:0}#main-menu-state:checked~.main-menu-btn .main-menu-btn-icon:before{top:0;-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}#main-menu-state:checked~.main-menu-btn .main-menu-btn-icon:after{top:0;-webkit-transform:rotate(45deg);transform:rotate(45deg)}#main-menu-state{position:absolute;width:1px;height:1px;margin:-1px;border:0;padding:0;overflow:hidden;clip:rect(1px, 1px, 1px, 1px)}#main-menu-state:not(:checked)~#main-menu{display:none}#main-menu-state:checked~#main-menu{display:block}@media (min-width: 768px){.main-menu-btn{position:absolute;top:-99999px}#main-menu-state:not(:checked)~#main-menu{display:block}}.sm-dox{background-image:var(--nav-gradient-image)}.sm-dox a,.sm-dox a:focus,.sm-dox a:hover,.sm-dox a:active{padding:0px 12px;padding-right:43px;font-family:var(--font-family-nav);font-size:13px;font-weight:bold;line-height:36px;text-decoration:none;text-shadow:var(--nav-text-normal-shadow);color:var(--nav-text-normal-color);outline:none}.sm-dox a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:var(--nav-text-hover-shadow)}.sm-dox a.current{color:#D23600}.sm-dox a.disabled{color:#bbb}.sm-dox a span.sub-arrow{position:absolute;top:50%;margin-top:-14px;left:auto;right:3px;width:28px;height:28px;overflow:hidden;font:bold 12px/28px monospace !important;text-align:center;text-shadow:none;background:var(--nav-menu-toggle-color);border-radius:5px}.sm-dox a span.sub-arrow:before{display:block;content:'+'}.sm-dox a.highlighted span.sub-arrow:before{display:block;content:'-'}.sm-dox>li:first-child>a,.sm-dox>li:first-child>:not(ul) a{border-radius:5px 5px 0 0}.sm-dox>li:last-child>a,.sm-dox>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul{border-radius:0 0 5px 5px}.sm-dox>li:last-child>a.highlighted,.sm-dox>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>a.highlighted,.sm-dox>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>ul>li:last-child>*:not(ul) a.highlighted{border-radius:0}.sm-dox ul{background:var(--nav-menu-background-color)}.sm-dox ul a,.sm-dox ul a:focus,.sm-dox ul a:hover,.sm-dox ul a:active{font-size:12px;border-left:8px solid transparent;line-height:36px;text-shadow:none;background-color:var(--nav-menu-background-color);background-image:none}.sm-dox ul a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:0px 1px 1px #000}.sm-dox ul ul a,.sm-dox ul ul a:hover,.sm-dox ul ul a:focus,.sm-dox ul ul a:active{border-left:16px solid transparent}.sm-dox ul ul ul a,.sm-dox ul ul ul a:hover,.sm-dox ul ul ul a:focus,.sm-dox ul ul ul a:active{border-left:24px solid transparent}.sm-dox ul ul ul ul a,.sm-dox ul ul ul ul a:hover,.sm-dox ul ul ul ul a:focus,.sm-dox ul ul ul ul a:active{border-left:32px solid transparent}.sm-dox ul ul ul ul ul a,.sm-dox ul ul ul ul ul a:hover,.sm-dox ul ul ul ul ul a:focus,.sm-dox ul ul ul ul ul a:active{border-left:40px solid transparent}@media (min-width: 768px){.sm-dox ul{position:absolute;width:12em}.sm-dox li{float:left}.sm-dox.sm-rtl li{float:right}.sm-dox ul li,.sm-dox.sm-rtl ul li,.sm-dox.sm-vertical li{float:none}.sm-dox a{white-space:nowrap}.sm-dox ul a,.sm-dox.sm-vertical a{white-space:normal}.sm-dox .sm-nowrap>li>a,.sm-dox .sm-nowrap>li>:not(ul) a{white-space:nowrap}.sm-dox{padding:0 10px;background-image:var(--nav-gradient-image);line-height:36px}.sm-dox a span.sub-arrow{top:50%;margin-top:-2px;right:12px;width:0;height:0;border-width:4px;border-style:solid dashed dashed dashed;border-color:var(--nav-text-normal-color) transparent transparent transparent;background:transparent;border-radius:0}.sm-dox a,.sm-dox a:focus,.sm-dox a:active,.sm-dox a:hover,.sm-dox a.highlighted{padding:0px 12px;background-image:var(--nav-separator-image);background-repeat:no-repeat;background-position:right;border-radius:0 !important}.sm-dox a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:var(--nav-text-hover-shadow)}.sm-dox a:hover span.sub-arrow{border-color:var(--nav-text-hover-color) transparent transparent transparent}.sm-dox a.has-submenu{padding-right:24px}.sm-dox li{border-top:0}.sm-dox>li>ul:before,.sm-dox>li>ul:after{content:'';position:absolute;top:-18px;left:30px;width:0;height:0;overflow:hidden;border-width:9px;border-style:dashed dashed solid dashed;border-color:transparent transparent #bbb transparent}.sm-dox>li>ul:after{top:-16px;left:31px;border-width:8px;border-color:transparent transparent var(--nav-menu-background-color) transparent}.sm-dox ul{border:1px solid #bbb;padding:5px 0;background:var(--nav-menu-background-color);border-radius:5px !important;box-shadow:0 5px 9px rgba(0,0,0,0.2)}.sm-dox ul a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-color:transparent transparent transparent var(--nav-menu-foreground-color);border-style:dashed dashed dashed solid}.sm-dox ul a,.sm-dox ul a:hover,.sm-dox ul a:focus,.sm-dox ul a:active,.sm-dox ul a.highlighted{color:var(--nav-menu-foreground-color);background-image:none;border:0 !important;color:var(--nav-menu-foreground-color);background-image:none}.sm-dox ul a:hover{background-image:var(--nav-gradient-active-image);background-repeat:repeat-x;color:var(--nav-text-hover-color);text-shadow:var(--nav-text-hover-shadow)}.sm-dox ul a:hover span.sub-arrow{border-color:transparent transparent transparent var(--nav-text-hover-color)}.sm-dox span.scroll-up,.sm-dox span.scroll-down{position:absolute;display:none;visibility:hidden;overflow:hidden;background:var(--nav-menu-background-color);height:36px}.sm-dox span.scroll-up:hover,.sm-dox span.scroll-down:hover{background:#eee}.sm-dox span.scroll-up:hover span.scroll-up-arrow,.sm-dox span.scroll-up:hover span.scroll-down-arrow{border-color:transparent transparent #D23600 transparent}.sm-dox span.scroll-down:hover span.scroll-down-arrow{border-color:#D23600 transparent transparent transparent}.sm-dox span.scroll-up-arrow,.sm-dox span.scroll-down-arrow{position:absolute;top:0;left:50%;margin-left:-6px;width:0;height:0;overflow:hidden;border-width:6px;border-style:dashed dashed solid dashed;border-color:transparent transparent var(--nav-menu-foreground-color) transparent}.sm-dox span.scroll-down-arrow{top:8px;border-style:solid dashed dashed dashed;border-color:var(--nav-menu-foreground-color) transparent transparent transparent}.sm-dox.sm-rtl a.has-submenu{padding-right:12px;padding-left:24px}.sm-dox.sm-rtl a span.sub-arrow{right:auto;left:12px}.sm-dox.sm-rtl.sm-vertical a.has-submenu{padding:10px 20px}.sm-dox.sm-rtl.sm-vertical a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-rtl>li>ul:before{left:auto;right:30px}.sm-dox.sm-rtl>li>ul:after{left:auto;right:31px}.sm-dox.sm-rtl ul a.has-submenu{padding:10px 20px !important}.sm-dox.sm-rtl ul a span.sub-arrow{right:auto;left:8px;border-style:dashed solid dashed dashed;border-color:transparent #555 transparent transparent}.sm-dox.sm-vertical{padding:10px 0;border-radius:5px}.sm-dox.sm-vertical a{padding:10px 20px}.sm-dox.sm-vertical a:hover,.sm-dox.sm-vertical a:focus,.sm-dox.sm-vertical a:active,.sm-dox.sm-vertical a.highlighted{background:#fff}.sm-dox.sm-vertical a.disabled{background-image:var(--nav-gradient-image)}.sm-dox.sm-vertical a span.sub-arrow{right:8px;top:50%;margin-top:-5px;border-width:5px;border-style:dashed dashed dashed solid;border-color:transparent transparent transparent #555}.sm-dox.sm-vertical>li>ul:before,.sm-dox.sm-vertical>li>ul:after{display:none}.sm-dox.sm-vertical ul a{padding:10px 20px}.sm-dox.sm-vertical ul a:hover,.sm-dox.sm-vertical ul a:focus,.sm-dox.sm-vertical ul a:active,.sm-dox.sm-vertical ul a.highlighted{background:#eee}.sm-dox.sm-vertical ul a.disabled{background:var(--nav-menu-background-color)}}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
COPYRIGHT AND PERMISSION NOTICE
|
|
2
|
+
|
|
3
|
+
Copyright (c) 1996 - 2024, Daniel Stenberg, daniel@haxx.se, and many contributors, see the THANKS file.
|
|
4
|
+
|
|
5
|
+
All rights reserved.
|
|
6
|
+
|
|
7
|
+
Permission to use, copy, modify, and distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
10
|
+
|
|
11
|
+
Except as contained in this notice, the name of a copyright holder shall not be used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization of the copyright holder.
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
https://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare enum HardwareIdAlgorithm {
|
|
2
|
+
Default = 0,
|
|
3
|
+
WindowsHardwareFingerprintId = 1,
|
|
4
|
+
WindowsComputerSystemProductId = 2,
|
|
5
|
+
WindowsCryptographyId = 3,
|
|
6
|
+
LinuxMachineId = 4,
|
|
7
|
+
CloudPlatformsId = 5
|
|
8
|
+
}
|
|
9
|
+
declare const getVersion: any;
|
|
10
|
+
declare const getHardwareId: (algorithm: HardwareIdAlgorithm) => string;
|
|
11
|
+
declare const getLogs: () => any;
|
|
12
|
+
export { getVersion, getHardwareId, getLogs, HardwareIdAlgorithm };
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.HardwareIdAlgorithm = exports.getLogs = exports.getHardwareId = exports.getVersion = void 0;
|
|
4
|
+
const os = require('os');
|
|
5
|
+
const path = require('path');
|
|
6
|
+
const koffi = require('koffi');
|
|
7
|
+
var HardwareIdAlgorithm;
|
|
8
|
+
(function (HardwareIdAlgorithm) {
|
|
9
|
+
HardwareIdAlgorithm[HardwareIdAlgorithm["Default"] = 0] = "Default";
|
|
10
|
+
HardwareIdAlgorithm[HardwareIdAlgorithm["WindowsHardwareFingerprintId"] = 1] = "WindowsHardwareFingerprintId";
|
|
11
|
+
HardwareIdAlgorithm[HardwareIdAlgorithm["WindowsComputerSystemProductId"] = 2] = "WindowsComputerSystemProductId";
|
|
12
|
+
HardwareIdAlgorithm[HardwareIdAlgorithm["WindowsCryptographyId"] = 3] = "WindowsCryptographyId";
|
|
13
|
+
HardwareIdAlgorithm[HardwareIdAlgorithm["LinuxMachineId"] = 4] = "LinuxMachineId";
|
|
14
|
+
HardwareIdAlgorithm[HardwareIdAlgorithm["CloudPlatformsId"] = 5] = "CloudPlatformsId";
|
|
15
|
+
})(HardwareIdAlgorithm || (exports.HardwareIdAlgorithm = HardwareIdAlgorithm = {}));
|
|
16
|
+
;
|
|
17
|
+
const platform = os.platform();
|
|
18
|
+
const arch = os.arch();
|
|
19
|
+
let libraryPath;
|
|
20
|
+
switch (platform) {
|
|
21
|
+
case 'darwin':
|
|
22
|
+
libraryPath = './hardware_id_generator/bin/macos/';
|
|
23
|
+
if (arch === 'arm64')
|
|
24
|
+
libraryPath += 'arm64/';
|
|
25
|
+
else if (arch === 'x64')
|
|
26
|
+
libraryPath += 'x86_64/';
|
|
27
|
+
else
|
|
28
|
+
throw new Error(`Unsupported platform or architecture: ${platform} ${arch}`);
|
|
29
|
+
libraryPath += 'libhardware_id_generator.so';
|
|
30
|
+
break;
|
|
31
|
+
case 'win32':
|
|
32
|
+
libraryPath = './hardware_id_generator/bin/windows/';
|
|
33
|
+
if (arch === 'ia32')
|
|
34
|
+
libraryPath += 'x86/';
|
|
35
|
+
else if (arch === 'x64')
|
|
36
|
+
libraryPath += 'x64/';
|
|
37
|
+
else if (arch === 'arm')
|
|
38
|
+
libraryPath += 'arm/';
|
|
39
|
+
else if (arch === 'arm64')
|
|
40
|
+
libraryPath += 'arm64/';
|
|
41
|
+
else
|
|
42
|
+
throw new Error(`Unsupported platform or architecture: ${platform} ${arch}`);
|
|
43
|
+
libraryPath += 'hardware_id_generator.dll';
|
|
44
|
+
break;
|
|
45
|
+
case 'linux':
|
|
46
|
+
libraryPath = './hardware_id_generator/bin/linux/';
|
|
47
|
+
if (arch === 'ia32')
|
|
48
|
+
libraryPath += 'i686/';
|
|
49
|
+
else if (arch === 'x64')
|
|
50
|
+
libraryPath += 'x86_64/';
|
|
51
|
+
else if (arch === 'arm')
|
|
52
|
+
libraryPath += 'arm/';
|
|
53
|
+
else if (arch === 'arm64')
|
|
54
|
+
libraryPath += 'aarch64/';
|
|
55
|
+
else if (arch === 'ppc64')
|
|
56
|
+
libraryPath += 'ppc64le/';
|
|
57
|
+
else if (arch === 'riscv64')
|
|
58
|
+
libraryPath += 'riscv64/';
|
|
59
|
+
else if (arch === 's390x')
|
|
60
|
+
libraryPath += 's390x/';
|
|
61
|
+
else
|
|
62
|
+
throw new Error(`Unsupported platform or architecture: ${platform} ${arch}`);
|
|
63
|
+
libraryPath += `glibc/`;
|
|
64
|
+
libraryPath += 'libhardware_id_generator.so';
|
|
65
|
+
break;
|
|
66
|
+
default:
|
|
67
|
+
throw new Error(`Unsupported platform or architecture: ${platform} ${arch}`);
|
|
68
|
+
}
|
|
69
|
+
const lib = koffi.load(path.resolve(__dirname, libraryPath));
|
|
70
|
+
const getVersion = lib.func('get_version', 'const char *', []);
|
|
71
|
+
exports.getVersion = getVersion;
|
|
72
|
+
const getHardwareId = lib.func('get_hardware_id', 'const char*', ['int']);
|
|
73
|
+
exports.getHardwareId = getHardwareId;
|
|
74
|
+
const _getLogs = lib.func('get_logs', 'const char**', ['_Out_ int*']);
|
|
75
|
+
const getLogs = () => {
|
|
76
|
+
let countBuffer = [0];
|
|
77
|
+
const logsPtr = _getLogs(countBuffer);
|
|
78
|
+
const stringArrayType = koffi.array('string', countBuffer[0]);
|
|
79
|
+
return koffi.decode(logsPtr, stringArrayType);
|
|
80
|
+
};
|
|
81
|
+
exports.getLogs = getLogs;
|
|
82
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../hwid/index.ts"],"names":[],"mappings":";;;AAAA,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAG/B,IAAK,mBAOJ;AAPD,WAAK,mBAAmB;IACpB,mEAAW,CAAA;IACX,6GAAgC,CAAA;IAChC,iHAAkC,CAAA;IAClC,+FAAyB,CAAA;IACzB,iFAAkB,CAAA;IAClB,qFAAoB,CAAA;AACxB,CAAC,EAPI,mBAAmB,mCAAnB,mBAAmB,QAOvB;AAAA,CAAC;AAIF,MAAM,QAAQ,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC;AAI/B,MAAM,IAAI,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;AAGvB,IAAI,WAAW,CAAC;AAChB,QAAO,QAAQ,EAAE,CAAC;IACd,KAAK,QAAQ;QACT,WAAW,GAAG,oCAAoC,CAAC;QACnD,IAAI,IAAI,KAAK,OAAO;YAChB,WAAW,IAAI,QAAQ,CAAA;aACtB,IAAI,IAAI,KAAK,KAAK;YACnB,WAAW,IAAI,SAAS,CAAA;;YAExB,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC;QACjF,WAAW,IAAI,6BAA6B,CAAA;QAC5C,MAAM;IACV,KAAK,OAAO;QACR,WAAW,GAAG,sCAAsC,CAAC;QACrD,IAAI,IAAI,KAAK,MAAM;YACf,WAAW,IAAI,MAAM,CAAA;aACpB,IAAI,IAAI,KAAK,KAAK;YACnB,WAAW,IAAI,MAAM,CAAA;aACpB,IAAI,IAAI,KAAK,KAAK;YACnB,WAAW,IAAI,MAAM,CAAA;aACpB,IAAI,IAAI,KAAK,OAAO;YACrB,WAAW,IAAI,QAAQ,CAAA;;YAEvB,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC;QACjF,WAAW,IAAI,2BAA2B,CAAA;QAC1C,MAAM;IACV,KAAK,OAAO;QACR,WAAW,GAAG,oCAAoC,CAAA;QAClD,IAAI,IAAI,KAAK,MAAM;YACf,WAAW,IAAI,OAAO,CAAA;aACrB,IAAI,IAAI,KAAK,KAAK;YACnB,WAAW,IAAI,SAAS,CAAA;aACvB,IAAI,IAAI,KAAK,KAAK;YACnB,WAAW,IAAI,MAAM,CAAA;aACpB,IAAI,IAAI,KAAK,OAAO;YACrB,WAAW,IAAI,UAAU,CAAA;aACxB,IAAI,IAAI,KAAK,OAAO;YACrB,WAAW,IAAI,UAAU,CAAA;aACxB,IAAI,IAAI,KAAK,SAAS;YACvB,WAAW,IAAI,UAAU,CAAA;aACxB,IAAI,IAAI,KAAK,OAAO;YACrB,WAAW,IAAI,QAAQ,CAAA;;YAEvB,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAA;QAChF,WAAW,IAAI,QAAQ,CAAA;QACvB,WAAW,IAAI,6BAA6B,CAAA;QAC5C,MAAM;IACV;QACI,MAAM,IAAI,KAAK,CAAC,yCAAyC,QAAQ,IAAI,IAAI,EAAE,CAAC,CAAC;AACrF,CAAC;AAGD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,SAAS,EAAE,WAAW,CAAC,CAAC,CAAC;AAE7D,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,CAAC,aAAa,EAAE,cAAc,EAAE,EAAE,CAAC,CAAC;AAe3D,gCAAU;AAdd,MAAM,aAAa,GAA+C,GAAG,CAAC,IAAI,CAAC,iBAAiB,EAAE,aAAa,EAAE,CAAC,KAAK,CAAC,CAAC,CAAA;AAejH,sCAAa;AAdjB,MAAM,QAAQ,GAAG,GAAG,CAAC,IAAI,CAAC,UAAU,EAAE,cAAc,EAAE,CAAC,YAAY,CAAC,CAAC,CAAA;AAErE,MAAM,OAAO,GAAG,GAAG,EAAE;IAEjB,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC;IACtB,MAAM,OAAO,GAAG,QAAQ,CAAC,WAAW,CAAC,CAAC;IAGtC,MAAM,eAAe,GAAG,KAAK,CAAC,KAAK,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;IAC9D,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,EAAE,eAAe,CAAC,CAAC;AAClD,CAAC,CAAC;AAKE,0BAAO"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
const dotenv = require('dotenv');
|
|
12
|
+
const axios = require('axios');
|
|
13
|
+
const unzipper = require('unzipper');
|
|
14
|
+
const fs = require('fs');
|
|
15
|
+
const path = require('path');
|
|
16
|
+
const util = require('util');
|
|
17
|
+
const stream = require('stream');
|
|
18
|
+
const pipeline = util.promisify(stream.pipeline);
|
|
19
|
+
dotenv.config({ path: path.join(__dirname, `../.env.${process.env.NODE_ENV || 'prod'}`) });
|
|
20
|
+
const getLibraries = () => __awaiter(void 0, void 0, void 0, function* () {
|
|
21
|
+
if (fs.existsSync(path.join(__dirname, '/hardware_id_generator'))) {
|
|
22
|
+
fs.rmdirSync(path.join(__dirname, '/hardware_id_generator'), { recursive: true });
|
|
23
|
+
}
|
|
24
|
+
const response = yield axios({
|
|
25
|
+
method: 'get',
|
|
26
|
+
url: process.env.HWID_DOWNLOAD_URL,
|
|
27
|
+
responseType: 'stream',
|
|
28
|
+
});
|
|
29
|
+
const zipName = 'artifacts.zip';
|
|
30
|
+
const zipPath = path.join(__dirname, '/' + zipName);
|
|
31
|
+
yield pipeline(response.data, fs.createWriteStream(zipPath));
|
|
32
|
+
const zip = yield unzipper.Open.file(zipPath);
|
|
33
|
+
yield zip.extract({ path: __dirname });
|
|
34
|
+
fs.unlinkSync(zipPath);
|
|
35
|
+
});
|
|
36
|
+
(() => __awaiter(void 0, void 0, void 0, function* () {
|
|
37
|
+
for (let retry = 0; retry <= 4; retry++) {
|
|
38
|
+
try {
|
|
39
|
+
yield getLibraries();
|
|
40
|
+
break;
|
|
41
|
+
}
|
|
42
|
+
catch (e) {
|
|
43
|
+
yield new Promise(resolve => setTimeout(resolve, 500 * Math.pow(2, retry / 2)));
|
|
44
|
+
console.log('HWID library processing failed', e);
|
|
45
|
+
throw e;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
}))();
|
|
49
|
+
//# sourceMappingURL=install.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"install.js","sourceRoot":"","sources":["../../hwid/install.js"],"names":[],"mappings":";;;;;;;;;;AAAA,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC;AAC/B,MAAM,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;AACrC,MAAM,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;AACzB,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;AAC7B,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;AACjC,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEjD,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,WAAW,OAAO,CAAC,GAAG,CAAC,QAAQ,IAAI,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;AAE3F,MAAM,YAAY,GAAG,GAAS,EAAE;IAE9B,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC,EAAE,CAAC;QAClE,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,wBAAwB,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;IACpF,CAAC;IAED,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC;QAC3B,MAAM,EAAE,KAAK;QACb,GAAG,EAAE,OAAO,CAAC,GAAG,CAAC,iBAAiB;QAClC,YAAY,EAAE,QAAQ;KACvB,CAAC,CAAC;IAEH,MAAM,OAAO,GAAG,eAAe,CAAC;IAChC,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GAAG,GAAG,OAAO,CAAC,CAAC;IACpD,MAAM,QAAQ,CAAC,QAAQ,CAAC,IAAI,EAAE,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC,CAAC;IAE7D,MAAM,GAAG,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9C,MAAM,GAAG,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC;IACvC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;AACzB,CAAC,CAAA,CAAA;AAED,CAAC,GAAS,EAAE;IACV,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,KAAK,IAAI,CAAC,EAAE,KAAK,EAAE,EAAE,CAAC;QACxC,IAAI,CAAC;YACH,MAAM,YAAY,EAAE,CAAC;YACrB,MAAM;QAER,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,MAAM,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,GAAG,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,KAAK,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;YAChF,OAAO,CAAC,GAAG,CAAC,gCAAgC,EAAE,CAAC,CAAC,CAAC;YACjD,MAAM,CAAC,CAAC;QACV,CAAC;IACH,CAAC;AACH,CAAC,CAAA,CAAC,EAAE,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import LicenseAPI from './api';
|
|
2
|
+
import { HardwareIdAlgorithm, LicensespringConfigDef } from './types';
|
|
3
|
+
import LicenseFile from './license-file';
|
|
4
|
+
import License from './license';
|
|
5
|
+
import FloatingAPI from './floating';
|
|
6
|
+
import { Watchdog } from './watchdog';
|
|
7
|
+
export default class AbstractManager {
|
|
8
|
+
protected config: LicensespringConfigDef;
|
|
9
|
+
protected hardwareIDMethod: number;
|
|
10
|
+
protected licenseAPI: LicenseAPI;
|
|
11
|
+
protected floatingAPI: FloatingAPI;
|
|
12
|
+
protected licenseFile: LicenseFile;
|
|
13
|
+
watchdog: Watchdog;
|
|
14
|
+
constructor(config: LicensespringConfigDef, hardwareIDMethod?: number);
|
|
15
|
+
getHardwareID(algorithm?: HardwareIdAlgorithm): string;
|
|
16
|
+
loadLicense(): License;
|
|
17
|
+
isLicenseFileCorrupted(): boolean;
|
|
18
|
+
clearLocalStorage(): void;
|
|
19
|
+
get dataLocation(): string | undefined;
|
|
20
|
+
get licenseFileName(): string | undefined;
|
|
21
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
28
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
+
const api_1 = __importDefault(require("./api"));
|
|
30
|
+
const typia_1 = __importDefault(require("typia"));
|
|
31
|
+
const dotenv = __importStar(require("dotenv"));
|
|
32
|
+
try {
|
|
33
|
+
dotenv.config({ path: `./.env${!!process.env.NODE_ENV ? '.' + process.env.NODE_ENV : ''}` });
|
|
34
|
+
}
|
|
35
|
+
catch (e) {
|
|
36
|
+
console.warn('Configuration Warning: env file not found, skipping.');
|
|
37
|
+
}
|
|
38
|
+
const license_file_1 = __importDefault(require("./license-file"));
|
|
39
|
+
const license_1 = __importDefault(require("./license"));
|
|
40
|
+
const version_1 = __importDefault(require("./version"));
|
|
41
|
+
const floating_1 = __importDefault(require("./floating"));
|
|
42
|
+
const watchdog_1 = require("./watchdog");
|
|
43
|
+
class AbstractManager {
|
|
44
|
+
constructor(config, hardwareIDMethod = 0) {
|
|
45
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
46
|
+
this.config = config;
|
|
47
|
+
this.hardwareIDMethod = hardwareIDMethod;
|
|
48
|
+
const _config = Object.assign(Object.assign({}, config), { apiPath: (_a = config.apiPath) !== null && _a !== void 0 ? _a : process.env.API_PATH, publicKey: (_b = config.publicKey) !== null && _b !== void 0 ? _b : process.env.PUBLIC_KEY, filename: (_c = config.filename) !== null && _c !== void 0 ? _c : process.env.FILENAME, filePath: (_d = config.filePath) !== null && _d !== void 0 ? _d : process.env.FILE_PATH, gracePeriod: (_e = config.gracePeriod) !== null && _e !== void 0 ? _e : 24, fileKey: (_f = config.fileKey) !== null && _f !== void 0 ? _f : process.env.LICENSE_FILE_KEY, isGuardFileEnabled: (_h = (_g = config.isGuardFileEnabled) !== null && _g !== void 0 ? _g : !!process.env.GUARD_FILE_ENABLED) !== null && _h !== void 0 ? _h : false, hardwareIDMethod: (_j = hardwareIDMethod !== null && hardwareIDMethod !== void 0 ? hardwareIDMethod : config.hardwareIDMethod) !== null && _j !== void 0 ? _j : 0, sdkVersion: version_1.default });
|
|
49
|
+
(() => { const $guard = typia_1.default.assert.guard; const $io0 = input => "string" === typeof input.apiKey && "string" === typeof input.sharedKey && "string" === typeof input.apiPath && "string" === typeof input.publicKey && "string" === typeof input.productCode && "string" === typeof input.appName && "string" === typeof input.appVersion && "string" === typeof input.filePath && "string" === typeof input.filename && "number" === typeof input.gracePeriod && "string" === typeof input.fileKey && (undefined === input.airGapKey || "string" === typeof input.airGapKey) && "boolean" === typeof input.isGuardFileEnabled && "number" === typeof input.hardwareIDMethod && "string" === typeof input.sdkVersion; const $ao0 = (input, _path, _exceptionable = true) => ("string" === typeof input.apiKey || $guard(_exceptionable, {
|
|
50
|
+
path: _path + ".apiKey",
|
|
51
|
+
expected: "string",
|
|
52
|
+
value: input.apiKey
|
|
53
|
+
}, _errorFactory)) && ("string" === typeof input.sharedKey || $guard(_exceptionable, {
|
|
54
|
+
path: _path + ".sharedKey",
|
|
55
|
+
expected: "string",
|
|
56
|
+
value: input.sharedKey
|
|
57
|
+
}, _errorFactory)) && ("string" === typeof input.apiPath || $guard(_exceptionable, {
|
|
58
|
+
path: _path + ".apiPath",
|
|
59
|
+
expected: "string",
|
|
60
|
+
value: input.apiPath
|
|
61
|
+
}, _errorFactory)) && ("string" === typeof input.publicKey || $guard(_exceptionable, {
|
|
62
|
+
path: _path + ".publicKey",
|
|
63
|
+
expected: "string",
|
|
64
|
+
value: input.publicKey
|
|
65
|
+
}, _errorFactory)) && ("string" === typeof input.productCode || $guard(_exceptionable, {
|
|
66
|
+
path: _path + ".productCode",
|
|
67
|
+
expected: "string",
|
|
68
|
+
value: input.productCode
|
|
69
|
+
}, _errorFactory)) && ("string" === typeof input.appName || $guard(_exceptionable, {
|
|
70
|
+
path: _path + ".appName",
|
|
71
|
+
expected: "string",
|
|
72
|
+
value: input.appName
|
|
73
|
+
}, _errorFactory)) && ("string" === typeof input.appVersion || $guard(_exceptionable, {
|
|
74
|
+
path: _path + ".appVersion",
|
|
75
|
+
expected: "string",
|
|
76
|
+
value: input.appVersion
|
|
77
|
+
}, _errorFactory)) && ("string" === typeof input.filePath || $guard(_exceptionable, {
|
|
78
|
+
path: _path + ".filePath",
|
|
79
|
+
expected: "string",
|
|
80
|
+
value: input.filePath
|
|
81
|
+
}, _errorFactory)) && ("string" === typeof input.filename || $guard(_exceptionable, {
|
|
82
|
+
path: _path + ".filename",
|
|
83
|
+
expected: "string",
|
|
84
|
+
value: input.filename
|
|
85
|
+
}, _errorFactory)) && ("number" === typeof input.gracePeriod || $guard(_exceptionable, {
|
|
86
|
+
path: _path + ".gracePeriod",
|
|
87
|
+
expected: "number",
|
|
88
|
+
value: input.gracePeriod
|
|
89
|
+
}, _errorFactory)) && ("string" === typeof input.fileKey || $guard(_exceptionable, {
|
|
90
|
+
path: _path + ".fileKey",
|
|
91
|
+
expected: "string",
|
|
92
|
+
value: input.fileKey
|
|
93
|
+
}, _errorFactory)) && (undefined === input.airGapKey || "string" === typeof input.airGapKey || $guard(_exceptionable, {
|
|
94
|
+
path: _path + ".airGapKey",
|
|
95
|
+
expected: "(string | undefined)",
|
|
96
|
+
value: input.airGapKey
|
|
97
|
+
}, _errorFactory)) && ("boolean" === typeof input.isGuardFileEnabled || $guard(_exceptionable, {
|
|
98
|
+
path: _path + ".isGuardFileEnabled",
|
|
99
|
+
expected: "boolean",
|
|
100
|
+
value: input.isGuardFileEnabled
|
|
101
|
+
}, _errorFactory)) && ("number" === typeof input.hardwareIDMethod || $guard(_exceptionable, {
|
|
102
|
+
path: _path + ".hardwareIDMethod",
|
|
103
|
+
expected: "number",
|
|
104
|
+
value: input.hardwareIDMethod
|
|
105
|
+
}, _errorFactory)) && ("string" === typeof input.sdkVersion || $guard(_exceptionable, {
|
|
106
|
+
path: _path + ".sdkVersion",
|
|
107
|
+
expected: "string",
|
|
108
|
+
value: input.sdkVersion
|
|
109
|
+
}, _errorFactory)); const __is = input => "object" === typeof input && null !== input && $io0(input); let _errorFactory; return (input, errorFactory) => {
|
|
110
|
+
if (false === __is(input)) {
|
|
111
|
+
_errorFactory = errorFactory;
|
|
112
|
+
((input, _path, _exceptionable = true) => ("object" === typeof input && null !== input || $guard(true, {
|
|
113
|
+
path: _path + "",
|
|
114
|
+
expected: "LicensespringConfig",
|
|
115
|
+
value: input
|
|
116
|
+
}, _errorFactory)) && $ao0(input, _path + "", true) || $guard(true, {
|
|
117
|
+
path: _path + "",
|
|
118
|
+
expected: "LicensespringConfig",
|
|
119
|
+
value: input
|
|
120
|
+
}, _errorFactory))(input, "$input", true);
|
|
121
|
+
}
|
|
122
|
+
return input;
|
|
123
|
+
}; })()(_config);
|
|
124
|
+
(() => { const $guard = typia_1.default.assert.guard; const __is = input => "number" === typeof input; let _errorFactory; return (input, errorFactory) => {
|
|
125
|
+
if (false === __is(input)) {
|
|
126
|
+
_errorFactory = errorFactory;
|
|
127
|
+
((input, _path, _exceptionable = true) => "number" === typeof input || $guard(true, {
|
|
128
|
+
path: _path + "",
|
|
129
|
+
expected: "number",
|
|
130
|
+
value: input
|
|
131
|
+
}, _errorFactory))(input, "$input", true);
|
|
132
|
+
}
|
|
133
|
+
return input;
|
|
134
|
+
}; })()(hardwareIDMethod);
|
|
135
|
+
this.licenseAPI = new api_1.default(_config);
|
|
136
|
+
this.licenseFile = new license_file_1.default(_config, this.licenseAPI.getHardwareID(hardwareIDMethod));
|
|
137
|
+
this.floatingAPI = new floating_1.default(_config, this.config.productCode);
|
|
138
|
+
this.watchdog = new watchdog_1.Watchdog(new license_1.default(this.config.productCode, this.licenseAPI, this.licenseFile, this.floatingAPI));
|
|
139
|
+
this.config = _config;
|
|
140
|
+
}
|
|
141
|
+
getHardwareID(algorithm) {
|
|
142
|
+
var _a;
|
|
143
|
+
if (algorithm === void 0) { algorithm = (_a = this.config.hardwareIDMethod) !== null && _a !== void 0 ? _a : 0; }
|
|
144
|
+
return this.licenseAPI.getHardwareID(algorithm);
|
|
145
|
+
}
|
|
146
|
+
loadLicense() {
|
|
147
|
+
this.licenseFile.loadLicenseFile();
|
|
148
|
+
return new license_1.default(this.config.productCode, this.licenseAPI, this.licenseFile, this.floatingAPI);
|
|
149
|
+
}
|
|
150
|
+
isLicenseFileCorrupted() {
|
|
151
|
+
try {
|
|
152
|
+
this.licenseFile.loadLicenseFile();
|
|
153
|
+
return false;
|
|
154
|
+
}
|
|
155
|
+
catch (e) {
|
|
156
|
+
return true;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
clearLocalStorage() {
|
|
160
|
+
this.licenseFile.clearStorage();
|
|
161
|
+
}
|
|
162
|
+
get dataLocation() {
|
|
163
|
+
return this.config.filePath;
|
|
164
|
+
}
|
|
165
|
+
get licenseFileName() {
|
|
166
|
+
return this.config.filename;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
exports.default = AbstractManager;
|
|
170
|
+
//# sourceMappingURL=abstract-manager.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abstract-manager.js","sourceRoot":"","sources":["../../src/abstract-manager.ts"],"names":[],"mappings":"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"}
|