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
6
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 4.2.6 to 4.2.7

10

lib/core/Context.js

@@ -10,3 +10,3 @@ "use strict";

switch (action.type) {
case 'unload':
case "unload":
context.remove(target);

@@ -28,3 +28,3 @@ break;

$$nameMap: {},
$$lastID: null
$$lastID: null,
};

@@ -40,3 +40,3 @@ // new

this.dispatch({
type: constants_1.INIT_CONTEXT_ACTION_TYPE
type: constants_1.INIT_CONTEXT_ACTION_TYPE,
});

@@ -73,3 +73,5 @@ }

Context.prototype.find = function (instanceId, notValue) {
return this.actors.collection.get(instanceId) || notValue;
var collection = Array.from(this.actors.collection);
var currentItem = collection.find(function (item) { return item[0].includes(instanceId); }) || [];
return currentItem[1] || notValue;
};

@@ -76,0 +78,0 @@ Context.prototype.addTree = function (tree) {

46

lib/smartface/pageContextPatch.js

@@ -20,3 +20,3 @@ "use strict";

type: "updatePageSafeArea",
safeArea: style
safeArea: style,
});

@@ -30,10 +30,7 @@ this.layout.applyLayout();

function updateHeaderBar() {
if (this.parentController &&
this.parentController.headerBar &&
this.headerBar.dispatch &&
!this.headerBar.__isUpdated) {
if (this.parentController && this.parentController.headerBar && this.headerBar.dispatch && !this.headerBar.__isUpdated) {
this.headerBar.__isUpdated = true;
this.headerBar.dispatch({
type: "updateComponent",
component: this.parentController.headerBar
component: this.parentController.headerBar,
});

@@ -45,9 +42,11 @@ }

updateHeaderBar.call(this);
this.dispatch && this.dispatch({
type: "invalidate"
});
this.dispatch && this.dispatch({
type: "forceComponentUpdate",
name: "statusbar"
});
this.dispatch &&
this.dispatch({
type: "invalidate",
});
this.dispatch &&
this.dispatch({
type: "forceComponentUpdate",
name: "statusBar",
});
this.layout.applyLayout();

@@ -58,11 +57,13 @@ }

superOnOrientationChange && superOnOrientationChange();
this.dispatch && this.dispatch({
type: "orientationStarted"
});
this.dispatch &&
this.dispatch({
type: "orientationStarted",
});
this.layout.applyLayout();
// superOnOrientationChange && setTimeout(superOnOrientationChange.bind(this),1);
setTimeout(function () {
_this.dispatch && _this.dispatch({
type: "orientationEnded"
});
_this.dispatch &&
_this.dispatch({
type: "orientationEnded",
});
_this.layout.applyLayout();

@@ -72,6 +73,3 @@ }, 1);

function componentDidEnter(componentDidEnter, dispatcher) {
componentDidEnter
&&
componentDidEnter(dispatcher) ||
(this.dispatch = dispatcher);
(componentDidEnter && componentDidEnter(dispatcher)) || (this.dispatch = dispatcher);
}

@@ -109,7 +107,5 @@ // monkey patching wrapper for any page.

}
;
return pageContextPatchDispose;
}
exports.default = pageContextPatch;
;
//# sourceMappingURL=pageContextPatch.js.map

@@ -125,3 +125,4 @@ "use strict";

Stylable.prototype.reset = function () {
this.setStyles(this.getStyles(), true);
this.setStyles(this.getStyles());
this.applyStyles(true);
return this;

@@ -128,0 +129,0 @@ };

{
"name": "@smartface/contx",
"version": "4.2.6",
"version": "4.2.7",
"description": "Context Manager",

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

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