@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.2.0";
130548
+ var version21 = "1.3.0-alpha.2";
130549
130549
 
130550
130550
  // src/common/logger.ts
130551
130551
  var TurboWinstonLogger = class {
@@ -18,4 +18,4 @@
18
18
  Object.defineProperty(exports, "__esModule", { value: true });
19
19
  exports.version = void 0;
20
20
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
21
- exports.version = '1.3.0-alpha.1';
21
+ exports.version = '1.3.0';
@@ -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 node_crypto_1 = require("node:crypto");
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, node_crypto_1.randomBytes)(16).toString('hex');
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
@@ -15,4 +15,4 @@
15
15
  * along with this program. If not, see <http://www.gnu.org/licenses/>.
16
16
  */
17
17
  // AUTOMATICALLY GENERATED FILE - DO NOT TOUCH
18
- export const version = '1.3.0-alpha.1';
18
+ export const version = '1.3.0';
@@ -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 'node:crypto';
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 {
@@ -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.2.0";
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,UAAU,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["../../src/version.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAGH,eAAO,MAAM,OAAO,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ardrive/turbo-sdk",
3
- "version": "1.3.0-alpha.1",
3
+ "version": "1.3.0",
4
4
  "main": "./lib/cjs/node/index.js",
5
5
  "types": "./lib/types/node/index.d.ts",
6
6
  "module": "./lib/esm/node/index.js",