You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@tailwind-ng/core

Package Overview
Dependencies
Maintainers
1
Versions
196
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tailwind-ng/core - npm Package Compare versions

Comparing version
0.20.30
to
0.20.31
+43
-42
fesm2022/tailwind-ng-core.mjs

@@ -342,5 +342,5 @@ import * as i0 from '@angular/core';

/* Given an array of strings to merge from source to target
For each value in source, remove target values that partially or fully match the source value.
If the source value don't ends by the character '-' (class-deletor), add it to target.
*/
For each value in source, remove target values that partially or fully match the source value.
If the source value don't ends by the character '-' (class-deletor), add it to target.
*/
const temp = [];

@@ -633,11 +633,11 @@ let target = (t?.length && t.split(' ')) || [];

/* Given an object with values to extract
1. If the object is undefined, return an empty string
2. Else, create a variable named res and initialized with an empty string
3. Iterate over the properties values of the object.
For each property:
1. If the property value is a string, add a single space on it then add it in res
2. Else, if it is an object, make a recursion on it and store the result in res
4. Return res.
*/
1. If the object is undefined, return an empty string
2. Else, create a variable named res and initialized with an empty string
3. Iterate over the properties values of the object.
For each property:
1. If the property value is a string, add a single space on it then add it in res
2. Else, if it is an object, make a recursion on it and store the result in res
4. Return res.
*/
let res = '';

@@ -664,11 +664,11 @@ if (!isObject(obj))

/* Given an object with values to extract
1. If the object is undefined, return an empty []
2. Else, create a variable named res and initialized with an empty []
3. Iterate over the properties values of the object.
For each property:
1. If the property value is a string, add it in res
2. Else, if it is an object, make a recursion on it and store the result in res
4. Return res.
*/
1. If the object is undefined, return an empty []
2. Else, create a variable named res and initialized with an empty []
3. Iterate over the properties values of the object.
For each property:
1. If the property value is a string, add it in res
2. Else, if it is an object, make a recursion on it and store the result in res
4. Return res.
*/
const res = [];

@@ -698,12 +698,12 @@ if (!isObject(obj) || isEmptyObject(obj))

/* Given a list of objects to merge in a target object
1. Loop through each object of source objects
1. Loop through each property in the current source object
1. If target object has a matching property and it's an object,
make a recursion call with the target object property as target
and the current source object property as source.
2. Else if it matches and it's not an object,
update the target value with the current source object value
2. Return the target object
*/
1. Loop through each object of source objects
1. Loop through each property in the current source object
1. If target object has a matching property and it's an object,
make a recursion call with the target object property as target
and the current source object property as source.
2. Else if it matches and it's not an object,
update the target value with the current source object value
2. Return the target object
*/
const [target, ...source] = arg;

@@ -745,13 +745,13 @@ if (!target)

/* Given a list of objects to merge in target object
1. Loop through each object in source objects
1. If source object is empty, return it.
2. Else, loop through each property of the current source object
1. If target object has a matching property and it is an object,
make a recursion call with the target object property as target
and the current source object property as source
and store the result in the target object property
2. Else if it matches and it's not an object,
update the target value with the current source object value
2. Return the target object
*/
1. Loop through each object in source objects
1. If source object is empty, return it.
2. Else, loop through each property of the current source object
1. If target object has a matching property and it is an object,
make a recursion call with the target object property as target
and the current source object property as source
and store the result in the target object property
2. Else if it matches and it's not an object,
update the target value with the current source object value
2. Return the target object
*/
const [target, ...source] = arg;

@@ -864,2 +864,3 @@ if (!target)

if (this.restoreFocus && this.trigger) {
;
this.trigger.focus();

@@ -866,0 +867,0 @@ }

{
"name": "@tailwind-ng/core",
"version": "0.20.30",
"version": "0.20.31",
"author": {

@@ -5,0 +5,0 @@ "email": "w.mba@outlook.com",

@@ -20,3 +20,3 @@ import { ClassNameValue } from './classname';

*/
update(fn: (currentValue: NonNullable<ClassNameValue>) => ClassNameValue): ClassList;
update(fn: (currentValue: string) => ClassNameValue): ClassList;
/**

@@ -27,7 +27,7 @@ * Merges multiple classnames to the classlist.

*/
merge(fn: (currentValue: NonNullable<ClassNameValue>) => ClassNameValue[]): ClassList;
merge(fn: (currentValue: string) => ClassNameValue[]): ClassList;
/**
* Returns an array representation of the classlist's value
*/
toArray(): NonNullable<ClassNameValue>[];
toArray(): string[];
}

@@ -34,0 +34,0 @@ /**

Sorry, the diff of this file is too big to display