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

@vanilla-extract/private

Package Overview
Dependencies
Maintainers
4
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vanilla-extract/private - npm Package Compare versions

Comparing version 0.0.0-vite-plugin-new-20240115025310 to 0.0.0-vite-plugin-new-20240115050437

29

dist/vanilla-extract-private.cjs.dev.js

@@ -6,3 +6,3 @@ 'use strict';

function getVarName(variable) {
const matches = variable.match(/^var\((.*)\)$/);
var matches = variable.match(/^var\((.*)\)$/);
if (matches) {

@@ -15,6 +15,6 @@ return matches[1];

function get(obj, path) {
let result = obj;
for (const key of path) {
var result = obj;
for (var key of path) {
if (!(key in result)) {
throw new Error(`Path ${path.join(' -> ')} does not exist in object`);
throw new Error("Path ".concat(path.join(' -> '), " does not exist in object"));
}

@@ -26,13 +26,14 @@ result = result[key];

function walkObject(obj, fn, path = []) {
const clone = obj.constructor();
for (let key in obj) {
const value = obj[key];
const currentPath = [...path, key];
if (typeof value === 'string' || typeof value === 'number' || value == null) {
clone[key] = fn(value, currentPath);
} else if (typeof value === 'object' && !Array.isArray(value)) {
clone[key] = walkObject(value, fn, currentPath);
function walkObject(obj, fn) {
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
var clone = obj.constructor();
for (var key in obj) {
var _value = obj[key];
var currentPath = [...path, key];
if (typeof _value === 'string' || typeof _value === 'number' || _value == null) {
clone[key] = fn(_value, currentPath);
} else if (typeof _value === 'object' && !Array.isArray(_value)) {
clone[key] = walkObject(_value, fn, currentPath);
} else {
console.warn(`Skipping invalid key "${currentPath.join('.')}". Should be a string, number, null or object. Received: "${Array.isArray(value) ? 'Array' : typeof value}"`);
console.warn("Skipping invalid key \"".concat(currentPath.join('.'), "\". Should be a string, number, null or object. Received: \"").concat(Array.isArray(_value) ? 'Array' : typeof _value, "\""));
}

@@ -39,0 +40,0 @@ }

@@ -6,3 +6,3 @@ 'use strict';

function getVarName(variable) {
const matches = variable.match(/^var\((.*)\)$/);
var matches = variable.match(/^var\((.*)\)$/);
if (matches) {

@@ -15,6 +15,6 @@ return matches[1];

function get(obj, path) {
let result = obj;
for (const key of path) {
var result = obj;
for (var key of path) {
if (!(key in result)) {
throw new Error(`Path ${path.join(' -> ')} does not exist in object`);
throw new Error("Path ".concat(path.join(' -> '), " does not exist in object"));
}

@@ -26,13 +26,14 @@ result = result[key];

function walkObject(obj, fn, path = []) {
const clone = obj.constructor();
for (let key in obj) {
const value = obj[key];
const currentPath = [...path, key];
if (typeof value === 'string' || typeof value === 'number' || value == null) {
clone[key] = fn(value, currentPath);
} else if (typeof value === 'object' && !Array.isArray(value)) {
clone[key] = walkObject(value, fn, currentPath);
function walkObject(obj, fn) {
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
var clone = obj.constructor();
for (var key in obj) {
var _value = obj[key];
var currentPath = [...path, key];
if (typeof _value === 'string' || typeof _value === 'number' || _value == null) {
clone[key] = fn(_value, currentPath);
} else if (typeof _value === 'object' && !Array.isArray(_value)) {
clone[key] = walkObject(_value, fn, currentPath);
} else {
console.warn(`Skipping invalid key "${currentPath.join('.')}". Should be a string, number, null or object. Received: "${Array.isArray(value) ? 'Array' : typeof value}"`);
console.warn("Skipping invalid key \"".concat(currentPath.join('.'), "\". Should be a string, number, null or object. Received: \"").concat(Array.isArray(_value) ? 'Array' : typeof _value, "\""));
}

@@ -39,0 +40,0 @@ }

function getVarName(variable) {
const matches = variable.match(/^var\((.*)\)$/);
var matches = variable.match(/^var\((.*)\)$/);
if (matches) {

@@ -10,6 +10,6 @@ return matches[1];

function get(obj, path) {
let result = obj;
for (const key of path) {
var result = obj;
for (var key of path) {
if (!(key in result)) {
throw new Error(`Path ${path.join(' -> ')} does not exist in object`);
throw new Error("Path ".concat(path.join(' -> '), " does not exist in object"));
}

@@ -21,13 +21,14 @@ result = result[key];

function walkObject(obj, fn, path = []) {
const clone = obj.constructor();
for (let key in obj) {
const value = obj[key];
const currentPath = [...path, key];
if (typeof value === 'string' || typeof value === 'number' || value == null) {
clone[key] = fn(value, currentPath);
} else if (typeof value === 'object' && !Array.isArray(value)) {
clone[key] = walkObject(value, fn, currentPath);
function walkObject(obj, fn) {
var path = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : [];
var clone = obj.constructor();
for (var key in obj) {
var _value = obj[key];
var currentPath = [...path, key];
if (typeof _value === 'string' || typeof _value === 'number' || _value == null) {
clone[key] = fn(_value, currentPath);
} else if (typeof _value === 'object' && !Array.isArray(_value)) {
clone[key] = walkObject(_value, fn, currentPath);
} else {
console.warn(`Skipping invalid key "${currentPath.join('.')}". Should be a string, number, null or object. Received: "${Array.isArray(value) ? 'Array' : typeof value}"`);
console.warn("Skipping invalid key \"".concat(currentPath.join('.'), "\". Should be a string, number, null or object. Received: \"").concat(Array.isArray(_value) ? 'Array' : typeof _value, "\""));
}

@@ -34,0 +35,0 @@ }

{
"name": "@vanilla-extract/private",
"version": "0.0.0-vite-plugin-new-20240115025310",
"version": "0.0.0-vite-plugin-new-20240115050437",
"description": "Zero-runtime Stylesheets-in-TypeScript",

@@ -5,0 +5,0 @@ "sideEffects": false,

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