@ardrive/turbo-sdk 1.3.0-alpha.1 → 1.3.0
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.
@@ -130545,7 +130545,7 @@ var import_winston = __toESM(require_winston(), 1);
|
|
130545
130545
|
init_dirname();
|
130546
130546
|
init_buffer2();
|
130547
130547
|
init_process2();
|
130548
|
-
var version21 = "1.
|
130548
|
+
var version21 = "1.3.0-alpha.2";
|
130549
130549
|
|
130550
130550
|
// src/common/logger.ts
|
130551
130551
|
var TurboWinstonLogger = class {
|
package/lib/cjs/version.js
CHANGED
package/lib/cjs/web/signer.js
CHANGED
@@ -18,7 +18,7 @@ exports.TurboWebArweaveSigner = void 0;
|
|
18
18
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
19
|
*/
|
20
20
|
const arbundles_1 = require("arbundles");
|
21
|
-
const
|
21
|
+
const crypto_1 = require("crypto");
|
22
22
|
const base64_js_1 = require("../utils/base64.js");
|
23
23
|
const readableStream_js_1 = require("../utils/readableStream.js");
|
24
24
|
class TurboWebArweaveSigner {
|
@@ -49,7 +49,7 @@ class TurboWebArweaveSigner {
|
|
49
49
|
}
|
50
50
|
// NOTE: this might be better in a parent class or elsewhere - easy enough to leave in here now and does require specific environment version of crypto
|
51
51
|
async generateSignedRequestHeaders() {
|
52
|
-
const nonce = (0,
|
52
|
+
const nonce = (0, crypto_1.randomBytes)(16).toString('hex');
|
53
53
|
const buffer = Buffer.from(nonce);
|
54
54
|
const signature = await this.signer.sign(buffer);
|
55
55
|
// for arconnect, we need to make sure we have the public key
|
package/lib/esm/version.js
CHANGED
package/lib/esm/web/signer.js
CHANGED
@@ -15,7 +15,7 @@
|
|
15
15
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
16
|
*/
|
17
17
|
import { ArconnectSigner, createData } from 'arbundles';
|
18
|
-
import { randomBytes } from '
|
18
|
+
import { randomBytes } from 'crypto';
|
19
19
|
import { toB64Url } from '../utils/base64.js';
|
20
20
|
import { readableStreamToBuffer } from '../utils/readableStream.js';
|
21
21
|
export class TurboWebArweaveSigner {
|
package/lib/types/version.d.ts
CHANGED
@@ -14,5 +14,5 @@
|
|
14
14
|
* You should have received a copy of the GNU Affero General Public License
|
15
15
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
16
16
|
*/
|
17
|
-
export declare const version = "1.
|
17
|
+
export declare const version = "1.3.0-alpha.2";
|
18
18
|
//# sourceMappingURL=version.d.ts.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,eAAO,MAAM,OAAO,
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
|