New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@brandboostinggmbh/painless

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

@brandboostinggmbh/painless - npm Package Compare versions

Comparing version 0.2.3 to 0.2.4

dist/util/schema/useGlobalBlock.d.ts

23

dist/index2.js

@@ -16,2 +16,22 @@ const defineSchema = (schema) => {

};
const isInputSetting = (setting) => {
return setting.type !== "header" && setting.type !== "paragraph";
};
const useGlobalBlock = (prefix, block) => {
var _a;
const settings = ((_a = block.settings) == null ? void 0 : _a.map((setting) => {
if (isInputSetting(setting)) {
return {
...setting,
id: `${prefix}_${setting.id}`
};
} else {
return setting;
}
})) ?? [];
return {
...block,
settings
};
};
export {

@@ -22,3 +42,4 @@ defineBlock,

defineThemeBlockSchema,
defineThemeSettingsSchema
defineThemeSettingsSchema,
useGlobalBlock
};
export * from './defineSchema';
export * from './defineTemplate';
export * from './defineThemeSettingsSchema';
export * from './useGlobalBlock';

2

package.json
{
"name": "@brandboostinggmbh/painless",
"private": false,
"version": "0.2.3",
"version": "0.2.4",
"type": "module",

@@ -6,0 +6,0 @@ "files": [

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