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

@hylid/call

Package Overview
Dependencies
Maintainers
0
Versions
125
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hylid/call - npm Package Compare versions

Comparing version 3.3.0-alpha.0 to 3.3.0-alpha.1

lib/webviewBridge/webview-bridge-component/index.axml

1

lib/index.d.ts

@@ -9,4 +9,5 @@ /// <reference types="miniprogram" />

export declare function call<T extends keyof MPApi>(name: T | ({} & string), options?: PickMPArgs<T> | Common | Callback<PickMpReturns<T>>, config?: Config): any;
export declare function createWebviewSrc(url: string): string;
export { WebViewBridge } from './webviewBridge';
export { mpCall, mpWebCall, webCall, notFound };
export { promisify } from './promisify';

@@ -15,4 +15,17 @@ var _a;

}
export function createWebviewSrc(url) {
var app = my.getSystemInfoSync().app;
var hashIndex = url.indexOf('#');
var hash = '';
if (hashIndex !== -1) {
hash = url.slice(hashIndex);
url = url.slice(0, hashIndex);
}
var separator = url.includes('?') ? '&' : '?';
var newUrl = url + separator + '__app__=' + app + hash;
return newUrl;
}
;
export { WebViewBridge } from "./webviewBridge";
export { mpCall, mpWebCall, webCall, notFound };
export { promisify } from "./promisify";

@@ -22,2 +22,6 @@ export function mpCall(apiName, options, config) {

}
if (type === 'attribute') {
// @ts-ignore
return my[apiName];
}
}

2

lib/webviewBridge/index.js

@@ -106,3 +106,3 @@ var __assign = this && this.__assign || function () {

} else {
console.info("[hylid-call]: context \u5728\u5C0F\u7A0B\u5E8F\u4FA7\u672A\u4F20\u5165\uFF0Cbroadcast \u529F\u80FD\u3001\u9875\u9762\u76D1\u542C\u5C06\u65E0\u6CD5\u4F7F\u7528");
console.info("[hylid-call]: context is null, broadcast and pageEvent cannot be used");
}

@@ -109,0 +109,0 @@ }

@@ -1,1 +0,3 @@

export declare function _getCurrentPages(): any[];
export declare function _getCurrentPages(): {
route: any;
}[];
export function _getCurrentPages() {
return getCurrentPages();
var pages = getCurrentPages();
return pages.map(function (page) {
return {
route: page.route
};
});
}
{
"name": "@hylid/call",
"version": "3.3.0-alpha.0",
"version": "3.3.0-alpha.1",
"main": "lib/index.js",

@@ -9,4 +9,4 @@ "files": [

"dependencies": {
"@hylid/env": "^3.3.0-alpha.0",
"@hylid/types": "^3.3.0-alpha.0"
"@hylid/env": "^3.3.0-alpha.1",
"@hylid/types": "^3.3.0-alpha.1"
},

@@ -13,0 +13,0 @@ "publishConfig": {

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