@stylexjs/shared
Advanced tools
Comparing version 0.2.0-beta.10 to 0.2.0-beta.11
@@ -7,3 +7,3 @@ "use strict"; | ||
exports.validateNamespace = validateNamespace; | ||
var _ = require(".."); | ||
var _stylexInclude = require("../stylex-include"); | ||
var messages = _interopRequireWildcard(require("../messages")); | ||
@@ -42,3 +42,3 @@ var _objectUtils = require("../utils/object-utils"); | ||
} | ||
if (val instanceof _.IncludedStyles) { | ||
if (val instanceof _stylexInclude.IncludedStyles) { | ||
if (conditions.length === 0) { | ||
@@ -85,3 +85,3 @@ continue; | ||
} | ||
if (v instanceof _.IncludedStyles) { | ||
if (v instanceof _stylexInclude.IncludedStyles) { | ||
throw new Error(messages.ONLY_TOP_LEVEL_INLCUDES); | ||
@@ -88,0 +88,0 @@ } |
@@ -8,5 +8,5 @@ "use strict"; | ||
exports.flattenRawStyleObject = flattenRawStyleObject; | ||
var _ = _interopRequireDefault(require(".")); | ||
var _index = _interopRequireDefault(require("./index")); | ||
var _PreRule = require("./PreRule"); | ||
var _2 = require(".."); | ||
var _stylexInclude = require("../stylex-include"); | ||
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } | ||
@@ -31,3 +31,3 @@ /** | ||
// Included Styles | ||
if (typeof value === 'object' && value instanceof _2.IncludedStyles) { | ||
if (typeof value === 'object' && value instanceof _stylexInclude.IncludedStyles) { | ||
flattened.push([key, new _PreRule.PreIncludedStylesRule(value)]); | ||
@@ -39,3 +39,3 @@ continue; | ||
if (value === null || typeof value === 'string' || typeof value === 'number') { | ||
const pairs = (0, _.default)([key, value], options); | ||
const pairs = (0, _index.default)([key, value], options); | ||
for (const [property, value] of pairs) { | ||
@@ -55,3 +55,3 @@ if (value === null) { | ||
for (const eachVal of value) { | ||
const pairs = (0, _.default)([key, eachVal], options); | ||
const pairs = (0, _index.default)([key, eachVal], options); | ||
for (const [property, val] of pairs) { | ||
@@ -58,0 +58,0 @@ if (Array.isArray(val)) { |
{ | ||
"name": "@stylexjs/shared", | ||
"version": "0.2.0-beta.10", | ||
"description": "Shared Code for Stylex compile and runtime.", | ||
"version": "0.2.0-beta.11", | ||
"main": "lib/index.js", | ||
"repository": "https://www.github.com/facebookexternal/stylex", | ||
"author": "Naman Goel <nmn@fb.com>", | ||
"repository": "https://www.github.com/facebook/stylex", | ||
"license": "MIT", | ||
@@ -9,0 +7,0 @@ "scripts": { |
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
No contributors or author data
MaintenancePackage does not specify a list of contributors or an author in package.json.
Found 1 instance in 1 package
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
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
No repository
Supply chain riskPackage does not have a linked source code repository. Without this field, a package will have no reference to the location of the source code use to generate the package.
Found 1 instance in 1 package
188219
49
4130
2