Socket
Socket
Sign inDemoInstall

protoblast

Package Overview
Dependencies
Maintainers
1
Versions
102
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.5.9 to 0.5.10

5

CHANGELOG.md

@@ -0,1 +1,6 @@

## 0.5.10 (2018-07-11)
* Add `Function.doConstitutors` to force doing the constitutors of a class
* Add `sort_arrays` parameter to `Object.checksum(obj, sort_arrays)`
## 0.5.9 (2018-07-10)

@@ -2,0 +7,0 @@

@@ -640,2 +640,13 @@ module.exports = function BlastInheritance(Blast, Collection) {

/**
* Force the constitutors to execute now
*
* @author Jelle De Loecker <jelle@develry.be>
* @since 0.5.10
* @version 0.5.10
*
* @param {Function} constructor
*/
Blast.defineStatic('Function', 'doConstitutors', doConstitutors);
/**
* Do the given task for a given constructor

@@ -642,0 +653,0 @@ *

18

lib/object.js

@@ -1241,5 +1241,6 @@ module.exports = function BlastObject(Blast, Collection, Bound, Obj) {

* @since 0.1.3
* @version 0.4.0
* @version 0.5.10
*
* @param {Object|Array} obj
* @param {Object|Array} obj The object to checksum
* @param {Boolean} sort_arrays Sort arrays before checksumming? (true)
* @param {Array} seen

@@ -1249,3 +1250,3 @@ *

*/
Blast.defineStatic('Object', 'checksum', function checksum(obj, seen) {
Blast.defineStatic('Object', 'checksum', function checksum(obj, sort_arrays, seen) {

@@ -1267,2 +1268,7 @@ var split_length,

if (typeof sort_arrays != 'boolean') {
seen = sort_arrays;
sort_arrays = true;
}
// Make sure primitives are primitive

@@ -1310,3 +1316,5 @@ if (type == 'object' && obj != null && typeof obj.valueOf == 'function') {

// And sort it alphabetically
obj.sort();
if (sort_arrays) {
obj.sort();
}

@@ -1351,3 +1359,3 @@ // Create the names

seen.push(val);
val = checksum(val, seen);
val = checksum(val, sort_arrays, seen);
} else {

@@ -1354,0 +1362,0 @@ val = 'R' + idx;

{
"name": "protoblast",
"description": "Native object expansion library",
"version": "0.5.9",
"version": "0.5.10",
"author": "Jelle De Loecker <jelle@develry.be>",

@@ -15,3 +15,3 @@ "keywords": [

"dependencies": {
"json-dry" : "~1.0.5"
"json-dry" : "~1.0.7"
},

@@ -18,0 +18,0 @@ "repository": "skerit/protoblast",

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