netlicensing-client 1.2.38 → 1.2.40
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/dist/netlicensing-client.js +17 -28
- package/dist/netlicensing-client.min.js +1 -1
- package/dist/netlicensing-client.min.js.LICENSE.txt +2 -0
- package/dist/netlicensing-client.node.js +188 -171
- package/dist/netlicensing-client.node.min.js +1 -1
- package/dist/netlicensing-client.node.min.js.LICENSE.txt +2 -0
- package/package.json +2 -2
|
@@ -4748,6 +4748,9 @@ var _default = exports["default"] = {
|
|
|
4748
4748
|
},
|
|
4749
4749
|
NodeLocked: {
|
|
4750
4750
|
NAME: 'NodeLocked'
|
|
4751
|
+
},
|
|
4752
|
+
Discount: {
|
|
4753
|
+
NAME: 'Discount'
|
|
4751
4754
|
}
|
|
4752
4755
|
},
|
|
4753
4756
|
Vendor: {
|
|
@@ -5059,7 +5062,7 @@ var _default = exports["default"] = {
|
|
|
5059
5062
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
5060
5063
|
|
|
5061
5064
|
"use strict";
|
|
5062
|
-
|
|
5065
|
+
/*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
|
|
5063
5066
|
|
|
5064
5067
|
|
|
5065
5068
|
function bind(fn, thisArg) {
|
|
@@ -5668,26 +5671,6 @@ const toFiniteNumber = (value, defaultValue) => {
|
|
|
5668
5671
|
return value != null && Number.isFinite(value = +value) ? value : defaultValue;
|
|
5669
5672
|
};
|
|
5670
5673
|
|
|
5671
|
-
const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
|
|
5672
|
-
|
|
5673
|
-
const DIGIT = '0123456789';
|
|
5674
|
-
|
|
5675
|
-
const ALPHABET = {
|
|
5676
|
-
DIGIT,
|
|
5677
|
-
ALPHA,
|
|
5678
|
-
ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
|
|
5679
|
-
};
|
|
5680
|
-
|
|
5681
|
-
const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
|
|
5682
|
-
let str = '';
|
|
5683
|
-
const {length} = alphabet;
|
|
5684
|
-
while (size--) {
|
|
5685
|
-
str += alphabet[Math.random() * length|0];
|
|
5686
|
-
}
|
|
5687
|
-
|
|
5688
|
-
return str;
|
|
5689
|
-
};
|
|
5690
|
-
|
|
5691
5674
|
/**
|
|
5692
5675
|
* If the thing is a FormData object, return true, otherwise return false.
|
|
5693
5676
|
*
|
|
@@ -5815,8 +5798,6 @@ var utils$1 = {
|
|
|
5815
5798
|
findKey,
|
|
5816
5799
|
global: _global,
|
|
5817
5800
|
isContextDefined,
|
|
5818
|
-
ALPHABET,
|
|
5819
|
-
generateString,
|
|
5820
5801
|
isSpecCompliantForm,
|
|
5821
5802
|
toJSONObject,
|
|
5822
5803
|
isAsyncFn,
|
|
@@ -7309,8 +7290,9 @@ function combineURLs(baseURL, relativeURL) {
|
|
|
7309
7290
|
*
|
|
7310
7291
|
* @returns {string} The combined full path
|
|
7311
7292
|
*/
|
|
7312
|
-
function buildFullPath(baseURL, requestedURL) {
|
|
7313
|
-
|
|
7293
|
+
function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
|
|
7294
|
+
let isRelativeUrl = !isAbsoluteURL(requestedURL);
|
|
7295
|
+
if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
|
|
7314
7296
|
return combineURLs(baseURL, requestedURL);
|
|
7315
7297
|
}
|
|
7316
7298
|
return requestedURL;
|
|
@@ -8150,7 +8132,7 @@ function dispatchRequest(config) {
|
|
|
8150
8132
|
});
|
|
8151
8133
|
}
|
|
8152
8134
|
|
|
8153
|
-
const VERSION = "1.
|
|
8135
|
+
const VERSION = "1.8.2";
|
|
8154
8136
|
|
|
8155
8137
|
const validators$1 = {};
|
|
8156
8138
|
|
|
@@ -8335,6 +8317,13 @@ class Axios {
|
|
|
8335
8317
|
}
|
|
8336
8318
|
}
|
|
8337
8319
|
|
|
8320
|
+
// Set config.allowAbsoluteUrls
|
|
8321
|
+
if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
|
|
8322
|
+
config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
|
|
8323
|
+
} else {
|
|
8324
|
+
config.allowAbsoluteUrls = true;
|
|
8325
|
+
}
|
|
8326
|
+
|
|
8338
8327
|
validator.assertOptions(config, {
|
|
8339
8328
|
baseUrl: validators.spelling('baseURL'),
|
|
8340
8329
|
withXsrfToken: validators.spelling('withXSRFToken')
|
|
@@ -8430,7 +8419,7 @@ class Axios {
|
|
|
8430
8419
|
|
|
8431
8420
|
getUri(config) {
|
|
8432
8421
|
config = mergeConfig(this.defaults, config);
|
|
8433
|
-
const fullPath = buildFullPath(config.baseURL, config.url);
|
|
8422
|
+
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
|
|
8434
8423
|
return buildURL(fullPath, config.params, config.paramsSerializer);
|
|
8435
8424
|
}
|
|
8436
8425
|
}
|
|
@@ -9790,7 +9779,7 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
|
|
|
9790
9779
|
/***/ ((module) => {
|
|
9791
9780
|
|
|
9792
9781
|
"use strict";
|
|
9793
|
-
module.exports = /*#__PURE__*/JSON.parse('{"name":"netlicensing-client","version":"1.2.
|
|
9782
|
+
module.exports = /*#__PURE__*/JSON.parse('{"name":"netlicensing-client","version":"1.2.39","description":"JavaScript Wrapper for Labs64 NetLicensing RESTful API","keywords":["labs64","netlicensing","licensing","licensing-as-a-service","license","license-management","software-license","client","restful","restful-api","javascript","wrapper","api","client"],"license":"Apache-2.0","author":"Labs64 GmbH","homepage":"https://netlicensing.io","repository":{"type":"git","url":"https://github.com/Labs64/NetLicensingClient-javascript"},"bugs":{"url":"https://github.com/Labs64/NetLicensingClient-javascript/issues"},"contributors":[{"name":"Ready Brown","email":"ready.brown@hotmail.de","url":"https://github.com/r-brown"},{"name":"Viacheslav Rudkovskiy","email":"viachaslau.rudkovski@labs64.de","url":"https://github.com/v-rudkovskiy"},{"name":"Andrei Yushkevich","email":"yushkevich@me.com","url":"https://github.com/yushkevich"}],"main":"dist/netlicensing-client.js","files":["dist"],"scripts":{"build":"node build/build.cjs","release":"npm run build && npm run test","dev":"webpack --progress --watch --config build/webpack.dev.conf.cjs","test":"karma start test/karma.conf.js --single-run","test-mocha":"webpack --config build/webpack.test.conf.cjs","test-for-travis":"karma start test/karma.conf.js --single-run --browsers Firefox","lint":"eslint --ext .js,.vue src test"},"dependencies":{"axios":"^1.8.2","btoa":"^1.2.1","es6-promise":"^4.2.8"},"devDependencies":{"@babel/core":"^7.26.9","@babel/plugin-proposal-class-properties":"^7.16.7","@babel/plugin-proposal-decorators":"^7.25.9","@babel/plugin-proposal-export-namespace-from":"^7.16.7","@babel/plugin-proposal-function-sent":"^7.25.9","@babel/plugin-proposal-json-strings":"^7.16.7","@babel/plugin-proposal-numeric-separator":"^7.16.7","@babel/plugin-proposal-throw-expressions":"^7.25.9","@babel/plugin-syntax-dynamic-import":"^7.8.3","@babel/plugin-syntax-import-meta":"^7.10.4","@babel/plugin-transform-modules-commonjs":"^7.26.3","@babel/plugin-transform-runtime":"^7.26.9","@babel/preset-env":"^7.26.9","@babel/runtime":"^7.26.9","axios-mock-adapter":"^2.1.0","babel-eslint":"^10.1.0","babel-loader":"^9.2.1","chalk":"^4.1.2","eslint":"^8.2.0","eslint-config-airbnb-base":"^15.0.0","eslint-friendly-formatter":"^4.0.1","eslint-import-resolver-webpack":"^0.13.10","eslint-plugin-import":"^2.31.0","eslint-plugin-jasmine":"^4.2.2","eslint-webpack-plugin":"^4.2.0","faker":"^5.5.3","is-docker":"^2.2.1","jasmine":"^4.0.2","jasmine-core":"^4.0.1","karma":"^6.3.17","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.2","karma-jasmine":"^4.0.2","karma-sourcemap-loader":"^0.3.7","karma-spec-reporter":"0.0.33","karma-webpack":"^5.0.0","lodash":"^4.17.21","ora":"^5.4.1","rimraf":"^3.0.2","terser-webpack-plugin":"^5.3.1","webpack":"^5.76.0","webpack-cli":"^5.1.1","webpack-merge":"^5.8.0"},"engines":{"node":">= 14.0.0","npm":">= 8.0.0"},"browserslist":["> 1%","last 2 versions","not ie <= 10"]}');
|
|
9794
9783
|
|
|
9795
9784
|
/***/ }),
|
|
9796
9785
|
|