openapi_iplocation 1.0.0 → 1.2.0

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 CHANGED
@@ -4,9 +4,9 @@ OpenapiIplocation - JavaScript client for openapi_iplocation
4
4
  OpenAPI v3 specification and a set of generated API clients for iplocation.net
5
5
  This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
6
6
 
7
- - API version: 1.0.0
8
- - Package version: 1.0.0
9
- - Generator version: 7.6.0
7
+ - API version: 1.2.0
8
+ - Package version: 1.2.0
9
+ - Generator version: 7.18.0
10
10
  - Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
11
11
  For more information, please visit [https://github.com/oapicf/openapi-iplocation](https://github.com/oapicf/openapi-iplocation)
12
12
 
package/dist/ApiClient.js CHANGED
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports["default"] = void 0;
7
7
  var _superagent = _interopRequireDefault(require("superagent"));
8
- var _querystring = _interopRequireDefault(require("querystring"));
9
8
  function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
10
9
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
11
10
  function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
@@ -16,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
16
15
  * iplocation.net API
17
16
  * OpenAPI v3 specification and a set of generated API clients for iplocation.net
18
17
  *
19
- * The version of the OpenAPI document: 1.0.0
18
+ * The version of the OpenAPI document: 1.2.0
20
19
  * Contact: blah+oapicf@cliffano.com
21
20
  *
22
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +25,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
25
  */
27
26
  /**
28
27
  * @module ApiClient
29
- * @version 1.0.0
28
+ * @version 1.2.0
30
29
  */
31
30
  /**
32
31
  * Manages low level client-server communications, parameter marshalling, etc. There should not be any need for an
@@ -58,12 +57,12 @@ var ApiClient = /*#__PURE__*/function () {
58
57
  this.authentications = {};
59
58
 
60
59
  /**
61
- * The default HTTP headers to be included for all API calls.
62
- * @type {Array.<String>}
63
- * @default {}
64
- */
60
+ * The default HTTP headers to be included for all API calls.
61
+ * @type {Array.<String>}
62
+ * @default {}
63
+ */
65
64
  this.defaultHeaders = {
66
- 'User-Agent': 'OpenAPI-Generator/1.0.0/Javascript'
65
+ 'User-Agent': 'OpenAPI-Generator/1.2.0/Javascript'
67
66
  };
68
67
 
69
68
  /**
@@ -82,10 +81,10 @@ var ApiClient = /*#__PURE__*/function () {
82
81
  this.cache = true;
83
82
 
84
83
  /**
85
- * If set to true, the client will save the cookies from each server
86
- * response, and return them in the next request.
87
- * @default false
88
- */
84
+ * If set to true, the client will save the cookies from each server
85
+ * response, and return them in the next request.
86
+ * @default false
87
+ */
89
88
  this.enableCookies = false;
90
89
 
91
90
  /*
@@ -440,7 +439,10 @@ var ApiClient = /*#__PURE__*/function () {
440
439
  }
441
440
  }
442
441
  if (contentType === 'application/x-www-form-urlencoded') {
443
- request.send(_querystring["default"].stringify(this.normalizeParams(formParams)));
442
+ var normalizedParams = this.normalizeParams(formParams);
443
+ var urlSearchParams = new URLSearchParams(normalizedParams);
444
+ var queryString = urlSearchParams.toString();
445
+ request.send(queryString);
444
446
  } else if (contentType == 'multipart/form-data') {
445
447
  var _formParams = this.normalizeParams(formParams);
446
448
  for (var key in _formParams) {
@@ -17,7 +17,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
17
17
  * iplocation.net API
18
18
  * OpenAPI v3 specification and a set of generated API clients for iplocation.net
19
19
  *
20
- * The version of the OpenAPI document: 1.0.0
20
+ * The version of the OpenAPI document: 1.2.0
21
21
  * Contact: blah+oapicf@cliffano.com
22
22
  *
23
23
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -28,7 +28,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
28
28
  /**
29
29
  * Default service.
30
30
  * @module api/DefaultApi
31
- * @version 1.0.0
31
+ * @version 1.2.0
32
32
  */
33
33
  var DefaultApi = exports["default"] = /*#__PURE__*/function () {
34
34
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * iplocation.net API
16
16
  * OpenAPI v3 specification and a set of generated API clients for iplocation.net
17
17
  *
18
- * The version of the OpenAPI document: 1.0.0
18
+ * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: blah+oapicf@cliffano.com
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Get200Response model module.
28
28
  * @module model/Get200Response
29
- * @version 1.0.0
29
+ * @version 1.2.0
30
30
  */
31
31
  var Get200Response = /*#__PURE__*/function () {
32
32
  /**
@@ -15,7 +15,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
15
15
  * iplocation.net API
16
16
  * OpenAPI v3 specification and a set of generated API clients for iplocation.net
17
17
  *
18
- * The version of the OpenAPI document: 1.0.0
18
+ * The version of the OpenAPI document: 1.2.0
19
19
  * Contact: blah+oapicf@cliffano.com
20
20
  *
21
21
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,7 +26,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
26
26
  /**
27
27
  * The Get400Response model module.
28
28
  * @module model/Get400Response
29
- * @version 1.0.0
29
+ * @version 1.2.0
30
30
  */
31
31
  var Get400Response = /*#__PURE__*/function () {
32
32
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openapi_iplocation",
3
- "version": "1.0.0",
3
+ "version": "1.2.0",
4
4
  "description": "OpenAPI v3 specification and a set of generated API clients for iplocation.net",
5
5
  "license": "MIT",
6
6
  "main": "dist/index.js",