{"_id":"jasmine-ajax","_rev":"30-6a5f1f339f8b9cea307b79bef0bd9d20","name":"jasmine-ajax","dist-tags":{"latest":"5.0.0"},"versions":{"2.0.1":{"name":"jasmine-ajax","version":"2.0.1","license":"MIT","_id":"jasmine-ajax@2.0.1","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"homepage":"https://github.com/pivotal/jasmine-ajax","bugs":{"url":"https://github.com/pivotal/jasmine-ajax/issues"},"url":"https://github.com/pivotal/jasmine-ajax","dist":{"shasum":"3f54ba276617ddb53ca9be49fc8afebdea32decf","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-2.0.1.tgz","integrity":"sha512-0oCfcudLG/wgyGQWvdPylqxhw/BFt+4BBOdLohCJNykVrjQj8Ujzyf8xBenIoWScVnSIqniYhidVMHPNuBfGVQ==","signatures":[{"sig":"MEUCIFVpsbeY5slwsvF64i7vrrX0Ng1AuZeCHU2FTnzkXuIJAiEA3XAjbuRZHiTX/P5tUCOaj1Ezi+MpYCimQSzRMgwE74g=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"3f54ba276617ddb53ca9be49fc8afebdea32decf","gitHead":"b6a0020b84b23e8a9c42d201756a7ae14163bdb9","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"https://github.com/pivotal/jasmine-ajax","type":"git"},"_npmVersion":"1.4.16","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"dependencies":{},"devDependencies":{"grunt":"0.4.0","grunt-shell":"~0.2.1","grunt-contrib-jshint":"~0.1.1"}},"2.0.2":{"name":"jasmine-ajax","version":"2.0.2","license":"MIT","_id":"jasmine-ajax@2.0.2","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"homepage":"https://github.com/pivotal/jasmine-ajax","bugs":{"url":"https://github.com/pivotal/jasmine-ajax/issues"},"url":"https://github.com/pivotal/jasmine-ajax","dist":{"shasum":"fdb37e399478b5278cdbc7018218eb4491e0e48d","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-2.0.2.tgz","integrity":"sha512-KZnDDlsmW5Pi3wRBKB+GicwQWcWqFC0lbidkFJS35upHuWRZhsAtqUzpNJ+wfF2dPJZizQMpItW/xCpuIIM6bQ==","signatures":[{"sig":"MEQCIEMpbOTgpHwCstGG2v0/TMej2mxHaRNsJqdiwyApekfTAiARwsjbfxft7MTrLeL1TdN5lYukfjAsEHt262lmiAij+A==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"fdb37e399478b5278cdbc7018218eb4491e0e48d","gitHead":"e540fcfaef5530592c5e191297fd77c8d55b90fb","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"https://github.com/pivotal/jasmine-ajax","type":"git"},"_npmVersion":"1.4.16","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"dependencies":{},"devDependencies":{"grunt":"0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.1.1"}},"2.99.0":{"name":"jasmine-ajax","version":"2.99.0","license":"MIT","_id":"jasmine-ajax@2.99.0","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"homepage":"https://github.com/pivotal/jasmine-ajax","bugs":{"url":"https://github.com/pivotal/jasmine-ajax/issues"},"url":"https://github.com/pivotal/jasmine-ajax","dist":{"shasum":"a2696df74aae0b475250b579425deded17ad61ad","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-2.99.0.tgz","integrity":"sha512-jDygq8i5aExD3iVX2SUQI1e4yzgU6y3Mbf3ACSV0fFsMWQkwlSvQFcnpI7uSP+TS3VYrSmM/S69G4Svea2L6YQ==","signatures":[{"sig":"MEYCIQDmhfRd40hGTTqFnF+KaPnKAquZ86T1cIs/gRD32L1jZwIhAORSV+N+e8yqjKktsN2lv7YvjY5+M1lzFsn5IvWdifEp","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"a2696df74aae0b475250b579425deded17ad61ad","gitHead":"b66d80aee83dccee34e15f9073854d1939be548b","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"https://github.com/pivotal/jasmine-ajax","type":"git"},"_npmVersion":"1.4.16","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"dependencies":{},"devDependencies":{"grunt":"0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.1.1"}},"3.0.0":{"name":"jasmine-ajax","version":"3.0.0","license":"MIT","_id":"jasmine-ajax@3.0.0","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"79795c5d89d5006ed51652ddef5b0d329749c006","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.0.0.tgz","integrity":"sha512-yFd7TJw/7NmcHuXK87e4ZLllXaQ03tW5bFvZCvtjoa0G4iO8fSmGiQRVQLbJR7fXd1yD8WCiW+vm/XP2Kmt0Kg==","signatures":[{"sig":"MEQCIF/L8skoyo02c/TAmpN4SyV8U0M0rQ8sfotiRr9Q+oiVAiAkmvo91ZoWwE7EqM9WH8WaqHXxljtYp8w6QDC0TkIjPQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"79795c5d89d5006ed51652ddef5b0d329749c006","gitHead":"c3639ab040f0f5b1b2dc984a6b9f72c1036e7680","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"https://github.com/jasmine/jasmine-ajax","type":"git"},"_npmVersion":"1.4.16","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"dependencies":{},"devDependencies":{"grunt":"0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.1.1"}},"3.1.0":{"name":"jasmine-ajax","version":"3.1.0","license":"MIT","_id":"jasmine-ajax@3.1.0","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"c786a569657a5bf48c2b17dc3befc02886b7f1c1","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.1.0.tgz","integrity":"sha512-oleSAPOjcZZrk33GgSuB5bOd6CbYQFta1HpcNRd61H/6BmdcIIrw3AKIc0P7uAWHWwVldKMDkSqPpRy6sIdOXw==","signatures":[{"sig":"MEUCIDVkVpyV0idYu7J0n8LogeZeAecjoA2HJKwEB8vDYkr3AiEAky+gXYcmhw78Dn7D7r2yb3wh8xpvLymNVh29/h7am5M=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"c786a569657a5bf48c2b17dc3befc02886b7f1c1","gitHead":"de8f5bc7739913ba31feee5462b2d59342aa4efe","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"https://github.com/jasmine/jasmine-ajax","type":"git"},"_npmVersion":"1.4.16","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"dependencies":{},"devDependencies":{"grunt":"0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.1.1"}},"3.1.1":{"name":"jasmine-ajax","version":"3.1.1","license":"MIT","_id":"jasmine-ajax@3.1.1","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"8207704dbc38ecec992d4c78574eb6cecd5eaca6","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.1.1.tgz","integrity":"sha512-bexfLu2enQTTRPnnROOl7S50Pj8CFXJrQUcFdiTpsPRa1MeiWMhlTuGIyZkQIjvtLAwG4NJ+il5k9+mAgmTnOA==","signatures":[{"sig":"MEUCIQCqg+5x7UUy9CTs8WOLP5pV5SaUW9iT/hpWxR6eWOO35gIgNElRZn0ZMGqioPglD2AUPv3tii2hUakKC0Tgn3YBjzc=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"8207704dbc38ecec992d4c78574eb6cecd5eaca6","gitHead":"86be5d3580d6f6e23ece26a310a5b12300ad2fbc","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"https://github.com/jasmine/jasmine-ajax","type":"git"},"_npmVersion":"1.4.16","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"dependencies":{},"devDependencies":{"grunt":"0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.1.1"}},"3.2.0":{"name":"jasmine-ajax","version":"3.2.0","license":"MIT","_id":"jasmine-ajax@3.2.0","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax#readme","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"0a1600b7d3c503a3904f80679b867985a84e4756","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.2.0.tgz","integrity":"sha512-uHjN54GRd9BJgrIqWEZ8f1msAsxrxEBE01HDm4XJMbt123YsoPcTDMP/igjF8XSo9dYzaPbHFdIfh+CZZRrNSQ==","signatures":[{"sig":"MEUCIQDr9TDH3JEvpLvol27zj8WPuFZmBdzPg1ea26biYW7x1gIgQgKlph+M56TiawnJndFZ3pNttHUUg172/oz/QOWJUl4=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"0a1600b7d3c503a3904f80679b867985a84e4756","gitHead":"8b68db5163fd21ee70b1256e978a68cbe7f5d7d0","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"git+https://github.com/jasmine/jasmine-ajax.git","type":"git"},"_npmVersion":"2.12.1","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"_nodeVersion":"0.12.7","dependencies":{},"devDependencies":{"grunt":"0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-contrib-concat":"~0.5.0","grunt-contrib-jshint":"~0.1.1"}},"3.3.0":{"name":"jasmine-ajax","version":"3.3.0","license":"MIT","_id":"jasmine-ajax@3.3.0","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax#readme","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"530488e79484061345dad00f92abcad414cf29af","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.3.0.tgz","integrity":"sha512-5STSchr/MqzcVrUjxNY6emd76N6g5Jy9Rum4jZhmpmwVPkFjSHoSnO4CRa+MCAUY474g04NvMdpzQ/wQ73R16g==","signatures":[{"sig":"MEYCIQDlXYi1uV0NhmXvJRq/og+NZizFQrt9QF8u/FL+6pe4kAIhALkI1+GIgD777Zq0MoW1GD2B1gVrfINAdJtC4NCAmyov","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"530488e79484061345dad00f92abcad414cf29af","gitHead":"50eb806e9afb0bf7f62688dbb5dd9fe16fab6ad4","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"git+https://github.com/jasmine/jasmine-ajax.git","type":"git"},"_npmVersion":"2.12.1","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"_nodeVersion":"0.12.7","dependencies":{},"devDependencies":{"grunt":"~0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-includes":"^0.5.1","grunt-template":"^0.2.3","grunt-contrib-jshint":"~0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-ajax-3.3.0.tgz_1481313833612_0.8006161272060126","host":"packages-18-east.internal.npmjs.com"}},"3.3.1":{"name":"jasmine-ajax","version":"3.3.1","license":"MIT","_id":"jasmine-ajax@3.3.1","maintainers":[{"name":"slackersoft","email":"gregg@slackersoft.net"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax#readme","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"f8cad9fd49dfd44f3cf798d36f4e857d125c75c5","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.3.1.tgz","integrity":"sha512-VIlqmJ6ROfWTeiWicU2VV96BwhsNQZ7XstEzCGMekb1QJOf8bnGo3PRoSrHOzZbntA5ZX83RAdf5gB+i8vwxxQ==","signatures":[{"sig":"MEUCIQDwzWNjxpqUOFWK6RNz44ewbZysQrRiI76GNGMrQtZ5eQIgUAJR/IJpoJlZ25iA3Hnh7fygOvvmS2OZx0QL9eScT04=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}]},"main":"lib/mock-ajax.js","_from":".","_shasum":"f8cad9fd49dfd44f3cf798d36f4e857d125c75c5","gitHead":"d825854a12d1739f0b5936c7827f784de93e8583","private":false,"scripts":{},"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"git+https://github.com/jasmine/jasmine-ajax.git","type":"git"},"_npmVersion":"2.12.1","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"_nodeVersion":"0.12.7","dependencies":{},"devDependencies":{"grunt":"~0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-includes":"^0.5.1","grunt-template":"^0.2.3","grunt-contrib-jshint":"~0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-ajax-3.3.1.tgz_1481333931316_0.27699408563785255","host":"packages-18-east.internal.npmjs.com"}},"3.4.0":{"name":"jasmine-ajax","version":"3.4.0","license":"MIT","_id":"jasmine-ajax@3.4.0","maintainers":[{"name":"dwfrank","email":"dwfrank@pivotallabs.com"},{"name":"slackersoft","email":"gregg@slackersoft.net"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax#readme","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"8dce36c0e3f16b9b900adb1f2ef83e0cd87c6755","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-3.4.0.tgz","fileCount":14,"integrity":"sha512-LIVNVCmx5ou+IG6wgX7j73YYzvE2e3aqFWMjOhvAHWTnLICOYSobIH+PG/gOwtP20X0u2SkD3NXT/j5X8rMGOA==","signatures":[{"sig":"MEYCIQD4Eie2VNLmGwEA/W8bkigab4+KfNpCM9UTY0NiPCqS/AIhAIDZvEg9WoWAewSOpAMe6FxazeUUrLMWDBWart5qdWlf","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":48195,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJa/NILCRA9TVsSAnZWagAAJmkP/2kqSlU3lrdnvunbgNUq\nxJoCHWiyt7D/pk44xF9c0PE5cYl1M33aq1YYIlDafwf7Bp/0RZKUjPNq29at\n3r/NJ2+bYxZ3tgUCccGN/gUjJz9GL20Y5VcyxXPTcpmQRm4OjF7NxCbtq9aR\nTRrUQ5hgfqedQgnB249mnzIX5nqQ5BiqLP+NPM2B9EMYlgcFb9itVyUcz91S\nf/h5hYDIgGSflPmp3Lx86uPqHj5cx6ggos/pxBNb5aMR0w0j1d18/Eb/pIk9\nA8BzISTwh65G5HWR+mAr01W7cGF1TkBvUgBMwjJWnaZoKWdDzUZEA8Gu2dkc\ncet+vjyoIutTz7/VH4t1mcZpFVKdBwy/cIs0Yu5FO9vz1V87mA6vgul2LF/z\nQsnJ7t4Yu+GkSjdAXkR+rm+T8qTgX92++1nce0CDjiENRutuEcgHi334rgl3\nNYCFWDERZkT7m01aY8Ldt/2e6JzKTMoY35qkjCPSWcGQmYPbPUlt/1ld4xhU\nZBwNn3J8XLepVNXQtoSkuQnFK0c8C1soHiCnyDGYvNdGPcpfjmpVyerkYpts\nW4/qRkLXuTBE/h20mWhEFv9vBEEtQknJQb0EWDfr5e2jFFhDzzCsZ4J0bRy2\nqJoQZAc3eT9bMv1xMnhm0V490zCs3D1aXgXiJpaAy4G+DlcNme4pH8Ik2ecU\nLWQE\r\n=Vz5i\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/mock-ajax.js","gitHead":"71d6a81c95a628988e3abe0e50366ec53a45e820","private":false,"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"git+https://github.com/jasmine/jasmine-ajax.git","type":"git"},"_npmVersion":"5.6.0","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"_nodeVersion":"9.7.1","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"grunt":"~0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-includes":"^0.5.1","grunt-template":"^0.2.3","grunt-contrib-jshint":"~0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-ajax_3.4.0_1526518281535_0.7589229781244087","host":"s3://npm-registry-packages"}},"4.0.0":{"name":"jasmine-ajax","version":"4.0.0","license":"MIT","_id":"jasmine-ajax@4.0.0","maintainers":[{"name":"dwfrank","email":"dwfrank@pivotallabs.com"},{"name":"slackersoft","email":"gregg@slackersoft.net"}],"contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"homepage":"https://github.com/jasmine/jasmine-ajax#readme","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"url":"https://github.com/jasmine/jasmine-ajax","dist":{"shasum":"7d8ba7e47e3f7e780e155fe9aa563faafa7e1a26","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-4.0.0.tgz","fileCount":15,"integrity":"sha512-htTxNw38BSHxxmd8RRMejocdPqLalGHU6n3HWFbzp/S8AuTQd1MYjkSH3dYDsbZ7EV1Xqx/b94m3tKaVSVBV2A==","signatures":[{"sig":"MEYCIQDqwJuu+Im11bUrOwrwCXFxVbAYFLchKSNsUEr8vOgflgIhAJ8YPxV+Lh/ZfEB6M0lg6yTY8R6K2yV1Jys9rw9bzxqD","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":50882,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcnBk5CRA9TVsSAnZWagAAOKYP/2wXJHHv7lTNRrVi47Zm\ny4OhwtkozOR3EEXTQ31x1C+Ap8pItF2PZoGO3o8r1XhWgUamTIdXuE6UVSPU\nOumpFhbe9WVcj0mHnq5xqm9VTFArwV5qHaZzONOzGgs3j2gOZefI94vrSSPc\nafspgmSDPGI5GagUnuxOoNHok+g6zuHPN+BA6+9eLupKGOJzXXppWEPs21/O\nfVLcsvlsTkR1MiJgjyxTLLb52HstsozkB7xDRfLSUvFdsQa+dW9/p8VMaS8p\nsihNnAfL/r7TezWVo4wX9ewVcpEOwMZrT2h3sCqBJv/DSFfwC3AfurnBrLsz\nmZiRnNvdGp8o7PbgOF5bGxOX1c7+ZUjeE19c4fUnV+/oLi26RtRe2Xk4nFsu\nOtd1SLgtyuy1+5g2bC1JtiL+cGKhvxGBwNOiR6atID8a/psy8PfRidKxSIxK\njdGGL4d12RBdYOmsrhWA2m23hcKdvdzZlNnykRti3wrPLKdD2MB8345FPBUG\naqHUxat/AAQWVD9DbQ24rgYWNXR+K9N8d1Q2wX061Fxlgzbt8uVHOgwe72WD\n6W5EEtRa3kbXiOKOiFc6kXWydjbmiswrJY/V633P+mT6wObB0cZc6SykGP54\nQHNJlV7Rf/9HwLTHcXOydMqkx3y+4ngfOljNApM8NhLa0uaSluIooCt7gHak\n/CbJ\r\n=Ok9m\r\n-----END PGP SIGNATURE-----\r\n"},"main":"lib/mock-ajax.js","gitHead":"efc1961b131aec836a9bcf14285f8c4f9f2eefb3","private":false,"_npmUser":{"name":"slackersoft","email":"gregg@slackersoft.net"},"repository":{"url":"git+https://github.com/jasmine/jasmine-ajax.git","type":"git"},"_npmVersion":"6.7.0","description":"A library for faking Ajax responses in your Jasmine suite","directories":{},"_nodeVersion":"10.13.0","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"grunt":"~0.4.0","grunt-cli":"~0.1.13","grunt-shell":"~0.2.1","grunt-includes":"^0.5.1","grunt-template":"^0.2.3","grunt-contrib-jshint":"~0.1.1"},"_npmOperationalInternal":{"tmp":"tmp/jasmine-ajax_4.0.0_1553733944025_0.028224396169804322","host":"s3://npm-registry-packages"}},"5.0.0":{"name":"jasmine-ajax","description":"A library for faking Ajax responses in your Jasmine suite","version":"5.0.0","main":"lib/mock-ajax.js","license":"MIT","url":"https://github.com/jasmine/jasmine-ajax","contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"private":false,"repository":{"type":"git","url":"git+https://github.com/jasmine/jasmine-ajax.git"},"scripts":{"build":"node scripts/buildDistribution.js","lint":"eslint \"src/**/*.js\" \"spec/**/*.js\"","test":"jasmine-browser-runner"},"devDependencies":{"@eslint/js":"^10.0.1","ejs":"^4.0.1","eslint":"^10.0.2","eslint-plugin-compat":"^7.0.0","glob":"^13.0.6","globals":"^17.3.0","jasmine-browser-runner":"^4.0.0","jasmine-core":"7.0.0-pre.0"},"overrides":{"jasmine-browser-runner":{"jasmine-core":"7.0.0-pre.0"}},"browserslist":["Safari >= 26","Firefox >= 140","last 2 Chrome versions","last 2 Edge versions"],"_id":"jasmine-ajax@5.0.0","gitHead":"6de4f577281edaee7eebaf5c6b6fd7c6410f55a2","bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"homepage":"https://github.com/jasmine/jasmine-ajax#readme","_nodeVersion":"20.19.0","_npmVersion":"10.8.2","dist":{"integrity":"sha512-Jj6p3fOEeyKW7NMXz8luvJjneqOUU6WClQAa9SYnulfdUjJSTujGzAKozDOdFq2Oib/EBQd7sBmF0g6WtWMYpA==","shasum":"c7ecaeca3d8e076493d314ef088af8bbaf289d9e","tarball":"https://registry.npmjs.org/jasmine-ajax/-/jasmine-ajax-5.0.0.tgz","fileCount":4,"unpackedSize":39813,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCIFOyz9SNIoFmVsuxXezwEplWPYO0TPOdNWXCDVUb9qW2AiBmc5F2yyroBwWqWZ8VdrNd19pU1/J/jGWg3r1vMHHBUw=="}]},"_npmUser":{"name":"sgravrock","email":"sdg@panix.com"},"directories":{},"maintainers":[{"name":"slackersoft","email":"gwen@slackersoft.net"},{"name":"sgravrock","email":"sdg@panix.com"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/jasmine-ajax_5.0.0_1781367906445_0.8297887599226126"},"_hasShrinkwrap":false}},"time":{"created":"2014-06-10T11:24:48.463Z","modified":"2026-06-13T16:25:06.720Z","2.0.0":"2014-06-10T11:24:48.463Z","2.0.1":"2014-07-07T16:18:08.255Z","2.0.2":"2014-11-18T21:28:09.017Z","2.99.0":"2014-11-19T21:26:56.482Z","3.0.0":"2015-01-26T18:25:11.152Z","3.1.0":"2015-03-12T20:13:08.384Z","3.1.1":"2015-05-04T23:41:57.527Z","3.2.0":"2015-10-16T16:22:10.389Z","3.3.0":"2016-12-09T20:03:55.228Z","3.3.1":"2016-12-10T01:38:53.219Z","3.4.0":"2018-05-17T00:51:21.636Z","4.0.0":"2019-03-28T00:45:44.303Z","5.0.0":"2026-06-13T16:25:06.589Z"},"bugs":{"url":"https://github.com/jasmine/jasmine-ajax/issues"},"license":"MIT","homepage":"https://github.com/jasmine/jasmine-ajax#readme","repository":{"type":"git","url":"git+https://github.com/jasmine/jasmine-ajax.git"},"description":"A library for faking Ajax responses in your Jasmine suite","contributors":[{"name":"Gregg Van Hove","email":"gregg@slackersoft.net"},{"name":"JR Boyens","email":"jboyens@fooninja.org"}],"maintainers":[{"name":"slackersoft","email":"gwen@slackersoft.net"},{"name":"sgravrock","email":"sdg@panix.com"},{"name":"dwfrank","email":"dwfrank@pivotallabs.com"}],"readme":"jasmine-ajax - Faking Ajax responses in your Jasmine suite.\n============\njasmine-ajax is a library that lets you define a set of fake responses for Ajax\nrequests made by your application, specify per spec which response should be\nused, and keep track of the Ajax requests you make so you can make assertions\nabout the results.\n\nDevelopment Status\n-------------------\njasmine-ajax is finished software. There will be no further releases unless new\nbugs are found or fixes for existing bugs are contributed.\n\nLibraries Supported\n-------------------\njasmine-ajax is currently compatible with any library that uses XMLHttpRequest.\n\nInstalling\n----------\n#### NPM ####\nInstall `jasmine-ajax` from NPM via  `npm install --save-dev jasmine-ajax`; you can then `require('jasmine-ajax')` inside your test-suite and access it via the `jasmine` global.\n\n#### Browser ####\nDownload [mock-ajax.js](https://raw.github.com/jasmine/jasmine-ajax/main/lib/mock-ajax.js) and add it to your project. If you are using \njasmine-browser-runner, be sure the location you put mock-ajax.js is included \nin your `helpers` path in jasmine-browser.json. If you are using Jasmine \nstandalone, make sure you add it to your spec runner.\n\nSetup\n-----\nUsing the library in your Jasmine specs consists of five parts:\n\n1. Defining test responses\n2. Installing the mock\n3. Triggering the ajax request code\n3. Defining the response for each request\n4. Inspecting Ajax requests and setting expectations on them\n\nExample\n-------\nLet's use a simple Foursquare venue search app to show each of these steps.\n\n### 1. Defining Test Responses ###\nAfter signing up for an API key and playing around with curl a bit you should have an idea of what API resources you are interested in and what sample responses look like. Once you do, you can define simple JavaScripts objects that will be used to build XMLHttpRequest objects later.\n\nFor example, if you have a response that looks like this:\n```json\n{\n    \"meta\":{\n        \"code\":200,\n        \"errorType\":\"deprecated\",\n        \"errorDetail\":\"This endpoint will stop returning groups in the future. Please use a current version, see http://bit.ly/lZx3NU.\"\n    },\n    \"response\":{\n        \"groups\":[{\n                \"type\":\"nearby\",\n                \"name\":\"Nearby\",\n                \"items\":[{\n                        \"id\":\"4bb9fd9f3db7b7138dbd229a\",\n                        \"name\":\"Pivotal Labs\",\n                        \"contact\":{\n                            \"twitter\":\"pivotalboulder\"\n                        },\n                        \"location\":{\n                            \"address\":\"1701 Pearl St.\",\n                            \"crossStreet\":\"at 17th St.\",\n                            \"city\":\"Boulder\",\n                            \"state\":\"CO\",\n                            \"lat\":40.019461,\n                            \"lng\":-105.273296,\n                            \"distance\":0\n                        },\n                        \"categories\":[{\n                                \"id\":\"4bf58dd8d48988d124941735\",\n                                \"name\":\"Office\",\n                                \"pluralName\":\"Offices\",\n                                \"icon\":\"https://foursquare.com/img/categories/building/default.png\",\n                                \"parents\":[\"Homes, Work, Others\"\n                                ],\n                                \"primary\":true\n                            }\n                        ],\n                        \"verified\":false,\n                        \"stats\":{\n                            \"checkinsCount\":223,\n                            \"usersCount\":62\n                        },\n                        \"hereNow\":{\n                            \"count\":0\n                        }\n                    }\n                ]\n            }\n        ]\n    }\n}\n```\n\nThen you'd define a mock response that looks something like this:\n\n```javascript\nvar TestResponses = {\n  search: {\n    success: {\n      status: 200,\n      responseText: '{\"response\":{\"groups\":[{\"type\":\"nearby\",\"name\":\"Nearby\",\"items\":[{\"id\":\"4bb9fd9f3db7b7138dbd229a\",\"name\":\"Pivotal Labs\",\"contact\":{\"twitter\":\"pivotalboulder\"},\"location\":{\"address\":\"1701 Pearl St.\",\"crossStreet\":\"at 17th St.\",\"city\":\"Boulder\",\"state\":\"CO\",\"lat\":40.019461,\"lng\":-105.273296,\"distance\":0},\"categories\":[{\"id\":\"4bf58dd8d48988d124941735\",\"name\":\"Office\",\"pluralName\":\"Offices\",\"icon\":\"https://foursquare.com/img/categories/building/default.png\",\"parents\":[\"Homes, Work, Others\"],\"primary\":true}],\"verified\":false,\"stats\":{\"checkinsCount\":223,\"usersCount\":62},\"hereNow\":{\"count\":0}},{\"id\":\"4af2eccbf964a5203ae921e3\",\"name\":\"Laughing Goat Café\",\"contact\":{},\"location\":{\"address\":\"1709 Pearl St.\",\"crossStreet\":\"btw 16th & 17th\",\"city\":\"Boulder\",\"state\":\"CO\",\"postalCode\":\"80302\",\"country\":\"USA\",\"lat\":40.019321,\"lng\":-105.27311982,\"distance\":21},\"categories\":[{\"id\":\"4bf58dd8d48988d1e0931735\",\"name\":\"Coffee Shop\",\"pluralName\":\"Coffee Shops\",\"icon\":\"https://foursquare.com/img/categories/food/coffeeshop.png\",\"parents\":[\"Food\"],\"primary\":true},{\"id\":\"4bf58dd8d48988d1a7941735\",\"name\":\"College Library\",\"pluralName\":\"College Libraries\",\"icon\":\"https://foursquare.com/img/categories/education/default.png\",\"parents\":[\"Colleges & Universities\"]}],\"verified\":false,\"stats\":{\"checkinsCount\":1314,\"usersCount\":517},\"hereNow\":{\"count\":0}},{\"id\":\"4ca777a597c8a1cdf7bc7aa5\",\"name\":\"Ted\\'s Montana Grill\",\"contact\":{\"phone\":\"3034495546\",\"formattedPhone\":\"(303) 449-5546\",\"twitter\":\"TedMontanaGrill\"},\"location\":{\"address\":\"1701 Pearl St.\",\"crossStreet\":\"17th and Pearl\",\"city\":\"Boulder\",\"state\":\"CO\",\"postalCode\":\"80302\",\"country\":\"USA\",\"lat\":40.019376,\"lng\":-105.273311,\"distance\":9},\"categories\":[{\"id\":\"4bf58dd8d48988d1cc941735\",\"name\":\"Steakhouse\",\"pluralName\":\"Steakhouses\",\"icon\":\"https://foursquare.com/img/categories/food/steakhouse.png\",\"parents\":[\"Food\"],\"primary\":true}],\"verified\":true,\"stats\":{\"checkinsCount\":197,\"usersCount\":150},\"url\":\"http://www.tedsmontanagrill.com/\",\"hereNow\":{\"count\":0}},{\"id\":\"4d3cac5a8edf3704e894b2a5\",\"name\":\"Pizzeria Locale\",\"contact\":{},\"location\":{\"address\":\"1730 Pearl St\",\"city\":\"Boulder\",\"state\":\"CO\",\"postalCode\":\"80302\",\"country\":\"USA\",\"lat\":40.0193746,\"lng\":-105.2726744,\"distance\":53},\"categories\":[{\"id\":\"4bf58dd8d48988d1ca941735\",\"name\":\"Pizza Place\",\"pluralName\":\"Pizza Places\",\"icon\":\"https://foursquare.com/img/categories/food/pizza.png\",\"parents\":[\"Food\"],\"primary\":true}],\"verified\":false,\"stats\":{\"checkinsCount\":511,\"usersCount\":338},\"hereNow\":{\"count\":2}},{\"id\":\"4d012cd17c56370462a6b4f0\",\"name\":\"The Pinyon\",\"contact\":{},\"location\":{\"address\":\"1710 Pearl St.\",\"city\":\"Boulder\",\"state\":\"CO\",\"country\":\"USA\",\"lat\":40.019219,\"lng\":-105.2730563,\"distance\":33},\"categories\":[{\"id\":\"4bf58dd8d48988d14e941735\",\"name\":\"American Restaurant\",\"pluralName\":\"American Restaurants\",\"icon\":\"https://foursquare.com/img/categories/food/default.png\",\"parents\":[\"Food\"],\"primary\":true}],\"verified\":true,\"stats\":{\"checkinsCount\":163,\"usersCount\":98},\"hereNow\":{\"count\":1}}]}]}}'\n    }\n  }\n};\n```\n\nA good place to define this is in `spec/javascripts/helpers/test_responses`. You can also define failure responses, for whatever status codes the API you are working with supports.\n\n### 2. Installing the mock ###\nInstall the mock using `jasmine.Ajax.install()`:\n\n```javascript\nbeforeEach(function() {\n  jasmine.Ajax.install();\n  ...\n});\n\n// don't forget to uninstall as well...\nafterEach(function() {\n  jasmine.Ajax.uninstall();\n  ...\n});\n```\nAfter this, all Ajax requests will be captured by jasmine-ajax. If you want to do things like load fixtures, do it before you install the mock (see below).\n\n### 3. Trigger ajax request code ###\nBefore you can specify that a request uses your test response, you must have a handle to the request itself.  This means that the request is made first by the code under test and then you will set your test response (see next step).\n\n```javascript\nfoursquare.search('40.019461,-105.273296', {\n  onSuccess: onSuccess,\n  onFailure: onFailure\n});\n\nrequest = jasmine.Ajax.requests.mostRecent();\n```\n\nThe onreadystatechange event isn't fired to complete the ajax request until you set the response in the next step.\n\n### 4. Set responses ###\nNow that you've defined some test responses and installed the mock, you need to tell jasmine-ajax which response to use for a given spec. If you want to use your success response for a set of related success specs, you might use:\n\n```javascript\ndescribe(\"on success\", function() {\n  beforeEach(function() {\n    request.respondWith(TestResponses.search.success);\n  });\n});\n```\n\nNow for all the specs in this example group, whenever an Ajax response is sent, it will use the `TestResponses.search.success` object defined in your test responses to build the XMLHttpRequest object.\n\n### 5. Inspect Ajax requests ###\nPutting it all together, you can install the mock, pass some spies as callbacks to your search object, and make expectations about the expected behavior.\n\n```javascript\ndescribe(\"FoursquareVenueSearch\", function() {\n  var foursquare, request;\n  var onSuccess, onFailure;\n\n  beforeEach(function() {\n    jasmine.Ajax.install();\n\n    onSuccess = jasmine.createSpy('onSuccess');\n    onFailure = jasmine.createSpy('onFailure');\n\n    foursquare = new FoursquareVenueSearch();\n\n    foursquare.search('40.019461,-105.273296', {\n      onSuccess: onSuccess,\n      onFailure: onFailure\n    });\n\n    request = jasmine.Ajax.requests.mostRecent();\n    expect(request.url).toBe('venues/search');\n    expect(request.method).toBe('POST');\n    expect(request.data()).toEqual({latLng: ['40.019461, -105.273296']});\n  });\n\n  describe(\"on success\", function() {\n    beforeEach(function() {\n      request.respondWith(TestResponses.search.success);\n    });\n\n    it(\"calls onSuccess with an array of Locations\", function() {\n      expect(onSuccess).toHaveBeenCalled();\n\n      var successArgs = onSuccess.calls.mostRecent().args[0];\n\n      expect(successArgs.length).toEqual(1);\n      expect(successArgs[0]).toEqual(jasmine.any(Venue));\n    });\n  });\n});\n```\n\nBy default the `data` function is very naive about parsing form data being sent.\n\nThe provided parsers are:\n\n1. If the XHR has a content-type of application/json, JSON.parse\n1. Otherwise simply split query string by '&' and '='\n\nIf you need more control over how your data is presented, you can supply a custom param parser. Custom parsers will be prepended to the list of parsers to try.\n\n```javascript\ndescribe(\"custom params\", function() {\n  beforeEach(function() {\n    jasmine.Ajax.install();\n    jasmine.Ajax.addCustomParamParser({\n      test: function(xhr) {\n        // return true if you can parse\n      },\n      parse: function(params) {\n        // parse and return\n      }\n    });\n  });\n});\n```\n\n\nLoading Fixtures\n----------------\nMost third-party Jasmine extensions use Ajax to load HTML fixtures into the DOM. Since jasmine-ajax intercepts all Ajax calls after it is installed, you need to load your fixtures before installing the mock. If you are using jasmine-jquery, that looks like this:\n\n```javascript\nbeforeEach(function(){\n  // first load your fixtures\n  loadFixtures('fixture.html');\n\n  // then install the mock\n  jasmine.Ajax.install();\n});\n```\n\n\nComplex Requests\n----------------\nThird-party frameworks may do many requests you can not simply respond to.\nLet's assume that you are talking to a SOAP service. SOAP services mostly have identical URL's, but responses differ by the XML request that was send using a POST request.\nLet's register a response that will be used if the request body was matched against a RegExp.\n\n```javascript\nbeforeEach(function(){\n  // first install the mock\n  jasmine.Ajax.install();\n\n  // then register a request to which automatically will be responded\n  jasmine.Ajax.stubRequest(\n    'https://soap.domain.tld/ws/UserManager',\n    /.*\\<registrationRequest\\>.*/\n  ).andReturn({\n    status: 200,\n    statusText: 'HTTP/1.1 200 OK',\n    contentType: 'text/xml;charset=UTF-8',\n    responseText: '<soap:Envelope><soap:Body><registrationResponse><username>foo</username><password>bar</password></registrationResponse></soap:Body></soap:Envelope>'\n  });\n\n  // Register another response for the same URL, but with different SOAP request\n  jasmine.Ajax.stubRequest(\n    'https://soap.domain.tld/ws/UserManager',\n    /.*\\<loginRequest\\>.*/\n  ).andReturn({\n    status: 200,\n    statusText: 'HTTP/1.1 200 OK',\n    contentType: 'text/xml;charset=UTF-8',\n    responseText: '<soap:Envelope><soap:Body><loginResponse><success>true</success></loginResponse></soap:Body></soap:Envelope>'\n  });\n});\n```\n\nOr if you also want to avoid the host part of the URL, you can register it using a RegExp for the URL, too.\n\n```javascript\nbeforeEach(function(){\n  // first install the mock\n  jasmine.Ajax.install();\n\n  // then register a request to which automatically will be responded\n  jasmine.Ajax.stubRequest(\n    /.*\\/ws\\/UserManager/,\n    /.*\\<registrationRequest\\>.*/\n  ).andReturn({\n    status: 200,\n    statusText: 'HTTP/1.1 200 OK',\n    contentType: 'text/xml;charset=UTF-8',\n    responseText: '<soap:Envelope><soap:Body><registrationResponse><username>foo</username><password>bar</password></registrationResponse></soap:Body></soap:Envelope>'\n  });\n});\n```\n\n[Additional documentation is available at the Jasmine docs site](https://jasmine.github.io/tutorials/mocking_ajax).\n\nContributing\n------------\nPlease read the main Jasmine [contributors' guide](https://github.com/jasmine/jasmine/blob/main/.github/CONTRIBUTING.md) and \n[specifics for Jasmine Ajax](https://github.com/jasmine/jasmine-ajax/blob/main/.github/CONTRIBUTING.md).\n\nWhen submitting a pull request, run `npm run build` and commit the changes to the\ngenerated file `lib/mock-ajax.js` in order for the build's automated tests to \npass.\n\n\nJasmine\n-------\nhttp://jasmine.github.io\n\nCopyright (c) 2010-2019 Pivotal Labs.<br>\nCopyright (c) 2012-2026 The Jasmine developers.<br>\nThis software is licensed under the MIT License.\n","readmeFilename":"README.markdown","users":{"finnhvman":true,"slackersoft":true,"thewhiterabbit":true}}