airbrowser-client 1.14.0 → 1.15.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/.openapi-generator/VERSION +1 -1
- package/README.md +2 -2
- package/configuration.ts +2 -2
- package/dist/configuration.js +2 -2
- package/dist/esm/configuration.js +2 -2
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
7.
|
|
1
|
+
7.22.0-SNAPSHOT
|
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
## airbrowser-client@1.
|
|
1
|
+
## airbrowser-client@1.15.0
|
|
2
2
|
|
|
3
3
|
This generator creates TypeScript/JavaScript client that utilizes [axios](https://github.com/axios/axios). The generated Node module can be used in the following environments:
|
|
4
4
|
|
|
@@ -36,7 +36,7 @@ navigate to the folder of your consuming project and run one of the following co
|
|
|
36
36
|
_published:_
|
|
37
37
|
|
|
38
38
|
```
|
|
39
|
-
npm install airbrowser-client@1.
|
|
39
|
+
npm install airbrowser-client@1.15.0 --save
|
|
40
40
|
```
|
|
41
41
|
|
|
42
42
|
_unPublished (not recommended):_
|
package/configuration.ts
CHANGED
|
@@ -115,7 +115,7 @@ export class Configuration {
|
|
|
115
115
|
* @return True if the given MIME is JSON, false otherwise.
|
|
116
116
|
*/
|
|
117
117
|
public isJsonMime(mime: string): boolean {
|
|
118
|
-
const jsonMime: RegExp =
|
|
119
|
-
return mime !== null &&
|
|
118
|
+
const jsonMime: RegExp = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
119
|
+
return mime !== null && jsonMime.test(mime);
|
|
120
120
|
}
|
|
121
121
|
}
|
package/dist/configuration.js
CHANGED
|
@@ -37,8 +37,8 @@ class Configuration {
|
|
|
37
37
|
* @return True if the given MIME is JSON, false otherwise.
|
|
38
38
|
*/
|
|
39
39
|
isJsonMime(mime) {
|
|
40
|
-
const jsonMime =
|
|
41
|
-
return mime !== null &&
|
|
40
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
41
|
+
return mime !== null && jsonMime.test(mime);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
exports.Configuration = Configuration;
|
|
@@ -34,7 +34,7 @@ export class Configuration {
|
|
|
34
34
|
* @return True if the given MIME is JSON, false otherwise.
|
|
35
35
|
*/
|
|
36
36
|
isJsonMime(mime) {
|
|
37
|
-
const jsonMime =
|
|
38
|
-
return mime !== null &&
|
|
37
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
38
|
+
return mime !== null && jsonMime.test(mime);
|
|
39
39
|
}
|
|
40
40
|
}
|