Regen samples

This commit is contained in:
Tino Fuhrmann 2020-06-01 02:48:55 +02:00
parent 86daa2b994
commit f8a42315c0
5 changed files with 15 additions and 51 deletions

View File

@ -1,10 +1,11 @@
import {RequestContext} from '../http/http';
// typings for btoa are incorrect
{{#platforms}}
{{#node}}
//@ts-ignore
import * as btoa from "btoa";
{{/node}}
{{/platforms}}
/**
* Base class for all authentication schemes.
*

View File

@ -18,34 +18,32 @@
},
"dependencies": {
{{#frameworks}}
{{#fetch-api}}
{{#platforms}}
{{#node}}
{{#fetch-api}}
{{#platforms}}
{{#node}}
"node-fetch": "^2.6.0",
"@types/node-fetch": "^2.5.7",
{{/node}}
{{#browser}}
{{/node}}
{{#browser}}
"whatwg-fetch": "^3.0.0",
{{/browser}}
{{/platforms}}
{{/fetch-api}}
{{#jquery}}
{{/browser}}
{{/platforms}}
{{/fetch-api}}
{{#jquery}}
"@types/jquery": "^3.3.29",
"jquery": "^3.4.1",
{{/jquery}}
{{/jquery}}
{{/frameworks}}
{{#platforms}}
{{#node}}
{{#node}}
"@types/node": "*",
"form-data": "^2.5.0",
{{/node}}
"btoa": "^1.2.1",
{{/node}}
{{/platforms}}
{{#useRxJS}}
"rxjs": "^6.4.0",
{{/useRxJS}}
{{#node}}
"btoa": "^1.2.1",
{{/node}}
"es6-promise": "^4.2.4",
"url-parse": "^1.4.3"
},

View File

@ -2,7 +2,6 @@ import {RequestContext} from '../http/http';
// typings for btoa are incorrect
//@ts-ignore
import * as btoa from "btoa";
/**
* Base class for all authentication schemes.
*
@ -30,21 +29,6 @@ export abstract class SecurityAuthentication {
}
/**
* Applies no authentication.
*
*/
export class NoAuthentication extends SecurityAuthentication {
public constructor() {
super("_no_auth");
}
public applySecurityAuthentication(_context: RequestContext) {
}
}
/**
* Applies an api key to the request context.
*

View File

@ -1,8 +1,5 @@
import {RequestContext} from '../http/http';
// typings for btoa are incorrect
//@ts-ignore
import * as btoa from "btoa";
/**
* Base class for all authentication schemes.
*
@ -30,21 +27,6 @@ export abstract class SecurityAuthentication {
}
/**
* Applies no authentication.
*
*/
export class NoAuthentication extends SecurityAuthentication {
public constructor() {
super("_no_auth");
}
public applySecurityAuthentication(_context: RequestContext) {
}
}
/**
* Applies an api key to the request context.
*

View File

@ -19,7 +19,6 @@
"dependencies": {
"@types/jquery": "^3.3.29",
"jquery": "^3.4.1",
"btoa": "^1.2.1",
"es6-promise": "^4.2.4",
"url-parse": "^1.4.3"
},