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.
@@ -1,3 +1,5 @@
1
+ /*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
2
+
1
3
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */
2
4
 
3
5
  /**
@@ -8899,6 +8899,14 @@ module.exports = require("path");
8899
8899
 
8900
8900
  /***/ }),
8901
8901
 
8902
+ /***/ 6982:
8903
+ /***/ ((module) => {
8904
+
8905
+ "use strict";
8906
+ module.exports = require("crypto");
8907
+
8908
+ /***/ }),
8909
+
8902
8910
  /***/ 7016:
8903
8911
  /***/ ((module) => {
8904
8912
 
@@ -10406,7 +10414,7 @@ DelayedStream.prototype._checkIfMaxDataSizeExceeded = function() {
10406
10414
  /***/ ((module) => {
10407
10415
 
10408
10416
  "use strict";
10409
- 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"]}');
10417
+ 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"]}');
10410
10418
 
10411
10419
  /***/ }),
10412
10420
 
@@ -11232,10 +11240,11 @@ module.exports = _asyncToGenerator, module.exports.__esModule = true, module.exp
11232
11240
  /***/ ((module, __unused_webpack_exports, __webpack_require__) => {
11233
11241
 
11234
11242
  "use strict";
11235
- // Axios v1.7.9 Copyright (c) 2024 Matt Zabriskie and contributors
11243
+ /*! Axios v1.8.2 Copyright (c) 2025 Matt Zabriskie and contributors */
11236
11244
 
11237
11245
 
11238
11246
  const FormData$1 = __webpack_require__(737);
11247
+ const crypto = __webpack_require__(6982);
11239
11248
  const url = __webpack_require__(7016);
11240
11249
  const proxyFromEnv = __webpack_require__(6504);
11241
11250
  const http = __webpack_require__(8611);
@@ -11249,6 +11258,7 @@ const events = __webpack_require__(4434);
11249
11258
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
11250
11259
 
11251
11260
  const FormData__default = /*#__PURE__*/_interopDefaultLegacy(FormData$1);
11261
+ const crypto__default = /*#__PURE__*/_interopDefaultLegacy(crypto);
11252
11262
  const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
11253
11263
  const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
11254
11264
  const http__default = /*#__PURE__*/_interopDefaultLegacy(http);
@@ -11864,26 +11874,6 @@ const toFiniteNumber = (value, defaultValue) => {
11864
11874
  return value != null && Number.isFinite(value = +value) ? value : defaultValue;
11865
11875
  };
11866
11876
 
11867
- const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
11868
-
11869
- const DIGIT = '0123456789';
11870
-
11871
- const ALPHABET = {
11872
- DIGIT,
11873
- ALPHA,
11874
- ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
11875
- };
11876
-
11877
- const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
11878
- let str = '';
11879
- const {length} = alphabet;
11880
- while (size--) {
11881
- str += alphabet[Math.random() * length|0];
11882
- }
11883
-
11884
- return str;
11885
- };
11886
-
11887
11877
  /**
11888
11878
  * If the thing is a FormData object, return true, otherwise return false.
11889
11879
  *
@@ -12011,8 +12001,6 @@ const utils$1 = {
12011
12001
  findKey,
12012
12002
  global: _global,
12013
12003
  isContextDefined,
12014
- ALPHABET,
12015
- generateString,
12016
12004
  isSpecCompliantForm,
12017
12005
  toJSONObject,
12018
12006
  isAsyncFn,
@@ -12524,6 +12512,29 @@ const transitionalDefaults = {
12524
12512
 
12525
12513
  const URLSearchParams = url__default["default"].URLSearchParams;
12526
12514
 
12515
+ const ALPHA = 'abcdefghijklmnopqrstuvwxyz';
12516
+
12517
+ const DIGIT = '0123456789';
12518
+
12519
+ const ALPHABET = {
12520
+ DIGIT,
12521
+ ALPHA,
12522
+ ALPHA_DIGIT: ALPHA + ALPHA.toUpperCase() + DIGIT
12523
+ };
12524
+
12525
+ const generateString = (size = 16, alphabet = ALPHABET.ALPHA_DIGIT) => {
12526
+ let str = '';
12527
+ const {length} = alphabet;
12528
+ const randomValues = new Uint32Array(size);
12529
+ crypto__default["default"].randomFillSync(randomValues);
12530
+ for (let i = 0; i < size; i++) {
12531
+ str += alphabet[randomValues[i] % length];
12532
+ }
12533
+
12534
+ return str;
12535
+ };
12536
+
12537
+
12527
12538
  const platform$1 = {
12528
12539
  isNode: true,
12529
12540
  classes: {
@@ -12531,6 +12542,8 @@ const platform$1 = {
12531
12542
  FormData: FormData__default["default"],
12532
12543
  Blob: typeof Blob !== 'undefined' && Blob || null
12533
12544
  },
12545
+ ALPHABET,
12546
+ generateString,
12534
12547
  protocols: [ 'http', 'https', 'file', 'data' ]
12535
12548
  };
12536
12549
 
@@ -13305,14 +13318,15 @@ function combineURLs(baseURL, relativeURL) {
13305
13318
  *
13306
13319
  * @returns {string} The combined full path
13307
13320
  */
13308
- function buildFullPath(baseURL, requestedURL) {
13309
- if (baseURL && !isAbsoluteURL(requestedURL)) {
13321
+ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
13322
+ let isRelativeUrl = !isAbsoluteURL(requestedURL);
13323
+ if (baseURL && isRelativeUrl || allowAbsoluteUrls == false) {
13310
13324
  return combineURLs(baseURL, requestedURL);
13311
13325
  }
13312
13326
  return requestedURL;
13313
13327
  }
13314
13328
 
13315
- const VERSION = "1.7.9";
13329
+ const VERSION = "1.8.2";
13316
13330
 
13317
13331
  function parseProtocol(url) {
13318
13332
  const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -13522,7 +13536,7 @@ const readBlob = async function* (blob) {
13522
13536
 
13523
13537
  const readBlob$1 = readBlob;
13524
13538
 
13525
- const BOUNDARY_ALPHABET = utils$1.ALPHABET.ALPHA_DIGIT + '-_';
13539
+ const BOUNDARY_ALPHABET = platform.ALPHABET.ALPHA_DIGIT + '-_';
13526
13540
 
13527
13541
  const textEncoder = typeof TextEncoder === 'function' ? new TextEncoder() : new util__default["default"].TextEncoder();
13528
13542
 
@@ -13582,7 +13596,7 @@ const formDataToStream = (form, headersHandler, options) => {
13582
13596
  const {
13583
13597
  tag = 'form-data-boundary',
13584
13598
  size = 25,
13585
- boundary = tag + '-' + utils$1.generateString(size, BOUNDARY_ALPHABET)
13599
+ boundary = tag + '-' + platform.generateString(size, BOUNDARY_ALPHABET)
13586
13600
  } = options || {};
13587
13601
 
13588
13602
  if(!utils$1.isFormData(form)) {
@@ -14007,7 +14021,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
14007
14021
  }
14008
14022
 
14009
14023
  // Parse url
14010
- const fullPath = buildFullPath(config.baseURL, config.url);
14024
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
14011
14025
  const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
14012
14026
  const protocol = parsed.protocol || supportedProtocols[0];
14013
14027
 
@@ -15538,6 +15552,13 @@ class Axios {
15538
15552
  }
15539
15553
  }
15540
15554
 
15555
+ // Set config.allowAbsoluteUrls
15556
+ if (config.allowAbsoluteUrls !== undefined) ; else if (this.defaults.allowAbsoluteUrls !== undefined) {
15557
+ config.allowAbsoluteUrls = this.defaults.allowAbsoluteUrls;
15558
+ } else {
15559
+ config.allowAbsoluteUrls = true;
15560
+ }
15561
+
15541
15562
  validator.assertOptions(config, {
15542
15563
  baseUrl: validators.spelling('baseURL'),
15543
15564
  withXsrfToken: validators.spelling('withXSRFToken')
@@ -15633,7 +15654,7 @@ class Axios {
15633
15654
 
15634
15655
  getUri(config) {
15635
15656
  config = mergeConfig(this.defaults, config);
15636
- const fullPath = buildFullPath(config.baseURL, config.url);
15657
+ const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
15637
15658
  return buildURL(fullPath, config.params, config.paramsSerializer);
15638
15659
  }
15639
15660
  }