@digitaldefiance/node-ecies-lib 2.1.33 → 2.1.42

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/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A Node.js-specific implementation of the Digital Defiance ECIES (Elliptic Curve Integrated Encryption Scheme) library, providing secure encryption, decryption, and key management capabilities using Node.js crypto primitives. This package is designed to be binary compatible with the browser-based `@digitaldefiance/ecies-lib`, enabling seamless cross-platform cryptographic operations.
4
4
 
5
+ Part of [Express Suite](https://github.com/Digital-Defiance/express-suite)
6
+
5
7
  ## Features
6
8
 
7
9
  - **ECIES Encryption/Decryption**: Secure elliptic curve integrated encryption scheme using Node.js crypto primitives.
@@ -246,6 +248,25 @@ Test categories:
246
248
  - Unit tests for individual components.
247
249
  - Integration tests for cross-component functionality.
248
250
  - End-to-end tests for complete workflows.
251
+
252
+ ### Test Utilities
253
+
254
+ Test mocks are available via the `/testing` entry point:
255
+
256
+ ```typescript
257
+ import { mockBackendMember } from '@digitaldefiance/node-ecies-lib/testing';
258
+
259
+ // Use in your tests
260
+ const member = mockBackendMember();
261
+ ```
262
+
263
+ **Note:** The `/testing` entry point requires `@faker-js/faker` as a peer dependency:
264
+
265
+ ```bash
266
+ npm install -D @faker-js/faker
267
+ # or
268
+ yarn add -D @faker-js/faker
269
+ ```
249
270
  - Cross-platform compatibility tests.
250
271
 
251
272
  ## Error Handling
@@ -414,7 +435,19 @@ No performance regression in v2.0:
414
435
 
415
436
  ## ChangeLog
416
437
 
417
- ## Version 2.1.33
438
+ ### Version 2.1.42
439
+
440
+ - Upgrde ecies
441
+
442
+ ### Version 2.1.40
443
+
444
+ - Alignment with Express Suite packages
445
+ - All packages updated to v2.1.40 (i18n, ecies-lib, node-ecies-lib, suite-core-lib, node-express-suite, express-suite-react-components)
446
+ - Test utilities remain at v1.0.7
447
+ - `/testing` entry point exports test mocks (mockBackendMember)
448
+ - Requires `@faker-js/faker` as dev dependency for test utilities
449
+
450
+ ### Version 2.1.33
418
451
 
419
452
  - Expose config on one more endpoint
420
453
 
package/package.json CHANGED
@@ -1,9 +1,19 @@
1
1
  {
2
2
  "name": "@digitaldefiance/node-ecies-lib",
3
- "version": "2.1.33",
3
+ "version": "2.1.42",
4
4
  "description": "Digital Defiance Node ECIES Library",
5
5
  "main": "src/index.js",
6
6
  "types": "src/index.d.ts",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./src/index.d.ts",
10
+ "default": "./src/index.js"
11
+ },
12
+ "./testing": {
13
+ "types": "./src/testing.d.ts",
14
+ "default": "./src/testing.js"
15
+ }
16
+ },
7
17
  "scripts": {
8
18
  "build": "npx nx build digitaldefiance-node-ecies-lib",
9
19
  "build:stream": "npx nx build --outputStyle=stream digitaldefiance-node-ecies-lib",
@@ -35,8 +45,8 @@
35
45
  "license": "MIT",
36
46
  "packageManager": "yarn@4.10.3",
37
47
  "dependencies": {
38
- "@digitaldefiance/ecies-lib": "2.1.32",
39
- "@digitaldefiance/i18n-lib": "2.1.32",
48
+ "@digitaldefiance/ecies-lib": "2.1.42",
49
+ "@digitaldefiance/i18n-lib": "2.1.40",
40
50
  "@ethereumjs/wallet": "^10.0.0",
41
51
  "@noble/curves": "^2.0.1",
42
52
  "@noble/hashes": "^2.0.1",
@@ -46,7 +56,7 @@
46
56
  "ts-brand": "^0.2.0"
47
57
  },
48
58
  "devDependencies": {
49
- "@digitaldefiance/express-suite-test-utils": "1.0.6"
59
+ "@digitaldefiance/express-suite-test-utils": "1.0.7"
50
60
  },
51
61
  "type": "commonjs"
52
62
  }
package/src/index.d.ts CHANGED
@@ -8,5 +8,4 @@ export * from './interfaces';
8
8
  export * from './member';
9
9
  export * from './services';
10
10
  export * from './types';
11
- export * from './test-mocks';
12
11
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-ecies-lib/src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AAGtB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AAGxB,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-ecies-lib/src/index.ts"],"names":[],"mappings":"AACA,cAAc,YAAY,CAAC;AAC3B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AAGtB,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC"}
package/src/index.js CHANGED
@@ -13,6 +13,4 @@ tslib_1.__exportStar(require("./interfaces"), exports);
13
13
  tslib_1.__exportStar(require("./member"), exports);
14
14
  tslib_1.__exportStar(require("./services"), exports);
15
15
  tslib_1.__exportStar(require("./types"), exports);
16
- // test helpers for consumers
17
- tslib_1.__exportStar(require("./test-mocks"), exports);
18
16
  //# sourceMappingURL=index.js.map
package/src/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-ecies-lib/src/index.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AAC1B,qDAA2B;AAC3B,iDAAuB;AACvB,gDAAsB;AAEtB,4CAA4C;AAC5C,sDAA4B;AAC5B,yDAA+B;AAC/B,iDAAuB;AACvB,uDAA6B;AAC7B,mDAAyB;AACzB,qDAA2B;AAC3B,kDAAwB;AAExB,6BAA6B;AAC7B,uDAA6B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-ecies-lib/src/index.ts"],"names":[],"mappings":";;;AAAA,0BAA0B;AAC1B,qDAA2B;AAC3B,iDAAuB;AACvB,gDAAsB;AAEtB,4CAA4C;AAC5C,sDAA4B;AAC5B,yDAA+B;AAC/B,iDAAuB;AACvB,uDAA6B;AAC7B,mDAAyB;AACzB,qDAA2B;AAC3B,kDAAwB"}
@@ -0,0 +1,2 @@
1
+ export * from './test-mocks';
2
+ //# sourceMappingURL=testing.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.d.ts","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-ecies-lib/src/testing.ts"],"names":[],"mappings":"AACA,cAAc,cAAc,CAAC"}
package/src/testing.js ADDED
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ // Test utilities entry point - import from '@digitaldefiance/node-ecies-lib/testing'
5
+ tslib_1.__exportStar(require("./test-mocks"), exports);
6
+ //# sourceMappingURL=testing.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"testing.js","sourceRoot":"","sources":["../../../../packages/digitaldefiance-node-ecies-lib/src/testing.ts"],"names":[],"mappings":";;;AAAA,qFAAqF;AACrF,uDAA6B"}