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

@smartface/contx

Package Overview
Dependencies
Maintainers
5
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@smartface/contx - npm Package Compare versions

Comparing version 2.3.0-beta.1 to 2.3.0-beta.2

2

lib/smartface/pageContext.js

@@ -227,5 +227,3 @@ "use strict";

case 'removeChild':
console.log("size1 : ", context.actors.collection.size);
context.remove(target);
console.log("size2 : ", context.actors.collection.size);
return newState;

@@ -232,0 +230,0 @@

19

lib/smartface/pageContextPatch.js

@@ -87,2 +87,11 @@ "use strict";

page.onOrientationChange = (0, _patchMethod["default"])(page, "onOrientationChange", onOrientationChange);
page.loadTheme = function () {
return loadTheme.call(page);
};
page.unloadTheme = function () {
return unloadTheme.call(page);
};
page.__name__ = name; // hides unload logic

@@ -95,2 +104,10 @@ // page.onUnload = patchMethod(page, "onUnload", onPageUnload);

function loadTheme() {
this.themeContext = Application.theme((0, _pageContext["default"])(page, name, null, null), name);
}
function unloadTheme() {
this.themeContext && this.themeContext(null);
}
function onShow(superOnShow, data) {

@@ -115,3 +132,3 @@ if (!this.themeContext) {

superOnLoad && superOnLoad();
this.themeContext = Application.theme((0, _pageContext["default"])(page, name, null, null), name);
loadTheme.call(this);
updateHeaderBar.call(this);

@@ -118,0 +135,0 @@ }

@@ -8,6 +8,6 @@ "use strict";

function patchMethod(scope, method, bindingfFunc) {
return bindingfFunc.bind(scope, typeof scope[method] === "function" ? scope[method].bind(scope) : null);
function patchMethod(scope, bindingFunc) {
return bindingFunc.bind(scope, typeof scope[bindingFunc.name] === "function" ? scope[bindingFunc.name].bind(scope) : null);
}
module.exports = exports["default"];
{
"name": "@smartface/contx",
"version": "2.3.0-beta.1",
"version": "2.3.0-beta.2",
"description": "Context Manager",

@@ -5,0 +5,0 @@ "scripts": {

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