Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

protoblast

Package Overview
Dependencies
Maintainers
1
Versions
103
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

protoblast - npm Package Compare versions

Comparing version 0.3.4 to 0.3.5

6

CHANGELOG.md

@@ -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 @@

7

lib/init.js

@@ -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,

13

lib/string.js

@@ -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": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc