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

@builder.io/sdk

Package Overview
Dependencies
Maintainers
16
Versions
696
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/sdk - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

6

CHANGELOG.md
# @builder.io/sdk
## 3.0.1
### Patch Changes
- 69859d4: serialize functions for registering plugins so you can have showIf on fields as functions
## 3.0.0

@@ -4,0 +10,0 @@

2

dist/package.json
{
"name": "@builder.io/sdk",
"version": "3.0.0",
"version": "3.0.1",
"unpkg": "./dist/index.browser.js",

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

@@ -760,3 +760,3 @@ /// <reference types="node" />

static set editingPage(editingPage: boolean);
private static serializeComponentInfo;
private static serializeIncludingFunctions;
private static prepareComponentSpecToSend;

@@ -763,0 +763,0 @@ static registerBlock(component: any, options: Component): void;

@@ -23,3 +23,3 @@ "use strict";

});
describe('serializeComponentInfo', function () {
describe('serializeIncludingFunctions', function () {
test('serializes functions in inputs', function () {

@@ -38,3 +38,3 @@ var input = {

};
var result = builder_class_1.Builder['serializeComponentInfo'](input);
var result = builder_class_1.Builder['serializeIncludingFunctions'](input);
expect(typeof result.inputs[0].onChange).toBe('string');

@@ -54,3 +54,3 @@ expect(result.inputs[0].onChange).toContain('return value.toUpperCase()');

};
var result = builder_class_1.Builder['serializeComponentInfo'](input);
var result = builder_class_1.Builder['serializeIncludingFunctions'](input);
expect(typeof result.inputs[0].onChange).toBe('string');

@@ -70,3 +70,3 @@ expect(result.inputs[0].onChange).toContain('value * 2');

};
var result = builder_class_1.Builder['serializeComponentInfo'](input);
var result = builder_class_1.Builder['serializeIncludingFunctions'](input);
expect(result).toEqual(input);

@@ -97,3 +97,3 @@ });

};
var result = builder_class_1.Builder['serializeComponentInfo'](input);
var result = builder_class_1.Builder['serializeIncludingFunctions'](input);
expect(typeof result.inputs[0].onChange).toBe('string');

@@ -100,0 +100,0 @@ expect(result.inputs[0].onChange).toContain('value.trim()');

{
"name": "@builder.io/sdk",
"version": "3.0.0",
"version": "3.0.1",
"unpkg": "./dist/index.browser.js",

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

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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