Comparing version 3.1.1 to 3.1.2
@@ -16,5 +16,6 @@ var pathGetter = require('./path-getter'); | ||
var str = fn.toString(); | ||
var start = str.match(/^(?:.*?\{|.*?=>)/)[0]; | ||
var match = str.match(/^[^{]*{|^[^=]*=>/); | ||
var start = match ? match[0] : '<function> '; | ||
var end = str[str.length - 1] === '}' ? '}' : ''; | ||
return start + ' /* ... */ ' + end; | ||
return start.replace(/\r\n|\n/g, ' ').replace(/\s+/g, ' ') + ' /* ... */ ' + end; | ||
}; | ||
@@ -21,0 +22,0 @@ |
{ | ||
"name": "jsan", | ||
"version": "3.1.1", | ||
"version": "3.1.2", | ||
"description": "handle circular references when stringifying and parsing", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
global at 1000 iterations | ||
jsan took 1261 | ||
CircularJSON took 1097 | ||
json-stringify-safe took 1707 | ||
jsan took 1292 | ||
CircularJSON took 1093 | ||
json-stringify-safe took 1770 | ||
decycledGlobal at 1000 iterations | ||
jsan took 119 | ||
CircularJSON took 502 | ||
json-stringify-safe took 1098 | ||
jsan took 147 | ||
CircularJSON took 537 | ||
json-stringify-safe took 1188 | ||
empty object at 1000000 iterations | ||
jsan took 332 | ||
CircularJSON took 476 | ||
json-stringify-safe took 624 | ||
jsan took 369 | ||
CircularJSON took 512 | ||
json-stringify-safe took 698 | ||
empty array at 1000000 iterations | ||
jsan took 341 | ||
CircularJSON took 323 | ||
json-stringify-safe took 464 | ||
jsan took 369 | ||
CircularJSON took 348 | ||
json-stringify-safe took 486 | ||
small object at 100000 iterations | ||
jsan took 54 | ||
CircularJSON took 159 | ||
json-stringify-safe took 510 | ||
jsan took 49 | ||
CircularJSON took 170 | ||
json-stringify-safe took 531 | ||
self referencing small object at 100000 iterations | ||
jsan took 52 | ||
CircularJSON took 152 | ||
json-stringify-safe took 499 | ||
jsan took 50 | ||
CircularJSON took 164 | ||
json-stringify-safe took 543 | ||
small array at 100000 iterations | ||
jsan took 43 | ||
CircularJSON took 128 | ||
json-stringify-safe took 494 | ||
jsan took 55 | ||
CircularJSON took 134 | ||
json-stringify-safe took 561 | ||
self referencing small array at 100000 iterations | ||
jsan took 47 | ||
CircularJSON took 130 | ||
json-stringify-safe took 502 | ||
jsan took 43 | ||
CircularJSON took 126 | ||
json-stringify-safe took 544 | ||
string at 1000000 iterations | ||
jsan took 265 | ||
CircularJSON took 293 | ||
json-stringify-safe took 415 | ||
jsan took 295 | ||
CircularJSON took 306 | ||
json-stringify-safe took 435 | ||
number at 1000000 iterations | ||
jsan took 226 | ||
CircularJSON took 186 | ||
json-stringify-safe took 331 | ||
jsan took 227 | ||
CircularJSON took 210 | ||
json-stringify-safe took 353 | ||
null at 1000000 iterations | ||
jsan took 207 | ||
CircularJSON took 208 | ||
json-stringify-safe took 338 | ||
jsan took 222 | ||
CircularJSON took 204 | ||
json-stringify-safe took 362 | ||
global at 1000 iterations | ||
jsan took 1287 | ||
CircularJSON took 1049 | ||
json-stringify-safe took 1640 | ||
jsan took 1351 | ||
CircularJSON took 1128 | ||
json-stringify-safe took 1715 | ||
decycledGlobal at 1000 iterations | ||
jsan took 129 | ||
CircularJSON took 510 | ||
json-stringify-safe took 1061 | ||
jsan took 127 | ||
CircularJSON took 546 | ||
json-stringify-safe took 1142 | ||
empty object at 1000000 iterations | ||
jsan took 339 | ||
CircularJSON took 486 | ||
json-stringify-safe took 652 | ||
jsan took 366 | ||
CircularJSON took 504 | ||
json-stringify-safe took 658 | ||
empty array at 1000000 iterations | ||
jsan took 352 | ||
CircularJSON took 320 | ||
json-stringify-safe took 441 | ||
jsan took 368 | ||
CircularJSON took 323 | ||
json-stringify-safe took 539 | ||
small object at 100000 iterations | ||
jsan took 50 | ||
CircularJSON took 148 | ||
json-stringify-safe took 492 | ||
jsan took 46 | ||
CircularJSON took 162 | ||
json-stringify-safe took 505 | ||
self referencing small object at 100000 iterations | ||
jsan took 50 | ||
CircularJSON took 152 | ||
json-stringify-safe took 492 | ||
jsan took 56 | ||
CircularJSON took 178 | ||
json-stringify-safe took 499 | ||
small array at 100000 iterations | ||
jsan took 42 | ||
CircularJSON took 129 | ||
json-stringify-safe took 528 | ||
jsan took 44 | ||
CircularJSON took 140 | ||
json-stringify-safe took 555 | ||
self referencing small array at 100000 iterations | ||
jsan took 45 | ||
CircularJSON took 127 | ||
json-stringify-safe took 512 | ||
jsan took 50 | ||
CircularJSON took 143 | ||
json-stringify-safe took 523 | ||
string at 1000000 iterations | ||
jsan took 278 | ||
CircularJSON took 290 | ||
json-stringify-safe took 415 | ||
jsan took 292 | ||
CircularJSON took 321 | ||
json-stringify-safe took 459 | ||
number at 1000000 iterations | ||
jsan took 227 | ||
jsan took 233 | ||
CircularJSON took 201 | ||
json-stringify-safe took 312 | ||
json-stringify-safe took 337 | ||
null at 1000000 iterations | ||
jsan took 203 | ||
CircularJSON took 200 | ||
json-stringify-safe took 328 | ||
jsan took 211 | ||
CircularJSON took 206 | ||
json-stringify-safe took 349 | ||
global at 1000 iterations | ||
jsan took 1257 | ||
CircularJSON took 1078 | ||
json-stringify-safe took 1705 | ||
jsan took 1345 | ||
CircularJSON took 1134 | ||
json-stringify-safe took 1774 | ||
decycledGlobal at 1000 iterations | ||
jsan took 123 | ||
CircularJSON took 510 | ||
json-stringify-safe took 1099 | ||
jsan took 136 | ||
CircularJSON took 531 | ||
json-stringify-safe took 1173 | ||
empty object at 1000000 iterations | ||
jsan took 341 | ||
CircularJSON took 481 | ||
json-stringify-safe took 643 | ||
jsan took 352 | ||
CircularJSON took 513 | ||
json-stringify-safe took 690 | ||
empty array at 1000000 iterations | ||
jsan took 346 | ||
CircularJSON took 311 | ||
json-stringify-safe took 435 | ||
jsan took 352 | ||
CircularJSON took 347 | ||
json-stringify-safe took 471 | ||
small object at 100000 iterations | ||
jsan took 49 | ||
CircularJSON took 151 | ||
json-stringify-safe took 491 | ||
jsan took 50 | ||
CircularJSON took 166 | ||
json-stringify-safe took 523 | ||
self referencing small object at 100000 iterations | ||
jsan took 47 | ||
CircularJSON took 153 | ||
jsan took 49 | ||
CircularJSON took 152 | ||
json-stringify-safe took 506 | ||
small array at 100000 iterations | ||
jsan took 43 | ||
CircularJSON took 131 | ||
json-stringify-safe took 531 | ||
jsan took 48 | ||
CircularJSON took 126 | ||
json-stringify-safe took 564 | ||
self referencing small array at 100000 iterations | ||
jsan took 49 | ||
CircularJSON took 125 | ||
json-stringify-safe took 519 | ||
jsan took 46 | ||
CircularJSON took 147 | ||
json-stringify-safe took 557 | ||
string at 1000000 iterations | ||
jsan took 266 | ||
CircularJSON took 287 | ||
json-stringify-safe took 425 | ||
jsan took 297 | ||
CircularJSON took 308 | ||
json-stringify-safe took 448 | ||
number at 1000000 iterations | ||
jsan took 214 | ||
CircularJSON took 187 | ||
json-stringify-safe took 316 | ||
jsan took 234 | ||
CircularJSON took 206 | ||
json-stringify-safe took 347 | ||
null at 1000000 iterations | ||
jsan took 216 | ||
CircularJSON took 195 | ||
json-stringify-safe took 328 | ||
jsan took 218 | ||
CircularJSON took 207 | ||
json-stringify-safe took 353 | ||
global at 1000 iterations | ||
jsan took 1364 | ||
CircularJSON took 1035 | ||
json-stringify-safe took 1658 | ||
jsan took 1336 | ||
CircularJSON took 1102 | ||
json-stringify-safe took 1810 | ||
decycledGlobal at 1000 iterations | ||
jsan took 119 | ||
CircularJSON took 515 | ||
json-stringify-safe took 1081 | ||
jsan took 121 | ||
CircularJSON took 534 | ||
json-stringify-safe took 1159 | ||
empty object at 1000000 iterations | ||
jsan took 340 | ||
CircularJSON took 488 | ||
json-stringify-safe took 635 | ||
jsan took 359 | ||
CircularJSON took 510 | ||
json-stringify-safe took 686 | ||
empty array at 1000000 iterations | ||
jsan took 333 | ||
CircularJSON took 321 | ||
json-stringify-safe took 449 | ||
jsan took 369 | ||
CircularJSON took 349 | ||
json-stringify-safe took 529 | ||
small object at 100000 iterations | ||
jsan took 48 | ||
CircularJSON took 157 | ||
json-stringify-safe took 456 | ||
jsan took 55 | ||
CircularJSON took 168 | ||
json-stringify-safe took 524 | ||
self referencing small object at 100000 iterations | ||
jsan took 45 | ||
CircularJSON took 161 | ||
json-stringify-safe took 474 | ||
jsan took 55 | ||
CircularJSON took 179 | ||
json-stringify-safe took 533 | ||
small array at 100000 iterations | ||
jsan took 44 | ||
CircularJSON took 126 | ||
json-stringify-safe took 493 | ||
jsan took 43 | ||
CircularJSON took 135 | ||
json-stringify-safe took 549 | ||
self referencing small array at 100000 iterations | ||
jsan took 43 | ||
CircularJSON took 127 | ||
json-stringify-safe took 497 | ||
jsan took 48 | ||
CircularJSON took 138 | ||
json-stringify-safe took 527 | ||
string at 1000000 iterations | ||
jsan took 270 | ||
CircularJSON took 295 | ||
json-stringify-safe took 412 | ||
CircularJSON took 298 | ||
json-stringify-safe took 424 | ||
number at 1000000 iterations | ||
jsan took 220 | ||
CircularJSON took 197 | ||
json-stringify-safe took 321 | ||
jsan took 225 | ||
CircularJSON took 198 | ||
json-stringify-safe took 334 | ||
null at 1000000 iterations | ||
jsan took 208 | ||
CircularJSON took 187 | ||
json-stringify-safe took 317 | ||
jsan took 219 | ||
CircularJSON took 201 | ||
json-stringify-safe took 332 | ||
global at 1000 iterations | ||
jsan took 1255 | ||
CircularJSON took 1050 | ||
json-stringify-safe took 1746 | ||
jsan took 1344 | ||
CircularJSON took 1103 | ||
json-stringify-safe took 1743 | ||
decycledGlobal at 1000 iterations | ||
jsan took 114 | ||
CircularJSON took 500 | ||
json-stringify-safe took 1175 | ||
jsan took 126 | ||
CircularJSON took 516 | ||
json-stringify-safe took 1092 | ||
empty object at 1000000 iterations | ||
jsan took 326 | ||
CircularJSON took 473 | ||
json-stringify-safe took 658 | ||
jsan took 364 | ||
CircularJSON took 530 | ||
json-stringify-safe took 699 | ||
empty array at 1000000 iterations | ||
jsan took 349 | ||
CircularJSON took 305 | ||
json-stringify-safe took 438 | ||
jsan took 369 | ||
CircularJSON took 320 | ||
json-stringify-safe took 489 | ||
small object at 100000 iterations | ||
jsan took 46 | ||
CircularJSON took 155 | ||
json-stringify-safe took 516 | ||
jsan took 47 | ||
CircularJSON took 158 | ||
json-stringify-safe took 498 | ||
self referencing small object at 100000 iterations | ||
jsan took 47 | ||
CircularJSON took 151 | ||
json-stringify-safe took 537 | ||
jsan took 56 | ||
CircularJSON took 165 | ||
json-stringify-safe took 512 | ||
small array at 100000 iterations | ||
jsan took 45 | ||
CircularJSON took 124 | ||
json-stringify-safe took 554 | ||
jsan took 48 | ||
CircularJSON took 136 | ||
json-stringify-safe took 517 | ||
self referencing small array at 100000 iterations | ||
jsan took 45 | ||
CircularJSON took 139 | ||
json-stringify-safe took 600 | ||
jsan took 44 | ||
CircularJSON took 132 | ||
json-stringify-safe took 507 | ||
string at 1000000 iterations | ||
jsan took 275 | ||
CircularJSON took 294 | ||
json-stringify-safe took 449 | ||
jsan took 286 | ||
CircularJSON took 300 | ||
json-stringify-safe took 445 | ||
number at 1000000 iterations | ||
jsan took 231 | ||
CircularJSON took 211 | ||
json-stringify-safe took 347 | ||
jsan took 222 | ||
CircularJSON took 196 | ||
json-stringify-safe took 341 | ||
null at 1000000 iterations | ||
jsan took 207 | ||
CircularJSON took 193 | ||
json-stringify-safe took 324 | ||
jsan took 209 | ||
CircularJSON took 197 | ||
json-stringify-safe took 339 | ||
global at 1000 iterations | ||
jsan took 1315 | ||
CircularJSON took 1102 | ||
json-stringify-safe took 1834 | ||
jsan took 1327 | ||
CircularJSON took 1072 | ||
json-stringify-safe took 1748 | ||
decycledGlobal at 1000 iterations | ||
jsan took 124 | ||
CircularJSON took 522 | ||
json-stringify-safe took 1162 | ||
jsan took 120 | ||
CircularJSON took 521 | ||
json-stringify-safe took 1139 | ||
empty object at 1000000 iterations | ||
jsan took 360 | ||
CircularJSON took 474 | ||
json-stringify-safe took 629 | ||
jsan took 358 | ||
CircularJSON took 490 | ||
json-stringify-safe took 652 | ||
empty array at 1000000 iterations | ||
jsan took 366 | ||
CircularJSON took 315 | ||
json-stringify-safe took 451 | ||
jsan took 356 | ||
CircularJSON took 334 | ||
json-stringify-safe took 480 | ||
small object at 100000 iterations | ||
jsan took 50 | ||
CircularJSON took 148 | ||
json-stringify-safe took 494 | ||
jsan took 48 | ||
CircularJSON took 153 | ||
json-stringify-safe took 502 | ||
self referencing small object at 100000 iterations | ||
jsan took 49 | ||
CircularJSON took 161 | ||
json-stringify-safe took 487 | ||
jsan took 47 | ||
CircularJSON took 157 | ||
json-stringify-safe took 519 | ||
small array at 100000 iterations | ||
jsan took 49 | ||
CircularJSON took 132 | ||
json-stringify-safe took 506 | ||
jsan took 46 | ||
CircularJSON took 138 | ||
json-stringify-safe took 531 | ||
@@ -39,18 +39,18 @@ self referencing small array at 100000 iterations | ||
CircularJSON took 129 | ||
json-stringify-safe took 510 | ||
json-stringify-safe took 536 | ||
string at 1000000 iterations | ||
jsan took 277 | ||
CircularJSON took 297 | ||
json-stringify-safe took 438 | ||
jsan took 281 | ||
CircularJSON took 283 | ||
json-stringify-safe took 429 | ||
number at 1000000 iterations | ||
jsan took 242 | ||
CircularJSON took 206 | ||
json-stringify-safe took 333 | ||
jsan took 219 | ||
CircularJSON took 192 | ||
json-stringify-safe took 328 | ||
null at 1000000 iterations | ||
jsan took 221 | ||
CircularJSON took 202 | ||
json-stringify-safe took 344 | ||
jsan took 209 | ||
CircularJSON took 192 | ||
json-stringify-safe took 339 | ||
global at 1000 iterations | ||
jsan took 1291 | ||
CircularJSON took 1038 | ||
json-stringify-safe took 1678 | ||
jsan took 1312 | ||
CircularJSON took 1073 | ||
json-stringify-safe took 1822 | ||
decycledGlobal at 1000 iterations | ||
jsan took 128 | ||
CircularJSON took 493 | ||
json-stringify-safe took 1105 | ||
jsan took 123 | ||
CircularJSON took 525 | ||
json-stringify-safe took 1221 | ||
empty object at 1000000 iterations | ||
jsan took 367 | ||
CircularJSON took 475 | ||
json-stringify-safe took 647 | ||
jsan took 351 | ||
CircularJSON took 573 | ||
json-stringify-safe took 722 | ||
empty array at 1000000 iterations | ||
jsan took 382 | ||
CircularJSON took 326 | ||
json-stringify-safe took 473 | ||
jsan took 363 | ||
CircularJSON took 336 | ||
json-stringify-safe took 501 | ||
small object at 100000 iterations | ||
jsan took 55 | ||
CircularJSON took 159 | ||
json-stringify-safe took 474 | ||
jsan took 48 | ||
CircularJSON took 171 | ||
json-stringify-safe took 570 | ||
self referencing small object at 100000 iterations | ||
jsan took 51 | ||
CircularJSON took 158 | ||
json-stringify-safe took 483 | ||
jsan took 48 | ||
CircularJSON took 165 | ||
json-stringify-safe took 584 | ||
small array at 100000 iterations | ||
jsan took 54 | ||
CircularJSON took 137 | ||
json-stringify-safe took 511 | ||
jsan took 49 | ||
CircularJSON took 142 | ||
json-stringify-safe took 564 | ||
self referencing small array at 100000 iterations | ||
jsan took 55 | ||
CircularJSON took 127 | ||
json-stringify-safe took 514 | ||
jsan took 48 | ||
CircularJSON took 143 | ||
json-stringify-safe took 587 | ||
string at 1000000 iterations | ||
jsan took 314 | ||
CircularJSON took 284 | ||
json-stringify-safe took 407 | ||
jsan took 274 | ||
CircularJSON took 314 | ||
json-stringify-safe took 431 | ||
number at 1000000 iterations | ||
jsan took 253 | ||
jsan took 217 | ||
CircularJSON took 193 | ||
json-stringify-safe took 325 | ||
json-stringify-safe took 333 | ||
null at 1000000 iterations | ||
jsan took 243 | ||
CircularJSON took 196 | ||
json-stringify-safe took 321 | ||
jsan took 214 | ||
CircularJSON took 206 | ||
json-stringify-safe took 328 | ||
global at 1000 iterations | ||
jsan took 1260 | ||
CircularJSON took 1090 | ||
json-stringify-safe took 1749 | ||
jsan took 1313 | ||
CircularJSON took 1107 | ||
json-stringify-safe took 1706 | ||
decycledGlobal at 1000 iterations | ||
jsan took 113 | ||
CircularJSON took 518 | ||
json-stringify-safe took 1125 | ||
jsan took 121 | ||
CircularJSON took 528 | ||
json-stringify-safe took 1113 | ||
empty object at 1000000 iterations | ||
jsan took 357 | ||
CircularJSON took 534 | ||
json-stringify-safe took 706 | ||
jsan took 345 | ||
CircularJSON took 490 | ||
json-stringify-safe took 635 | ||
empty array at 1000000 iterations | ||
jsan took 362 | ||
CircularJSON took 370 | ||
json-stringify-safe took 507 | ||
jsan took 354 | ||
CircularJSON took 333 | ||
json-stringify-safe took 462 | ||
small object at 100000 iterations | ||
jsan took 49 | ||
CircularJSON took 168 | ||
json-stringify-safe took 498 | ||
jsan took 52 | ||
CircularJSON took 148 | ||
json-stringify-safe took 493 | ||
self referencing small object at 100000 iterations | ||
jsan took 50 | ||
CircularJSON took 170 | ||
json-stringify-safe took 519 | ||
jsan took 53 | ||
CircularJSON took 159 | ||
json-stringify-safe took 493 | ||
small array at 100000 iterations | ||
jsan took 55 | ||
CircularJSON took 136 | ||
json-stringify-safe took 540 | ||
jsan took 45 | ||
CircularJSON took 132 | ||
json-stringify-safe took 531 | ||
self referencing small array at 100000 iterations | ||
jsan took 66 | ||
CircularJSON took 150 | ||
json-stringify-safe took 514 | ||
jsan took 47 | ||
CircularJSON took 127 | ||
json-stringify-safe took 505 | ||
string at 1000000 iterations | ||
jsan took 258 | ||
CircularJSON took 293 | ||
json-stringify-safe took 415 | ||
jsan took 272 | ||
CircularJSON took 292 | ||
json-stringify-safe took 433 | ||
number at 1000000 iterations | ||
jsan took 219 | ||
CircularJSON took 192 | ||
json-stringify-safe took 316 | ||
jsan took 227 | ||
CircularJSON took 200 | ||
json-stringify-safe took 331 | ||
null at 1000000 iterations | ||
jsan took 203 | ||
jsan took 214 | ||
CircularJSON took 205 | ||
json-stringify-safe took 329 | ||
json-stringify-safe took 326 | ||
global at 1000 iterations | ||
jsan took 1270 | ||
CircularJSON took 1040 | ||
json-stringify-safe took 1662 | ||
jsan took 1329 | ||
CircularJSON took 1071 | ||
json-stringify-safe took 1727 | ||
decycledGlobal at 1000 iterations | ||
jsan took 115 | ||
CircularJSON took 485 | ||
json-stringify-safe took 1063 | ||
jsan took 130 | ||
CircularJSON took 519 | ||
json-stringify-safe took 1162 | ||
empty object at 1000000 iterations | ||
jsan took 339 | ||
CircularJSON took 467 | ||
json-stringify-safe took 628 | ||
jsan took 340 | ||
CircularJSON took 485 | ||
json-stringify-safe took 674 | ||
empty array at 1000000 iterations | ||
jsan took 348 | ||
CircularJSON took 315 | ||
json-stringify-safe took 475 | ||
jsan took 352 | ||
CircularJSON took 327 | ||
json-stringify-safe took 470 | ||
small object at 100000 iterations | ||
jsan took 50 | ||
CircularJSON took 150 | ||
json-stringify-safe took 503 | ||
CircularJSON took 151 | ||
json-stringify-safe took 510 | ||
self referencing small object at 100000 iterations | ||
jsan took 51 | ||
CircularJSON took 151 | ||
json-stringify-safe took 481 | ||
jsan took 55 | ||
CircularJSON took 161 | ||
json-stringify-safe took 517 | ||
small array at 100000 iterations | ||
jsan took 43 | ||
CircularJSON took 134 | ||
json-stringify-safe took 505 | ||
jsan took 49 | ||
CircularJSON took 131 | ||
json-stringify-safe took 513 | ||
self referencing small array at 100000 iterations | ||
jsan took 54 | ||
CircularJSON took 129 | ||
json-stringify-safe took 505 | ||
jsan took 44 | ||
CircularJSON took 141 | ||
json-stringify-safe took 545 | ||
string at 1000000 iterations | ||
jsan took 270 | ||
CircularJSON took 298 | ||
json-stringify-safe took 437 | ||
jsan took 262 | ||
CircularJSON took 293 | ||
json-stringify-safe took 403 | ||
number at 1000000 iterations | ||
jsan took 233 | ||
CircularJSON took 198 | ||
json-stringify-safe took 326 | ||
jsan took 227 | ||
CircularJSON took 187 | ||
json-stringify-safe took 324 | ||
null at 1000000 iterations | ||
jsan took 206 | ||
CircularJSON took 198 | ||
json-stringify-safe took 318 | ||
jsan took 209 | ||
CircularJSON took 194 | ||
json-stringify-safe took 320 | ||
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
34104
25
514