node-opcua-crypto 4.16.0 → 4.16.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.
package/LICENSE CHANGED
@@ -1,23 +1,23 @@
1
- The MIT License (MIT)
2
-
3
- Copyright (c) Etienne Rossignon 2015-2022
4
- Copyright (c) Sterfive.com 2022-2024
5
-
6
- Permission is hereby granted, free of charge, to any person obtaining a copy
7
- of this software and associated documentation files (the "Software"), to deal
8
- in the Software without restriction, including without limitation the rights
9
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- copies of the Software, and to permit persons to whom the Software is
11
- furnished to do so, subject to the following conditions:
12
-
13
- The above copyright notice and this permission notice shall be included in all
14
- copies or substantial portions of the Software.
15
-
16
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
- SOFTWARE.
23
-
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) Etienne Rossignon 2015-2022
4
+ Copyright (c) Sterfive.com 2022-2024
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+
@@ -6,12 +6,12 @@ import {
6
6
  privateKeyToPEM,
7
7
  removeTrailingLF,
8
8
  toPem
9
- } from "./chunk-F5EAPW2U.mjs";
9
+ } from "./chunk-MGQCHN54.mjs";
10
10
 
11
11
  // source_nodejs/read.ts
12
12
  import assert from "assert";
13
- import fs from "node:fs";
14
- import path from "node:path";
13
+ import fs from "fs";
14
+ import path from "path";
15
15
  import { createPrivateKey, createPublicKey } from "crypto";
16
16
  import sshpk from "sshpk";
17
17
  function _readPemFile(filename) {
@@ -109,7 +109,7 @@ function readPublicRsaKey(filename) {
109
109
  }
110
110
 
111
111
  // source_nodejs/read_certificate_revocation_list.ts
112
- import fs2 from "node:fs";
112
+ import fs2 from "fs";
113
113
  async function readCertificateRevocationList(filename) {
114
114
  const crl = await fs2.promises.readFile(filename);
115
115
  if (crl[0] === 48 && crl[1] === 130) {
@@ -120,7 +120,7 @@ async function readCertificateRevocationList(filename) {
120
120
  }
121
121
 
122
122
  // source_nodejs/read_certificate_signing_request.ts
123
- import fs3 from "node:fs";
123
+ import fs3 from "fs";
124
124
  async function readCertificateSigningRequest(filename) {
125
125
  const csr = await fs3.promises.readFile(filename);
126
126
  if (csr[0] === 48 && csr[1] === 130) {
@@ -131,7 +131,7 @@ async function readCertificateSigningRequest(filename) {
131
131
  }
132
132
 
133
133
  // source_nodejs/generate_private_key_filename.ts
134
- import fs4 from "node:fs";
134
+ import fs4 from "fs";
135
135
  import jsrsasign from "jsrsasign";
136
136
  async function generatePrivateKeyFile(privateKeyFilename, modulusLength) {
137
137
  const keys = await generateKeyPair(modulusLength);
@@ -164,4 +164,4 @@ export {
164
164
  generatePrivateKeyFile,
165
165
  generatePrivateKeyFileAlternate
166
166
  };
167
- //# sourceMappingURL=chunk-XPM4YIBT.mjs.map
167
+ //# sourceMappingURL=chunk-JDT2M2NN.mjs.map