backend-test-tools 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.github/workflows/release.yml +1 -1
- package/CHANGELOG.md +10 -0
- package/dist/src/utils/generateCerts/generateCerts.types.d.ts +2 -2
- package/dist/stubs/server-engine/sendPush.js +1 -2
- package/dist/stubs/server-engine/sendPush.js.map +1 -1
- package/dist/utils/generateCerts/generateCerts.types.js.map +1 -1
- package/package.json +2 -2
- package/src/utils/generateCerts/generateCerts.types.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
## [1.1.2](https://github.com/prakashmahendran/backend-test-tools/compare/v1.1.1...v1.1.2) (2025-12-09)
|
|
2
|
+
|
|
3
|
+
### 🐛 Bug Fixes
|
|
4
|
+
|
|
5
|
+
* update generateCerts types to use specific pki.rsa.PrivateKey ([26ed6e6](https://github.com/prakashmahendran/backend-test-tools/commit/26ed6e69127cd6e7f4b0036475299b9457c742c5))
|
|
6
|
+
|
|
7
|
+
### 👷 CI/CD
|
|
8
|
+
|
|
9
|
+
* update Node.js version to 22 for semantic-release 25.x compatibility ([a3ba4fd](https://github.com/prakashmahendran/backend-test-tools/commit/a3ba4fdd92680c0f24cbf561b50596f992a3cb2d))
|
|
10
|
+
|
|
1
11
|
## [1.1.1](https://github.com/prakashmahendran/backend-test-tools/compare/v1.1.0...v1.1.1) (2025-12-09)
|
|
2
12
|
|
|
3
13
|
### 🐛 Bug Fixes
|
|
@@ -6,14 +6,14 @@ export interface generateCertsOptions {
|
|
|
6
6
|
/** Certificate issue information */
|
|
7
7
|
issuer?: Array<pki.CertificateField>;
|
|
8
8
|
/** Private key to use to sign the certificate */
|
|
9
|
-
key?: pki.PrivateKey;
|
|
9
|
+
key?: pki.rsa.PrivateKey;
|
|
10
10
|
}
|
|
11
11
|
/** Fake certificate generated */
|
|
12
12
|
export interface GeneratedCertificate {
|
|
13
13
|
/** PEM certificate */
|
|
14
14
|
cert: string;
|
|
15
15
|
/** Private key to use with the certificate */
|
|
16
|
-
privateKey: pki.PrivateKey;
|
|
16
|
+
privateKey: pki.rsa.PrivateKey;
|
|
17
17
|
/** PEM encoding of the private key */
|
|
18
18
|
privateKeyPem: string;
|
|
19
19
|
}
|
|
@@ -6,8 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.stubSendPush = stubSendPush;
|
|
7
7
|
var sendPush = _interopRequireWildcard(require("node-server-engine/dist/utils/sendPush/sendPush"));
|
|
8
8
|
var _sinon = require("sinon");
|
|
9
|
-
function
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function (e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != typeof e && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (const t in e) "default" !== t && {}.hasOwnProperty.call(e, t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, t)) && (i.get || i.set) ? o(f, t, i) : f[t] = e[t]); return f; })(e, t); }
|
|
11
10
|
/** Stub the sendPush function */
|
|
12
11
|
function stubSendPush() {
|
|
13
12
|
return (0, _sinon.stub)(sendPush, 'sendPush').resolves();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sendPush.js","names":["sendPush","_interopRequireWildcard","require","_sinon","
|
|
1
|
+
{"version":3,"file":"sendPush.js","names":["sendPush","_interopRequireWildcard","require","_sinon","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor","stubSendPush","stub","resolves"],"sources":["../../../src/stubs/server-engine/sendPush.ts"],"sourcesContent":["import * as sendPush from 'node-server-engine/dist/utils/sendPush/sendPush';\nimport {SinonStub, stub} from 'sinon';\n\n/** Stub the sendPush function */\nexport function stubSendPush(): SinonStub {\n return stub(sendPush, 'sendPush').resolves();\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,uBAAA,CAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAAsC,SAAAD,wBAAAG,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAL,uBAAA,YAAAA,CAAAG,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA;AAEtC;AACO,SAASkB,YAAYA,CAAA,EAAc;EACxC,OAAO,IAAAC,WAAI,EAACxB,QAAQ,EAAE,UAAU,CAAC,CAACyB,QAAQ,CAAC,CAAC;AAC9C","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generateCerts.types.js","names":[],"sources":["../../../src/utils/generateCerts/generateCerts.types.ts"],"sourcesContent":["import {pki} from 'node-forge';\n\n/** Options ot generate fake certificates */\nexport interface generateCertsOptions {\n /** Indicates that we should generate a CA certificate */\n ca?: boolean;\n /** Certificate issue information */\n issuer?: Array<pki.CertificateField>;\n /** Private key to use to sign the certificate */\n key?: pki.PrivateKey;\n}\n\n/** Fake certificate generated */\nexport interface GeneratedCertificate {\n /** PEM certificate */\n cert: string;\n /** Private key to use with the certificate */\n privateKey: pki.PrivateKey;\n /** PEM encoding of the private key */\n privateKeyPem: string;\n}\n"],"mappings":"","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"generateCerts.types.js","names":[],"sources":["../../../src/utils/generateCerts/generateCerts.types.ts"],"sourcesContent":["import {pki} from 'node-forge';\n\n/** Options ot generate fake certificates */\nexport interface generateCertsOptions {\n /** Indicates that we should generate a CA certificate */\n ca?: boolean;\n /** Certificate issue information */\n issuer?: Array<pki.CertificateField>;\n /** Private key to use to sign the certificate */\n key?: pki.rsa.PrivateKey;\n}\n\n/** Fake certificate generated */\nexport interface GeneratedCertificate {\n /** PEM certificate */\n cert: string;\n /** Private key to use with the certificate */\n privateKey: pki.rsa.PrivateKey;\n /** PEM encoding of the private key */\n privateKeyPem: string;\n}\n"],"mappings":"","ignoreList":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "backend-test-tools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.2",
|
|
4
4
|
"description": "Backend Node test tools",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"nyc": "^17.1.0",
|
|
58
58
|
"prettier": "^3.4.2",
|
|
59
59
|
"rimraf": "^6.0.1",
|
|
60
|
-
"semantic-release": "^
|
|
60
|
+
"semantic-release": "^25.0.2",
|
|
61
61
|
"ts-node": "^10.9.2",
|
|
62
62
|
"tsc-alias": "^1.8.10",
|
|
63
63
|
"tsconfig-paths": "^4.2.0",
|
|
@@ -7,7 +7,7 @@ export interface generateCertsOptions {
|
|
|
7
7
|
/** Certificate issue information */
|
|
8
8
|
issuer?: Array<pki.CertificateField>;
|
|
9
9
|
/** Private key to use to sign the certificate */
|
|
10
|
-
key?: pki.PrivateKey;
|
|
10
|
+
key?: pki.rsa.PrivateKey;
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
/** Fake certificate generated */
|
|
@@ -15,7 +15,7 @@ export interface GeneratedCertificate {
|
|
|
15
15
|
/** PEM certificate */
|
|
16
16
|
cert: string;
|
|
17
17
|
/** Private key to use with the certificate */
|
|
18
|
-
privateKey: pki.PrivateKey;
|
|
18
|
+
privateKey: pki.rsa.PrivateKey;
|
|
19
19
|
/** PEM encoding of the private key */
|
|
20
20
|
privateKeyPem: string;
|
|
21
21
|
}
|