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

@builder.io/sdk

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@builder.io/sdk - npm Package Compare versions

Comparing version 4.0.2 to 4.0.3

# @builder.io/sdk
## 4.0.3
### Patch Changes
- 9b11521: fix serializing single arg arrow functions that some compilers emit
- 027a07a: fix: standardize locale handling and pass through locale prop to personalization containers when filtering
## 4.0.2

@@ -4,0 +11,0 @@

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

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

@@ -90,2 +90,4 @@ "use strict";

test('serializes arrow functions in inputs', function () {
// Using eval and template literal to prevent TypeScript from adding parens
var fn = eval("(".concat("e => !0 === e.get(\"isABTest\")", ")"));
var input = {

@@ -98,2 +100,3 @@ name: 'ArrowComponent',

onChange: function (value) { return value * 2; },
showIf: fn,
},

@@ -105,2 +108,3 @@ ],

expect(result.inputs[0].onChange).toContain('value * 2');
expect(result.inputs[0].showIf).toBe("return (e => !0 === e.get(\"isABTest\")).apply(this, arguments)");
});

@@ -107,0 +111,0 @@ test('does not modify non-function properties', function () {

@@ -1,1 +0,1 @@

export declare const SDK_VERSION = "4.0.2";
export declare const SDK_VERSION = "4.0.3";
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SDK_VERSION = void 0;
exports.SDK_VERSION = '4.0.2';
exports.SDK_VERSION = '4.0.3';
//# sourceMappingURL=sdk-version.js.map
{
"name": "@builder.io/sdk",
"version": "4.0.2",
"version": "4.0.3",
"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