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

app-methods

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

app-methods - npm Package Compare versions

Comparing version 0.0.5 to 0.0.6

31

dist/app.common.js

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

/*! app.js v0.0.5 | https://www.npmjs.com/package/app-methods */
/*! app.js v0.0.6 | https://www.npmjs.com/package/app-methods */
'use strict';

@@ -352,2 +352,27 @@

var dd = window.dd;
var exit$3;
if (dd) {
var promise$1 = new Promise(function (resolve) {
dd.ready(resolve);
});
exit$3 = function () {
promise$1.then(function () {
dd.biz.navigation.close();
});
};
} else {
exit$3 = noop;
}
var ding = Object.freeze({
hideBar: noop,
showBar: noop,
get exit () { return exit$3; }
});
/**

@@ -371,2 +396,3 @@ * @file 其它平台的方法,一般是在网页环境里

xy: xy,
ding: ding,
other: other

@@ -381,3 +407,4 @@ });

xy: 'eve',
ping: 'qichat'
ping: 'qichat',
ding: 'dingtalk'
};

@@ -384,0 +411,0 @@

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

/*! app.js v0.0.5 | https://www.npmjs.com/package/app-methods */
/*! app.js v0.0.6 | https://www.npmjs.com/package/app-methods */
/* global App:false */

