| 1 |
{ |
| 2 |
"_id": "connect-history-api-fallback", |
| 3 |
"_rev": "38-71524b03f8618c7b5c6e4dff32c235c8", |
| 4 |
"name": "connect-history-api-fallback", |
| 5 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 6 |
"dist-tags": { |
| 7 |
"latest": "1.6.0" |
| 8 |
}, |
| 9 |
"versions": { |
| 10 |
"0.0.1": { |
| 11 |
"name": "connect-history-api-fallback", |
| 12 |
"version": "0.0.1", |
| 13 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 14 |
"keyswords": [ |
| 15 |
"connect", |
| 16 |
"html5", |
| 17 |
"history api", |
| 18 |
"fallback", |
| 19 |
"spa" |
| 20 |
], |
| 21 |
"engines": { |
| 22 |
"node": ">=0.8" |
| 23 |
}, |
| 24 |
"main": "lib/index.js", |
| 25 |
"scripts": { |
| 26 |
"test": "grunt" |
| 27 |
}, |
| 28 |
"repository": { |
| 29 |
"type": "git", |
| 30 |
"url": "http://github.com/bripkens/connect-history-api-fallback.git" |
| 31 |
}, |
| 32 |
"author": { |
| 33 |
"name": "Ben Ripkens", |
| 34 |
"email": "[email protected]", |
| 35 |
"url": "http://bripkens.de" |
| 36 |
}, |
| 37 |
"license": "MIT", |
| 38 |
"devDependencies": { |
| 39 |
"grunt": "~0.4.1", |
| 40 |
"grunt-contrib-nodeunit": "~0.1.2" |
| 41 |
}, |
| 42 |
"_id": "[email protected]", |
| 43 |
"dist": { |
| 44 |
"shasum": "deb051601f0ebd13727c76b165d73fef52f65975", |
| 45 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.1.tgz" |
| 46 |
}, |
| 47 |
"_from": ".", |
| 48 |
"_npmVersion": "1.2.15", |
| 49 |
"_npmUser": { |
| 50 |
"name": "bripkens", |
| 51 |
"email": "[email protected]" |
| 52 |
}, |
| 53 |
"maintainers": [ |
| 54 |
{ |
| 55 |
"name": "bripkens", |
| 56 |
"email": "[email protected]" |
| 57 |
} |
| 58 |
], |
| 59 |
"directories": {} |
| 60 |
}, |
| 61 |
"0.0.2": { |
| 62 |
"name": "connect-history-api-fallback", |
| 63 |
"version": "0.0.2", |
| 64 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 65 |
"keyswords": [ |
| 66 |
"connect", |
| 67 |
"html5", |
| 68 |
"history api", |
| 69 |
"fallback", |
| 70 |
"spa" |
| 71 |
], |
| 72 |
"engines": { |
| 73 |
"node": ">=0.8" |
| 74 |
}, |
| 75 |
"main": "lib/index.js", |
| 76 |
"scripts": { |
| 77 |
"test": "grunt" |
| 78 |
}, |
| 79 |
"repository": { |
| 80 |
"type": "git", |
| 81 |
"url": "http://github.com/bripkens/connect-history-api-fallback.git" |
| 82 |
}, |
| 83 |
"author": { |
| 84 |
"name": "Ben Ripkens", |
| 85 |
"email": "[email protected]", |
| 86 |
"url": "http://bripkens.de" |
| 87 |
}, |
| 88 |
"license": "MIT", |
| 89 |
"devDependencies": { |
| 90 |
"grunt": "~0.4.1", |
| 91 |
"grunt-contrib-nodeunit": "~0.1.2" |
| 92 |
}, |
| 93 |
"_id": "[email protected]", |
| 94 |
"dist": { |
| 95 |
"shasum": "674832149d54813039ed57919ebd89337ebedb9c", |
| 96 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.2.tgz" |
| 97 |
}, |
| 98 |
"_from": ".", |
| 99 |
"_npmVersion": "1.2.15", |
| 100 |
"_npmUser": { |
| 101 |
"name": "bripkens", |
| 102 |
"email": "[email protected]" |
| 103 |
}, |
| 104 |
"maintainers": [ |
| 105 |
{ |
| 106 |
"name": "bripkens", |
| 107 |
"email": "[email protected]" |
| 108 |
} |
| 109 |
], |
| 110 |
"directories": {} |
| 111 |
}, |
| 112 |
"0.0.3": { |
| 113 |
"name": "connect-history-api-fallback", |
| 114 |
"version": "0.0.3", |
| 115 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 116 |
"keyswords": [ |
| 117 |
"connect", |
| 118 |
"html5", |
| 119 |
"history api", |
| 120 |
"fallback", |
| 121 |
"spa" |
| 122 |
], |
| 123 |
"engines": { |
| 124 |
"node": ">=0.8" |
| 125 |
}, |
| 126 |
"main": "lib/index.js", |
| 127 |
"scripts": { |
| 128 |
"test": "grunt" |
| 129 |
}, |
| 130 |
"repository": { |
| 131 |
"type": "git", |
| 132 |
"url": "http://github.com/bripkens/connect-history-api-fallback.git" |
| 133 |
}, |
| 134 |
"author": { |
| 135 |
"name": "Ben Ripkens", |
| 136 |
"email": "[email protected]", |
| 137 |
"url": "http://bripkens.de" |
| 138 |
}, |
| 139 |
"license": "MIT", |
| 140 |
"devDependencies": { |
| 141 |
"grunt": "~0.4.1", |
| 142 |
"grunt-contrib-nodeunit": "~0.1.2" |
| 143 |
}, |
| 144 |
"_id": "[email protected]", |
| 145 |
"dist": { |
| 146 |
"shasum": "946b96eb735defe203c20dfe37c28874ea758a91", |
| 147 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.3.tgz" |
| 148 |
}, |
| 149 |
"_from": ".", |
| 150 |
"_npmVersion": "1.2.15", |
| 151 |
"_npmUser": { |
| 152 |
"name": "bripkens", |
| 153 |
"email": "[email protected]" |
| 154 |
}, |
| 155 |
"maintainers": [ |
| 156 |
{ |
| 157 |
"name": "bripkens", |
| 158 |
"email": "[email protected]" |
| 159 |
} |
| 160 |
], |
| 161 |
"directories": {} |
| 162 |
}, |
| 163 |
"0.0.4": { |
| 164 |
"name": "connect-history-api-fallback", |
| 165 |
"version": "0.0.4", |
| 166 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 167 |
"keyswords": [ |
| 168 |
"connect", |
| 169 |
"html5", |
| 170 |
"history api", |
| 171 |
"fallback", |
| 172 |
"spa" |
| 173 |
], |
| 174 |
"engines": { |
| 175 |
"node": ">=0.8" |
| 176 |
}, |
| 177 |
"main": "lib/index.js", |
| 178 |
"scripts": { |
| 179 |
"test": "grunt" |
| 180 |
}, |
| 181 |
"repository": { |
| 182 |
"type": "git", |
| 183 |
"url": "http://github.com/bripkens/connect-history-api-fallback.git" |
| 184 |
}, |
| 185 |
"author": { |
| 186 |
"name": "Ben Ripkens", |
| 187 |
"email": "[email protected]", |
| 188 |
"url": "http://bripkens.de" |
| 189 |
}, |
| 190 |
"license": "MIT", |
| 191 |
"devDependencies": { |
| 192 |
"grunt": "~0.4.1", |
| 193 |
"grunt-contrib-nodeunit": "~0.1.2" |
| 194 |
}, |
| 195 |
"_id": "[email protected]", |
| 196 |
"dist": { |
| 197 |
"shasum": "b430713e14b52df4a97de72bd17d38cbddbe14d3", |
| 198 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.4.tgz" |
| 199 |
}, |
| 200 |
"_from": ".", |
| 201 |
"_npmVersion": "1.2.15", |
| 202 |
"_npmUser": { |
| 203 |
"name": "bripkens", |
| 204 |
"email": "[email protected]" |
| 205 |
}, |
| 206 |
"maintainers": [ |
| 207 |
{ |
| 208 |
"name": "bripkens", |
| 209 |
"email": "[email protected]" |
| 210 |
} |
| 211 |
], |
| 212 |
"directories": {} |
| 213 |
}, |
| 214 |
"0.0.5": { |
| 215 |
"name": "connect-history-api-fallback", |
| 216 |
"version": "0.0.5", |
| 217 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 218 |
"keyswords": [ |
| 219 |
"connect", |
| 220 |
"html5", |
| 221 |
"history api", |
| 222 |
"fallback", |
| 223 |
"spa" |
| 224 |
], |
| 225 |
"engines": { |
| 226 |
"node": ">=0.8" |
| 227 |
}, |
| 228 |
"main": "lib/index.js", |
| 229 |
"scripts": { |
| 230 |
"test": "grunt" |
| 231 |
}, |
| 232 |
"repository": { |
| 233 |
"type": "git", |
| 234 |
"url": "http://github.com/bripkens/connect-history-api-fallback.git" |
| 235 |
}, |
| 236 |
"author": { |
| 237 |
"name": "Ben Ripkens", |
| 238 |
"email": "[email protected]", |
| 239 |
"url": "http://bripkens.de" |
| 240 |
}, |
| 241 |
"license": "MIT", |
| 242 |
"devDependencies": { |
| 243 |
"grunt": "~0.4.1", |
| 244 |
"grunt-contrib-nodeunit": "~0.1.2" |
| 245 |
}, |
| 246 |
"bugs": { |
| 247 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 248 |
}, |
| 249 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback", |
| 250 |
"_id": "[email protected]", |
| 251 |
"dist": { |
| 252 |
"shasum": "ef0509d0040bfbc486eab5f7f500bb1769cf354a", |
| 253 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-0.0.5.tgz" |
| 254 |
}, |
| 255 |
"_from": ".", |
| 256 |
"_npmVersion": "1.4.3", |
| 257 |
"_npmUser": { |
| 258 |
"name": "bripkens", |
| 259 |
"email": "[email protected]" |
| 260 |
}, |
| 261 |
"maintainers": [ |
| 262 |
{ |
| 263 |
"name": "bripkens", |
| 264 |
"email": "[email protected]" |
| 265 |
} |
| 266 |
], |
| 267 |
"directories": {} |
| 268 |
}, |
| 269 |
"1.0.0": { |
| 270 |
"name": "connect-history-api-fallback", |
| 271 |
"version": "1.0.0", |
| 272 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 273 |
"keyswords": [ |
| 274 |
"connect", |
| 275 |
"html5", |
| 276 |
"history api", |
| 277 |
"fallback", |
| 278 |
"spa" |
| 279 |
], |
| 280 |
"engines": { |
| 281 |
"node": ">=0.8" |
| 282 |
}, |
| 283 |
"main": "lib/index.js", |
| 284 |
"scripts": { |
| 285 |
"test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js" |
| 286 |
}, |
| 287 |
"repository": { |
| 288 |
"type": "git", |
| 289 |
"url": "http://github.com/bripkens/connect-history-api-fallback.git" |
| 290 |
}, |
| 291 |
"author": { |
| 292 |
"name": "Ben Ripkens", |
| 293 |
"email": "[email protected]", |
| 294 |
"url": "http://bripkens.de" |
| 295 |
}, |
| 296 |
"contributors": [ |
| 297 |
{ |
| 298 |
"name": "Craig Myles", |
| 299 |
"email": "[email protected]", |
| 300 |
"url": "http://www.craigmyles.com" |
| 301 |
} |
| 302 |
], |
| 303 |
"license": "MIT", |
| 304 |
"devDependencies": { |
| 305 |
"eslint": "^0.18.0", |
| 306 |
"nodeunit": "^0.9.1", |
| 307 |
"sinon": "^1.14.1" |
| 308 |
}, |
| 309 |
"gitHead": "7c4738211539505d1e8c2da9a3abbf03feaacc73", |
| 310 |
"bugs": { |
| 311 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 312 |
}, |
| 313 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback", |
| 314 |
"_id": "[email protected]", |
| 315 |
"_shasum": "a3bdae0c97a0f15b861674725ef4cca6b084d8f6", |
| 316 |
"_from": ".", |
| 317 |
"_npmVersion": "2.7.5", |
| 318 |
"_nodeVersion": "0.10.37", |
| 319 |
"_npmUser": { |
| 320 |
"name": "bripkens", |
| 321 |
"email": "[email protected]" |
| 322 |
}, |
| 323 |
"maintainers": [ |
| 324 |
{ |
| 325 |
"name": "bripkens", |
| 326 |
"email": "[email protected]" |
| 327 |
} |
| 328 |
], |
| 329 |
"dist": { |
| 330 |
"shasum": "a3bdae0c97a0f15b861674725ef4cca6b084d8f6", |
| 331 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.0.0.tgz" |
| 332 |
}, |
| 333 |
"directories": {} |
| 334 |
}, |
| 335 |
"1.1.0": { |
| 336 |
"name": "connect-history-api-fallback", |
| 337 |
"version": "1.1.0", |
| 338 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 339 |
"keyswords": [ |
| 340 |
"connect", |
| 341 |
"html5", |
| 342 |
"history api", |
| 343 |
"fallback", |
| 344 |
"spa" |
| 345 |
], |
| 346 |
"engines": { |
| 347 |
"node": ">=0.8" |
| 348 |
}, |
| 349 |
"main": "lib/index.js", |
| 350 |
"scripts": { |
| 351 |
"test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js" |
| 352 |
}, |
| 353 |
"repository": { |
| 354 |
"type": "git", |
| 355 |
"url": "http://github.com/bripkens/connect-history-api-fallback.git" |
| 356 |
}, |
| 357 |
"author": { |
| 358 |
"name": "Ben Ripkens", |
| 359 |
"email": "[email protected]", |
| 360 |
"url": "http://bripkens.de" |
| 361 |
}, |
| 362 |
"contributors": [ |
| 363 |
{ |
| 364 |
"name": "Craig Myles", |
| 365 |
"email": "[email protected]", |
| 366 |
"url": "http://www.craigmyles.com" |
| 367 |
} |
| 368 |
], |
| 369 |
"license": "MIT", |
| 370 |
"devDependencies": { |
| 371 |
"eslint": "^0.18.0", |
| 372 |
"nodeunit": "^0.9.1", |
| 373 |
"sinon": "^1.14.1" |
| 374 |
}, |
| 375 |
"gitHead": "c4411c155c00c84f0a9fd26e17d810dc6480171b", |
| 376 |
"bugs": { |
| 377 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 378 |
}, |
| 379 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback", |
| 380 |
"_id": "[email protected]", |
| 381 |
"_shasum": "5a6dee82d9a648cb29131d3f9dd400ffa4593742", |
| 382 |
"_from": ".", |
| 383 |
"_npmVersion": "2.7.5", |
| 384 |
"_nodeVersion": "0.10.37", |
| 385 |
"_npmUser": { |
| 386 |
"name": "bripkens", |
| 387 |
"email": "[email protected]" |
| 388 |
}, |
| 389 |
"maintainers": [ |
| 390 |
{ |
| 391 |
"name": "bripkens", |
| 392 |
"email": "[email protected]" |
| 393 |
} |
| 394 |
], |
| 395 |
"dist": { |
| 396 |
"shasum": "5a6dee82d9a648cb29131d3f9dd400ffa4593742", |
| 397 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.1.0.tgz" |
| 398 |
}, |
| 399 |
"directories": {} |
| 400 |
}, |
| 401 |
"1.2.0": { |
| 402 |
"name": "connect-history-api-fallback", |
| 403 |
"version": "1.2.0", |
| 404 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 405 |
"keyswords": [ |
| 406 |
"connect", |
| 407 |
"html5", |
| 408 |
"history api", |
| 409 |
"fallback", |
| 410 |
"spa" |
| 411 |
], |
| 412 |
"engines": { |
| 413 |
"node": ">=0.8" |
| 414 |
}, |
| 415 |
"main": "lib/index.js", |
| 416 |
"scripts": { |
| 417 |
"test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js" |
| 418 |
}, |
| 419 |
"repository": { |
| 420 |
"type": "git", |
| 421 |
"url": "git+ssh://[email protected]/bripkens/connect-history-api-fallback.git" |
| 422 |
}, |
| 423 |
"author": { |
| 424 |
"name": "Ben Ripkens", |
| 425 |
"email": "[email protected]", |
| 426 |
"url": "http://bripkens.de" |
| 427 |
}, |
| 428 |
"contributors": [ |
| 429 |
{ |
| 430 |
"name": "Craig Myles", |
| 431 |
"email": "[email protected]", |
| 432 |
"url": "http://www.craigmyles.com" |
| 433 |
} |
| 434 |
], |
| 435 |
"license": "MIT", |
| 436 |
"devDependencies": { |
| 437 |
"eslint": "^0.18.0", |
| 438 |
"nodeunit": "^0.9.1", |
| 439 |
"sinon": "^1.14.1" |
| 440 |
}, |
| 441 |
"gitHead": "e5bc77c5b1e3c9d07647764675971d262e773ac9", |
| 442 |
"bugs": { |
| 443 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 444 |
}, |
| 445 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback#readme", |
| 446 |
"_id": "[email protected]", |
| 447 |
"_shasum": "df4a8b05e40362f5b598a1c0a6aa012f21471d40", |
| 448 |
"_from": ".", |
| 449 |
"_npmVersion": "3.7.3", |
| 450 |
"_nodeVersion": "5.8.0", |
| 451 |
"_npmUser": { |
| 452 |
"name": "bripkens", |
| 453 |
"email": "[email protected]" |
| 454 |
}, |
| 455 |
"maintainers": [ |
| 456 |
{ |
| 457 |
"name": "bripkens", |
| 458 |
"email": "[email protected]" |
| 459 |
} |
| 460 |
], |
| 461 |
"dist": { |
| 462 |
"shasum": "df4a8b05e40362f5b598a1c0a6aa012f21471d40", |
| 463 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.2.0.tgz" |
| 464 |
}, |
| 465 |
"_npmOperationalInternal": { |
| 466 |
"host": "packages-12-west.internal.npmjs.com", |
| 467 |
"tmp": "tmp/connect-history-api-fallback-1.2.0.tgz_1458587541331_0.6849686577916145" |
| 468 |
}, |
| 469 |
"directories": {} |
| 470 |
}, |
| 471 |
"1.3.0": { |
| 472 |
"name": "connect-history-api-fallback", |
| 473 |
"version": "1.3.0", |
| 474 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 475 |
"keyswords": [ |
| 476 |
"connect", |
| 477 |
"html5", |
| 478 |
"history api", |
| 479 |
"fallback", |
| 480 |
"spa" |
| 481 |
], |
| 482 |
"engines": { |
| 483 |
"node": ">=0.8" |
| 484 |
}, |
| 485 |
"main": "lib/index.js", |
| 486 |
"scripts": { |
| 487 |
"test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js" |
| 488 |
}, |
| 489 |
"repository": { |
| 490 |
"type": "git", |
| 491 |
"url": "git+ssh://[email protected]/bripkens/connect-history-api-fallback.git" |
| 492 |
}, |
| 493 |
"author": { |
| 494 |
"name": "Ben Ripkens", |
| 495 |
"email": "[email protected]", |
| 496 |
"url": "http://bripkens.de" |
| 497 |
}, |
| 498 |
"contributors": [ |
| 499 |
{ |
| 500 |
"name": "Craig Myles", |
| 501 |
"email": "[email protected]", |
| 502 |
"url": "http://www.craigmyles.com" |
| 503 |
} |
| 504 |
], |
| 505 |
"license": "MIT", |
| 506 |
"devDependencies": { |
| 507 |
"eslint": "^0.18.0", |
| 508 |
"nodeunit": "^0.9.1", |
| 509 |
"sinon": "^1.14.1" |
| 510 |
}, |
| 511 |
"gitHead": "709252d1b7afbf4b29748ec9a881684603d01f97", |
| 512 |
"bugs": { |
| 513 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 514 |
}, |
| 515 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback#readme", |
| 516 |
"_id": "[email protected]", |
| 517 |
"_shasum": "e51d17f8f0ef0db90a64fdb47de3051556e9f169", |
| 518 |
"_from": ".", |
| 519 |
"_npmVersion": "3.8.9", |
| 520 |
"_nodeVersion": "6.2.0", |
| 521 |
"_npmUser": { |
| 522 |
"name": "bripkens", |
| 523 |
"email": "[email protected]" |
| 524 |
}, |
| 525 |
"maintainers": [ |
| 526 |
{ |
| 527 |
"name": "bripkens", |
| 528 |
"email": "[email protected]" |
| 529 |
} |
| 530 |
], |
| 531 |
"dist": { |
| 532 |
"shasum": "e51d17f8f0ef0db90a64fdb47de3051556e9f169", |
| 533 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.3.0.tgz" |
| 534 |
}, |
| 535 |
"_npmOperationalInternal": { |
| 536 |
"host": "packages-12-west.internal.npmjs.com", |
| 537 |
"tmp": "tmp/connect-history-api-fallback-1.3.0.tgz_1470552836120_0.7486736204009503" |
| 538 |
}, |
| 539 |
"directories": {} |
| 540 |
}, |
| 541 |
"1.4.0": { |
| 542 |
"name": "connect-history-api-fallback", |
| 543 |
"version": "1.4.0", |
| 544 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 545 |
"keyswords": [ |
| 546 |
"connect", |
| 547 |
"html5", |
| 548 |
"history api", |
| 549 |
"fallback", |
| 550 |
"spa" |
| 551 |
], |
| 552 |
"engines": { |
| 553 |
"node": ">=0.8" |
| 554 |
}, |
| 555 |
"main": "lib/index.js", |
| 556 |
"files": [ |
| 557 |
"lib" |
| 558 |
], |
| 559 |
"scripts": { |
| 560 |
"test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js" |
| 561 |
}, |
| 562 |
"repository": { |
| 563 |
"type": "git", |
| 564 |
"url": "git+ssh://[email protected]/bripkens/connect-history-api-fallback.git" |
| 565 |
}, |
| 566 |
"author": { |
| 567 |
"name": "Ben Ripkens", |
| 568 |
"email": "[email protected]", |
| 569 |
"url": "http://bripkens.de" |
| 570 |
}, |
| 571 |
"contributors": [ |
| 572 |
{ |
| 573 |
"name": "Craig Myles", |
| 574 |
"email": "[email protected]", |
| 575 |
"url": "http://www.craigmyles.com" |
| 576 |
} |
| 577 |
], |
| 578 |
"license": "MIT", |
| 579 |
"devDependencies": { |
| 580 |
"eslint": "^0.18.0", |
| 581 |
"nodeunit": "^0.9.1", |
| 582 |
"sinon": "^1.14.1" |
| 583 |
}, |
| 584 |
"gitHead": "7d953fee45b7d2f4e26cb252199ebdd18617f5d6", |
| 585 |
"bugs": { |
| 586 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 587 |
}, |
| 588 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback#readme", |
| 589 |
"_id": "[email protected]", |
| 590 |
"_shasum": "3db24f973f4b923b0e82f619ce0df02411ca623d", |
| 591 |
"_from": ".", |
| 592 |
"_npmVersion": "3.10.10", |
| 593 |
"_nodeVersion": "6.11.1", |
| 594 |
"_npmUser": { |
| 595 |
"name": "bripkens", |
| 596 |
"email": "[email protected]" |
| 597 |
}, |
| 598 |
"maintainers": [ |
| 599 |
{ |
| 600 |
"name": "bripkens", |
| 601 |
"email": "[email protected]" |
| 602 |
} |
| 603 |
], |
| 604 |
"dist": { |
| 605 |
"shasum": "3db24f973f4b923b0e82f619ce0df02411ca623d", |
| 606 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.4.0.tgz" |
| 607 |
}, |
| 608 |
"_npmOperationalInternal": { |
| 609 |
"host": "s3://npm-registry-packages", |
| 610 |
"tmp": "tmp/connect-history-api-fallback-1.4.0.tgz_1507871134046_0.01949539640918374" |
| 611 |
}, |
| 612 |
"directories": {} |
| 613 |
}, |
| 614 |
"1.5.0": { |
| 615 |
"name": "connect-history-api-fallback", |
| 616 |
"version": "1.5.0", |
| 617 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 618 |
"keyswords": [ |
| 619 |
"connect", |
| 620 |
"html5", |
| 621 |
"history api", |
| 622 |
"fallback", |
| 623 |
"spa" |
| 624 |
], |
| 625 |
"engines": { |
| 626 |
"node": ">=0.8" |
| 627 |
}, |
| 628 |
"main": "lib/index.js", |
| 629 |
"files": [ |
| 630 |
"lib" |
| 631 |
], |
| 632 |
"scripts": { |
| 633 |
"test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js" |
| 634 |
}, |
| 635 |
"repository": { |
| 636 |
"type": "git", |
| 637 |
"url": "git+ssh://[email protected]/bripkens/connect-history-api-fallback.git" |
| 638 |
}, |
| 639 |
"author": { |
| 640 |
"name": "Ben Ripkens", |
| 641 |
"email": "[email protected]", |
| 642 |
"url": "http://bripkens.de" |
| 643 |
}, |
| 644 |
"contributors": [ |
| 645 |
{ |
| 646 |
"name": "Craig Myles", |
| 647 |
"email": "[email protected]", |
| 648 |
"url": "http://www.craigmyles.com" |
| 649 |
} |
| 650 |
], |
| 651 |
"license": "MIT", |
| 652 |
"devDependencies": { |
| 653 |
"eslint": "^0.18.0", |
| 654 |
"nodeunit": "^0.9.1", |
| 655 |
"sinon": "^1.14.1" |
| 656 |
}, |
| 657 |
"gitHead": "9748349e62006ef101c7800d6be8ec37f74fc70c", |
| 658 |
"bugs": { |
| 659 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 660 |
}, |
| 661 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback#readme", |
| 662 |
"_id": "[email protected]", |
| 663 |
"_shasum": "b06873934bc5e344fef611a196a6faae0aee015a", |
| 664 |
"_from": ".", |
| 665 |
"_npmVersion": "3.10.10", |
| 666 |
"_nodeVersion": "6.11.5", |
| 667 |
"_npmUser": { |
| 668 |
"name": "bripkens", |
| 669 |
"email": "[email protected]" |
| 670 |
}, |
| 671 |
"maintainers": [ |
| 672 |
{ |
| 673 |
"name": "bripkens", |
| 674 |
"email": "[email protected]" |
| 675 |
} |
| 676 |
], |
| 677 |
"dist": { |
| 678 |
"shasum": "b06873934bc5e344fef611a196a6faae0aee015a", |
| 679 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.5.0.tgz" |
| 680 |
}, |
| 681 |
"_npmOperationalInternal": { |
| 682 |
"host": "s3://npm-registry-packages", |
| 683 |
"tmp": "tmp/connect-history-api-fallback-1.5.0.tgz_1510246125020_0.02864476339891553" |
| 684 |
}, |
| 685 |
"directories": {} |
| 686 |
}, |
| 687 |
"1.6.0": { |
| 688 |
"name": "connect-history-api-fallback", |
| 689 |
"version": "1.6.0", |
| 690 |
"description": "Provides a fallback for non-existing directories so that the HTML 5 history API can be used.", |
| 691 |
"keyswords": [ |
| 692 |
"connect", |
| 693 |
"html5", |
| 694 |
"history api", |
| 695 |
"fallback", |
| 696 |
"spa" |
| 697 |
], |
| 698 |
"engines": { |
| 699 |
"node": ">=0.8" |
| 700 |
}, |
| 701 |
"main": "lib/index.js", |
| 702 |
"scripts": { |
| 703 |
"test": "eslint lib/index.js test/index_test.js && nodeunit test/index_test.js" |
| 704 |
}, |
| 705 |
"repository": { |
| 706 |
"type": "git", |
| 707 |
"url": "git+ssh://[email protected]/bripkens/connect-history-api-fallback.git" |
| 708 |
}, |
| 709 |
"author": { |
| 710 |
"name": "Ben Ripkens", |
| 711 |
"email": "[email protected]", |
| 712 |
"url": "http://bripkens.de" |
| 713 |
}, |
| 714 |
"contributors": [ |
| 715 |
{ |
| 716 |
"name": "Craig Myles", |
| 717 |
"email": "[email protected]", |
| 718 |
"url": "http://www.craigmyles.com" |
| 719 |
} |
| 720 |
], |
| 721 |
"license": "MIT", |
| 722 |
"devDependencies": { |
| 723 |
"eslint": "^0.18.0", |
| 724 |
"nodeunit": "^0.11.3", |
| 725 |
"sinon": "^1.14.1" |
| 726 |
}, |
| 727 |
"gitHead": "5d3a83e22f7d8994106b50ff19242b7739938525", |
| 728 |
"bugs": { |
| 729 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 730 |
}, |
| 731 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback#readme", |
| 732 |
"_id": "[email protected]", |
| 733 |
"_npmVersion": "6.2.0", |
| 734 |
"_nodeVersion": "10.9.0", |
| 735 |
"_npmUser": { |
| 736 |
"name": "bripkens", |
| 737 |
"email": "[email protected]" |
| 738 |
}, |
| 739 |
"dist": { |
| 740 |
"integrity": "sha512-e54B99q/OUoH64zYYRf3HBP5z24G38h5D3qXu23JGRoigpX5Ss4r9ZnDk3g0Z8uQC2x2lPaJ+UlWBc1ZWBWdLg==", |
| 741 |
"shasum": "8b32089359308d111115d81cad3fceab888f97bc", |
| 742 |
"tarball": "https://registry.npmjs.org/connect-history-api-fallback/-/connect-history-api-fallback-1.6.0.tgz", |
| 743 |
"fileCount": 5, |
| 744 |
"unpackedSize": 11523, |
| 745 |
"npm-signature": "-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcNGA8CRA9TVsSAnZWagAAz7EQAJJKxgDIse2UDKLjTFVq\niMD+V5XHO0KDlr+VmT7ayhr05u9ID1cgfWaWBr07JD3IWGmtUNdCjYIu2p+Y\nFilsPW94ta/mEUgVUUHx2RDLFlNz/sDQBiCKcgcSqGosqZaYeEXSVm9LoUD0\nPc2PHb/AJa4LS8h3B4UyNcBa2sk+X3FQ9AlDs8c6o729KI386SpNYVyVhs8h\nZzIcyPI9j2jY/4KpWWgkSKQ7naWebpoGhm5a9r6USiB6PwPD0hEWvgSzAmra\nd42HowhHElHnnnjq9cyrmOo4knCXdeoxXnxNqy8JVYVrAAb7TDyIv4/E4hJg\nZOFiKmxp4SAViZLmZhFVBYE1TtvdoVhKCHLTjIG8mc0Gq3xL1bATmNqdZyWv\nC5z10F7+nmduh89tC/n7cI1NoY6vy7u/3jv/crcPgBlev1wACBkfmWigx1+6\n8mFBudDPS/2tRk9LCDgcyi2RMbiuaUz1RUVSC1t8Gxwjo6PHH5ViZYRHtXWl\nqNavg7Bmsc5FhFQ/s700h27nAAtuhtxni73Nk1GfJsOW3g9rro/zXgFpujv+\nO9OhSJSyZKu4oOfP16OD1KbUiKjvmVm1I2NG2GC0oI+8juFh/8oRCF6hkwCD\nQwLGCMnJ9QpPYmfjUb8ZF5nDiaI4cdiNL44ld32MVXrmiLOyJQm6K+joyTEO\nhKnS\r\n=9k/a\r\n-----END PGP SIGNATURE-----\r\n" |
| 746 |
}, |
| 747 |
"maintainers": [ |
| 748 |
{ |
| 749 |
"name": "bripkens", |
| 750 |
"email": "[email protected]" |
| 751 |
} |
| 752 |
], |
| 753 |
"directories": {}, |
| 754 |
"_npmOperationalInternal": { |
| 755 |
"host": "s3://npm-registry-packages", |
| 756 |
"tmp": "tmp/connect-history-api-fallback_1.6.0_1546936380183_0.5015516416248609" |
| 757 |
}, |
| 758 |
"_hasShrinkwrap": false |
| 759 |
} |
| 760 |
}, |
| 761 |
"readme": "<h1 align=\"center\">connect-history-api-fallback</h1>\n<p align=\"center\">Middleware to proxy requests through a specified index page, useful for Single Page Applications that utilise the HTML5 History API.</p>\n\n[](https://travis-ci.org/bripkens/connect-history-api-fallback)\n[](https://david-dm.org/bripkens/connect-history-api-fallback/master)\n\n[](https://nodei.co/npm/connect-history-api-fallback/)\n\n\n<h2>Table of Contents</h2>\n\n<!-- TOC depthFrom:2 depthTo:6 withLinks:1 updateOnSave:1 orderedList:0 -->\n\n- [Introduction](#introduction)\n- [Usage](#usage)\n- [Options](#options)\n\t- [index](#index)\n\t- [rewrites](#rewrites)\n\t- [verbose](#verbose)\n\t- [htmlAcceptHeaders](#htmlacceptheaders)\n\t- [disableDotRule](#disabledotrule)\n\n<!-- /TOC -->\n\n## Introduction\n\nSingle Page Applications (SPA) typically only utilise one index file that is\naccessible by web browsers: usually `index.html`. Navigation in the application\nis then commonly handled using JavaScript with the help of the\n[HTML5 History API](http://www.w3.org/html/wg/drafts/html/master/single-page.html#the-history-interface).\nThis results in issues when the user hits the refresh button or is directly\naccessing a page other than the landing page, e.g. `/help` or `/help/online`\nas the web server bypasses the index file to locate the file at this location.\nAs your application is a SPA, the web server will fail trying to retrieve the file and return a *404 - Not Found*\nmessage to the user.\n\nThis tiny middleware addresses some of the issues. Specifically, it will change\nthe requested location to the index you specify (default being `/index.html`)\nwhenever there is a request which fulfills the following criteria:\n\n 1. The request is a GET request\n 2. which accepts `text/html`,\n 3. is not a direct file request, i.e. the requested path does not contain a\n `.` (DOT) character and\n 4. does not match a pattern provided in options.rewrites (see options below)\n\n## Usage\n\nThe middleware is available through NPM and can easily be added.\n\n```\nnpm install --save connect-history-api-fallback\n```\n\nImport the library\n\n```javascript\nvar history = require('connect-history-api-fallback');\n```\n\nNow you only need to add the middleware to your application like so\n\n```javascript\nvar connect = require('connect');\n\nvar app = connect()\n .use(history())\n .listen(3000);\n```\n\nOf course you can also use this piece of middleware with express:\n\n```javascript\nvar express = require('express');\n\nvar app = express();\napp.use(history());\n```\n\n## Options\nYou can optionally pass options to the library when obtaining the middleware\n\n```javascript\nvar middleware = history({});\n```\n\n### index\nOverride the index (default `/index.html`)\n\n```javascript\nhistory({\n index: '/default.html'\n});\n```\n\n### rewrites\nOverride the index when the request url matches a regex pattern. You can either rewrite to a static string or use a function to transform the incoming request.\n\nThe following will rewrite a request that matches the `/\\/soccer/` pattern to `/soccer.html`.\n```javascript\nhistory({\n rewrites: [\n { from: /\\/soccer/, to: '/soccer.html'}\n ]\n});\n```\n\nAlternatively functions can be used to have more control over the rewrite process. For instance, the following listing shows how requests to `/libs/jquery/jquery.1.12.0.min.js` and the like can be routed to `./bower_components/libs/jquery/jquery.1.12.0.min.js`. You can also make use of this if you have an API version in the URL path.\n```javascript\nhistory({\n rewrites: [\n {\n from: /^\\/libs\\/.*$/,\n to: function(context) {\n return '/bower_components' + context.parsedUrl.pathname;\n }\n }\n ]\n});\n```\n\nThe function will always be called with a context object that has the following properties:\n\n - **parsedUrl**: Information about the URL as provided by the [URL module's](https://nodejs.org/api/url.html#url_url_parse_urlstr_parsequerystring_slashesdenotehost) `url.parse`.\n - **match**: An Array of matched results as provided by `String.match(...)`.\n - **request**: The HTTP request object.\n\n\n### verbose\nThis middleware does not log any information by default. If you wish to activate logging, then you can do so via the `verbose` option or by specifying a logger function.\n\n```javascript\nhistory({\n verbose: true\n});\n```\n\nAlternatively use your own logger\n\n```javascript\nhistory({\n logger: console.log.bind(console)\n});\n```\n\n### htmlAcceptHeaders\nOverride the default `Accepts:` headers that are queried when matching HTML content requests (Default: `['text/html', '*/*']`).\n\n```javascript\nhistory({\n htmlAcceptHeaders: ['text/html', 'application/xhtml+xml']\n})\n```\n\n### disableDotRule\nDisables the dot rule mentioned above:\n\n> […] is not a direct file request, i.e. the requested path does not contain a `.` (DOT) character […]\n\n```javascript\nhistory({\n disableDotRule: true\n})\n```\n", |
| 762 |
"maintainers": [ |
| 763 |
{ |
| 764 |
"name": "bripkens", |
| 765 |
"email": "[email protected]" |
| 766 |
} |
| 767 |
], |
| 768 |
"time": { |
| 769 |
"modified": "2019-01-08T08:33:02.843Z", |
| 770 |
"created": "2013-05-18T13:47:54.775Z", |
| 771 |
"0.0.1": "2013-05-18T13:47:58.244Z", |
| 772 |
"0.0.2": "2013-07-15T20:04:56.899Z", |
| 773 |
"0.0.3": "2013-07-16T20:02:55.758Z", |
| 774 |
"0.0.4": "2013-07-16T20:13:33.457Z", |
| 775 |
"0.0.5": "2014-10-01T16:54:01.659Z", |
| 776 |
"1.0.0": "2015-04-11T06:06:30.740Z", |
| 777 |
"1.1.0": "2015-04-16T06:38:05.983Z", |
| 778 |
"1.2.0": "2016-03-21T19:12:23.525Z", |
| 779 |
"1.3.0": "2016-08-07T06:53:57.855Z", |
| 780 |
"1.4.0": "2017-10-13T05:05:34.920Z", |
| 781 |
"1.5.0": "2017-11-09T16:48:45.095Z", |
| 782 |
"1.6.0": "2019-01-08T08:33:00.369Z" |
| 783 |
}, |
| 784 |
"author": { |
| 785 |
"name": "Ben Ripkens", |
| 786 |
"email": "[email protected]", |
| 787 |
"url": "http://bripkens.de" |
| 788 |
}, |
| 789 |
"repository": { |
| 790 |
"type": "git", |
| 791 |
"url": "git+ssh://[email protected]/bripkens/connect-history-api-fallback.git" |
| 792 |
}, |
| 793 |
"homepage": "https://github.com/bripkens/connect-history-api-fallback#readme", |
| 794 |
"bugs": { |
| 795 |
"url": "https://github.com/bripkens/connect-history-api-fallback/issues" |
| 796 |
}, |
| 797 |
"license": "MIT", |
| 798 |
"readmeFilename": "README.md", |
| 799 |
"contributors": [ |
| 800 |
{ |
| 801 |
"name": "Craig Myles", |
| 802 |
"email": "[email protected]", |
| 803 |
"url": "http://www.craigmyles.com" |
| 804 |
} |
| 805 |
], |
| 806 |
"users": { |
| 807 |
"jabbrwcky": true, |
| 808 |
"sabrina.luo": true, |
| 809 |
"travm": true, |
| 810 |
"staydan": true, |
| 811 |
"panlw": true, |
| 812 |
"lore-w": true, |
| 813 |
"largepuma": true, |
| 814 |
"ldq-first": true, |
| 815 |
"yeming": true, |
| 816 |
"serge-nikitin": true, |
| 817 |
"tardis103": true, |
| 818 |
"fakefarm": true, |
| 819 |
"muzi131313": true, |
| 820 |
"hewenxuan": true, |
| 821 |
"ptspzy": true, |
| 822 |
"edwardxyt": true, |
| 823 |
"losymear": true, |
| 824 |
"he313572052": true, |
| 825 |
"xbilek18": true, |
| 826 |
"yangteng": true |
| 827 |
} |
| 828 |
} |