@digitaldefiance/ecies-lib 2.1.32 → 2.1.38

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
@@ -6,6 +6,8 @@
6
6
 
7
7
  Production-ready, browser-compatible ECIES (Elliptic Curve Integrated Encryption Scheme) library for TypeScript. Built on Web Crypto API and @noble/curves with comprehensive encryption, key management, and authentication services. Binary compatible with @digitaldefiance/node-ecies-lib for seamless cross-platform operations.
8
8
 
9
+ Part of [Express Suite](https://github.com/Digital-Defiance/express-suite)
10
+
9
11
  **Version 2.0** features a modernized i18n architecture with automatic error translation in 8 languages and simplified service APIs.
10
12
 
11
13
  ## Features
@@ -485,6 +487,25 @@ yarn format # Fix all (prettier + lint)
485
487
  - Cross-platform compatibility
486
488
  - Error handling and edge cases
487
489
 
490
+ #### Test Utilities
491
+
492
+ Test mocks are available via a separate entry point:
493
+
494
+ ```typescript
495
+ import { mockFrontendMember } from '@digitaldefiance/ecies-lib/testing';
496
+
497
+ // Use in your tests
498
+ const member = mockFrontendMember();
499
+ ```
500
+
501
+ **Note:** Test utilities require `@faker-js/faker` as a peer dependency:
502
+
503
+ ```bash
504
+ npm install -D @faker-js/faker
505
+ # or
506
+ yarn add -D @faker-js/faker
507
+ ```
508
+
488
509
  ### Quality Gates
489
510
 
490
511
  CI enforces:
@@ -643,6 +664,8 @@ const passwordLogin = new PasswordLoginService(ecies, pbkdf2);
643
664
 
644
665
  ## ChangeLog
645
666
 
667
+ ## v2.1.38 - Export test mock for frontend member
668
+
646
669
  ## v2.1.32 - Config on i18n create
647
670
 
648
671
  ## v2.1.30 - Alignment bump
package/package.json CHANGED
@@ -1,9 +1,19 @@
1
1
  {
2
2
  "name": "@digitaldefiance/ecies-lib",
3
- "version": "2.1.32",
3
+ "version": "2.1.38",
4
4
  "description": "Digital Defiance 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-ecies-lib",
9
19
  "build:stream": "npx nx build --outputStyle=stream digitaldefiance-ecies-lib",
@@ -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-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/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-ecies-lib/src/testing.ts"],"names":[],"mappings":";;;AAAA,gFAAgF;AAChF,uDAA6B"}