netlicensing-client 1.2.38 → 1.2.39

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.
@@ -5059,7 +5059,7 @@ var _default = exports["default"] = {
5059
5059
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
5060
5060
 
5061
5061
  "use strict";
5062
- // Axios v1.7.9 Copyright (c) 2024 Matt Zabriskie and contributors
5062
+ /*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
5063
5063
 
5064
5064
 
5065
5065
  function bind(fn, thisArg) {
@@ -5668,26 +5668,6 @@ const toFiniteNumber = (value, defaultValue) => {
5668
5668
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
5669
5669
  };
5670
5670
 
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
5671
  /**
5692
5672
  * If the thing is a FormData object, return true, otherwise return false.
5693
5673
  *
@@ -5815,8 +5795,6 @@ var utils$1 = {
5815
5795
  findKey,
5816
5796
  global: _global,
5817
5797
  isContextDefined,
5818
- ALPHABET,
5819
- generateString,
5820
5798
  isSpecCompliantForm,
5821
5799
  toJSONObject,
5822
5800
  isAsyncFn,
@@ -7309,8 +7287,9 @@ function combineURLs(baseURL, relativeURL) {
7309
7287
  *
7310
7288
  * @returns {string} The combined full path
7311
7289
  */
7312
- function buildFullPath(baseURL, requestedURL) {
7313
- if (baseURL && !isAbsoluteURL(requestedURL)) {
7290
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
7291
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
7292
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
7314
7293
  return combineURLs(baseURL, requestedURL);
7315
7294
  }
7316
7295
  return requestedURL;
@@ -8150,7 +8129,7 @@ function dispatchRequest(config) {
8150
8129
  });
8151
8130
  }
8152
8131
 
8153
- const VERSION = "1.7.9";
8132
+ const VERSION = "1.8.2";
8154
8133
 
8155
8134
  const validators$1 = {};
8156
8135
 
@@ -8335,6 +8314,13 @@ class Axios {
8335
8314
  }
8336
8315
  }
8337
8316
 
8317
+ // Set config.allowAbsoluteUrls
8318
+ if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
8319
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
8320
+ } else {
8321
+ config.allowAbsoluteUrls = true;
8322
+ }
8323
+
8338
8324
  validator.assertOptions(config, {
8339
8325
  baseUrl: validators.spelling('baseURL'),
8340
8326
  withXsrfToken: validators.spelling('withXSRFToken')
@@ -8430,7 +8416,7 @@ class Axios {
8430
8416
 
8431
8417
  getUri(config) {
8432
8418
  config = mergeConfig(this.defaults, config);
8433
- const fullPath = buildFullPath(config.baseURL, config.url);
8419
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
8434
8420
  return buildURL(fullPath, config.params, config.paramsSerializer);
8435
8421
  }
8436
8422
  }
@@ -9790,7 +9776,7 @@ module.exports = _nonIterableRest, module.exports.__esModule = true, module.expo
9790
9776
  /***/ ((module) => {
9791
9777
 
9792
9778
  "use strict";
9793
- module.exports = /*#__PURE__*/JSON.parse('{"name":"netlicensing-client","version":"1.2.37","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.7.9","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"]}');
9779
+ module.exports = /*#__PURE__*/JSON.parse('{"name":"netlicensing-client","version":"1.2.38","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
9780
 
9795
9781
  /***/ }),
9796
9782