@bbn/bbn 1.0.283 → 1.0.285

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.
@@ -9,8 +9,7 @@
9
9
  * @returns
10
10
  */
11
11
  export default function startChrono(name) {
12
- var now = new Date().getTime();
13
- var h1 = 3600 * 1000;
12
+ var now = bbn.fn.microtime();
14
13
  if (!this.constructor.chronos) {
15
14
  Object.defineProperty(this.constructor, 'chronos', {
16
15
  value: Object.create(null),
@@ -12,7 +12,7 @@
12
12
  */
13
13
  export default function stopChrono(name) {
14
14
  if (this.constructor.chronos[name || 'default']) {
15
- var now = new Date().getTime();
15
+ var now = bbn.fn.microtime();
16
16
  var diff = now - this.constructor.chronos[name || 'default'];
17
17
  delete this.constructor.chronos[name || 'default'];
18
18
  return diff;
@@ -115,8 +115,8 @@ export default function analyzeFunction(fn) {
115
115
  body = bbn.fn.substr(all, i + 2).trim();
116
116
  break;
117
117
  }
118
- else if (all[i] === "=" && all[i + 1] === ">") {
119
- if (exp.trim() !== "" && parOpened === parClosed) {
118
+ else if (parOpened === parClosed && all[i] === "=" && all[i + 1] === ">") {
119
+ if (exp.trim() !== "") {
120
120
  currentArg["name"] = exp.trim();
121
121
  args.push(currentArg);
122
122
  currentArg = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbn/bbn",
3
- "version": "1.0.283",
3
+ "version": "1.0.285",
4
4
  "description": "Javascript toolkit",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",