@licensespring/node-sdk 1.1.0-alpha → 1.1.12-alpha
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 +4 -4
- package/dist/package.json +1 -1
- package/dist/src/service.js +2 -1
- package/dist/src/service.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -123,7 +123,7 @@ const offlineActivationPayload = licenseAPI.createOfflineActivationPayload({
|
|
|
123
123
|
nodeFs.writeFileSync('activate_offline.req', offlineActivationPayload);
|
|
124
124
|
```
|
|
125
125
|
|
|
126
|
-
This file is then uploaded to the [https://docs.licensespring.com/portals/offline
|
|
126
|
+
This file is then uploaded to the [Offline Portal](https://docs.licensespring.com/portals/offline). If the file is valid, the system will activate the license. This will also generate an `ls_activation.lic` file, which you can forward to your offline application and verify it locally.
|
|
127
127
|
|
|
128
128
|
The contents of this file are verified using `checkOfflineActivationResponse`, for example:
|
|
129
129
|
|
|
@@ -156,7 +156,7 @@ const offlineDectivationPayload = licenseAPI.createOfflineDectivationPayload({
|
|
|
156
156
|
nodeFs.writeFileSync('deactivate_offline.req', offlineDectivationPayload);
|
|
157
157
|
```
|
|
158
158
|
|
|
159
|
-
This file is then uploaded to the [https://docs.licensespring.com/portals/offline
|
|
159
|
+
This file is then uploaded to the [Offline Portal](https://docs.licensespring.com/portals/offline). If the file is valid, the system will deactivate the license.
|
|
160
160
|
|
|
161
161
|
#### Get Trial License Key
|
|
162
162
|
|
|
@@ -411,7 +411,7 @@ const offlineActivationPayload = licenseManager.createOfflineActivationPayload({
|
|
|
411
411
|
nodeFs.writeFileSync('activate_offline.req', offlineActivationPayload);
|
|
412
412
|
```
|
|
413
413
|
|
|
414
|
-
This file is then uploaded to the [https://docs.licensespring.com/portals/offline
|
|
414
|
+
This file is then uploaded to the [Offline Portal](https://docs.licensespring.com/portals/offline). If the file is valid, the system will activate the license. This will also generate an `ls_activation.lic` file, which you can forward to your offline application.
|
|
415
415
|
|
|
416
416
|
You can then pass the contents of this `ls_activation.lic` file to `activateOffline` which will verify the file response and (if valid) apply the activation locally. For example:
|
|
417
417
|
|
|
@@ -439,7 +439,7 @@ const offlineDectivationPayload = licenseManager.createOfflineDectivationPayload
|
|
|
439
439
|
nodeFs.writeFileSync('deactivate_offline.req', offlineDectivationPayload);
|
|
440
440
|
```
|
|
441
441
|
|
|
442
|
-
This file is then uploaded to the [https://docs.licensespring.com/portals/offline
|
|
442
|
+
This file is then uploaded to the [Offline Portal](https://docs.licensespring.com/portals/offline). If the file is valid, the system will deactivate the license.
|
|
443
443
|
|
|
444
444
|
To apply the license deactivation locally, you can call `licenseManager.deactivateOffline()`.
|
|
445
445
|
|
package/dist/package.json
CHANGED
package/dist/src/service.js
CHANGED
|
@@ -27,8 +27,9 @@ class RequestService {
|
|
|
27
27
|
return `${this.config.apiPath.replace(/\/+$/, '')}/${url}`;
|
|
28
28
|
}
|
|
29
29
|
createAxiosObject(requestObject) {
|
|
30
|
+
var _a;
|
|
30
31
|
if (this.config.proxy) {
|
|
31
|
-
const url = new URL(this.config.proxy.host);
|
|
32
|
+
const url = new URL(`${(_a = this.config.proxy.protocol) !== null && _a !== void 0 ? _a : 'https'}://${this.config.proxy.host}`);
|
|
32
33
|
if (this.config.proxy.port)
|
|
33
34
|
url.port = String(this.config.proxy.port);
|
|
34
35
|
if (this.config.proxy.auth) {
|
package/dist/src/service.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../src/service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,kDAA8D;AAC9D,yDAAoD;AACpD,6CAAyC;AAEzC,MAAM,cAAc;IAElB,YAA4B,MAAwF;QAAxF,WAAM,GAAN,MAAM,CAAkF;QAClH,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAEM,QAAQ,CAAC,KAA8B;QAC5C,IAAI,CAAC,MAAM,CAAC,KAAK,GAAG,KAAK,aA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