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

ng-loading-bar

Package Overview
Dependencies
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng-loading-bar - npm Package Compare versions

Comparing version 0.0.6 to 0.0.7

18

bundles/ng-loading-bar.umd.js

@@ -282,10 +282,12 @@ (function webpackUniversalModuleDefinition(root, factory) {

var _this = this;
this.set(1);
clearTimeout(this._completeTimeout);
clearTimeout(this._startTimeout);
this._completeTimeout = setTimeout(function () {
_this._started = false;
_this.hide(_this._loadingBarContainer);
_this.hide(_this._spinner);
}, 500);
setTimeout(function () {
_this.set(1);
clearTimeout(_this._completeTimeout);
clearTimeout(_this._startTimeout);
_this._completeTimeout = setTimeout(function () {
_this._started = false;
_this.hide(_this._loadingBarContainer);
_this.hide(_this._spinner);
}, 500);
}, this._latencyThreshold);
};

@@ -292,0 +294,0 @@ NgLoadingBarComponent.prototype.inc = function () {

@@ -1,2 +0,2 @@

(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==="object"&&typeof module==="object")module.exports=factory(require("@angular/core"),require("@angular/http"),require("rxjs/Subject"),require("rxjs/add/operator/share"));else if(typeof define==="function"&&define.amd)define(["@angular/core","@angular/http","rxjs/Subject","rxjs/add/operator/share"],factory);else if(typeof exports==="object")exports["ng-loading-bar"]=factory(require("@angular/core"),require("@angular/http"),require("rxjs/Subject"),require("rxjs/add/operator/share"));else root["ng-loading-bar"]=factory(root["@angular/core"],root["@angular/http"],root["rxjs/Subject"],root["rxjs/add/operator/share"])})(this,function(__WEBPACK_EXTERNAL_MODULE_2__,__WEBPACK_EXTERNAL_MODULE_3__,__WEBPACK_EXTERNAL_MODULE_5__,__WEBPACK_EXTERNAL_MODULE_6__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module,exports,__webpack_require__){"use strict";var loading_bar_module_1=__webpack_require__(1);exports.NgLoadingBarModule=loading_bar_module_1.NgLoadingBarModule;var loading_bar_http_1=__webpack_require__(4);exports.NgLoadingBarHttp=loading_bar_http_1.NgLoadingBarHttp;var loading_bar_component_1=__webpack_require__(7);exports.NgLoadingBarComponent=loading_bar_component_1.NgLoadingBarComponent},function(module,exports,__webpack_require__){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r};var __metadata=this&&this.__metadata||function(k,v){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,v)};var core_1=__webpack_require__(2);var http_1=__webpack_require__(3);var loading_bar_http_1=__webpack_require__(4);var loading_bar_component_1=__webpack_require__(7);function httpFactory(xhrBackend,requestOptions){return new loading_bar_http_1.NgLoadingBarHttp(xhrBackend,requestOptions)}exports.httpFactory=httpFactory;var NgLoadingBarModule=function(){function NgLoadingBarModule(){}NgLoadingBarModule.forRoot=function(){return{ngModule:NgLoadingBarModule,providers:[{provide:http_1.Http,useFactory:httpFactory,deps:[http_1.XHRBackend,http_1.RequestOptions]}]}};NgLoadingBarModule=__decorate([core_1.NgModule({declarations:[loading_bar_component_1.NgLoadingBarComponent],imports:[http_1.HttpModule],exports:[loading_bar_component_1.NgLoadingBarComponent]}),__metadata("design:paramtypes",[])],NgLoadingBarModule);return NgLoadingBarModule}();exports.NgLoadingBarModule=NgLoadingBarModule},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_2__},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_3__},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)};var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r};var __metadata=this&&this.__metadata||function(k,v){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,v)};var http_1=__webpack_require__(3);var core_1=__webpack_require__(2);var Subject_1=__webpack_require__(5);__webpack_require__(6);var NgLoadingBarHttp=function(_super){__extends(NgLoadingBarHttp,_super);function NgLoadingBarHttp(){_super.apply(this,arguments);this.pending=new Subject_1.Subject;this._pendingRequests=0}NgLoadingBarHttp.prototype.request=function(url,options){var _this=this;var response=_super.prototype.request.call(this,url,options).share();if(options&&options.ignoreLoadingBar===true){return response}this.requestStarted();response.subscribe(function(x){},function(err){return _this.requestEnded()},function(){return _this.requestEnded()});return response};NgLoadingBarHttp.prototype.requestStarted=function(){this.pending.next({started:this._pendingRequests===0,pendingRequests:++this._pendingRequests})};NgLoadingBarHttp.prototype.requestEnded=function(){this.pending.next({completed:this._pendingRequests===1,pendingRequests:--this._pendingRequests})};NgLoadingBarHttp=__decorate([core_1.Injectable(),__metadata("design:paramtypes",[])],NgLoadingBarHttp);return NgLoadingBarHttp}(http_1.Http);exports.NgLoadingBarHttp=NgLoadingBarHttp},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_5__},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_6__},function(module,exports,__webpack_require__){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r};var __metadata=this&&this.__metadata||function(k,v){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,v)};var __param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}};var core_1=__webpack_require__(2);var http_1=__webpack_require__(3);var loading_bar_http_1=__webpack_require__(4);var NgLoadingBarComponent=function(){function NgLoadingBarComponent(_renderer,http){var _this=this;this._renderer=_renderer;this.includeSpinner=true;this._autoIncrement=true;this._includeBar=true;this._latencyThreshold=10;this._startSize=.02;this._started=false;this._status=0;if(http instanceof loading_bar_http_1.NgLoadingBarHttp){http.pending.subscribe(function(progress){if(progress.started)_this.start();if(progress.completed)_this.complete()})}}NgLoadingBarComponent.prototype.ngAfterViewInit=function(){this.hide(this._loadingBarContainer);this.hide(this._spinner)};NgLoadingBarComponent.prototype.start=function(){var _this=this;this._startTimeout=setTimeout(function(){clearTimeout(_this._completeTimeout);if(_this._started){return}_this._started=true;_this._status=0;if(_this._includeBar){_this.show(_this._loadingBarContainer)}if(_this.includeSpinner){_this.show(_this._spinner)}_this.set(_this._startSize)},this._latencyThreshold)};NgLoadingBarComponent.prototype.set=function(n){var _this=this;if(!this._started){return}var pct=n*100+"%";this.setElementStyle(this._loadingBar,"width",pct);this._status=n;if(this._autoIncrement){clearTimeout(this._incTimeout);this._incTimeout=setTimeout(function(){_this.inc()},250)}};NgLoadingBarComponent.prototype.complete=function(){var _this=this;this.set(1);clearTimeout(this._completeTimeout);clearTimeout(this._startTimeout);this._completeTimeout=setTimeout(function(){_this._started=false;_this.hide(_this._loadingBarContainer);_this.hide(_this._spinner)},500)};NgLoadingBarComponent.prototype.inc=function(){if(this._status>=1){return}var rnd=0;var stat=this._status;if(stat>=0&&stat<.25){rnd=(Math.random()*(5-3+1)+3)/100}else if(stat>=.25&&stat<.65){rnd=Math.random()*3/100}else if(stat>=.65&&stat<.9){rnd=Math.random()*2/100}else if(stat>=.9&&stat<.99){rnd=.005}else{rnd=0}var pct=this._status+rnd;this.set(pct)};NgLoadingBarComponent.prototype.show=function(el){this.setElementStyle(el,"display","block")};NgLoadingBarComponent.prototype.hide=function(el){this.setElementStyle(el,"display","none")};NgLoadingBarComponent.prototype.setElementStyle=function(el,styleName,styleValue){this._renderer.setElementStyle(el.nativeElement,styleName,styleValue)};__decorate([core_1.ViewChild("loadingBarSpinner"),__metadata("design:type",Object)],NgLoadingBarComponent.prototype,"_spinner",void 0);__decorate([core_1.ViewChild("loadingBarContainer"),__metadata("design:type",Object)],NgLoadingBarComponent.prototype,"_loadingBarContainer",void 0);__decorate([core_1.ViewChild("loadingBar"),__metadata("design:type",Object)],NgLoadingBarComponent.prototype,"_loadingBar",void 0);__decorate([core_1.Input(),__metadata("design:type",Boolean)],NgLoadingBarComponent.prototype,"includeSpinner",void 0);NgLoadingBarComponent=__decorate([core_1.Component({selector:"ng-loading-bar",template:'\n <div id="loading-bar-spinner" #loadingBarSpinner><div class="spinner-icon"></div></div>\n <div id="loading-bar" #loadingBarContainer><div class="bar" #loadingBar><div class="peg"></div></div></div>\n '}),__param(1,core_1.Inject(http_1.Http)),__metadata("design:paramtypes",[core_1.Renderer,loading_bar_http_1.NgLoadingBarHttp])],NgLoadingBarComponent);return NgLoadingBarComponent}();exports.NgLoadingBarComponent=NgLoadingBarComponent}])});
(function webpackUniversalModuleDefinition(root,factory){if(typeof exports==="object"&&typeof module==="object")module.exports=factory(require("@angular/core"),require("@angular/http"),require("rxjs/Subject"),require("rxjs/add/operator/share"));else if(typeof define==="function"&&define.amd)define(["@angular/core","@angular/http","rxjs/Subject","rxjs/add/operator/share"],factory);else if(typeof exports==="object")exports["ng-loading-bar"]=factory(require("@angular/core"),require("@angular/http"),require("rxjs/Subject"),require("rxjs/add/operator/share"));else root["ng-loading-bar"]=factory(root["@angular/core"],root["@angular/http"],root["rxjs/Subject"],root["rxjs/add/operator/share"])})(this,function(__WEBPACK_EXTERNAL_MODULE_2__,__WEBPACK_EXTERNAL_MODULE_3__,__WEBPACK_EXTERNAL_MODULE_5__,__WEBPACK_EXTERNAL_MODULE_6__){return function(modules){var installedModules={};function __webpack_require__(moduleId){if(installedModules[moduleId])return installedModules[moduleId].exports;var module=installedModules[moduleId]={exports:{},id:moduleId,loaded:false};modules[moduleId].call(module.exports,module,module.exports,__webpack_require__);module.loaded=true;return module.exports}__webpack_require__.m=modules;__webpack_require__.c=installedModules;__webpack_require__.p="";return __webpack_require__(0)}([function(module,exports,__webpack_require__){"use strict";var loading_bar_module_1=__webpack_require__(1);exports.NgLoadingBarModule=loading_bar_module_1.NgLoadingBarModule;var loading_bar_http_1=__webpack_require__(4);exports.NgLoadingBarHttp=loading_bar_http_1.NgLoadingBarHttp;var loading_bar_component_1=__webpack_require__(7);exports.NgLoadingBarComponent=loading_bar_component_1.NgLoadingBarComponent},function(module,exports,__webpack_require__){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r};var __metadata=this&&this.__metadata||function(k,v){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,v)};var core_1=__webpack_require__(2);var http_1=__webpack_require__(3);var loading_bar_http_1=__webpack_require__(4);var loading_bar_component_1=__webpack_require__(7);function httpFactory(xhrBackend,requestOptions){return new loading_bar_http_1.NgLoadingBarHttp(xhrBackend,requestOptions)}exports.httpFactory=httpFactory;var NgLoadingBarModule=function(){function NgLoadingBarModule(){}NgLoadingBarModule.forRoot=function(){return{ngModule:NgLoadingBarModule,providers:[{provide:http_1.Http,useFactory:httpFactory,deps:[http_1.XHRBackend,http_1.RequestOptions]}]}};NgLoadingBarModule=__decorate([core_1.NgModule({declarations:[loading_bar_component_1.NgLoadingBarComponent],imports:[http_1.HttpModule],exports:[loading_bar_component_1.NgLoadingBarComponent]}),__metadata("design:paramtypes",[])],NgLoadingBarModule);return NgLoadingBarModule}();exports.NgLoadingBarModule=NgLoadingBarModule},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_2__},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_3__},function(module,exports,__webpack_require__){"use strict";var __extends=this&&this.__extends||function(d,b){for(var p in b)if(b.hasOwnProperty(p))d[p]=b[p];function __(){this.constructor=d}d.prototype=b===null?Object.create(b):(__.prototype=b.prototype,new __)};var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r};var __metadata=this&&this.__metadata||function(k,v){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,v)};var http_1=__webpack_require__(3);var core_1=__webpack_require__(2);var Subject_1=__webpack_require__(5);__webpack_require__(6);var NgLoadingBarHttp=function(_super){__extends(NgLoadingBarHttp,_super);function NgLoadingBarHttp(){_super.apply(this,arguments);this.pending=new Subject_1.Subject;this._pendingRequests=0}NgLoadingBarHttp.prototype.request=function(url,options){var _this=this;var response=_super.prototype.request.call(this,url,options).share();if(options&&options.ignoreLoadingBar===true){return response}this.requestStarted();response.subscribe(function(x){},function(err){return _this.requestEnded()},function(){return _this.requestEnded()});return response};NgLoadingBarHttp.prototype.requestStarted=function(){this.pending.next({started:this._pendingRequests===0,pendingRequests:++this._pendingRequests})};NgLoadingBarHttp.prototype.requestEnded=function(){this.pending.next({completed:this._pendingRequests===1,pendingRequests:--this._pendingRequests})};NgLoadingBarHttp=__decorate([core_1.Injectable(),__metadata("design:paramtypes",[])],NgLoadingBarHttp);return NgLoadingBarHttp}(http_1.Http);exports.NgLoadingBarHttp=NgLoadingBarHttp},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_5__},function(module,exports){module.exports=__WEBPACK_EXTERNAL_MODULE_6__},function(module,exports,__webpack_require__){"use strict";var __decorate=this&&this.__decorate||function(decorators,target,key,desc){var c=arguments.length,r=c<3?target:desc===null?desc=Object.getOwnPropertyDescriptor(target,key):desc,d;if(typeof Reflect==="object"&&typeof Reflect.decorate==="function")r=Reflect.decorate(decorators,target,key,desc);else for(var i=decorators.length-1;i>=0;i--)if(d=decorators[i])r=(c<3?d(r):c>3?d(target,key,r):d(target,key))||r;return c>3&&r&&Object.defineProperty(target,key,r),r};var __metadata=this&&this.__metadata||function(k,v){if(typeof Reflect==="object"&&typeof Reflect.metadata==="function")return Reflect.metadata(k,v)};var __param=this&&this.__param||function(paramIndex,decorator){return function(target,key){decorator(target,key,paramIndex)}};var core_1=__webpack_require__(2);var http_1=__webpack_require__(3);var loading_bar_http_1=__webpack_require__(4);var NgLoadingBarComponent=function(){function NgLoadingBarComponent(_renderer,http){var _this=this;this._renderer=_renderer;this.includeSpinner=true;this._autoIncrement=true;this._includeBar=true;this._latencyThreshold=10;this._startSize=.02;this._started=false;this._status=0;if(http instanceof loading_bar_http_1.NgLoadingBarHttp){http.pending.subscribe(function(progress){if(progress.started)_this.start();if(progress.completed)_this.complete()})}}NgLoadingBarComponent.prototype.ngAfterViewInit=function(){this.hide(this._loadingBarContainer);this.hide(this._spinner)};NgLoadingBarComponent.prototype.start=function(){var _this=this;this._startTimeout=setTimeout(function(){clearTimeout(_this._completeTimeout);if(_this._started){return}_this._started=true;_this._status=0;if(_this._includeBar){_this.show(_this._loadingBarContainer)}if(_this.includeSpinner){_this.show(_this._spinner)}_this.set(_this._startSize)},this._latencyThreshold)};NgLoadingBarComponent.prototype.set=function(n){var _this=this;if(!this._started){return}var pct=n*100+"%";this.setElementStyle(this._loadingBar,"width",pct);this._status=n;if(this._autoIncrement){clearTimeout(this._incTimeout);this._incTimeout=setTimeout(function(){_this.inc()},250)}};NgLoadingBarComponent.prototype.complete=function(){var _this=this;setTimeout(function(){_this.set(1);clearTimeout(_this._completeTimeout);clearTimeout(_this._startTimeout);_this._completeTimeout=setTimeout(function(){_this._started=false;_this.hide(_this._loadingBarContainer);_this.hide(_this._spinner)},500)},this._latencyThreshold)};NgLoadingBarComponent.prototype.inc=function(){if(this._status>=1){return}var rnd=0;var stat=this._status;if(stat>=0&&stat<.25){rnd=(Math.random()*(5-3+1)+3)/100}else if(stat>=.25&&stat<.65){rnd=Math.random()*3/100}else if(stat>=.65&&stat<.9){rnd=Math.random()*2/100}else if(stat>=.9&&stat<.99){rnd=.005}else{rnd=0}var pct=this._status+rnd;this.set(pct)};NgLoadingBarComponent.prototype.show=function(el){this.setElementStyle(el,"display","block")};NgLoadingBarComponent.prototype.hide=function(el){this.setElementStyle(el,"display","none")};NgLoadingBarComponent.prototype.setElementStyle=function(el,styleName,styleValue){this._renderer.setElementStyle(el.nativeElement,styleName,styleValue)};__decorate([core_1.ViewChild("loadingBarSpinner"),__metadata("design:type",Object)],NgLoadingBarComponent.prototype,"_spinner",void 0);__decorate([core_1.ViewChild("loadingBarContainer"),__metadata("design:type",Object)],NgLoadingBarComponent.prototype,"_loadingBarContainer",void 0);__decorate([core_1.ViewChild("loadingBar"),__metadata("design:type",Object)],NgLoadingBarComponent.prototype,"_loadingBar",void 0);__decorate([core_1.Input(),__metadata("design:type",Boolean)],NgLoadingBarComponent.prototype,"includeSpinner",void 0);NgLoadingBarComponent=__decorate([core_1.Component({selector:"ng-loading-bar",template:'\n <div id="loading-bar-spinner" #loadingBarSpinner><div class="spinner-icon"></div></div>\n <div id="loading-bar" #loadingBarContainer><div class="bar" #loadingBar><div class="peg"></div></div></div>\n '}),__param(1,core_1.Inject(http_1.Http)),__metadata("design:paramtypes",[core_1.Renderer,loading_bar_http_1.NgLoadingBarHttp])],NgLoadingBarComponent);return NgLoadingBarComponent}();exports.NgLoadingBarComponent=NgLoadingBarComponent}])});
//# sourceMappingURL=bundles/ng-loading-bar.umd.min.js.map

