fix(core): update

This commit is contained in:
Philipp Kunz 2020-09-23 21:24:32 +00:00
parent ef568f2aa2
commit 6e761cb2b9
8 changed files with 7277 additions and 860 deletions

View File

@ -19,23 +19,35 @@ mirror:
stage: security stage: security
script: script:
- npmci git mirror - npmci git mirror
only:
- tags
tags: tags:
- lossless - lossless
- docker - docker
- notpriv - notpriv
audit: auditProductionDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security
script:
- npmci npm prepare
- npmci command npm install --production --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high --only=prod --production
tags:
- docker
auditDevDependencies:
image: registry.gitlab.com/hosttoday/ht-docker-node:npmci image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
stage: security stage: security
script: script:
- npmci npm prepare - npmci npm prepare
- npmci command npm install --ignore-scripts - npmci command npm install --ignore-scripts
- npmci command npm config set registry https://registry.npmjs.org - npmci command npm config set registry https://registry.npmjs.org
- npmci command npm audit --audit-level=high - npmci command npm audit --audit-level=high --only=dev
tags: tags:
- lossless
- docker - docker
- notpriv allow_failure: true
# ==================== # ====================
# test stage # test stage
@ -50,9 +62,7 @@ testStable:
- npmci npm test - npmci npm test
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- priv
testBuild: testBuild:
stage: test stage: test
@ -63,9 +73,7 @@ testBuild:
- npmci command npm run build - npmci command npm run build
coverage: /\d+.?\d+?\%\s*coverage/ coverage: /\d+.?\d+?\%\s*coverage/
tags: tags:
- lossless
- docker - docker
- notpriv
release: release:
stage: release stage: release
@ -85,6 +93,8 @@ release:
codequality: codequality:
stage: metadata stage: metadata
allow_failure: true allow_failure: true
only:
- tags
script: script:
- npmci command npm install -g tslint typescript - npmci command npm install -g tslint typescript
- npmci npm prepare - npmci npm prepare

View File

@ -15,7 +15,7 @@
"properties": { "properties": {
"projectType": { "projectType": {
"type": "string", "type": "string",
"enum": ["website", "element", "service", "npm"] "enum": ["website", "element", "service", "npm", "wcc"]
} }
} }
} }

8091
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -34,5 +34,8 @@
"cli.js", "cli.js",
"npmextra.json", "npmextra.json",
"readme.md" "readme.md"
],
"browserslist": [
"last 1 chrome versions"
] ]
} }

View File

@ -3,7 +3,6 @@ import * as sdk from '../ts/index';
import { ISimpleRequest } from '@tsclass/tsclass/dist_ts/network'; import { ISimpleRequest } from '@tsclass/tsclass/dist_ts/network';
import { TypedRouter } from '@apiglobal/typedrequest'; import { TypedRouter } from '@apiglobal/typedrequest';
tap.test('should create a valid Handler', async () => { tap.test('should create a valid Handler', async () => {
class MyHandler extends sdk.AAgHandler<any> { class MyHandler extends sdk.AAgHandler<any> {
public slug: 'testapi'; public slug: 'testapi';
@ -23,8 +22,8 @@ tap.test('should create a valid Handler', async () => {
public async checkRequirements(): Promise<sdk.IRequirementResult> { public async checkRequirements(): Promise<sdk.IRequirementResult> {
return { return {
allOk: true, allOk: true,
reason: '' reason: '',
} };
} }
} }

View File

@ -5,4 +5,4 @@ import * as plugins from './sdk.plugins';
*/ */
export abstract class AgEnvironment { export abstract class AgEnvironment {
public abstract async getEnvVar(envVarName: string): Promise<string>; public abstract async getEnvVar(envVarName: string): Promise<string>;
} }

View File

@ -14,12 +14,12 @@ export abstract class AAgHandler<TClaim> {
* a slug that separates the handler from other handlers * a slug that separates the handler from other handlers
*/ */
public abstract slug: string; public abstract slug: string;
public abstract typedrouter: plugins.typedrequest.TypedRouter; public abstract typedrouter: plugins.typedrequest.TypedRouter;
public abstract checkRequirements(): Promise<IRequirementResult>; public abstract checkRequirements(): Promise<IRequirementResult>;
constructor(agEnvironmentArg: AgEnvironment) { constructor(agEnvironmentArg: AgEnvironment) {
this.agEnvironment = agEnvironmentArg; this.agEnvironment = agEnvironmentArg;
}; }
/** /**
* start the ag-handler * start the ag-handler

View File

@ -4,9 +4,7 @@ import * as path from 'path';
// @apiglobal scope // @apiglobal scope
import * as typedrequest from '@apiglobal/typedrequest'; import * as typedrequest from '@apiglobal/typedrequest';
export { export { typedrequest };
typedrequest
};
// @tsclass scope // @tsclass scope
import * as tsclass from '@tsclass/tsclass'; import * as tsclass from '@tsclass/tsclass';