BREAKING CHANGE(core): update

This commit is contained in:
Philipp Kunz 2022-09-27 15:40:55 +02:00
parent 70aef3fe7e
commit 2bcb31e4d6
13 changed files with 11508 additions and 8469 deletions

12
.snyk
View File

@ -1,12 +0,0 @@
# Snyk (https://snyk.io) policy file, patches or ignores known vulnerabilities.
version: v1.12.0
# ignores vulnerabilities until expiry date; change duration by modifying expiry date
ignore:
'npm:node-forge:20180226':
- rsa-compat > node-forge:
reason: None given
expires: '2018-09-11T19:17:24.148Z'
- acme-v2 > rsa-compat > node-forge:
reason: None given
expires: '2018-09-11T19:17:24.148Z'
patch: {}

19786
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -5,6 +5,7 @@
"description": "acme with an easy yet powerful interface in TypeScript", "description": "acme with an easy yet powerful interface in TypeScript",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",
"typings": "dist_ts/index.d.ts", "typings": "dist_ts/index.d.ts",
"type": "module",
"scripts": { "scripts": {
"test": "(tstest test/)", "test": "(tstest test/)",
"build": "(tsbuild --web)" "build": "(tsbuild --web)"
@ -25,30 +26,28 @@
}, },
"homepage": "https://gitlab.com/umbrellazone/smartacme#README", "homepage": "https://gitlab.com/umbrellazone/smartacme#README",
"dependencies": { "dependencies": {
"@pushrocks/lik": "^4.0.20", "@pushrocks/lik": "^6.0.0",
"@pushrocks/smartdata": "^3.1.54", "@pushrocks/smartdata": "^5.0.8",
"@pushrocks/smartdelay": "^2.0.10", "@pushrocks/smartdelay": "^2.0.13",
"@pushrocks/smartdns": "^4.0.8", "@pushrocks/smartdns": "^5.0.2",
"@pushrocks/smartexpress": "^3.0.100", "@pushrocks/smartexpress": "^4.0.21",
"@pushrocks/smartlog": "^2.0.39", "@pushrocks/smartlog": "^3.0.1",
"@pushrocks/smartpromise": "^3.1.3", "@pushrocks/smartpromise": "^3.1.7",
"@pushrocks/smartrequest": "^1.1.51", "@pushrocks/smartrequest": "^2.0.11",
"@pushrocks/smartstring": "^3.0.24", "@pushrocks/smartstring": "^4.0.5",
"@pushrocks/smarttime": "^3.0.38", "@pushrocks/smarttime": "^3.0.45",
"@pushrocks/smartunique": "^3.0.3", "@pushrocks/smartunique": "^3.0.3",
"@tsclass/tsclass": "^3.0.29", "@tsclass/tsclass": "^4.0.21",
"acme-client": "^4.1.2" "acme-client": "^4.2.5"
}, },
"devDependencies": { "devDependencies": {
"@gitzone/tsbuild": "^2.1.25", "@gitzone/tsbuild": "^2.1.65",
"@gitzone/tsrun": "^1.2.12", "@gitzone/tsrun": "^1.2.37",
"@gitzone/tstest": "^1.0.52", "@gitzone/tstest": "^1.0.73",
"@mojoio/cloudflare": "^5.0.9", "@mojoio/cloudflare": "^5.0.9",
"@pushrocks/qenv": "^4.0.10", "@pushrocks/qenv": "^5.0.2",
"@pushrocks/tapbundle": "^3.2.9", "@pushrocks/tapbundle": "^5.0.4",
"@types/node": "^14.14.22", "@types/node": "^18.7.23"
"tslint": "^6.1.3",
"tslint-config-prettier": "^1.18.0"
}, },
"files": [ "files": [
"ts/**/*", "ts/**/*",

View File

@ -5,7 +5,7 @@ import * as cloudflare from '@mojoio/cloudflare';
const testQenv = new Qenv('./', './.nogit/'); const testQenv = new Qenv('./', './.nogit/');
const testCloudflare = new cloudflare.CloudflareAccount(testQenv.getEnvVarOnDemand('CF_TOKEN')); const testCloudflare = new cloudflare.CloudflareAccount(testQenv.getEnvVarOnDemand('CF_TOKEN'));
import * as smartacme from '../ts/index'; import * as smartacme from '../ts/index.js';
let smartAcmeInstance: smartacme.SmartAcme; let smartAcmeInstance: smartacme.SmartAcme;
@ -35,10 +35,10 @@ tap.test('should get a domain certificate', async () => {
}); });
tap.test('certmatcher should correctly match domains', async () => { tap.test('certmatcher should correctly match domains', async () => {
const certMatcherMod = await import('../ts/smartacme.classes.certmatcher'); const certMatcherMod = await import('../ts/smartacme.classes.certmatcher.js');
const certMatcher = new certMatcherMod.CertMatcher(); const certMatcher = new certMatcherMod.CertMatcher();
const matchedCert = certMatcher.getCertificateDomainNameByDomainName('level3.level2.level1'); const matchedCert = certMatcher.getCertificateDomainNameByDomainName('level3.level2.level1');
expect(matchedCert).to.equal('level2.level1'); expect(matchedCert).toEqual('level2.level1');
}); });
tap.test('should stop correctly', async () => { tap.test('should stop correctly', async () => {

8
ts/00_commitinfo_data.ts Normal file
View File

@ -0,0 +1,8 @@
/**
* autocreated commitinfo by @pushrocks/commitinfo
*/
export const commitinfo = {
name: '@pushrocks/smartacme',
version: '4.0.0',
description: 'acme with an easy yet powerful interface in TypeScript'
}

View File

@ -1 +1 @@
export * from './smartacme.classes.smartacme'; export * from './smartacme.classes.smartacme.js';

View File

@ -1 +1 @@
export * from './accountdata'; export * from './accountdata.js';

View File

@ -1,8 +1,8 @@
import * as plugins from './smartacme.plugins'; import * as plugins from './smartacme.plugins.js';
import * as interfaces from './interfaces'; import * as interfaces from './interfaces/index.js';
import { CertManager } from './smartacme.classes.certmanager'; import { CertManager } from './smartacme.classes.certmanager.js';
import { Collection, svDb, unI } from '@pushrocks/smartdata'; import { Collection, svDb, unI } from '@pushrocks/smartdata';

View File

@ -1,8 +1,8 @@
import * as plugins from './smartacme.plugins'; import * as plugins from './smartacme.plugins.js';
import { Cert } from './smartacme.classes.cert'; import { Cert } from './smartacme.classes.cert.js';
import { SmartAcme } from './smartacme.classes.smartacme'; import { SmartAcme } from './smartacme.classes.smartacme.js';
import * as interfaces from './interfaces'; import * as interfaces from './interfaces/index.js';
export class CertManager { export class CertManager {
// ========= // =========

View File

@ -1,5 +1,5 @@
import * as plugins from './smartacme.plugins'; import * as plugins from './smartacme.plugins.js';
import * as interfaces from './interfaces'; import * as interfaces from './interfaces/index.js';
/** /**
* certmatcher is responsible for matching certificates * certmatcher is responsible for matching certificates

View File

@ -1,7 +1,7 @@
import * as plugins from './smartacme.plugins'; import * as plugins from './smartacme.plugins.js';
import { Cert } from './smartacme.classes.cert'; import { Cert } from './smartacme.classes.cert.js';
import { CertManager } from './smartacme.classes.certmanager'; import { CertManager } from './smartacme.classes.certmanager.js';
import { CertMatcher } from './smartacme.classes.certmatcher'; import { CertMatcher } from './smartacme.classes.certmatcher.js';
/** /**
* the options for the class @see SmartAcme * the options for the class @see SmartAcme

View File

@ -1,7 +1,10 @@
{ {
"compilerOptions": { "compilerOptions": {
"experimentalDecorators": true, "experimentalDecorators": true,
"target": "es2017", "useDefineForClassFields": false,
"module": "commonjs" "target": "ES2022",
"module": "ES2022",
"moduleResolution": "nodenext",
"esModuleInterop": true
} }
} }

View File

@ -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"
}