🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

caip

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

caip - npm Package Compare versions

Comparing version

to
1.1.0-beta.1

2

dist/account.d.ts

@@ -18,4 +18,4 @@ import { ChainId, ChainIdParams } from "./chain";

toString(): string;
toJson(): AccountIdParams;
toJSON(): AccountIdParams;
}
//# sourceMappingURL=account.d.ts.map

@@ -18,4 +18,4 @@ import { AssetName, AssetNameParams } from "./assetName";

toString(): string;
toJson(): AssetIdParams;
toJSON(): AssetIdParams;
}
//# sourceMappingURL=assetId.d.ts.map

@@ -14,4 +14,4 @@ import { IdentifierSpec } from "./types";

toString(): string;
toJson(): AssetNameParams;
toJSON(): AssetNameParams;
}
//# sourceMappingURL=assetName.d.ts.map

@@ -16,4 +16,4 @@ import { AssetName, AssetNameParams } from "./assetName";

toString(): string;
toJson(): AssetTypeParams;
toJSON(): AssetTypeParams;
}
//# sourceMappingURL=assetType.d.ts.map

@@ -14,4 +14,4 @@ import { IdentifierSpec } from "./types";

toString(): string;
toJson(): ChainIdParams;
toJSON(): ChainIdParams;
}
//# sourceMappingURL=chain.d.ts.map

@@ -155,3 +155,3 @@ function _extends() {

return new ChainId(getParams(id, this.spec)).toJson();
return new ChainId(getParams(id, this.spec)).toJSON();
};

@@ -166,6 +166,6 @@

_proto.toString = function toString() {
return ChainId.format(this.toJson());
return ChainId.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {

@@ -208,3 +208,3 @@ namespace: this.namespace,

address: address
}).toJson();
}).toJSON();
};

@@ -215,3 +215,3 @@

var splitParams = _extends({}, chainId.toJson(), {
var splitParams = _extends({}, chainId.toJSON(), {
address: params.address

@@ -226,8 +226,8 @@ });

_proto.toString = function toString() {
return AccountId.format(this.toJson());
return AccountId.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {
chainId: this.chainId.toJson(),
chainId: this.chainId.toJSON(),
address: this.address

@@ -256,3 +256,3 @@ };

return new AssetName(getParams(id, this.spec)).toJson();
return new AssetName(getParams(id, this.spec)).toJSON();
};

@@ -267,6 +267,6 @@

_proto.toString = function toString() {
return AssetName.format(this.toJson());
return AssetName.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {

@@ -297,3 +297,3 @@ namespace: this.namespace,

return new AssetType(getParams(id, this.spec)).toJson();
return new AssetType(getParams(id, this.spec)).toJSON();
};

@@ -308,8 +308,8 @@

_proto.toString = function toString() {
return AssetType.format(this.toJson());
return AssetType.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {
chainId: this.chainId.toJson(),
chainId: this.chainId.toJSON(),
assetName: this.assetName

@@ -339,3 +339,3 @@ };

return new AssetId(getParams(id, this.spec)).toJson();
return new AssetId(getParams(id, this.spec)).toJSON();
};

@@ -350,9 +350,9 @@

_proto.toString = function toString() {
return AssetId.format(this.toJson());
return AssetId.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {
chainId: this.chainId.toJson(),
assetName: this.assetName.toJson(),
chainId: this.chainId.toJSON(),
assetName: this.assetName.toJSON(),
tokenId: this.tokenId

@@ -359,0 +359,0 @@ };

@@ -160,3 +160,3 @@ (function (global, factory) {

return new ChainId(getParams(id, this.spec)).toJson();
return new ChainId(getParams(id, this.spec)).toJSON();
};

@@ -171,6 +171,6 @@

_proto.toString = function toString() {
return ChainId.format(this.toJson());
return ChainId.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {

@@ -213,3 +213,3 @@ namespace: this.namespace,

address: address
}).toJson();
}).toJSON();
};

@@ -220,3 +220,3 @@

var splitParams = _extends({}, chainId.toJson(), {
var splitParams = _extends({}, chainId.toJSON(), {
address: params.address

@@ -231,8 +231,8 @@ });

_proto.toString = function toString() {
return AccountId.format(this.toJson());
return AccountId.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {
chainId: this.chainId.toJson(),
chainId: this.chainId.toJSON(),
address: this.address

@@ -261,3 +261,3 @@ };

return new AssetName(getParams(id, this.spec)).toJson();
return new AssetName(getParams(id, this.spec)).toJSON();
};

@@ -272,6 +272,6 @@

_proto.toString = function toString() {
return AssetName.format(this.toJson());
return AssetName.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {

@@ -302,3 +302,3 @@ namespace: this.namespace,

return new AssetType(getParams(id, this.spec)).toJson();
return new AssetType(getParams(id, this.spec)).toJSON();
};

@@ -313,8 +313,8 @@

_proto.toString = function toString() {
return AssetType.format(this.toJson());
return AssetType.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {
chainId: this.chainId.toJson(),
chainId: this.chainId.toJSON(),
assetName: this.assetName

@@ -344,3 +344,3 @@ };

return new AssetId(getParams(id, this.spec)).toJson();
return new AssetId(getParams(id, this.spec)).toJSON();
};

@@ -355,9 +355,9 @@

_proto.toString = function toString() {
return AssetId.format(this.toJson());
return AssetId.format(this.toJSON());
};
_proto.toJson = function toJson() {
_proto.toJSON = function toJSON() {
return {
chainId: this.chainId.toJson(),
assetName: this.assetName.toJson(),
chainId: this.chainId.toJSON(),
assetName: this.assetName.toJSON(),
tokenId: this.tokenId

@@ -364,0 +364,0 @@ };

{
"name": "caip",
"description": "CAIP standard utils",
"version": "1.1.0-beta.0",
"version": "1.1.0-beta.1",
"author": "Pedro Gomes <github.com/pedrouid>",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -23,3 +23,3 @@ # caip [![npm version](https://badge.fury.io/js/caip.svg)](https://badge.fury.io/js/caip)

chainId.toJson();
chainId.toJSON();
// { namespace: "eip155", reference: "1" }

@@ -72,3 +72,3 @@ ```

accountId.toJson();
accountId.toJSON();
// { address: "0xab16a96d359ec26a11e2c2b3d8f8b8942d5bfcdb", chainId: { namespace: "eip155", reference: "1" } }

@@ -137,3 +137,3 @@ ```

assetId.toJson();
assetId.toJSON();
// {

@@ -213,3 +213,3 @@ // chainId: { namespace: "eip155", reference: "1" },

assetType.toJson();
assetType.toJSON();
// {

@@ -216,0 +216,0 @@ // chainId: { namespace: "eip155", reference: "1" },

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