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.4 to 1.1.5

18

dist/antd/antdTheme.js

@@ -7,3 +7,4 @@ "use strict";

const getAntdTheme = (dsToken) => {
return convertDesignTokensToTheme(dsToken);
const cleanObj = addDollarSign(dsToken);
return convertDesignTokensToTheme(cleanObj);
};

@@ -91,1 +92,16 @@ exports.getAntdTheme = getAntdTheme;

}
function addDollarSign(obj) {
const cleanedObj = {};
for (const prop in obj) {
if (obj[prop]) {
const cleanedProp = prop.replace(/^type$/, '$type').replace(/^value$/, '$value');
if (typeof obj[prop] === 'object' && obj[prop] !== null && !Array.isArray(obj[prop])) {
cleanedObj[cleanedProp] = addDollarSign(obj[prop]);
}
else {
cleanedObj[cleanedProp] = obj[prop];
}
}
}
return cleanedObj;
}

2

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

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

Sorry, the diff of this file is not supported yet

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