@@ -348,2 +348,27 @@ /**

var dd = window.dd;
var exit$3;
if (dd) {
var promise$1 = new Promise(function (resolve) {
dd.ready(resolve);
});
exit$3 = function () {
promise$1.then(function () {
dd.biz.navigation.close();
});
};
} else {
exit$3 = noop;
}
var ding = Object.freeze({
hideBar: noop,
showBar: noop,
get exit () { return exit$3; }
});
/**

@@ -367,2 +392,3 @@ * @file 其它平台的方法,一般是在网页环境里

xy: xy,
ding: ding,
other: other

@@ -377,3 +403,4 @@ });

xy: 'eve',
ping: 'qichat'
ping: 'qichat',
ding: 'dingtalk'
};

@@ -380,0 +407,0 @@

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

/*! app.js v0.0.5 | https://www.npmjs.com/package/app-methods */
/*! app.js v0.0.6 | https://www.npmjs.com/package/app-methods */
(function (global, factory) {

@@ -354,2 +354,27 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :

var dd = window.dd;
var exit$3;
if (dd) {
var promise$1 = new Promise(function (resolve) {
dd.ready(resolve);
});
exit$3 = function () {
promise$1.then(function () {
dd.biz.navigation.close();
});
};
} else {
exit$3 = noop;
}
var ding = Object.freeze({
hideBar: noop,
showBar: noop,
get exit () { return exit$3; }
});
/**

@@ -373,2 +398,3 @@ * @file 其它平台的方法,一般是在网页环境里

xy: xy,
ding: ding,
other: other

@@ -383,3 +409,4 @@ });

xy: 'eve',
ping: 'qichat'
ping: 'qichat',
ding: 'dingtalk'
};

@@ -386,0 +413,0 @@

4

dist/app.min.js

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

/*! app.js v0.0.5 | https://www.npmjs.com/package/app-methods */
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.app=e.app||{})}(this,function(e){"use strict";function n(){try{App.hideBar()}catch(e){}}function t(){try{App.showBar()}catch(e){}}function i(){try{App.close()}catch(e){}}function o(){h.then(function(){yasuo.page.finish()})}function r(){h.then(function(){yasuo.page.hideBar()})}function a(){h.then(function(){yasuo.page.showBar()})}function c(){h=new Promise(function(e){document.addEventListener("yasuoReady",e)}),d()}function d(){function e(e,n,i){window.WebViewJavascriptBridge.callHandler(e,n,function(e){if(i){var n=t?JSON.parse(e):e;n.err?i(n.err,null):n.res&&i(null,n.res)}})}function n(n,t){var i={};i.data=JSON.stringify(n)||"",e("Toast",JSON.stringify(i),t)}var t=m.indexOf("android")>-1,i=m.indexOf("iphone")>-1,o={showBar:function(){e("TitleBar","show",null)},hideBar:function(){e("TitleBar","hide",null)},finish:function(){e("Page","finish",null)},showLoading:function(n,t){n=n||{},n.mode="show",e("Loading",n,t)},hideLoading:function(n,t){n=n||{},n.mode="hide",e("Loading",n,t)}},r={getTime:function(n,t){n=n||{},n.mode="time",e("TimePicker",n,t)},getDate:function(n,t){n=n||{},n.mode="date",e("TimePicker",n,t)},getTimeDate:function(n,t){n=n||{},n.mode="time_date",e("TimePicker",n,t)}},a={hide:function(n,t){n=n||{},n.mode="hide",e("Keyboard",n,t)},show:function(n,t){n=n||{},n.mode="show",e("Keyboard",n,t)}},c={getPicture:function(n,t){n=n||{},n.mode="image",e("Camera",n,t)},getAlbum:function(n,t){n=n||{},n.mode="album",e("Camera",n,t)}},d={transfer:function(n,t){e("File",n,t)}},u={checkVersion:function(n){var t={};t.mode="checkVersion",e("App",t,n)},info:function(n){var t={};t.mode="info",e("App",t,n)},hotUpdate:function(n){var t={};t.mode="hotupdate",e("App",t,n)}},f=function(n){e("Device",{},n)},s={logout:function(n){var t={};t.mode="logout",e("User",t,n)},clearToken:function(n){var t={};t.mode="clear",e("User",t,n)}},h=window.yasuo={init:function(e){window.WebViewJavascriptBridge.init(e)},isAndroid:function(){return t},isIOS:function(){return i},showToast:n,camera:c,keyboard:a,timePicker:r,page:o,file:d,network:function(n){e("NetworkInfo",{},n)},app:u,device:f,user:s,version:"0.0.1"};document.addEventListener("WebViewJavascriptBridgeReady",function(){var e=window.WebViewJavascriptBridge;if(e){var n=document.createEvent("Events");n.initEvent("yasuoReady"),document.dispatchEvent(n),h.init();var t=document.createEvent("Events");t.initEvent("Keyboard.hide");var i=document.createEvent("Events");i.initEvent("Keyboard.show"),e.registerHandler("Keyboard.hide",function(e,n){document.dispatchEvent(t)}),e.registerHandler("Keyboard.show",function(e,n){document.dispatchEvent(i)});var o=document.createEvent("Events");o.initEvent("onLandscapeScreen"),e.registerHandler("onLandscapeScreen",function(e,n){document.dispatchEvent(o)});var r=document.createEvent("Events");r.initEvent("onPortraitScreen"),e.registerHandler("onPortraitScreen",function(e,n){document.dispatchEvent(r)});var a=document.createEvent("Events");a.initEvent("networkStateChange"),e.registerHandler("networkStateChange",function(e,n){a.data=e,document.dispatchEvent(a)})}})}function u(){k.hideBar(),n()}function f(){k.showBar(),t()}function s(){k.exit(),i()}var h,p,v=Object.freeze({hideBar:n,showBar:t,exit:i}),m=navigator.userAgent.toLowerCase(),w=Object.freeze({exit:o,hideBar:r,showBar:a,init:c}),g=function(){},l=Object.freeze({hideBar:g,showBar:g,exit:g}),y=Object.freeze({ping:v,xy:w,other:l}),E={xy:"eve",ping:"qichat"},B=Object.prototype.hasOwnProperty;for(var b in E)if(B.call(E,b)&&m.indexOf(E[b])>=0){p=b;break}p||window.App&&window.App.hideBar&&(p="ping");var O=p||"other",k=y[O];k.init&&k.init(),e.platform=O,e.hideBar=u,e.showBar=f,e.exit=s,Object.defineProperty(e,"__esModule",{value:!0})});
/*! app.js v0.0.6 | https://www.npmjs.com/package/app-methods */
!function(e,n){"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(e.app=e.app||{})}(this,function(e){"use strict";function n(){try{App.hideBar()}catch(e){}}function t(){try{App.showBar()}catch(e){}}function i(){try{App.close()}catch(e){}}function o(){h.then(function(){yasuo.page.finish()})}function r(){h.then(function(){yasuo.page.hideBar()})}function a(){h.then(function(){yasuo.page.showBar()})}function c(){h=new Promise(function(e){document.addEventListener("yasuoReady",e)}),d()}function d(){function e(e,n,i){window.WebViewJavascriptBridge.callHandler(e,n,function(e){if(i){var n=t?JSON.parse(e):e;n.err?i(n.err,null):n.res&&i(null,n.res)}})}function n(n,t){var i={};i.data=JSON.stringify(n)||"",e("Toast",JSON.stringify(i),t)}var t=m.indexOf("android")>-1,i=m.indexOf("iphone")>-1,o={showBar:function(){e("TitleBar","show",null)},hideBar:function(){e("TitleBar","hide",null)},finish:function(){e("Page","finish",null)},showLoading:function(n,t){n=n||{},n.mode="show",e("Loading",n,t)},hideLoading:function(n,t){n=n||{},n.mode="hide",e("Loading",n,t)}},r={getTime:function(n,t){n=n||{},n.mode="time",e("TimePicker",n,t)},getDate:function(n,t){n=n||{},n.mode="date",e("TimePicker",n,t)},getTimeDate:function(n,t){n=n||{},n.mode="time_date",e("TimePicker",n,t)}},a={hide:function(n,t){n=n||{},n.mode="hide",e("Keyboard",n,t)},show:function(n,t){n=n||{},n.mode="show",e("Keyboard",n,t)}},c={getPicture:function(n,t){n=n||{},n.mode="image",e("Camera",n,t)},getAlbum:function(n,t){n=n||{},n.mode="album",e("Camera",n,t)}},d={transfer:function(n,t){e("File",n,t)}},u={checkVersion:function(n){var t={};t.mode="checkVersion",e("App",t,n)},info:function(n){var t={};t.mode="info",e("App",t,n)},hotUpdate:function(n){var t={};t.mode="hotupdate",e("App",t,n)}},f=function(n){e("Device",{},n)},s={logout:function(n){var t={};t.mode="logout",e("User",t,n)},clearToken:function(n){var t={};t.mode="clear",e("User",t,n)}},h=window.yasuo={init:function(e){window.WebViewJavascriptBridge.init(e)},isAndroid:function(){return t},isIOS:function(){return i},showToast:n,camera:c,keyboard:a,timePicker:r,page:o,file:d,network:function(n){e("NetworkInfo",{},n)},app:u,device:f,user:s,version:"0.0.1"};document.addEventListener("WebViewJavascriptBridgeReady",function(){var e=window.WebViewJavascriptBridge;if(e){var n=document.createEvent("Events");n.initEvent("yasuoReady"),document.dispatchEvent(n),h.init();var t=document.createEvent("Events");t.initEvent("Keyboard.hide");var i=document.createEvent("Events");i.initEvent("Keyboard.show"),e.registerHandler("Keyboard.hide",function(e,n){document.dispatchEvent(t)}),e.registerHandler("Keyboard.show",function(e,n){document.dispatchEvent(i)});var o=document.createEvent("Events");o.initEvent("onLandscapeScreen"),e.registerHandler("onLandscapeScreen",function(e,n){document.dispatchEvent(o)});var r=document.createEvent("Events");r.initEvent("onPortraitScreen"),e.registerHandler("onPortraitScreen",function(e,n){document.dispatchEvent(r)});var a=document.createEvent("Events");a.initEvent("networkStateChange"),e.registerHandler("networkStateChange",function(e,n){a.data=e,document.dispatchEvent(a)})}})}function u(){j.hideBar(),n()}function f(){j.showBar(),t()}function s(){j.exit(),i()}var h,v,p=Object.freeze({hideBar:n,showBar:t,exit:i}),m=navigator.userAgent.toLowerCase(),w=Object.freeze({exit:o,hideBar:r,showBar:a,init:c}),g=function(){},l=window.dd;if(l){var y=new Promise(function(e){l.ready(e)});v=function(){y.then(function(){l.biz.navigation.close()})}}else v=g;var E,b=Object.freeze({hideBar:g,showBar:g,get exit(){return v}}),B=Object.freeze({hideBar:g,showBar:g,exit:g}),O=Object.freeze({ping:p,xy:w,ding:b,other:B}),k={xy:"eve",ping:"qichat",ding:"dingtalk"},x=Object.prototype.hasOwnProperty;for(var P in k)if(x.call(k,P)&&m.indexOf(k[P])>=0){E=P;break}E||window.App&&window.App.hideBar&&(E="ping");var A=E||"other",j=O[A];j.init&&j.init(),e.platform=A,e.hideBar=u,e.showBar=f,e.exit=s,Object.defineProperty(e,"__esModule",{value:!0})});
{
"name": "app-methods",
"version": "0.0.5",
"version": "0.0.6",
"main": "dist/app.common.js",

@@ -13,3 +13,3 @@ "module": "dist/app.esm.js",

"build": "node build/build.js",
"prepublish": "yarn run build"
"prepublishOnly": "yarn run build"
},

@@ -16,0 +16,0 @@ "devDependencies": {

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