@ribajs/core
Advanced tools
Comparing version 1.9.0-alpha.10 to 1.9.0-alpha.11
{ | ||
"name": "@ribajs/core", | ||
"description": "Core module of Riba.js", | ||
"version": "1.9.0-alpha.10", | ||
"version": "1.9.0-alpha.11", | ||
"author": "Pascal Garber <pascal@artandcode.studio>", | ||
@@ -52,5 +52,5 @@ "contributors": [ | ||
"@babel/runtime-corejs3": "^7.11.2", | ||
"@ribajs/eslint-config": "1.9.0-alpha.10", | ||
"@ribajs/tsconfig": "1.9.0-alpha.10", | ||
"@ribajs/types": "1.8.3", | ||
"@ribajs/eslint-config": "1.9.0-alpha.11", | ||
"@ribajs/tsconfig": "1.9.0-alpha.11", | ||
"@ribajs/types": "1.9.0-alpha.11", | ||
"@types/core-js": "^2.5.3", | ||
@@ -86,4 +86,4 @@ "@types/jest": "^26.0.13", | ||
"dependencies": { | ||
"@ribajs/utils": "1.9.0-alpha.10" | ||
"@ribajs/utils": "1.9.0-alpha.11" | ||
} | ||
} |
@@ -35,7 +35,19 @@ import { Binder } from "../interfaces"; | ||
el.setAttribute(this.type, newValue); | ||
el.dispatchEvent( | ||
// E.g. Event used in BinderAttributeChangedEvent | ||
new CustomEvent("binder-changed", { | ||
detail: { name: this.type, newValue, oldValue }, | ||
}) | ||
); | ||
} | ||
} else { | ||
el.removeAttribute(this.type); | ||
el.dispatchEvent( | ||
// E.g. Event used in BinderAttributeChangedEvent | ||
new CustomEvent("binder-changed", { | ||
detail: { name: this.type, newValue, oldValue }, | ||
}) | ||
); | ||
} | ||
}, | ||
}; |
@@ -7,4 +7,4 @@ /** | ||
name: "json", | ||
read(object: any, replaceSingleQuate = true) { | ||
const result = JSON.stringify(object); | ||
read(object: any, space = 2, replaceSingleQuate = true) { | ||
const result = JSON.stringify(object, null, space); | ||
if (replaceSingleQuate && result) { | ||
@@ -11,0 +11,0 @@ return result.replace(/'/g, `'`); |
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
273723
8458
+ Added@ribajs/utils@1.9.0-alpha.11(transitive)
- Removed@ribajs/utils@1.9.0-alpha.10(transitive)
Updated@ribajs/utils@1.9.0-alpha.11