@builder.io/sdk
Advanced tools
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1727953
16327
23297
8