@digitaldefiance/node-ecies-lib 2.1.33 → 2.1.40
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 +21 -0
- package/package.json +14 -4
- package/src/index.d.ts +0 -1
- package/src/index.d.ts.map +1 -1
- package/src/index.js +0 -2
- package/src/index.js.map +1 -1
- package/src/testing.d.ts +2 -0
- package/src/testing.d.ts.map +1 -0
- package/src/testing.js +6 -0
- package/src/testing.js.map +1 -0
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 a separate 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:** Test utilities require `@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
|
package/package.json
CHANGED
|
@@ -1,9 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@digitaldefiance/node-ecies-lib",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.40",
|
|
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.
|
|
39
|
-
"@digitaldefiance/i18n-lib": "2.1.
|
|
48
|
+
"@digitaldefiance/ecies-lib": "2.1.40",
|
|
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.
|
|
59
|
+
"@digitaldefiance/express-suite-test-utils": "1.0.7"
|
|
50
60
|
},
|
|
51
61
|
"type": "commonjs"
|
|
52
62
|
}
|
package/src/index.d.ts
CHANGED
package/src/index.d.ts.map
CHANGED
|
@@ -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
|
|
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
|
|
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"}
|
package/src/testing.d.ts
ADDED
|
@@ -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"}
|