backend-test-tools 1.1.1 → 1.1.3

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.
@@ -21,12 +21,12 @@ jobs:
21
21
  uses: actions/checkout@v4
22
22
  with:
23
23
  fetch-depth: 0
24
- persist-credentials: false
24
+ token: ${{ secrets.GITHUB_TOKEN }}
25
25
 
26
26
  - name: Setup Node.js
27
27
  uses: actions/setup-node@v4
28
28
  with:
29
- node-version: '20'
29
+ node-version: '22'
30
30
  registry-url: 'https://registry.npmjs.org'
31
31
 
32
32
  - name: Install dependencies
package/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## [1.1.3](https://github.com/prakashmahendran/backend-test-tools/compare/v1.1.2...v1.1.3) (2025-12-09)
2
+
3
+ ### 👷 CI/CD
4
+
5
+ * allow semantic-release to push commits by removing persist-credentials: false ([46e8327](https://github.com/prakashmahendran/backend-test-tools/commit/46e832729e43eaae31877edaac2a84719e6446a5))
6
+
7
+ ## [1.1.2](https://github.com/prakashmahendran/backend-test-tools/compare/v1.1.1...v1.1.2) (2025-12-09)
8
+
9
+ ### 🐛 Bug Fixes
10
+
11
+ * update generateCerts types to use specific pki.rsa.PrivateKey ([26ed6e6](https://github.com/prakashmahendran/backend-test-tools/commit/26ed6e69127cd6e7f4b0036475299b9457c742c5))
12
+
13
+ ### 👷 CI/CD
14
+
15
+ * update Node.js version to 22 for semantic-release 25.x compatibility ([a3ba4fd](https://github.com/prakashmahendran/backend-test-tools/commit/a3ba4fdd92680c0f24cbf561b50596f992a3cb2d))
16
+
1
17
  ## [1.1.1](https://github.com/prakashmahendran/backend-test-tools/compare/v1.1.0...v1.1.1) (2025-12-09)
2
18
 
3
19
  ### 🐛 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 _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
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","_getRequireWildcardCache","e","WeakMap","r","t","__esModule","default","has","get","n","__proto__","a","Object","defineProperty","getOwnPropertyDescriptor","u","hasOwnProperty","call","i","set","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,SAAAE,yBAAAC,CAAA,6BAAAC,OAAA,mBAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAF,wBAAA,YAAAA,CAAAC,CAAA,WAAAA,CAAA,GAAAG,CAAA,GAAAD,CAAA,KAAAF,CAAA;AAAA,SAAAJ,wBAAAI,CAAA,EAAAE,CAAA,SAAAA,CAAA,IAAAF,CAAA,IAAAA,CAAA,CAAAI,UAAA,SAAAJ,CAAA,eAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,WAAAK,OAAA,EAAAL,CAAA,QAAAG,CAAA,GAAAJ,wBAAA,CAAAG,CAAA,OAAAC,CAAA,IAAAA,CAAA,CAAAG,GAAA,CAAAN,CAAA,UAAAG,CAAA,CAAAI,GAAA,CAAAP,CAAA,OAAAQ,CAAA,KAAAC,SAAA,UAAAC,CAAA,GAAAC,MAAA,CAAAC,cAAA,IAAAD,MAAA,CAAAE,wBAAA,WAAAC,CAAA,IAAAd,CAAA,oBAAAc,CAAA,OAAAC,cAAA,CAAAC,IAAA,CAAAhB,CAAA,EAAAc,CAAA,SAAAG,CAAA,GAAAP,CAAA,GAAAC,MAAA,CAAAE,wBAAA,CAAAb,CAAA,EAAAc,CAAA,UAAAG,CAAA,KAAAA,CAAA,CAAAV,GAAA,IAAAU,CAAA,CAAAC,GAAA,IAAAP,MAAA,CAAAC,cAAA,CAAAJ,CAAA,EAAAM,CAAA,EAAAG,CAAA,IAAAT,CAAA,CAAAM,CAAA,IAAAd,CAAA,CAAAc,CAAA,YAAAN,CAAA,CAAAH,OAAA,GAAAL,CAAA,EAAAG,CAAA,IAAAA,CAAA,CAAAe,GAAA,CAAAlB,CAAA,EAAAQ,CAAA,GAAAA,CAAA;AAEtC;AACO,SAASW,YAAYA,CAAA,EAAc;EACxC,OAAO,IAAAC,WAAI,EAACzB,QAAQ,EAAE,UAAU,CAAC,CAAC0B,QAAQ,CAAC,CAAC;AAC9C","ignoreList":[]}
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.1",
3
+ "version": "1.1.3",
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": "^24.2.9",
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
  }