Socket
Socket
Sign inDemoInstall

arbundles

Package Overview
Dependencies
12
Maintainers
3
Versions
89
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.10.1 to 0.11.0

build/node/cjs/src/types.d.ts

21

build/node/cjs/src/DataItem.d.ts

@@ -6,2 +6,3 @@ /// <reference types="node" />

import { SignatureConfig } from "./constants";
import type { Base64URLString } from "./types";
export declare const MIN_BINARY_SIZE = 80;

@@ -16,3 +17,3 @@ export declare const MAX_TAG_BYTES = 4096;

isValid(): Promise<boolean>;
get id(): string;
get id(): Base64URLString;
set id(id: string);

@@ -22,12 +23,12 @@ get rawId(): Buffer;

get rawSignature(): Buffer;
get signature(): string;
get signature(): Base64URLString;
set rawOwner(pubkey: Buffer);
get rawOwner(): Buffer;
get signatureLength(): number;
get owner(): string;
get owner(): Base64URLString;
get ownerLength(): number;
get rawTarget(): Buffer;
get target(): string;
get target(): Base64URLString;
get rawAnchor(): Buffer;
get anchor(): string;
get anchor(): Base64URLString;
get rawTags(): Buffer;

@@ -39,8 +40,8 @@ get tags(): {

get tagsB64Url(): {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];
getStartOfData(): number;
get rawData(): Buffer;
get data(): string;
get data(): Base64URLString;
/**

@@ -63,4 +64,4 @@ * UNSAFE!!

tags: {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];

@@ -67,0 +68,0 @@ };

@@ -96,3 +96,3 @@ "use strict";

get anchor() {
return this.rawAnchor.toString();
return base64url_1.default.encode(this.rawAnchor); /* .toString(); */
}

@@ -99,0 +99,0 @@ get rawTags() {

@@ -7,2 +7,3 @@ /// <reference types="node" />

import type { AxiosResponse } from "axios";
import type { Base64URLString } from "../types";
export declare class FileDataItem implements BundleItem {

@@ -31,3 +32,3 @@ readonly filename: PathLike;

rawAnchor(): Promise<Buffer>;
anchor(): Promise<string>;
anchor(): Promise<Base64URLString>;
rawTags(): Promise<Buffer>;

@@ -34,0 +35,0 @@ tags(): Promise<{

@@ -201,3 +201,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
return (yield this.rawAnchor()).toString();
return base64url_1.default.encode(yield this.rawAnchor());
});

@@ -204,0 +204,0 @@ }

@@ -34,4 +34,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const driver = (0, utils_1.getCryptoDriver)();
return yield driver.verify(pk, message, signature);
return yield (0, utils_1.getCryptoDriver)().verify(pk, message, signature);
});

@@ -38,0 +37,0 @@ }

@@ -6,2 +6,3 @@ /// <reference types="node" />

import { SignatureConfig } from "./constants.js";
import type { Base64URLString } from "./types.js";
export declare const MIN_BINARY_SIZE = 80;

@@ -16,3 +17,3 @@ export declare const MAX_TAG_BYTES = 4096;

isValid(): Promise<boolean>;
get id(): string;
get id(): Base64URLString;
set id(id: string);

@@ -22,12 +23,12 @@ get rawId(): Buffer;

get rawSignature(): Buffer;
get signature(): string;
get signature(): Base64URLString;
set rawOwner(pubkey: Buffer);
get rawOwner(): Buffer;
get signatureLength(): number;
get owner(): string;
get owner(): Base64URLString;
get ownerLength(): number;
get rawTarget(): Buffer;
get target(): string;
get target(): Base64URLString;
get rawAnchor(): Buffer;
get anchor(): string;
get anchor(): Base64URLString;
get rawTags(): Buffer;

@@ -39,8 +40,8 @@ get tags(): {

get tagsB64Url(): {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];
getStartOfData(): number;
get rawData(): Buffer;
get data(): string;
get data(): Base64URLString;
/**

@@ -63,4 +64,4 @@ * UNSAFE!!

tags: {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];

@@ -67,0 +68,0 @@ };

@@ -81,3 +81,3 @@ import { byteArrayToLong } from "./utils.js";

get anchor() {
return this.rawAnchor.toString();
return base64url.encode(this.rawAnchor); /* .toString(); */
}

