@bikeshaving/crank
Advanced tools
Comparing version 0.4.2 to 0.4.3
@@ -508,6 +508,2 @@ /** | ||
}; | ||
/** | ||
* Some JSX transpilation tools expect these functions to be defined on the | ||
* default export. Prefer named exports when importing directly. | ||
*/ | ||
export default _default; |
@@ -1634,6 +1634,4 @@ /// <reference types="crank.d.ts" /> | ||
} | ||
/** | ||
* Some JSX transpilation tools expect these functions to be defined on the | ||
* default export. Prefer named exports when importing directly. | ||
*/ | ||
// Some JSX transpilation tools expect these functions to be defined on the | ||
// default export. Prefer named exports when importing directly. | ||
var crank = { createElement, Fragment }; | ||
@@ -1640,0 +1638,0 @@ |
22
dom.js
@@ -106,12 +106,20 @@ /// <reference types="dom.d.ts" /> | ||
typeof node[name] === "boolean")) { | ||
try { | ||
if (node[name] !== value) { | ||
node[name] = value; | ||
// walk up the object's prototype chain to find the owner of the | ||
// named property | ||
let obj = node; | ||
do { | ||
if (Object.prototype.hasOwnProperty.call(obj, name)) { | ||
break; | ||
} | ||
} while ((obj = Object.getPrototypeOf(obj))); | ||
// get the descriptor for the named property and check whether it | ||
// implies that the property is writable | ||
const descriptor = Object.getOwnPropertyDescriptor(obj, name); | ||
if (descriptor != null && | ||
(descriptor.writable === true || descriptor.set !== undefined)) { | ||
node[name] = value; | ||
return; | ||
} | ||
catch (err) { | ||
// some properties are readonly so we fallback to setting them as | ||
// attributes | ||
} | ||
// if the property wasn't writable, fall through to the code below | ||
// which uses setAttribute() instead of assigning directly. | ||
} | ||
@@ -118,0 +126,0 @@ if (value === true) { |
{ | ||
"name": "@bikeshaving/crank", | ||
"version": "0.4.2", | ||
"version": "0.4.3", | ||
"description": "Write JSX-driven components with functions, promises and generators.", | ||
@@ -86,2 +86,2 @@ "homepage": "https://crank.js.org", | ||
} | ||
} | ||
} |
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
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
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
670945
6589