@stylexjs/stylex
Advanced tools
Comparing version 0.7.5 to 0.8.0
@@ -8,3 +8,3 @@ 'use strict'; | ||
var _invariant = _interopRequireDefault(require("invariant")); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; } | ||
const LIGHT_MODE_CLASS_NAME = '__fb-light-mode'; | ||
@@ -36,4 +36,4 @@ const DARK_MODE_CLASS_NAME = '__fb-dark-mode'; | ||
class StyleXSheet { | ||
static LIGHT_MODE_CLASS_NAME = LIGHT_MODE_CLASS_NAME; | ||
static DARK_MODE_CLASS_NAME = DARK_MODE_CLASS_NAME; | ||
static LIGHT_MODE_CLASS_NAME = (() => LIGHT_MODE_CLASS_NAME)(); | ||
static DARK_MODE_CLASS_NAME = (() => DARK_MODE_CLASS_NAME)(); | ||
constructor(opts) { | ||
@@ -128,2 +128,5 @@ this.tag = null; | ||
const lastPriority = priorities.pop(); | ||
if (lastPriority == null) { | ||
return this.getRuleCount(); | ||
} | ||
return this.rules.indexOf(this.ruleForPriority.get(lastPriority)); | ||
@@ -130,0 +133,0 @@ } |
{ | ||
"name": "@stylexjs/stylex", | ||
"version": "0.7.5", | ||
"version": "0.8.0", | ||
"description": "A library for defining styles for optimized user interfaces.", | ||
@@ -48,3 +48,3 @@ "main": "./lib/stylex.js", | ||
"devDependencies": { | ||
"@stylexjs/scripts": "0.7.5", | ||
"@stylexjs/scripts": "0.8.0", | ||
"cross-env": "^7.0.3" | ||
@@ -51,0 +51,0 @@ }, |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
154634
2826