@@ -63,10 +63,12 @@ import { Inject, Component, ViewChild, Renderer, Input } from '@angular/core';

var _this = this;
this.set(1);
clearTimeout(this._completeTimeout);
clearTimeout(this._startTimeout);
this._completeTimeout = setTimeout(function () {
_this._started = false;
_this.hide(_this._loadingBarContainer);
_this.hide(_this._spinner);
}, 500);
setTimeout(function () {
_this.set(1);
clearTimeout(_this._completeTimeout);
clearTimeout(_this._startTimeout);
_this._completeTimeout = setTimeout(function () {
_this._started = false;
_this.hide(_this._loadingBarContainer);
_this.hide(_this._spinner);
}, 500);
}, this._latencyThreshold);
};

@@ -73,0 +75,0 @@ NgLoadingBarComponent.prototype.inc = function () {

{
"name": "ng-loading-bar",
"version": "0.0.6",
"version": "0.0.7",
"main": "bundles/ng-loading-bar.umd.js",

@@ -5,0 +5,0 @@ "module": "lib/index.js",

@@ -94,14 +94,15 @@ import { Inject, Component, ViewChild, Renderer, AfterViewInit, Input } from '@angular/core';

private complete(): void {
setTimeout(() => {
this.set(1);
this.set(1);
clearTimeout(this._completeTimeout);
clearTimeout(this._startTimeout);
clearTimeout(this._completeTimeout);
clearTimeout(this._startTimeout);
// Attempt to aggregate any start/complete calls within 500ms:
this._completeTimeout = setTimeout(() => {
this._started = false;
this.hide(this._loadingBarContainer);
this.hide(this._spinner);
}, 500);
// Attempt to aggregate any start/complete calls within 500ms:
this._completeTimeout = setTimeout(() => {
this._started = false;
this.hide(this._loadingBarContainer);
this.hide(this._spinner);
}, 500);
}, this._latencyThreshold);
}

@@ -108,0 +109,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