BREAKING CHANGE(core): update
This commit is contained in:
		@@ -12,40 +12,36 @@ stages:
 | 
			
		||||
  - release
 | 
			
		||||
  - metadata
 | 
			
		||||
 | 
			
		||||
before_script:
 | 
			
		||||
  - pnpm install -g pnpm
 | 
			
		||||
  - pnpm install -g @shipzone/npmci
 | 
			
		||||
  - npmci npm prepare
 | 
			
		||||
 | 
			
		||||
# ====================
 | 
			
		||||
# security stage
 | 
			
		||||
# ====================
 | 
			
		||||
# ====================
 | 
			
		||||
# security stage
 | 
			
		||||
# ====================
 | 
			
		||||
mirror:
 | 
			
		||||
  stage: security
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci git mirror
 | 
			
		||||
  only:
 | 
			
		||||
    - tags
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
    - notpriv
 | 
			
		||||
 | 
			
		||||
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
 | 
			
		||||
     - npmci command pnpm audit --audit-level=high --prod
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
  allow_failure: true
 | 
			
		||||
 | 
			
		||||
auditDevDependencies:
 | 
			
		||||
  image: registry.gitlab.com/hosttoday/ht-docker-node:npmci
 | 
			
		||||
  stage: security
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci command npm install --ignore-scripts
 | 
			
		||||
    - npmci command npm config set registry https://registry.npmjs.org
 | 
			
		||||
    - npmci command npm audit --audit-level=high --only=dev
 | 
			
		||||
    - npmci command pnpm audit --audit-level=high --dev
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
  allow_failure: true
 | 
			
		||||
 | 
			
		||||
@@ -56,7 +52,6 @@ auditDevDependencies:
 | 
			
		||||
testStable:
 | 
			
		||||
  stage: test
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci node install stable
 | 
			
		||||
    - npmci npm install
 | 
			
		||||
    - npmci npm test
 | 
			
		||||
@@ -67,10 +62,9 @@ testStable:
 | 
			
		||||
testBuild:
 | 
			
		||||
  stage: test
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci node install stable
 | 
			
		||||
    - npmci npm install
 | 
			
		||||
    - npmci command npm run build
 | 
			
		||||
    - npmci npm build
 | 
			
		||||
  coverage: /\d+.?\d+?\%\s*coverage/
 | 
			
		||||
  tags:
 | 
			
		||||
    - docker
 | 
			
		||||
@@ -96,10 +90,9 @@ codequality:
 | 
			
		||||
  only:
 | 
			
		||||
    - tags
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci command npm install -g tslint typescript
 | 
			
		||||
    - npmci command npm install -g typescript
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci npm install
 | 
			
		||||
    - npmci command "tslint -c tslint.json ./ts/**/*.ts"
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
@@ -119,11 +112,9 @@ trigger:
 | 
			
		||||
