Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

atomicassets

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

atomicassets - npm Package Compare versions

Comparing version 1.0.1 to 1.0.2

15

build/API/Rpc/index.js

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

}
return new Asset_1.default(this, owner, id, undefined, undefined, undefined, undefined, cache);
const data = await this.queue.fetchAsset(owner, id, cache);
return new Asset_1.default(this, owner, id, data, undefined, undefined, undefined, cache);
}

@@ -57,3 +58,4 @@ async getTemplate(collectionName, templateID, cache = true) {

}
return new Template_1.default(this, collectionName, templateID, undefined, undefined, cache);
const data = await this.queue.fetchTemplate(collectionName, templateID, cache);
return new Template_1.default(this, collectionName, templateID, data, undefined, cache);
}

@@ -64,3 +66,4 @@ async getCollection(collectionName, cache = true) {

}
return new Collection_1.default(this, collectionName, undefined, cache);
const data = await this.queue.fetchCollection(collectionName, cache);
return new Collection_1.default(this, collectionName, data, cache);
}

@@ -81,3 +84,4 @@ async getCollectionTemplates(collectionName) {

}
return new Schema_1.default(this, collectionName, schemaName, undefined, cache);
const data = await this.queue.fetchSchema(collectionName, schemaName, cache);
return new Schema_1.default(this, collectionName, schemaName, data, cache);
}

@@ -88,3 +92,4 @@ async getOffer(offerID, cache = true) {

}
return new Offer_1.default(this, offerID, undefined, undefined, undefined, cache);
const data = await this.queue.fetchOffer(offerID, cache);
return new Offer_1.default(this, offerID, data, undefined, undefined, cache);
}

@@ -91,0 +96,0 @@ async getAccountOffers(account) {

"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const RpcError_1 = __importDefault(require("../../Errors/RpcError"));
class RpcQueue {

@@ -93,9 +89,10 @@ constructor(api, requestLimit = 4) {

try {
const resp = await this.api.getTableRows({
const options = {
code: this.api.contract, table, scope,
limit: 1, lower_bound: match, upper_bound: match,
index_position: indexPosition, key_type: keyType
});
};
const resp = await this.api.getTableRows(options);
if (resp.rows.length === 0) {
return reject(new RpcError_1.default('row not found \'' + match + '\''));
return reject(new Error('Row not found for ' + JSON.stringify(options)));
}

@@ -102,0 +99,0 @@ return resolve(cacheFn(resp.rows[0]));

@@ -12,3 +12,3 @@ {

"license": "MIT",
"version": "1.0.1",
"version": "1.0.2",
"main": "build/index.js",

@@ -15,0 +15,0 @@ "types": "build/index.d.ts",

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