@takaro/apiclient 0.5.2 → 0.6.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/dist/generated/api.d.ts +440 -279
- package/dist/generated/api.d.ts.map +1 -1
- package/dist/generated/api.js +610 -603
- package/dist/generated/api.js.map +1 -1
- package/dist/generated/configuration.js +1 -1
- package/dist/generated/configuration.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/api.ts +1039 -1178
- package/src/generated/configuration.ts +1 -1
|
@@ -117,7 +117,7 @@ export class Configuration {
|
|
|
117
117
|
* @return True if the given MIME is JSON, false otherwise.
|
|
118
118
|
*/
|
|
119
119
|
public isJsonMime(mime: string): boolean {
|
|
120
|
-
const jsonMime: RegExp = new RegExp('^(application
|
|
120
|
+
const jsonMime: RegExp = new RegExp('^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$', 'i');
|
|
121
121
|
return mime !== null && (jsonMime.test(mime) || mime.toLowerCase() === 'application/json-patch+json');
|
|
122
122
|
}
|
|
123
123
|
}
|