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

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 to 3.7.0-alpha.0

dist/tsc/src/model/output/ArtifactInfo.d.ts

4

dist/tsc/src/model/input/InitInput.d.ts

@@ -13,2 +13,6 @@ import { NavigationListenerFunction } from "../output/NavigationListenerEvent";

navigationListener?: NavigationListenerFunction;
/**
* Versão do sistema que instalou a plataforma de mini-apps
*/
version?: string;
}

@@ -9,2 +9,3 @@ import MiniappPermissionEnum from "./MiniappPermissionEnum";

organization: Organization;
currentVersion: string;
url: string;

@@ -11,0 +12,0 @@ name: string;

@@ -13,2 +13,3 @@ import UrlPatterns from "./input/UrlPatterns";

urlPatterns?: UrlPatterns;
hostVersion?: string;
miniAppData?: MiniAppData;

@@ -15,0 +16,0 @@ navigationListener?: NavigationListenerFunction;

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

const miniAppData = resMiniAppData.data;
resMiniAppData.data["revisions"].map((revision) => {
if (revision["latest"]) {
miniAppData.currentVersion = revision["version"];
}
});
if (miniAppData) {

@@ -18,0 +23,0 @@ miniAppData.isWorkspace = false;

@@ -10,2 +10,3 @@ import MiniAppConfigs from "../model/MiniAppConfigs";

import TrackMiniAppNavigationInput from "./input/SuperAppTargetEnum";
import GetAppInfoOutput from "../model/output/GetAppInfoOutput";
export default class SuperAppService {

@@ -20,2 +21,3 @@ superApp: SuperApp;

askUserData(): Promise<any>;
getAppInfo(): Promise<GetAppInfoOutput>;
getConfigs(): Promise<MiniAppConfigs>;

@@ -22,0 +24,0 @@ getInitializationInfos(): Promise<any>;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const tslib_1 = require("tslib");
const version_1 = tslib_1.__importDefault(require("../version"));
const SuperAppEnvironment_1 = require("../model/SuperAppEnvironment");

@@ -47,2 +48,23 @@ const CacheService_1 = tslib_1.__importDefault(require("./CacheService"));

}
getAppInfo() {
return tslib_1.__awaiter(this, void 0, void 0, function* () {
const superApp = this.superApp;
const context = superApp.context;
const miniAppData = context.miniAppData;
return {
superAppWeb: {
project: "ame-super-app-web",
version: version_1.default,
},
miniApp: {
project: miniAppData.slug,
version: miniAppData.currentVersion,
},
host: {
project: "host",
version: context.hostVersion || "uninformed",
},
};
});
}
getConfigs() {

@@ -49,0 +71,0 @@ return tslib_1.__awaiter(this, void 0, void 0, function* () {

@@ -46,2 +46,3 @@ "use strict";

ctx.navigationListener = config.navigationListener;
ctx.hostVersion = config.version;
ctx.urlPatterns = this.handleUrlPatterns(config.urlPatterns);

@@ -289,2 +290,3 @@ ctx.validateInit();

workspaceData: parsedCtx.withShare,
currentVersion: "1.0.0-development",
};

@@ -291,0 +293,0 @@ });

2

dist/tsc/src/version.d.ts

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

declare const _default: "3.6.0";
declare const _default: "3.7.0-alpha.0";
export default _default;
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = "3.6.0";
exports.default = "3.7.0-alpha.0";
//# sourceMappingURL=version.js.map

@@ -25,2 +25,3 @@ "use strict";

navigationListener: (_e = params === null || params === void 0 ? void 0 : params.configs) === null || _e === void 0 ? void 0 : _e.navigationListener,
version: "1.0.0-host",
});

@@ -27,0 +28,0 @@ return ame;

@@ -22,4 +22,5 @@ "use strict";

expect(miniAppData.slug).toBe(slug);
expect(miniAppData.currentVersion).toBe("0.2.3");
}));
});
//# sourceMappingURL=MiniAppManagerService.test.js.map

@@ -243,3 +243,19 @@ "use strict";

});
test("Ame.getAppInfo", (done) => {
(() => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
const methodName = "getAppInfo";
const superApp = yield SuperAppFactory_1.default.withMiniAppLoaded(SuperAppFactory_1.default.withConfigs());
superApp.receiveMessage(BridgeHelper_1.default.mockMethodMessage(methodName, [], (message) => {
expect(message.res).toBeDefined();
const getAppInfoResponse = message.res;
expect(getAppInfoResponse.miniApp).toBeDefined();
expect(getAppInfoResponse.miniApp.project).toBe("mySlug");
expect(getAppInfoResponse.miniApp.version).toBe("0.2.3");
expect(getAppInfoResponse.host.version).toBe("1.0.0-host");
expect(getAppInfoResponse.superAppWeb.version).toBe("1.0.0-local");
done();
}));
}))();
});
});
//# sourceMappingURL=SuperAppService.test.js.map
{
"name": "ame-super-app-web",
"version": "3.6.0",
"version": "3.7.0-alpha.0",
"_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

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

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