@omnia/velcron 8.0.291-dev → 8.0.292-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -249,7 +249,7 @@ export interface VelcronImageDefinition extends VelcronDefinitionWithEditMode {
249
249
  ratio?: VelcronImageRatios | string;
250
250
  width?: number | string;
251
251
  height?: number | string;
252
- cover?: VelcronBindableProp<boolean>;
252
+ fit?: "contain" | "cover";
253
253
  borderRadius?: VelcronDimensions;
254
254
  events?: VelcronOnPressEvent;
255
255
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/velcron",
3
3
  "license": "MIT",
4
- "version": "8.0.291-dev",
4
+ "version": "8.0.292-dev",
5
5
  "description": "Provide Omnia Velcron Stuffs.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
@@ -539,7 +539,7 @@ class VelcronData {
539
539
  const lastParent = null;
540
540
  for (let i = 0, n = a.length; i < n; ++i) {
541
541
  const k = a[i];
542
- if (object.hasOwnProperty(k)) {
542
+ if (object && object.hasOwnProperty(k)) {
543
543
  //
544
544
  if (typeof value !== "undefined" && (i + 1) == a.length) {
545
545
  if (Array.isArray(object[k]) && typeof value === "string" || value instanceof String) {
@@ -619,7 +619,7 @@ class VelcronData {
619
619
  //Fetch from current ctx
620
620
  object = renderContext.currentContext;
621
621
  }
622
- if (VelcronData.isObject(object)) {
622
+ if (VelcronData.isObject(object) && object) {
623
623
  result = VelcronData.getOrSetObjectByPath(object, path, value);
624
624
  }
625
625
  else {