New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@sankhyalabs/core

Package Overview
Dependencies
Maintainers
2
Versions
762
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@sankhyalabs/core - npm Package Compare versions

Comparing version 1.0.27 to 1.0.28

14

dist/http/data-fetcher/state/LoadStateManager.js

@@ -10,10 +10,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {

};
import { Application } from './../../../application/Application';
export class LoadStateManager {
constructor() {
constructor(appName = 'ez-application') {
var _a;
this._state = LoadStatus.DOM_LOADED;
this._application = Application.get();
this._application.onLoaded(() => {
this._application = document.querySelector(appName);
if (this._application === null) {
console.warn(`application${appName} not found, then state is loadded`);
this.onStatusChange(LoadStatus.LOADED);
});
}
else {
(_a = this._application) === null || _a === void 0 ? void 0 : _a.addEventListener('applicationLoaded', () => this.onStatusChange(LoadStatus.LOADED));
}
this.onStatusChange(LoadStatus.PRE_INITIALIZE);

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

@@ -15,7 +15,4 @@ import { StringUtils } from "./utils/StringUtils";

import { HttpFetcher } from "./http/data-fetcher/HttpFetcher";
import { DataUnitFetcher } from "./http/data-fetcher/default/dataunit-fetcher";
import { ApplicationConfigFetcher } from "./http/data-fetcher/default/application-config-fetcher";
import { LoadStateManager, LoadStatus } from "./http/data-fetcher/state/LoadStateManager";
import { Application } from './application/Application';
import { DataUnitAction, Action } from "./dataunit/state/action/DataUnitAction";
export { StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, Record, DataType, UnitMetadata, FieldDescriptor, UserInterface, HttpFetcher, LoadStateManager, LoadStatus, Application, DataUnitFetcher, ApplicationConfigFetcher, DataUnitAction, Action };
export { StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, Record, DataType, UnitMetadata, FieldDescriptor, UserInterface, HttpFetcher, LoadStateManager, LoadStatus, DataUnitAction, Action };

@@ -15,9 +15,6 @@ import { StringUtils } from "./utils/StringUtils";

import { HttpFetcher } from "./http/data-fetcher/HttpFetcher";
import { DataUnitFetcher } from "./http/data-fetcher/default/dataunit-fetcher";
import { ApplicationConfigFetcher } from "./http/data-fetcher/default/application-config-fetcher";
import { LoadStateManager, LoadStatus } from "./http/data-fetcher/state/LoadStateManager";
import { Application } from './application/Application';
import { DataUnitAction, Action } from "./dataunit/state/action/DataUnitAction";
/*Classes públicas no pacote*/
export { StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, DataType, UserInterface, HttpFetcher, LoadStateManager, LoadStatus, Application, DataUnitFetcher, ApplicationConfigFetcher, DataUnitAction, Action };
export { StringUtils, MaskFormatter, NumberUtils, FloatingManager, DateUtils, TimeFormatter, SkwHttpProvider, HttpProvider, RequestMetadata, AuthorizedServiceCaller, DataUnit, DataType, UserInterface, HttpFetcher, LoadStateManager, LoadStatus, DataUnitAction, Action };
//# sourceMappingURL=index.js.map
{
"name": "@sankhyalabs/core",
"version": "1.0.27",
"version": "1.0.28",
"description": "Modulo core JavaScript da Sankhya.",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -1,15 +0,16 @@

import { Application } from './../../../application/Application';
export class LoadStateManager {
private static instanceByStatus: Map<LoadType, LoadStateManager> = new Map<LoadType, LoadStateManager>();
private _state:LoadStatus = LoadStatus.DOM_LOADED;
private _application:Application;
private _application:Element|null;
private static listenersByType: Map<LoadStatus, Array<() => void>> = new Map<LoadStatus, Array<() => void>>();
private constructor() {
this._application = Application.get();
this._application.onLoaded(() => {
private constructor(appName:string = 'ez-application') {
this._application = document.querySelector(appName);
if(this._application === null){
console.warn(`application${appName} not found, then state is loadded`);
this.onStatusChange(LoadStatus.LOADED);
});
}else{
this._application?.addEventListener('applicationLoaded',
() => this.onStatusChange(LoadStatus.LOADED));
}

@@ -16,0 +17,0 @@ this.onStatusChange(LoadStatus.PRE_INITIALIZE);

@@ -15,6 +15,3 @@ import { StringUtils } from "./utils/StringUtils";

import { HttpFetcher } from "./http/data-fetcher/HttpFetcher";
import { DataUnitFetcher } from "./http/data-fetcher/default/dataunit-fetcher";
import { ApplicationConfigFetcher } from "./http/data-fetcher/default/application-config-fetcher";
import { LoadStateManager, LoadStatus } from "./http/data-fetcher/state/LoadStateManager";
import { Application } from './application/Application';
import { DataUnitAction, Action } from "./dataunit/state/action/DataUnitAction";

@@ -43,7 +40,4 @@

LoadStatus,
Application,
DataUnitFetcher,
ApplicationConfigFetcher,
DataUnitAction,
Action
};

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