Socket
Socket
Sign inDemoInstall

@rss3/js-sdk

Package Overview
Dependencies
Maintainers
3
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@rss3/js-sdk - npm Package Compare versions

Comparing version 0.2.0 to 0.2.1

12

lib/data/client.js

@@ -80,16 +80,6 @@ "use strict";

return __awaiter(this, void 0, void 0, function () {
var oldFetch, client, _a, data, error;
var _this = this;
var client, _a, data, error;
return __generator(this, function (_b) {
switch (_b.label) {
case 0:
oldFetch = opt.fetch || fetch;
opt.fetch = function (url, init) { return __awaiter(_this, void 0, void 0, function () {
return __generator(this, function (_a) {
if (/%40/.test(url.toString())) {
url = url.toString().replace(/%40/g, '@');
}
return [2 /*return*/, oldFetch(url, init)];
});
}); };
client = (0, openapi_fetch_1.default)(opt);

@@ -96,0 +86,0 @@ return [4 /*yield*/, client.get('/mastodon/{address}', {

13

lib/search/client.d.ts

@@ -34,2 +34,3 @@ import { operations } from '../types/search';

author?: string | undefined;
medias?: string[] | undefined;
score?: number | undefined;

@@ -260,5 +261,5 @@ highlighting?: {

} | {
choice: Record<string, never>;
proposal: Record<string, never>;
space: Record<string, never>;
choice: unknown;
proposal: unknown;
space: unknown;
} | {

@@ -612,5 +613,5 @@ action: string;

} | {
choice: Record<string, never>;
proposal: Record<string, never>;
space: Record<string, never>;
choice: unknown;
proposal: unknown;
space: unknown;
} | {

@@ -617,0 +618,0 @@ action: string;

@@ -45,3 +45,3 @@ /**

parameters: {
query: {
query?: {
network?: components["schemas"]["NetworkName"][];

@@ -64,6 +64,6 @@ token_address?: string;

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Asset"])[];
result?: components["schemas"]["Asset"][];
/** @description total number of items */

@@ -80,5 +80,5 @@ total?: number | null;

parameters: {
query: {
query?: {
cursor?: number;
name?: (string)[];
name?: string[];
network?: components["schemas"]["NetworkName"][];

@@ -95,6 +95,6 @@ };

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["ExchangeResult"])[];
result?: components["schemas"]["ExchangeResult"][];
/** @description total number of items */

@@ -111,7 +111,7 @@ total?: number | null;

parameters: {
query: {
query?: {
limit?: number;
cursor?: string;
type?: (string)[];
tag?: (string)[];
type?: string[];
tag?: string[];
network?: components["schemas"]["NetworkName"][];

@@ -121,3 +121,3 @@ platform?: components["schemas"]["PlatformName"][];

hash?: string;
hash_list?: (string)[];
hash_list?: string[];
include_poap?: boolean;

@@ -141,6 +141,6 @@ refresh?: boolean;

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Transaction"])[];
result?: components["schemas"]["Transaction"][];
/** @description total number of items */

@@ -160,3 +160,3 @@ total?: number | null;

action_limit?: number;
address: (string)[];
address: string[];
count_only?: boolean;

@@ -172,5 +172,5 @@ cursor?: string;

refresh?: boolean;
tag?: (string)[];
tag?: string[];
timestamp?: components["schemas"]["Time"];
type?: (string)[];
type?: string[];
};

@@ -184,6 +184,6 @@ };

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Transaction"])[];
result?: components["schemas"]["Transaction"][];
/** @description total number of items */

@@ -202,3 +202,3 @@ total?: number | null;

"application/json": {
address: (string)[];
address: string[];
count_only?: boolean;

@@ -211,3 +211,3 @@ cursor?: string;

timestamp?: components["schemas"]["Time"];
type?: (string)[];
type?: string[];
};

@@ -221,6 +221,6 @@ };

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Transaction"])[];
result?: components["schemas"]["Transaction"][];
/** @description total number of items */

@@ -237,7 +237,7 @@ total?: number | null;

parameters: {
query: {
query?: {
limit?: number;
cursor?: string;
type?: (string)[];
tag?: (string)[];
type?: string[];
tag?: string[];
network?: components["schemas"]["NetworkName"][];

@@ -247,3 +247,3 @@ platform?: components["schemas"]["PlatformName"][];

hash?: string;
hash_list?: (string)[];
hash_list?: string[];
include_poap?: boolean;

@@ -267,6 +267,6 @@ refresh?: boolean;

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Transaction"])[];
result?: components["schemas"]["Transaction"][];
/** @description total number of items */

@@ -300,3 +300,3 @@ total?: number | null;

parameters: {
query: {
query?: {
limit?: number;

@@ -315,6 +315,6 @@ cursor?: string;

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Transaction"])[];
result?: components["schemas"]["Transaction"][];
/** @description total number of items */

@@ -331,3 +331,3 @@ total?: number | null;

parameters: {
query: {
query?: {
network?: components["schemas"]["NetworkName"][];

@@ -344,6 +344,6 @@ };

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["PlatformResult"])[];
result?: components["schemas"]["PlatformResult"][];
/** @description total number of items */

@@ -362,3 +362,3 @@ total?: number | null;

"application/json": {
address: (string)[];
address: string[];
network?: components["schemas"]["NetworkName"][];

@@ -375,6 +375,6 @@ platform?: components["schemas"]["PlatformName"][];

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Profile"])[];
result?: components["schemas"]["Profile"][];
/** @description total number of items */

@@ -391,7 +391,7 @@ total?: number | null;

parameters: {
query: {
query?: {
limit?: number;
cursor?: string;
type?: (string)[];
tag?: (string)[];
type?: string[];
tag?: string[];
network?: components["schemas"]["NetworkName"][];

@@ -401,3 +401,3 @@ platform?: components["schemas"]["PlatformName"][];

hash?: string;
hash_list?: (string)[];
hash_list?: string[];
include_poap?: boolean;

@@ -421,6 +421,6 @@ refresh?: boolean;

"application/json": {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;
message?: string;
result?: (components["schemas"]["Profile"])[];
result?: components["schemas"]["Profile"][];
/** @description total number of items */

@@ -469,5 +469,5 @@ total?: number | null;

comment?: string;
examples?: (components["schemas"]["Example"])[];
examples?: components["schemas"]["Example"][];
name?: string;
platforms?: (string)[];
platforms?: string[];
};

@@ -487,3 +487,3 @@ /**

*/
nonce: Record<string, never>;
nonce: unknown;
status: boolean;

@@ -519,3 +519,3 @@ /**

action_limit?: number;
address: (string)[];
address: string[];
count_only?: boolean;

@@ -531,5 +531,5 @@ cursor?: string;

refresh?: boolean;
tag?: (string)[];
tag?: string[];
timestamp?: components["schemas"]["Time"];
type?: (string)[];
type?: string[];
};

@@ -541,3 +541,3 @@ /**

BatchGetProfilesRequest: {
address: (string)[];
address: string[];
network?: components["schemas"]["NetworkName"][];

@@ -552,3 +552,3 @@ platform?: components["schemas"]["PlatformName"][];

BatchGetSocialNotesRequest: {
address: (string)[];
address: string[];
count_only?: boolean;

@@ -561,3 +561,3 @@ cursor?: string;

timestamp?: components["schemas"]["Time"];
type?: (string)[];
type?: string[];
};

@@ -633,3 +633,3 @@ /**

protocol: string;
tokens: (components["schemas"]["Token"])[];
tokens: components["schemas"]["Token"][];
};

@@ -721,7 +721,7 @@ /**

action?: string;
author?: (string)[];
author?: string[];
body?: string;
categories?: (string)[];
categories?: string[];
created_at?: string;
media?: (components["schemas"]["Media"])[];
media?: components["schemas"]["Media"][];
origin_note_id?: string;

@@ -732,3 +732,3 @@ profile_id?: components["schemas"]["Int"] | null;

summary?: string;
tags?: (string)[];
tags?: string[];
target?: components["schemas"]["Post"] | null;

@@ -774,3 +774,3 @@ target_url?: string;

id: string;
options: (string)[];
options: string[];
organization?: components["schemas"]["Organization"] | null;

@@ -785,3 +785,3 @@ start_at: components["schemas"]["Time"];

*/
RawMessage: Record<string, never>;
RawMessage: unknown;
/**

@@ -792,3 +792,3 @@ * Response

Response: {
address_status?: (components["schemas"]["Address"])[];
address_status?: components["schemas"]["Address"][];
cursor?: string;

@@ -822,3 +822,3 @@ message?: string;

*/
StringArray: (string)[];
StringArray: string[];
/**

@@ -854,3 +854,3 @@ * Swap

animation_url?: string;
attributes?: (components["schemas"]["TokenAttribute"])[];
attributes?: components["schemas"]["TokenAttribute"][];
collection?: string;

@@ -890,3 +890,3 @@ contract_address?: string;

Transaction: {
actions: (components["schemas"]["Transfer"])[];
actions: components["schemas"]["Transfer"][];
address_from: string;

@@ -1345,3 +1345,3 @@ address_to?: string;

TransferType: {
Actions: (components["schemas"]["Action"])[];
Actions: components["schemas"]["Action"][];
Metadata: Record<string, never>;

@@ -1357,3 +1357,3 @@ Tag: string;

address: string;
owners: (string)[];
owners: string[];
threshold: components["schemas"]["Int"] | null;

@@ -1360,0 +1360,0 @@ version: string;

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

(0, node_fs_1.writeFileSync)("tmp/".concat(name, ".json"), JSON.stringify(schema));
(0, node_child_process_1.spawnSync)('npx', ['--yes', 'openapi-typescript', "tmp/".concat(name, ".json"), '--output', "src/types/".concat(name, ".ts")], {
(0, node_child_process_1.spawnSync)('npx', ['--yes', 'openapi-typescript@6.3.9', "tmp/".concat(name, ".json"), '--output', "src/types/".concat(name, ".ts")], {
stdio: 'inherit',

@@ -89,0 +89,0 @@ });

@@ -176,6 +176,6 @@ import { components as data } from './data';

floorPrice?: number;
top3images?: (components["schemas"]["NftImageDTO"])[];
top3images?: components["schemas"]["NftImageDTO"][];
};
CollectionSearchRespDTO: {
collections?: (components["schemas"]["CollectionDocDTO"])[];
collections?: components["schemas"]["CollectionDocDTO"][];
/** Format: int64 */

@@ -377,3 +377,3 @@ totalPage?: number;

platform?: string;
relatedUrls?: (string)[];
relatedUrls?: string[];
metadata?: data['schemas']['Transfer']['metadata'];

@@ -405,5 +405,5 @@ owner?: string;

totalPage?: number;
feeds?: (components["schemas"]["FeedRankDocDTO"])[];
networkAgg?: (components["schemas"]["FeedSearchNetworkAggDTO"])[];
platformAgg?: (components["schemas"]["FeedSearchPlatformAggDTO"])[];
feeds?: components["schemas"]["FeedRankDocDTO"][];
networkAgg?: components["schemas"]["FeedSearchNetworkAggDTO"][];
platformAgg?: components["schemas"]["FeedSearchPlatformAggDTO"][];
};

@@ -425,3 +425,3 @@ JSONObject: any;

source?: string;
relatedUrls?: (string)[];
relatedUrls?: string[];
metadata?: data['schemas']['Transfer']['metadata'];

@@ -434,3 +434,3 @@ author?: string;

WikiSearchRespDTO: {
docs?: (components["schemas"]["WikiDocDTO"])[];
docs?: components["schemas"]["WikiDocDTO"][];
/** Format: int64 */

@@ -469,3 +469,3 @@ totalPage?: number;

NFTImageResp4ExternalDTO: {
images?: (components["schemas"]["NftImage4ExternalDTO"])[];
images?: components["schemas"]["NftImage4ExternalDTO"][];
/** Format: int64 */

@@ -514,6 +514,6 @@ totalPage?: number;

floorPrice?: number;
top3images?: (components["schemas"]["NftImage4ExternalDTO"])[];
top3images?: components["schemas"]["NftImage4ExternalDTO"][];
};
CollectionSearchResp4ExternalDTO: {
collections?: (components["schemas"]["CollectionDoc4ExternalDTO"])[];
collections?: components["schemas"]["CollectionDoc4ExternalDTO"][];
/** Format: int64 */

@@ -534,3 +534,3 @@ totalPage?: number;

score?: number;
similarItems?: (string)[];
similarItems?: string[];
};

@@ -549,6 +549,6 @@ DaapDocDTO0: {

score?: number;
similarItems?: (components["schemas"]["DaapDocDTO"])[];
similarItems?: components["schemas"]["DaapDocDTO"][];
};
DaapSearchRespDTO: {
docs?: (components["schemas"]["DaapDocDTO0"])[];
docs?: components["schemas"]["DaapDocDTO0"][];
/** Format: int64 */

@@ -567,3 +567,3 @@ totalPage?: number;

coinMetadata?: components["schemas"]["JSONObject"];
similarCoins?: (components["schemas"]["JSONObject"])[];
similarCoins?: components["schemas"]["JSONObject"][];
};

@@ -612,2 +612,3 @@ /** @description 币价转换(币与币) */

author?: string;
medias?: string[];
/** Format: float */

@@ -619,3 +620,3 @@ score?: number;

address_to?: string;
related_urls?: (string)[];
related_urls?: string[];
};

@@ -631,3 +632,3 @@ FeedRankDoc4ExternalDTO: {

platform?: string;
actions?: (components["schemas"]["FeedRankActionDoc4ExternalDTO"])[];
actions?: components["schemas"]["FeedRankActionDoc4ExternalDTO"][];
transaction_hash?: string;

@@ -638,5 +639,5 @@ };

totalPage?: number;
contents?: (components["schemas"]["FeedRankDoc4ExternalDTO"])[];
network_agg?: (components["schemas"]["FeedSearchNetworkAggDTO"])[];
platform_agg?: (components["schemas"]["FeedSearchPlatformAggDTO"])[];
contents?: components["schemas"]["FeedRankDoc4ExternalDTO"][];
network_agg?: components["schemas"]["FeedSearchNetworkAggDTO"][];
platform_agg?: components["schemas"]["FeedSearchPlatformAggDTO"][];
};

@@ -653,3 +654,3 @@ FeedRankActionDoc4ExternalDetailDTO: {

address_to?: string;
related_urls?: (string)[];
related_urls?: string[];
};

@@ -665,3 +666,3 @@ FeedRankDoc4ExternalDetailDTO: {

platform?: string;
actions?: (components["schemas"]["FeedRankActionDoc4ExternalDetailDTO"])[];
actions?: components["schemas"]["FeedRankActionDoc4ExternalDetailDTO"][];
transaction_hash?: string;

@@ -696,3 +697,3 @@ };

/** @description feeds */
feeds?: (components["schemas"]["FeedRankDocDTO"])[];
feeds?: components["schemas"]["FeedRankDocDTO"][];
/**

@@ -704,3 +705,3 @@ * Format: int64

/** @description nfts */
nfts?: (components["schemas"]["CollectionDocDTO"])[];
nfts?: components["schemas"]["CollectionDocDTO"][];
wiki?: components["schemas"]["WikiDocDTO"];

@@ -710,3 +711,3 @@ project?: components["schemas"]["ProjectDocDTO"];

/** @description 纠错 */
spellCorrection?: (string)[];
spellCorrection?: string[];
};

@@ -721,7 +722,7 @@ /** @description 搜索响应 */

/** @description docs */
docs?: (components["schemas"]["Rss3DocDTO"])[];
docs?: components["schemas"]["Rss3DocDTO"][];
/** @description nft collections */
collections?: (components["schemas"]["Rss3CollectionRecord"])[];
collections?: components["schemas"]["Rss3CollectionRecord"][];
/** @description nft images */
images?: (components["schemas"]["Rss3ImageRecord"])[];
images?: components["schemas"]["Rss3ImageRecord"][];
/** @description intention type */

@@ -791,3 +792,3 @@ intentions?: ("PEOPLE" | "NFT" | "TRADE" | "TOKEN" | "DAPP" | "NEWS" | "TIME" | "TREND" | "QUESTION")[];

NFTImageRespDTO: {
images?: (components["schemas"]["NftImageDTO"])[];
images?: components["schemas"]["NftImageDTO"][];
/** Format: int64 */

@@ -887,3 +888,3 @@ totalPage?: number;

parameters: {
query: {
query?: {
/**

@@ -900,3 +901,3 @@ * @description date

content: {
"application/json": (components["schemas"]["Event"])[];
"application/json": components["schemas"]["Event"][];
};

@@ -928,3 +929,3 @@ };

content: {
"application/json": (string)[];
"application/json": string[];
};

@@ -954,3 +955,3 @@ };

content: {
"application/json": (components["schemas"]["RelatedAddressRespDTO"])[];
"application/json": components["schemas"]["RelatedAddressRespDTO"][];
};

@@ -985,3 +986,3 @@ };

content: {
"application/json": (components["schemas"]["AutoCompleteRespDTO"])[];
"application/json": components["schemas"]["AutoCompleteRespDTO"][];
};

@@ -1319,3 +1320,3 @@ };

content: {
"application/json": (components["schemas"]["WikiProfileRespDTO"])[];
"application/json": components["schemas"]["WikiProfileRespDTO"][];
};

@@ -1371,3 +1372,3 @@ };

content: {
"application/json": (string)[];
"application/json": string[];
};

@@ -1448,3 +1449,3 @@ };

content: {
"application/json": (components["schemas"]["AutoCompleteRespDTO"])[];
"application/json": components["schemas"]["AutoCompleteRespDTO"][];
};

@@ -1473,3 +1474,3 @@ };

content: {
"application/json": (components["schemas"]["AutoCompleteRespDTO"])[];
"application/json": components["schemas"]["AutoCompleteRespDTO"][];
};

@@ -1546,3 +1547,3 @@ };

content: {
"application/json": (components["schemas"]["NFTAutoCompleteRespDTO"])[];
"application/json": components["schemas"]["NFTAutoCompleteRespDTO"][];
};

@@ -1561,3 +1562,3 @@ };

parameters: {
query: {
query?: {
/**

@@ -1574,3 +1575,3 @@ * @description date

content: {
"application/json": (components["schemas"]["Event"])[];
"application/json": components["schemas"]["Event"][];
};

@@ -1577,0 +1578,0 @@ };

{
"name": "@rss3/js-sdk",
"version": "0.2.0",
"version": "0.2.1",
"main": "lib/index.js",

@@ -5,0 +5,0 @@ "engines": {

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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc