@bbn/bbn 1.0.316 → 1.0.317

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -203,7 +203,7 @@ export default function analyzeFunction(fn) {
203
203
  throw Error("Unexpected end of function while parsing function");
204
204
  }
205
205
  }
206
- if (body === '{ [native code] }') {
206
+ if (body.substr(0, 25).indexOf('[native code]') > -1) {
207
207
  isBinary = true;
208
208
  }
209
209
  var argString = args
@@ -71,8 +71,7 @@ export default function isSame(obj1, obj2, done) {
71
71
  else if (obj1 && obj2 && (typeof obj1 === 'function') && (typeof obj2 === 'function')) {
72
72
  var tmp1 = analyzeFunction(obj1);
73
73
  var tmp2 = analyzeFunction(obj2);
74
- bbn.fn.log(['functions', tmp1, tmp2]);
75
- var isSame_1 = tmp1.hash === tmp2.hash;
74
+ var isSame_1 = (tmp1.hash === tmp2.hash);
76
75
  // If native code better to replace
77
76
  if (isSame_1 && tmp1.isBinary) {
78
77
  isSame_1 = false;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.316",
3
+ "version": "1.0.317",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",