protoblast
Advanced tools
Comparing version 0.3.4 to 0.3.5
@@ -0,1 +1,7 @@ | ||
## 0.3.5 (2017-01-21) | ||
* Fixed `String#endsWith` so empty strings will return true | ||
* Make `String#endsWith` and `String#startsWith` shims | ||
* Protoblast with complain about overwriting properties when in debug mode | ||
## 0.3.4 (2017-01-21) | ||
@@ -2,0 +8,0 @@ |
@@ -226,3 +226,3 @@ module.exports = function BlastInit(modifyPrototype) { | ||
* @since 0.1.0 | ||
* @version 0.1.4 | ||
* @version 0.3.5 | ||
* | ||
@@ -249,2 +249,7 @@ * @param {Object} target The object to add the property to | ||
// When in DEBUG mode show warnings for already existing properties | ||
if (Blast.DEBUG && Object.getOwnPropertyDescriptor(target, name) != null) { | ||
console.warn('Protoblast is overwriting property "' + name + '"'); | ||
} | ||
Object.defineProperty(target, name, { | ||
@@ -251,0 +256,0 @@ value: value, |
@@ -906,3 +906,3 @@ module.exports = function BlastString(Blast, Collection) { | ||
* @since 0.0.1 | ||
* @version 0.0.1 | ||
* @version 0.3.5 | ||
* | ||
@@ -915,3 +915,3 @@ * @param {String} str | ||
return this.slice(0, str.length) == str; | ||
}); | ||
}, true); | ||
@@ -923,3 +923,3 @@ /** | ||
* @since 0.0.1 | ||
* @version 0.0.1 | ||
* @version 0.3.5 | ||
* | ||
@@ -931,4 +931,9 @@ * @param {String} str | ||
Blast.definePrototype('String', 'endsWith', function endsWith(str) { | ||
if (str === '') { | ||
return true; | ||
} | ||
return this.slice(-str.length) == str; | ||
}); | ||
}, true); | ||
@@ -935,0 +940,0 @@ /** |
{ | ||
"name": "protoblast", | ||
"description": "Native object expansion library", | ||
"version": "0.3.4", | ||
"version": "0.3.5", | ||
"author": "Jelle De Loecker <jelle@develry.be>", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
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
598116
18881