asyx 0.5.0 → 0.5.1

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 -1
  2. package/src/lib/csr.js +2 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "asyx",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Asyx tunnel CLI — secure localhost exposure (HTTP, TCP, UDP)",
5
5
  "license": "Apache-2.0",
6
6
  "type": "module",
package/src/lib/csr.js CHANGED
@@ -3,10 +3,10 @@ import fssync from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import os from 'node:os';
5
5
  import nodeCrypto from 'node:crypto';
6
- import { Crypto } from '@peculiar/webcrypto';
6
+ import PeculiarWebCrypto from '@peculiar/webcrypto';
7
7
  import { cryptoProvider, Pkcs10CertificateRequestGenerator } from '@peculiar/x509';
8
8
 
9
- const crypto = new Crypto();
9
+ const crypto = new PeculiarWebCrypto.Crypto();
10
10
  cryptoProvider.set(crypto); // Set provider before using generator
11
11
 
12
12
  /**