fix(core): update

This commit is contained in:
Philipp Kunz 2020-07-04 14:50:24 +00:00
parent e91131b7ae
commit d73a144e8f
6 changed files with 3710 additions and 291 deletions

3950
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,16 +12,16 @@
"build": "(tsbuild --web)" "build": "(tsbuild --web)"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.0.22", "@gitzone/tsbuild": "^2.1.24",
"@gitzone/tstest": "^1.0.15", "@gitzone/tstest": "^1.0.33",
"@pushrocks/tapbundle": "^3.0.7", "@pushrocks/tapbundle": "^3.0.7",
"@types/node": "^13.9.3", "@types/node": "^14.0.14",
"tslint": "^6.1.0", "tslint": "^6.1.2",
"tslint-config-prettier": "^1.15.0" "tslint-config-prettier": "^1.15.0"
}, },
"dependencies": { "dependencies": {
"@apiglobal/typedrequest": "^1.0.28", "@apiglobal/typedrequest": "^1.0.38",
"@tsclass/tsclass": "^3.0.16" "@tsclass/tsclass": "^3.0.18"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",
@ -35,4 +35,4 @@
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
] ]
} }

View File

@ -8,13 +8,20 @@ an sdk package for api.global
* [docs (typedoc)](https://apiglobal.gitlab.io/sdk/) * [docs (typedoc)](https://apiglobal.gitlab.io/sdk/)
## Status for master ## Status for master
[![pipeline status](https://gitlab.com/apiglobal/sdk/badges/master/pipeline.svg)](https://gitlab.com/apiglobal/sdk/commits/master)
[![coverage report](https://gitlab.com/apiglobal/sdk/badges/master/coverage.svg)](https://gitlab.com/apiglobal/sdk/commits/master) Status Category | Status Badge
[![npm downloads per month](https://img.shields.io/npm/dm/@apiglobal/sdk.svg)](https://www.npmjs.com/package/@apiglobal/sdk) -- | --
[![Known Vulnerabilities](https://snyk.io/test/npm/@apiglobal/sdk/badge.svg)](https://snyk.io/test/npm/@apiglobal/sdk) GitLab Pipelines | [![pipeline status](https://gitlab.com/apiglobal/sdk/badges/master/pipeline.svg)](https://lossless.cloud)
[![TypeScript](https://img.shields.io/badge/TypeScript->=%203.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) GitLab Pipline Test Coverage | [![coverage report](https://gitlab.com/apiglobal/sdk/badges/master/coverage.svg)](https://lossless.cloud)
[![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/) npm | [![npm downloads per month](https://badgen.net/npm/dy/@apiglobal/sdk)](https://lossless.cloud)
[![JavaScript Style Guide](https://img.shields.io/badge/code%20style-prettier-ff69b4.svg)](https://prettier.io/) Snyk | [![Known Vulnerabilities](https://badgen.net/snyk/apiglobal/sdk)](https://lossless.cloud)
TypeScript Support | [![TypeScript](https://badgen.net/badge/TypeScript/>=%203.x/blue?icon=typescript)](https://lossless.cloud)
node Support | [![node](https://img.shields.io/badge/node->=%2010.x.x-blue.svg)](https://nodejs.org/dist/latest-v10.x/docs/api/)
Code Style | [![Code Style](https://badgen.net/badge/style/prettier/purple)](https://lossless.cloud)
PackagePhobia (total standalone install weight) | [![PackagePhobia](https://badgen.net/packagephobia/install/@apiglobal/sdk)](https://lossless.cloud)
PackagePhobia (package size on registry) | [![PackagePhobia](https://badgen.net/packagephobia/publish/@apiglobal/sdk)](https://lossless.cloud)
BundlePhobia (total size when bundled) | [![BundlePhobia](https://badgen.net/bundlephobia/minzip/@apiglobal/sdk)](https://lossless.cloud)
Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20Windows%2010/yes/green?icon=windows)](https://lossless.cloud) [![Supports Mac OS X](https://badgen.net/badge/supports%20Mac%20OS%20X/yes/green?icon=apple)](https://lossless.cloud)
## Usage ## Usage

View File

@ -13,8 +13,8 @@ tap.test('should create a valid Handler', async () => {
public async checkReqirements() { public async checkReqirements() {
return { return {
allOk: true, allOk: true,
reason: '' reason: '',
} };
} }
public async start() {} public async start() {}

View File

@ -1 +1 @@
export {}; export {};

View File

@ -12,13 +12,15 @@ export abstract class AAgHandler<TClaim> {
*/ */
public abstract slug: string; public abstract slug: string;
public abstract handleRequest(
public abstract handleRequest (authInfoArg: AuthInfo<TClaim>, request: plugins.tsclass.network.ISimpleRequest): Promise<plugins.tsclass.network.ISimpleResponse>; authInfoArg: AuthInfo<TClaim>,
public abstract checkReqirements (): Promise<IRequirementResult>; request: plugins.tsclass.network.ISimpleRequest
): Promise<plugins.tsclass.network.ISimpleResponse>;
public abstract checkReqirements(): Promise<IRequirementResult>;
/** /**
* start the ag-handler * start the ag-handler
*/ */
public abstract start(): Promise<any>; public abstract start(): Promise<any>;
public abstract stop(): Promise<any>; public abstract stop(): Promise<any>;
} }