Socket
Socket
Sign inDemoInstall

insight-ui

Package Overview
Dependencies
Maintainers
4
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

insight-ui - npm Package Compare versions

Comparing version 5.0.0-beta.33 to 5.0.0-beta.34

package.json-e

2

package.json
{
"name": "insight-ui",
"description": "An open-source frontend for the Insight API. The Insight API provides you with a convenient, powerful and simple way to query and broadcast data on the bitcoin network and build your own services with it.",
"version": "5.0.0-beta.33",
"version": "5.0.0-beta.34",
"repository": "git://github.com/bitpay/insight-ui.git",

@@ -6,0 +6,0 @@ "bugs": {

// Source: public/src/js/app.js
var defaultLanguage = localStorage.getItem('insight-language') || 'en';
var defaultCurrency = localStorage.getItem('insight-currency') || 'BTC';
var defaultCurrency = localStorage.getItem('insight-currency') || 'BCH';

@@ -17,3 +17,2 @@ angular.module('insight',[

'insight.socket',
'insight.api',
'insight.blocks',

@@ -31,3 +30,2 @@ 'insight.transactions',

angular.module('insight.socket', []);
angular.module('insight.api', []);
angular.module('insight.blocks', []);

@@ -276,3 +274,3 @@ angular.module('insight.transactions', []);

response = _roundFloat((value * this.factor), 2);
} else if (this.symbol === 'mBTC') {
} else if (this.symbol === 'mBCH') {
this.factor = 1000;

@@ -283,5 +281,5 @@ response = _roundFloat((value * this.factor), 5);

response = _roundFloat((value * this.factor), 2);
} else { // assumes symbol is BTC
} else {
this.factor = 1;
response = _roundFloat((value * this.factor), 8);
response = value;
}

@@ -303,5 +301,5 @@ // prevent sci notation

Currency.get({}, function(res) {
$rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp;
$rootScope.currency.factor = $rootScope.currency.kraken = res.data.kraken;
});
} else if (currency === 'mBTC') {
} else if (currency === 'mBCH') {
$rootScope.currency.factor = 1000;

@@ -317,3 +315,3 @@ } else if (currency === 'bits') {

Currency.get({}, function(res) {
$rootScope.currency.factor = $rootScope.currency.bitstamp = res.data.bitstamp;
$rootScope.currency.factor = $rootScope.currency.kraken = res.data.kraken;
});

@@ -370,4 +368,4 @@

factor: 1,
bitstamp: 0,
symbol: 'BTC'
kraken: 0,
symbol: 'BCH'
};

@@ -466,3 +464,3 @@

angular.module('insight.messages').controller('VerifyMessageController',
function($scope, $http, Api) {
function($scope, $http) {
$scope.message = {

@@ -488,3 +486,3 @@ address: '',

$scope.verification.address = $scope.message.address;
$http.post(Api.apiPrefix + '/messages/verify', $scope.message)
$http.post(window.apiPrefix + '/messages/verify', $scope.message)
.success(function(data, status, headers, config) {

@@ -960,3 +958,3 @@ if(typeof(data.result) != 'boolean') {

angular.module('insight.transactions').controller('SendRawTransactionController',
function($scope, $http, Api) {
function($scope, $http) {
$scope.transaction = '';

@@ -975,3 +973,3 @@ $scope.status = 'ready'; // ready|loading|sent|error

$scope.status = 'loading';
$http.post(Api.apiPrefix + '/tx/send', postData)
$http.post(window.apiPrefix + '/tx/send', postData)
.success(function(data, status, headers, config) {

@@ -1001,4 +999,4 @@ if(typeof(data.txid) != 'string') {

angular.module('insight.address').factory('Address',
function($resource, Api) {
return $resource(Api.apiPrefix + '/addr/:addrStr/?noTxList=1', {
function($resource) {
return $resource(window.apiPrefix + '/addr/:addrStr/?noTxList=1', {
addrStr: '@addStr'

@@ -1023,17 +1021,7 @@ }, {

// Source: public/src/js/services/api.js
angular.module('insight.api')
.factory('Api',
function() {
return {
apiPrefix: '/api'
}
});
// Source: public/src/js/services/blocks.js
angular.module('insight.blocks')
.factory('Block',
function($resource, Api) {
return $resource(Api.apiPrefix + '/block/:blockHash', {
function($resource) {
return $resource(window.apiPrefix + '/block/:blockHash', {
blockHash: '@blockHash'

@@ -1057,8 +1045,8 @@ }, {

.factory('Blocks',
function($resource, Api) {
return $resource(Api.apiPrefix + '/blocks');
function($resource) {
return $resource(window.apiPrefix + '/blocks');
})
.factory('BlockByHeight',
function($resource, Api) {
return $resource(Api.apiPrefix + '/block-index/:blockHeight');
function($resource) {
return $resource(window.apiPrefix + '/block-index/:blockHeight');
});

@@ -1068,4 +1056,4 @@

angular.module('insight.currency').factory('Currency',
function($resource, Api) {
return $resource(Api.apiPrefix + '/currency');
function($resource) {
return $resource(window.apiPrefix + '/currency');
});

@@ -1081,4 +1069,4 @@

.factory('Version',
function($resource, Api) {
return $resource(Api.apiPrefix + '/version');
function($resource) {
return $resource(window.apiPrefix + '/version');
});

@@ -1163,4 +1151,4 @@

.factory('Status',
function($resource, Api) {
return $resource(Api.apiPrefix + '/status', {
function($resource) {
return $resource(window.apiPrefix + '/status', {
q: '@q'

@@ -1170,8 +1158,8 @@ });

.factory('Sync',
function($resource, Api) {
return $resource(Api.apiPrefix + '/sync');
function($resource) {
return $resource(window.apiPrefix + '/sync');
})
.factory('PeerSync',
function($resource, Api) {
return $resource(Api.apiPrefix + '/peer');
function($resource) {
return $resource(window.apiPrefix + '/peer');
});

@@ -1182,4 +1170,4 @@

.factory('Transaction',
function($resource, Api) {
return $resource(Api.apiPrefix + '/tx/:txId', {
function($resource) {
return $resource(window.apiPrefix + '/tx/:txId', {
txId: '@txId'

@@ -1203,4 +1191,4 @@ }, {

.factory('TransactionsByBlock',
function($resource, Api) {
return $resource(Api.apiPrefix + '/txs', {
function($resource) {
return $resource(window.apiPrefix + '/txs', {
block: '@block'

@@ -1210,4 +1198,4 @@ });

.factory('TransactionsByAddress',
function($resource, Api) {
return $resource(Api.apiPrefix + '/txs', {
function($resource) {
return $resource(window.apiPrefix + '/txs', {
address: '@address'

@@ -1217,4 +1205,4 @@ });

.factory('Transactions',
function($resource, Api) {
return $resource(Api.apiPrefix + '/txs');
function($resource) {
return $resource(window.apiPrefix + '/txs');
});

@@ -1221,0 +1209,0 @@

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