Socket
Socket
Sign inDemoInstall

ame-super-app-web

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ame-super-app-web - npm Package Compare versions

Comparing version 3.6.0-alpha.2 to 3.6.0-alpha.3

14

dist/tsc/src/service/SuperAppService.js

@@ -116,4 +116,16 @@ "use strict";

trackMiniAppNavigation(input) {
var _a;
return tslib_1.__awaiter(this, void 0, void 0, function* () {
this.superApp.trackMiniAppNavigation(input);
//TODO como fazer tracking para um GA exclusivo da plataforma de mini-apps?
const context = this.superApp.context;
const navListener = context.navigationListener;
const slug = (_a = context.miniAppData) === null || _a === void 0 ? void 0 : _a.slug;
//se existe um navListener indicado na inicialização, manda para o host os eventos do mini-app
if (navListener && slug) {
navListener({
previousScreen: input.previousScreen,
currentScreen: input.currentScreen,
slug,
});
}
});

@@ -120,0 +132,0 @@ }

2

dist/tsc/src/SuperApp.d.ts

@@ -11,3 +11,2 @@ import InitInput from "./model/input/InitInput";

import PushMiniAppInput from "./model/input/PushMiniAppInput";
import SuperAppTargetEnum from "./service/input/SuperAppTargetEnum";
declare global {

@@ -55,3 +54,2 @@ interface Window {

logout: () => Promise<void>;
trackMiniAppNavigation(input: SuperAppTargetEnum): void;
private internalOpenMiniApp;

@@ -58,0 +56,0 @@ private openMiniAppInDefaultContainer;

@@ -324,17 +324,2 @@ "use strict";

}
trackMiniAppNavigation(input) {
var _a;
//TODO como fazer tracking para um GA exclusivo da plataforma de mini-apps?
const context = this.context;
const navListener = context.navigationListener;
const slug = (_a = context.miniAppData) === null || _a === void 0 ? void 0 : _a.slug;
//se existe um navListener indicado na inicialização, manda para o host os eventos do mini-app
if (navListener && slug) {
navListener({
previousScreen: input.previousScreen,
currentScreen: input.currentScreen,
slug,
});
}
}
checkMiniAppDataTargetValidity(miniAppData, errorMessage) {

@@ -341,0 +326,0 @@ if (!(miniAppData.target === this.context.target)) {

import { OpenMiniAppWorkspaceInput } from ".";
import InitInput from "./model/input/InitInput";
import OpenMiniAppInput from "./model/input/OpenMiniAppInput";
import SuperAppTargetEnum from "./service/input/SuperAppTargetEnum";
import SuperApp from "./SuperApp";

@@ -12,3 +11,2 @@ export default class SuperAppApi {

openMiniAppWorkspace(input: OpenMiniAppWorkspaceInput): Promise<void>;
trackMiniAppNavigation(input: SuperAppTargetEnum): Promise<void>;
postMessageToWindow(window: any, message: any): void;

@@ -15,0 +13,0 @@ rejectPromiseOnWindow(window: any, message: any): void;

@@ -22,7 +22,2 @@ "use strict";

}
trackMiniAppNavigation(input) {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
this.superApp.trackMiniAppNavigation(input);
});
}
postMessageToWindow(window, message) {

@@ -29,0 +24,0 @@ return this.superApp.postMessageToWindow(window, message);

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

declare const _default: "3.6.0-alpha.2";
declare const _default: "3.6.0-alpha.3";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = "3.6.0-alpha.2";
exports.default = "3.6.0-alpha.3";
//# sourceMappingURL=version.js.map
{
"name": "ame-super-app-web",
"version": "3.6.0-alpha.2",
"version": "3.6.0-alpha.3",
"_versionBetaExample": "1.0.2-beta.0",

@@ -5,0 +5,0 @@ "__versionBetaExample": "1.0.2-alpha.0",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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