pages:
 | 
			
		||||
  stage: metadata
 | 
			
		||||
  script:
 | 
			
		||||
    - npmci node install lts
 | 
			
		||||
    - npmci command npm install -g @gitzone/tsdoc
 | 
			
		||||
    - npmci npm prepare
 | 
			
		||||
    - npmci node install stable
 | 
			
		||||
    - npmci npm install
 | 
			
		||||
    - npmci command tsdoc
 | 
			
		||||
    - npmci command npm run buildDocs
 | 
			
		||||
  tags:
 | 
			
		||||
    - lossless
 | 
			
		||||
    - docker
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										24
									
								
								.vscode/launch.json
									
									
									
									
										vendored
									
									
								
							@@ -2,28 +2,10 @@
 | 
			
		||||
  "version": "0.2.0",
 | 
			
		||||
  "configurations": [
 | 
			
		||||
    {
 | 
			
		||||
      "name": "current file",
 | 
			
		||||
      "type": "node",
 | 
			
		||||
      "command": "npm test",
 | 
			
		||||
      "name": "Run npm test",
 | 
			
		||||
      "request": "launch",
 | 
			
		||||
      "args": [
 | 
			
		||||
        "${relativeFile}"
 | 
			
		||||
      ],
 | 
			
		||||
      "runtimeArgs": ["-r", "@gitzone/tsrun"],
 | 
			
		||||
      "cwd": "${workspaceRoot}",
 | 
			
		||||
      "protocol": "inspector",
 | 
			
		||||
      "internalConsoleOptions": "openOnSessionStart"
 | 
			
		||||
    },
 | 
			
		||||
    {
 | 
			
		||||
      "name": "test.ts",
 | 
			
		||||
      "type": "node",
 | 
			
		||||
      "request": "launch",
 | 
			
		||||
      "args": [
 | 
			
		||||
        "test/test.ts"
 | 
			
		||||
      ],
 | 
			
		||||
      "runtimeArgs": ["-r", "@gitzone/tsrun"],
 | 
			
		||||
      "cwd": "${workspaceRoot}",
 | 
			
		||||
      "protocol": "inspector",
 | 
			
		||||
      "internalConsoleOptions": "openOnSessionStart"
 | 
			
		||||
      "type": "node-terminal"
 | 
			
		||||
    }
 | 
			
		||||
  ]
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -5,7 +5,7 @@
 | 
			
		||||
      "githost": "gitlab.com",
 | 
			
		||||
      "gitscope": "apiglobal",
 | 
			
		||||
      "gitrepo": "test-sdk",
 | 
			
		||||
      "shortDescription": "an sdk for testing ag handlers",
 | 
			
		||||
      "description": "an sdk for testing ag handlers",
 | 
			
		||||
      "npmPackagename": "@apiglobal/test-sdk",
 | 
			
		||||
      "license": "MIT",
 | 
			
		||||
      "projectDomain": "api.global"
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10936
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										10936
									
								
								package-lock.json
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										22
									
								
								package.json
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								package.json
									
									
									
									
									
								
							@@ -9,22 +9,21 @@
 | 
			
		||||
  "license": "MIT",
 | 
			
		||||
  "scripts": {
 | 
			
		||||
    "test": "(tstest test/ --web)",
 | 
			
		||||
    "build": "(tsbuild --web)"
 | 
			
		||||
    "build": "(tsbuild --web)",
 | 
			
		||||
    "buildDocs": "tsdoc"
 | 
			
		||||
  },
 | 
			
		||||
  "devDependencies": {
 | 
			
		||||
    "@gitzone/tsbuild": "^2.1.25",
 | 
			
		||||
    "@gitzone/tstest": "^1.0.52",
 | 
			
		||||
    "@pushrocks/tapbundle": "^3.2.9",
 | 
			
		||||
    "@types/node": "^14.14.0",
 | 
			
		||||
    "tslint": "^6.1.3",
 | 
			
		||||
    "tslint-config-prettier": "^1.18.0"
 | 
			
		||||
    "@pushrocks/tapbundle": "^5.0.4",
 | 
			
		||||
    "@types/node": "^18.15.3"
 | 
			
		||||
  },
 | 
			
		||||
  "dependencies": {
 | 
			
		||||
    "@apiglobal/sdk": "^1.0.18",
 | 
			
		||||
    "@apiglobal/typedrequest": "^1.0.54",
 | 
			
		||||
    "@apiglobal/typedrequest-interfaces": "^1.0.15",
 | 
			
		||||
    "@pushrocks/qenv": "^4.0.10",
 | 
			
		||||
    "@pushrocks/smartexpress": "^3.0.81",
 | 
			
		||||
    "@apiglobal/sdk": "^2.0.1",
 | 
			
		||||
    "@apiglobal/typedrequest": "^2.0.12",
 | 
			
		||||
    "@apiglobal/typedrequest-interfaces": "^2.0.1",
 | 
			
		||||
    "@pushrocks/qenv": "^5.0.2",
 | 
			
		||||
    "@pushrocks/smartexpress": "^4.0.28",
 | 
			
		||||
    "@pushrocks/smartobject": "^1.0.4"
 | 
			
		||||
  },
 | 
			
		||||
  "files": [
 | 
			
		||||
@@ -41,5 +40,6 @@
 | 
			
		||||
  ],
 | 
			
		||||
  "browserslist": [
 | 
			
		||||
    "last 1 chrome versions"
 | 
			
		||||
  ]
 | 
			
		||||
  ],
 | 
			
		||||
  "type": "module"
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										4230
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										4230
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@@ -21,7 +21,6 @@ Code Style | [](htt
 | 
			
		||||
PackagePhobia (total standalone install weight) | [](https://lossless.cloud)
 | 
			
		||||
PackagePhobia (package size on registry) | [](https://lossless.cloud)
 | 
			
		||||
BundlePhobia (total size when bundled) | [](https://lossless.cloud)
 | 
			
		||||
Platform support | [](https://lossless.cloud) [](https://lossless.cloud)
 | 
			
		||||
 | 
			
		||||
## Usage
 | 
			
		||||
 | 
			
		||||
@@ -33,7 +32,6 @@ We are always happy for code contributions. If you are not the code contributing
 | 
			
		||||
 | 
			
		||||
For further information read the linked docs at the top of this readme.
 | 
			
		||||
 | 
			
		||||
> MIT licensed | **©** [Lossless GmbH](https://lossless.gmbh)
 | 
			
		||||
## Legal
 | 
			
		||||
> MIT licensed | **©** [Task Venture Capital GmbH](https://task.vc)
 | 
			
		||||
| By using this npm module you agree to our [privacy policy](https://lossless.gmbH/privacy)
 | 
			
		||||
 | 
			
		||||
[](https://maintainedby.lossless.com)
 | 
			
		||||
 
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
import { expect, tap } from '@pushrocks/tapbundle';
 | 
			
		||||
import * as testSdk from '../ts/index';
 | 
			
		||||
import * as testSdk from '../ts/index.js';
 | 
			
		||||
 | 
			
		||||
let testServer: testSdk.AgTestServer;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										8
									
								
								ts/00_commitinfo_data.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								ts/00_commitinfo_data.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,8 @@
 | 
			
		||||
/**
 | 
			
		||||
 * autocreated commitinfo by @pushrocks/commitinfo
 | 
			
		||||
 */
 | 
			
		||||
export const commitinfo = {
 | 
			
		||||
  name: '@apiglobal/test-sdk',
 | 
			
		||||
  version: '2.0.0',
 | 
			
		||||
  description: 'an sdk for testing ag handlers'
 | 
			
		||||
}
 | 
			
		||||
@@ -1,5 +1,5 @@
 | 
			
		||||
import * as plugins from './test-sdk.plugins';
 | 
			
		||||
import { AgTestServer } from './test-sdk.classes.testserver';
 | 
			
		||||
import * as plugins from './test-sdk.plugins.js';
 | 
			
		||||
import { AgTestServer } from './test-sdk.classes.testserver.js';
 | 
			
		||||
import { AAgHandler } from '@apiglobal/sdk';
 | 
			
		||||
 | 
			
		||||
export { AgTestServer };
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
import * as plugins from './test-sdk.plugins';
 | 
			
		||||
import * as plugins from './test-sdk.plugins.js';
 | 
			
		||||
 | 
			
		||||
export class AgTestServer {
 | 
			
		||||
  public handlers: Array<plugins.agSdk.AAgHandler<any>> = [];
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										10
									
								
								tsconfig.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										10
									
								
								tsconfig.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,10 @@
 | 
			
		||||
{
 | 
			
		||||
  "compilerOptions": {
 | 
			
		||||
    "experimentalDecorators": true,
 | 
			
		||||
    "useDefineForClassFields": false,
 | 
			
		||||
    "target": "ES2022",
 | 
			
		||||
    "module": "ES2022",
 | 
			
		||||
    "moduleResolution": "nodenext",
 | 
			
		||||
    "esModuleInterop": true
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										17
									
								
								tslint.json
									
									
									
									
									
								
							
							
						
						
									
										17
									
								
								tslint.json
									
									
									
									
									
								
							@@ -1,17 +0,0 @@
 | 
			
		||||
{
 | 
			
		||||
  "extends": ["tslint:latest", "tslint-config-prettier"],
 | 
			
		||||
  "rules": {
 | 
			
		||||
    "semicolon": [true, "always"],
 | 
			
		||||
    "no-console": false,
 | 
			
		||||
    "ordered-imports": false,
 | 
			
		||||
    "object-literal-sort-keys": false,
 | 
			
		||||
    "member-ordering": {
 | 
			
		||||
      "options":{
 | 
			
		||||
        "order": [
 | 
			
		||||
          "static-method"
 | 
			
		||||
        ]
 | 
			
		||||
      }
 | 
			
		||||
    }
 | 
			
		||||
  },
 | 
			
		||||
  "defaultSeverity": "warning"
 | 
			
		||||
}
 | 
			
		||||
		Reference in New Issue
	
	Block a user