Comparing version 9.0.65 to 9.0.66
{ | ||
"name": "zoid", | ||
"version": "9.0.65", | ||
"version": "9.0.66", | ||
"description": "Cross domain components.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,5 +0,15 @@ | ||
<p align="center"><img width="45%" src="https://cdn.rawgit.com/krakenjs/zoid/master/zoid.png"></p> | ||
<p align="center"><img width="45%" alt="zoid" src="https://cdn.rawgit.com/krakenjs/zoid/master/zoid.png"></p> | ||
---- | ||
[![build status][build-badge]][build] | ||
[![code coverage][coverage-badge]][coverage] | ||
[![npm version][version-badge]][package] | ||
[build-badge]: https://img.shields.io/github/workflow/status/krakenjs/zoid/build?logo=github&style=flat-square | ||
[build]: https://github.com/krakenjs/zoid/actions?query=workflow%3Abuild | ||
[coverage-badge]: https://img.shields.io/codecov/c/github/krakenjs/zoid.svg?style=flat-square | ||
[coverage]: https://codecov.io/github/krakenjs/zoid/ | ||
[version-badge]: https://img.shields.io/npm/v/zoid.svg?style=flat-square | ||
[package]: https://www.npmjs.com/package/zoid | ||
A cross-domain component toolkit, supporting: | ||
@@ -6,0 +16,0 @@ |
/* @flow */ | ||
import { noop } from 'belter/src'; | ||
import { noop, dasherizeToCamel } from 'belter/src'; | ||
@@ -28,2 +28,14 @@ import type { ComponentDriverType } from '../component'; | ||
function propsToCamelCase(props : Object) : Object { | ||
return Object.keys(props).reduce((acc, key) => { | ||
const value = props[key]; | ||
if (key.includes('-')) { | ||
acc[dasherizeToCamel(key)] = value; | ||
} else { | ||
acc[key] = value; | ||
} | ||
return acc; | ||
}, {}); | ||
} | ||
export const vue : ComponentDriverType<*, VueType, RegisteredVueComponent> = { | ||
@@ -42,4 +54,3 @@ | ||
const el = this.$el; | ||
this.parent = init({ ...this.$attrs }); | ||
this.parent = init({ ...propsToCamelCase(this.$attrs) }); | ||
this.parent.render(el, CONTEXT.IFRAME); | ||
@@ -46,0 +57,0 @@ }, |
Sorry, the diff of this file is too big to display
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 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 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 too big to display
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
3111836
22497
198