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
7
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 1.0.11 to 1.0.12

2

lib/core/Context.js

@@ -181,3 +181,3 @@ (function (global, factory) {

} catch (e) {
e.message = "An Error is occurred When action [" + action.type + "] run on target [" + target + "] in the " + e.pageName + ". " + e.message;
e.message = "An Error is occurred When action [" + action.type + "] run on target [" + target + "]. " + e.message;
(0, _raiseErrorMaybe2.default)(e, target && !!_this.actors.collection[target] && _this.actors.collection[target].onError);

@@ -184,0 +184,0 @@ }

(function (global, factory) {
if (typeof define === "function" && define.amd) {
define(["module", "exports", "sf-extension-utils", "sf-core/device/system"], factory);
define(["module", "sf-extension-utils", "sf-core/device/system"], factory);
} else if (typeof exports !== "undefined") {
factory(module, exports, require("sf-extension-utils"), require("sf-core/device/system"));
factory(module, require("sf-extension-utils"), require("sf-core/device/system"));
} else {

@@ -10,14 +10,8 @@ var mod = {

};
factory(mod, mod.exports, global.sfExtensionUtils, global.system);
factory(mod, global.sfExtensionUtils, global.system);
global.isTablet = mod.exports;
}
})(this, function (module, exports, _sfExtensionUtils, _system) {
})(this, function (module, _sfExtensionUtils, _system) {
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
var _sfExtensionUtils2 = _interopRequireDefault(_sfExtensionUtils);
var _system2 = _interopRequireDefault(_system);

@@ -31,21 +25,15 @@

// import AndroidConfig from "sf-core/util/Android/androidconfig";
var isTablet = false;
/* globals Android*/
var isTablet = false;
if (_system2.default.OS === "iOS" && _sfExtensionUtils2.default.shortEdge >= 720) {
if (_system2.default.OS === "iOS" && _sfExtensionUtils.orientation.shortEdge >= 720) {
isTablet = true;
} else if (_system2.default.OS === "Android") {
/*const SCREENLAYOUT_SIZE_MASK = 15,
var SCREENLAYOUT_SIZE_MASK = 15,
SCREENLAYOUT_SIZE_LARGE = 3;
let Activity = AndroidConfig.activity;
let context = Activity;
let xlarge = Boolean((context.getResources().getConfiguration().screenLayout & SCREENLAYOUT_SIZE_MASK) === 4);
let large = Boolean((context.getResources().getConfiguration().screenLayout & SCREENLAYOUT_SIZE_MASK) == SCREENLAYOUT_SIZE_LARGE);
isTablet = (xlarge || large);*/
var xlarge = Boolean((context.getResources().getConfiguration().screenLayout & SCREENLAYOUT_SIZE_MASK) === 4);
var large = Boolean((context.getResources().getConfiguration().screenLayout & SCREENLAYOUT_SIZE_MASK) == SCREENLAYOUT_SIZE_LARGE);
isTablet = xlarge || large;
}
exports.default = isTablet;
module.exports = exports["default"];
module.exports = isTablet;
});

@@ -76,2 +76,4 @@ (function (global, factory) {

var IMAGE_FILLTYPE_COMMON_PROPS = ["ASPECTFIT", "NORMAL", "STRETCH"];
var FONT_STYLE = {

@@ -114,2 +116,4 @@ BOLD: "BOLD",

});
} else if (key === "imageFillType" && IMAGE_FILLTYPE_COMMON_PROPS.indexOf(value) === -1) {
res = value === null ? NaN : ENUMS[key].ios[value];
} else if (ENUMS[key]) {

@@ -116,0 +120,0 @@ res = value === null ? NaN : ENUMS[key][value];

@@ -66,3 +66,3 @@ (function (global, factory) {

return !item && [] || [].concat(acc, [item.join('')]);
}, []) || [];
}, []);
};

@@ -69,0 +69,0 @@

{
"name": "@smartface/contx",
"version": "1.0.11",
"version": "1.0.12",
"description": "Context Manager",

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

@@ -179,3 +179,3 @@ [![License: MIT](https://img.shields.io/badge/License-MIT-orange.svg)](https://opensource.org/licenses/MIT)

## Context Management
Each context encapsulates behaviors and applies theme to decorated components which are came from outside of the context via Context's actors and reducers.
Each context encapsulates some behaviors and applies theme to decorated components which are came from outside of the context using Context's actors and reducers.

@@ -182,0 +182,0 @@ ### Contx/Smartface/pageContext

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