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

@waves/data-entities

Package Overview
Dependencies
Maintainers
8
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@waves/data-entities - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

dist/config.js

3

dist/entities/Asset.js
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var bignumber_1 = require("../libs/bignumber");
var config_1 = require("../config");
var Asset = /** @class */ (function () {
function Asset(assetObject) {
assetObject = config_1.config.get('remapAsset')(assetObject);
this.quantity =

@@ -19,2 +21,3 @@ assetObject.quantity instanceof bignumber_1.BigNumber

this.reissuable = assetObject.reissuable;
this.displayName = assetObject.ticker || assetObject.name;
}

@@ -21,0 +24,0 @@ Asset.prototype.toJSON = function () {

@@ -13,2 +13,4 @@ "use strict";

exports.AssetPair = AssetPair_1.AssetPair;
var config_1 = require("./config");
exports.config = config_1.config;
//# sourceMappingURL=index.js.map
(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.dataEntities = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var storage = {
remapAsset: function (data) { return data; }
};
var config;
(function (config) {
function get(key) {
return storage[key];
}
config.get = get;
function set(key, value) {
if (typeof key === 'string') {
storage[key] = value;
}
else {
Object.keys(key).forEach(function (configKey) { return set(configKey, key[configKey]); });
}
}
config.set = set;
})(config = exports.config || (exports.config = {}));
},{}],2:[function(require,module,exports){
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var bignumber_1 = require("../libs/bignumber");
var config_1 = require("../config");
var Asset = /** @class */ (function () {
function Asset(assetObject) {
assetObject = config_1.config.get('remapAsset')(assetObject);
this.quantity =

@@ -20,2 +45,3 @@ assetObject.quantity instanceof bignumber_1.BigNumber

this.reissuable = assetObject.reissuable;
this.displayName = assetObject.ticker || assetObject.name;
}

@@ -46,3 +72,3 @@ Asset.prototype.toJSON = function () {

},{"../libs/bignumber":6}],2:[function(require,module,exports){
},{"../config":1,"../libs/bignumber":7}],3:[function(require,module,exports){
"use strict";

@@ -73,3 +99,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{}],3:[function(require,module,exports){
},{}],4:[function(require,module,exports){
"use strict";

@@ -212,3 +238,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{"../libs/bignumber":6}],4:[function(require,module,exports){
},{"../libs/bignumber":7}],5:[function(require,module,exports){
"use strict";

@@ -263,3 +289,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{"../libs/bignumber":6}],5:[function(require,module,exports){
},{"../libs/bignumber":7}],6:[function(require,module,exports){
"use strict";

@@ -277,4 +303,6 @@ Object.defineProperty(exports, "__esModule", { value: true });

exports.AssetPair = AssetPair_1.AssetPair;
var config_1 = require("./config");
exports.config = config_1.config;
},{"./entities/Asset":1,"./entities/AssetPair":2,"./entities/Money":3,"./entities/OrderPrice":4,"./libs/bignumber":6}],6:[function(require,module,exports){
},{"./config":1,"./entities/Asset":2,"./entities/AssetPair":3,"./entities/Money":4,"./entities/OrderPrice":5,"./libs/bignumber":7}],7:[function(require,module,exports){
"use strict";

@@ -288,3 +316,3 @@ Object.defineProperty(exports, "__esModule", { value: true });

},{"bignumber.js":undefined}]},{},[5])(5)
},{"bignumber.js":undefined}]},{},[6])(6)
});

4

package.json
{
"name": "@waves/data-entities",
"description": "Waves data types",
"version": "1.2.1",
"version": "1.3.0",
"license": "Apache-2.0",

@@ -17,3 +17,3 @@ "private": false,

"scripts": {
"prepare": "tsc --declaration && npm run browserify",
"prepare": "tsc && npm run browserify",
"browserify": "browserify ./dist/index.js -s data-entities -o ./dist/umd.js -u bignumber.js"

@@ -20,0 +20,0 @@ },

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc