asyx 0.5.0 → 0.5.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.
Files changed (2) hide show
  1. package/package.json +1 -2
  2. package/src/lib/csr.js +2 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asyx",
3
- "version": "0.5.0",
3
+ "version": "0.5.2",
4
4
  "description": "Asyx tunnel CLI — secure localhost exposure (HTTP, TCP, UDP)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
@@ -69,7 +69,6 @@
69
69
  "dependencies": {
70
70
  "@asyx/mqtt-broker-aws": "^0.1.0",
71
71
  "@asyx/mqtt-client": "^0.1.0",
72
- "@peculiar/webcrypto": "^1.5.0",
73
72
  "@peculiar/x509": "^1.14.0",
74
73
  "chalk": "^5.3.0",
75
74
  "hw-fingerprint": "^3.2.0",
package/src/lib/csr.js CHANGED
@@ -2,11 +2,10 @@ import fs from 'node:fs/promises';
2
2
  import fssync from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import os from 'node:os';
5
- import nodeCrypto from 'node:crypto';
6
- import { Crypto } from '@peculiar/webcrypto';
5
+ import nodeCrypto, { webcrypto } from 'node:crypto';
7
6
  import { cryptoProvider, Pkcs10CertificateRequestGenerator } from '@peculiar/x509';
8
7
 
9
- const crypto = new Crypto();
8
+ const crypto = webcrypto;
10
9
  cryptoProvider.set(crypto); // Set provider before using generator
11
10
 
12
11
  /**