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

@animaapp/framework-helpers

Package Overview
Dependencies
Maintainers
7
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@animaapp/framework-helpers - npm Package Compare versions

Comparing version 1.1.3 to 1.1.4

42

dist/antd/antdTheme.js

@@ -39,6 +39,22 @@ "use strict";

}
if (typeof newValue !== 'string' && typeof newValue !== 'number') {
throw new Error(`Unexpected value in design tokens json file for key = ${key} expecting string got: ${JSON.stringify(newValue)}, new formats will come soon`);
if (newValue == null) {
throw new Error(`Unexpected value in design tokens json file for key = ${key} expecting value`);
}
antdTokens[key] = newValue;
;
if (typeof newValue === 'number' || typeof newValue === 'boolean') {
antdTokens[key] = newValue;
}
else if (typeof newValue === 'object') {
const newString = flattenToString(newValue);
antdTokens[key] = newString;
}
else {
const value = parseFloat(newValue);
if (isNaN(value)) {
antdTokens[key] = newValue;
}
else {
antdTokens[key] = value;
}
}
}

@@ -55,1 +71,21 @@ else {

};
function flattenToString(input) {
function flatten(obj) {
return Object.values(obj)
.map((value) => {
if (Array.isArray(value)) {
return flattenToString(value);
}
else {
return value.toString();
}
})
.join(' ');
}
if (Array.isArray(input)) {
return input.map((item) => flatten(item)).join(', ');
}
else {
return flatten(input);
}
}

2

package.json
{
"name": "@animaapp/framework-helpers",
"version": "1.1.3",
"version": "1.1.4",
"description": "",

@@ -5,0 +5,0 @@ "main": "./dist/index.js",

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