Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@stylexjs/shared

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@stylexjs/shared - npm Package Compare versions

Comparing version 0.2.0-beta.10 to 0.2.0-beta.11

lib/stylex-create-vars.js

6

lib/preprocess-rules/basic-validation.js

@@ -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": {

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