@atlaskit/adf-schema
Advanced tools
Comparing version 1.5.2 to 1.5.3
# @atlaskit/adf-schema | ||
## 1.5.3 | ||
- [patch] [775da616c6](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/775da616c6): | ||
- [ED-5910] Keep width & height on media node as number | ||
## 1.5.2 | ||
@@ -4,0 +9,0 @@ - [patch] [e83a441140](https://bitbucket.org/atlassian/atlaskit-mk-2/commits/e83a441140): |
@@ -34,2 +34,8 @@ import { N30 } from '../../utils/colors'; | ||
} | ||
if (typeof attrs.width !== 'undefined' && !isNaN(attrs.width)) { | ||
attrs.width = Number(attrs.width); | ||
} | ||
if (typeof attrs.height !== 'undefined' && !isNaN(attrs.height)) { | ||
attrs.height = Number(attrs.height); | ||
} | ||
return attrs; | ||
@@ -105,2 +111,6 @@ }, | ||
} | ||
if (['width', 'height'].indexOf(key) !== -1) { | ||
obj[key] = Number(node.attrs[key]); | ||
return obj; | ||
} | ||
obj[key] = node.attrs[key]; | ||
@@ -107,0 +117,0 @@ return obj; |
@@ -36,2 +36,8 @@ "use strict"; | ||
} | ||
if (typeof attrs.width !== 'undefined' && !isNaN(attrs.width)) { | ||
attrs.width = Number(attrs.width); | ||
} | ||
if (typeof attrs.height !== 'undefined' && !isNaN(attrs.height)) { | ||
attrs.height = Number(attrs.height); | ||
} | ||
return attrs; | ||
@@ -107,2 +113,6 @@ }, | ||
} | ||
if (['width', 'height'].indexOf(key) !== -1) { | ||
obj[key] = Number(node.attrs[key]); | ||
return obj; | ||
} | ||
obj[key] = node.attrs[key]; | ||
@@ -109,0 +119,0 @@ return obj; |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"sideEffects": false | ||
} |
{ | ||
"name": "@atlaskit/adf-schema", | ||
"version": "1.5.2", | ||
"version": "1.5.3", | ||
"description": "Shared package that contains the ADF-schema (json) and ProseMirror node/mark specs", | ||
@@ -45,5 +45,5 @@ "license": "Apache-2.0", | ||
"axios": "^0.17.1", | ||
"json-schema-diff-validator": "^0.2.0" | ||
"json-schema-diff-validator": "^0.3.0" | ||
}, | ||
"repository": "https://bitbucket.org/atlassian/atlaskit-mk-2" | ||
} |
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
573222
13313