@@ -84,0 +84,0 @@ get rawTags() {

@@ -7,2 +7,3 @@ /// <reference types="node" />

import type { AxiosResponse } from "axios";
import type { Base64URLString } from "../types.js";
export declare class FileDataItem implements BundleItem {

@@ -31,3 +32,3 @@ readonly filename: PathLike;

rawAnchor(): Promise<Buffer>;
anchor(): Promise<string>;
anchor(): Promise<Base64URLString>;
rawTags(): Promise<Buffer>;

@@ -34,0 +35,0 @@ tags(): Promise<{

@@ -159,3 +159,3 @@ import base64url from "base64url";

async anchor() {
return (await this.rawAnchor()).toString();
return base64url.encode(await this.rawAnchor());
}

@@ -162,0 +162,0 @@ async rawTags() {

@@ -20,6 +20,5 @@ import Rsa4096Pss from "../keys/Rsa4096Pss.js";

static async verify(pk, message, signature) {
const driver = getCryptoDriver();
return await driver.verify(pk, message, signature);
return await getCryptoDriver().verify(pk, message, signature);
}
}
//# sourceMappingURL=ArweaveSigner.js.map

@@ -6,2 +6,3 @@ /// <reference types="node" />

import { SignatureConfig } from "./constants";
import type { Base64URLString } from "./types";
export declare const MIN_BINARY_SIZE = 80;

@@ -16,3 +17,3 @@ export declare const MAX_TAG_BYTES = 4096;

isValid(): Promise<boolean>;
get id(): string;
get id(): Base64URLString;
set id(id: string);

@@ -22,12 +23,12 @@ get rawId(): Buffer;

get rawSignature(): Buffer;
get signature(): string;
get signature(): Base64URLString;
set rawOwner(pubkey: Buffer);
get rawOwner(): Buffer;
get signatureLength(): number;
get owner(): string;
get owner(): Base64URLString;
get ownerLength(): number;
get rawTarget(): Buffer;
get target(): string;
get target(): Base64URLString;
get rawAnchor(): Buffer;
get anchor(): string;
get anchor(): Base64URLString;
get rawTags(): Buffer;

@@ -39,8 +40,8 @@ get tags(): {

get tagsB64Url(): {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];
getStartOfData(): number;
get rawData(): Buffer;
get data(): string;
get data(): Base64URLString;
/**

@@ -63,4 +64,4 @@ * UNSAFE!!

tags: {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];

@@ -67,0 +68,0 @@ };

@@ -96,3 +96,3 @@ "use strict";

get anchor() {
return this.rawAnchor.toString();
return base64url_1.default.encode(this.rawAnchor); /* .toString(); */
}

@@ -99,0 +99,0 @@ get rawTags() {

@@ -7,2 +7,3 @@ /// <reference types="node" />

import type { AxiosResponse } from "axios";
import type { Base64URLString } from "../types";
export declare class FileDataItem implements BundleItem {

@@ -31,3 +32,3 @@ readonly filename: PathLike;

rawAnchor(): Promise<Buffer>;
anchor(): Promise<string>;
anchor(): Promise<Base64URLString>;
rawTags(): Promise<Buffer>;

@@ -34,0 +35,0 @@ tags(): Promise<{

@@ -201,3 +201,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
return (yield this.rawAnchor()).toString();
return base64url_1.default.encode(yield this.rawAnchor());
});

@@ -204,0 +204,0 @@ }

@@ -34,4 +34,3 @@ "use strict";

return __awaiter(this, void 0, void 0, function* () {
const driver = (0, utils_1.getCryptoDriver)();
return yield driver.verify(pk, message, signature);
return yield (0, utils_1.getCryptoDriver)().verify(pk, message, signature);
});

@@ -38,0 +37,0 @@ }

@@ -6,2 +6,3 @@ /// <reference types="node" />

import { SignatureConfig } from "./constants.js";
import type { Base64URLString } from "./types.js";
export declare const MIN_BINARY_SIZE = 80;

@@ -16,3 +17,3 @@ export declare const MAX_TAG_BYTES = 4096;

isValid(): Promise<boolean>;
get id(): string;
get id(): Base64URLString;
set id(id: string);

@@ -22,12 +23,12 @@ get rawId(): Buffer;

get rawSignature(): Buffer;
get signature(): string;
get signature(): Base64URLString;
set rawOwner(pubkey: Buffer);
get rawOwner(): Buffer;
get signatureLength(): number;
get owner(): string;
get owner(): Base64URLString;
get ownerLength(): number;
get rawTarget(): Buffer;
get target(): string;
get target(): Base64URLString;
get rawAnchor(): Buffer;
get anchor(): string;
get anchor(): Base64URLString;
get rawTags(): Buffer;

@@ -39,8 +40,8 @@ get tags(): {

get tagsB64Url(): {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];
getStartOfData(): number;
get rawData(): Buffer;
get data(): string;
get data(): Base64URLString;
/**

@@ -63,4 +64,4 @@ * UNSAFE!!

tags: {
name: string;
value: string;
name: Base64URLString;
value: Base64URLString;
}[];

@@ -67,0 +68,0 @@ };

@@ -81,3 +81,3 @@ import { byteArrayToLong } from "./utils.js";

get anchor() {
return this.rawAnchor.toString();
return base64url.encode(this.rawAnchor); /* .toString(); */
}

@@ -84,0 +84,0 @@ get rawTags() {

@@ -7,2 +7,3 @@ /// <reference types="node" />

import type { AxiosResponse } from "axios";
import type { Base64URLString } from "../types.js";
export declare class FileDataItem implements BundleItem {

@@ -31,3 +32,3 @@ readonly filename: PathLike;

rawAnchor(): Promise<Buffer>;
anchor(): Promise<string>;
anchor(): Promise<Base64URLString>;
rawTags(): Promise<Buffer>;

@@ -34,0 +35,0 @@ tags(): Promise<{

@@ -159,3 +159,3 @@ import base64url from "base64url";

async anchor() {
return (await this.rawAnchor()).toString();
return base64url.encode(await this.rawAnchor());
}

@@ -162,0 +162,0 @@ async rawTags() {

@@ -20,6 +20,5 @@ import Rsa4096Pss from "../keys/Rsa4096Pss.js";

static async verify(pk, message, signature) {
const driver = getCryptoDriver();
return await driver.verify(pk, message, signature);
return await getCryptoDriver().verify(pk, message, signature);
}
}
//# sourceMappingURL=ArweaveSigner.js.map
{
"name": "arbundles",
"version": "0.10.1",
"version": "0.11.0",
"description": "Arweave bundling library",

@@ -74,3 +74,4 @@ "author": "Josh Benaron <joshbenaron@gmail.com>",

"files": [
"./build/**/*"
"./build/**/*",
"./src/**/*"
],

@@ -77,0 +78,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc