├── .gitignore ├── .jshintignore ├── .jshintrc ├── .travis.yml ├── CHANGES.md ├── Gruntfile.js ├── LICENSE.markdown ├── README.markdown ├── _config.yml ├── bower.json ├── component.json ├── dist ├── jszip-utils-ie.js ├── jszip-utils-ie.min.js ├── jszip-utils.js └── jszip-utils.min.js ├── documentation ├── _layouts │ └── default.html ├── api.md ├── api │ └── getbinarycontent.md └── css │ ├── main.css │ └── pygments.css ├── index.md ├── lib ├── index.js ├── index_IE.js └── license_header.js ├── package-lock.json ├── package.json └── test ├── index.html ├── ref ├── amount.txt └── smile.gif └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | *~ 2 | node_modules 3 | sauce_connect.log 4 | _site 5 | -------------------------------------------------------------------------------- /.jshintignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | test 3 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | "undef": true, 3 | "strict": true, 4 | "sub": true, 5 | 6 | "globals": { 7 | "TextEncoder": false, 8 | "TextDecoder": false 9 | }, 10 | "browser": true, 11 | "node": true, 12 | "es3": true 13 | } 14 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- 1 | language: node_js 2 | node_js: 3 | - '8' 4 | script: npm run $COMMAND 5 | env: 6 | matrix: 7 | - COMMAND=test-browser 8 | global: 9 | - secure: MfDOvcCBF/82crmHtm0nfSFRIyILvKRjfozD5LT/1sAKqXE+YzZPkCX2q5heqFwNl35aQPjrRX+61Jhesl0eBtdUgabDvv+Pm8audoKm+x/OGBTogIJpmys6dk68QmzXoYNo0Dv03I0zk/MSBtGtqY6AvQrayGdNigZiH9SdBes= 10 | - secure: oek18JPwaxFTaztJmXcJz+WRoPVq1WDjEXDh+0bF58jRKca8N/mGGzryy85u+DW/xAI50fsiVoiwB2F99z38lHdzpNC5HL9P6C6bdxNddj1bQmcGRiYXAHk43svPP8qVBfjNkwaf1SGGvdtXk3RCD23S51nzI2rjkyzv5/PEQJA= 11 | -------------------------------------------------------------------------------- /CHANGES.md: -------------------------------------------------------------------------------- 1 | # v0.1.0 2019-05-12 2 | - Add support for `progress` callback in an `options` object. 3 | 4 | # v0.0.2 2014-05-19 5 | - Drop the code for xhr on `file://` and fix an issue with `file://` to `http://` requests, see [#3](https://github.com/Stuk/jszip-utils/pull/3). 6 | 7 | # v0.0.1 2014-04-27 8 | - First release. 9 | 10 | -------------------------------------------------------------------------------- /Gruntfile.js: -------------------------------------------------------------------------------- 1 | /*jshint node: true */ 2 | "use strict"; 3 | 4 | module.exports = function(grunt) { 5 | // https://wiki.saucelabs.com/display/DOCS/Platform+Configurator 6 | // A lot of the browsers seem to time out with Saucelab's unit testing 7 | // framework. Here are the browsers that work that get enough coverage for our 8 | // needs. 9 | var browsers = [ 10 | {browserName: "chrome"}, 11 | {browserName: "firefox", platform: "Linux"}, 12 | {browserName: "internet explorer"} 13 | ]; 14 | 15 | var tags = []; 16 | if (process.env.TRAVIS_PULL_REQUEST && process.env.TRAVIS_PULL_REQUEST != "false") { 17 | tags.push("pr" + process.env.TRAVIS_PULL_REQUEST); 18 | } else if (process.env.TRAVIS_BRANCH) { 19 | tags.push(process.env.TRAVIS_BRANCH); 20 | } 21 | 22 | var postBundleWithLicense = function(err, src, done) { 23 | if (!err) { 24 | // add the license 25 | var license = require('fs').readFileSync('lib/license_header.js'); 26 | done(err, license + src); 27 | } else { 28 | done(err); 29 | } 30 | }; 31 | 32 | grunt.initConfig({ 33 | connect: { 34 | server: { 35 | options: { 36 | base: "", 37 | port: 8080 38 | } 39 | } 40 | }, 41 | 'saucelabs-qunit': { 42 | all: { 43 | options: { 44 | urls: ["http://127.0.0.1:8080/test/index.html?hidepassed"], 45 | build: process.env.TRAVIS_JOB_ID, 46 | testname: "qunit tests", 47 | tags: tags, 48 | // Tests have statusCheckAttempts * pollInterval seconds to complete 49 | pollInterval: 2000, 50 | statusCheckAttempts: 15, 51 | "max-duration": 30, 52 | browsers: browsers, 53 | maxRetries: 2 54 | } 55 | } 56 | }, 57 | jshint: { 58 | options: { 59 | jshintrc: "./.jshintrc" 60 | }, 61 | all: ['./lib/*.js', "Gruntfile.js"] 62 | }, 63 | browserify: { 64 | "utils": { 65 | files: { 66 | 'dist/jszip-utils.js': ['lib/index.js'] 67 | }, 68 | options: { 69 | standalone: 'JSZipUtils', 70 | postBundleCB: postBundleWithLicense 71 | } 72 | }, 73 | "utils-ie": { 74 | files: { 75 | 'dist/jszip-utils-ie.js': ['lib/index_IE.js'] 76 | }, 77 | options: { 78 | postBundleCB: postBundleWithLicense 79 | } 80 | } 81 | }, 82 | uglify: { 83 | options: { 84 | report: 'gzip', 85 | mangle: true, 86 | output: { 87 | comments: /^!/ 88 | } 89 | }, 90 | "jszip-utils": { 91 | src: 'dist/jszip-utils.js', 92 | dest: 'dist/jszip-utils.min.js' 93 | }, 94 | "jszip-utils-ie": { 95 | src: 'dist/jszip-utils-ie.js', 96 | dest: 'dist/jszip-utils-ie.min.js' 97 | } 98 | } 99 | }); 100 | 101 | grunt.loadNpmTasks("grunt-saucelabs"); 102 | grunt.loadNpmTasks("grunt-contrib-connect"); 103 | grunt.loadNpmTasks('grunt-browserify'); 104 | grunt.loadNpmTasks('grunt-contrib-jshint'); 105 | grunt.loadNpmTasks('grunt-contrib-uglify'); 106 | 107 | // A task to cause Grunt to sit and wait, keeping the test server running 108 | grunt.registerTask("wait", function() { 109 | this.async(); 110 | }); 111 | 112 | grunt.registerTask("test-local", ["build", "connect", "wait"]); 113 | grunt.registerTask("test-remote", ["build", "connect", "saucelabs-qunit"]); 114 | 115 | if (process.env.SAUCE_USERNAME && process.env.SAUCE_ACCESS_KEY) { 116 | grunt.registerTask("test", ["jshint", "test-remote"]); 117 | } else { 118 | grunt.registerTask("test", ["jshint", "test-local"]); 119 | } 120 | 121 | grunt.registerTask("build", ["browserify", "uglify"]); 122 | grunt.registerTask("default", ["jshint", "build"]); 123 | }; 124 | -------------------------------------------------------------------------------- /LICENSE.markdown: -------------------------------------------------------------------------------- 1 | JSZipUtils is dual licensed. You may use it under the MIT license *or* the GPLv3 2 | license. 3 | 4 | The MIT License 5 | =============== 6 | 7 | Copyright (c) 2014 Stuart Knightley, David Duponchel 8 | 9 | Permission is hereby granted, free of charge, to any person obtaining a copy 10 | of this software and associated documentation files (the "Software"), to deal 11 | in the Software without restriction, including without limitation the rights 12 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 13 | copies of the Software, and to permit persons to whom the Software is 14 | furnished to do so, subject to the following conditions: 15 | 16 | The above copyright notice and this permission notice shall be included in 17 | all copies or substantial portions of the Software. 18 | 19 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 25 | THE SOFTWARE. 26 | 27 | 28 | GPL version 3 29 | ============= 30 | 31 | GNU GENERAL PUBLIC LICENSE 32 | Version 3, 29 June 2007 33 | 34 | Copyright (C) 2007 Free Software Foundation, Inc. 35 | Everyone is permitted to copy and distribute verbatim copies 36 | of this license document, but changing it is not allowed. 37 | 38 | Preamble 39 | 40 | The GNU General Public License is a free, copyleft license for 41 | software and other kinds of works. 42 | 43 | The licenses for most software and other practical works are designed 44 | to take away your freedom to share and change the works. By contrast, 45 | the GNU General Public License is intended to guarantee your freedom to 46 | share and change all versions of a program--to make sure it remains free 47 | software for all its users. We, the Free Software Foundation, use the 48 | GNU General Public License for most of our software; it applies also to 49 | any other work released this way by its authors. You can apply it to 50 | your programs, too. 51 | 52 | When we speak of free software, we are referring to freedom, not 53 | price. Our General Public Licenses are designed to make sure that you 54 | have the freedom to distribute copies of free software (and charge for 55 | them if you wish), that you receive source code or can get it if you 56 | want it, that you can change the software or use pieces of it in new 57 | free programs, and that you know you can do these things. 58 | 59 | To protect your rights, we need to prevent others from denying you 60 | these rights or asking you to surrender the rights. Therefore, you have 61 | certain responsibilities if you distribute copies of the software, or if 62 | you modify it: responsibilities to respect the freedom of others. 63 | 64 | For example, if you distribute copies of such a program, whether 65 | gratis or for a fee, you must pass on to the recipients the same 66 | freedoms that you received. You must make sure that they, too, receive 67 | or can get the source code. And you must show them these terms so they 68 | know their rights. 69 | 70 | Developers that use the GNU GPL protect your rights with two steps: 71 | (1) assert copyright on the software, and (2) offer you this License 72 | giving you legal permission to copy, distribute and/or modify it. 73 | 74 | For the developers' and authors' protection, the GPL clearly explains 75 | that there is no warranty for this free software. For both users' and 76 | authors' sake, the GPL requires that modified versions be marked as 77 | changed, so that their problems will not be attributed erroneously to 78 | authors of previous versions. 79 | 80 | Some devices are designed to deny users access to install or run 81 | modified versions of the software inside them, although the manufacturer 82 | can do so. This is fundamentally incompatible with the aim of 83 | protecting users' freedom to change the software. The systematic 84 | pattern of such abuse occurs in the area of products for individuals to 85 | use, which is precisely where it is most unacceptable. Therefore, we 86 | have designed this version of the GPL to prohibit the practice for those 87 | products. If such problems arise substantially in other domains, we 88 | stand ready to extend this provision to those domains in future versions 89 | of the GPL, as needed to protect the freedom of users. 90 | 91 | Finally, every program is threatened constantly by software patents. 92 | States should not allow patents to restrict development and use of 93 | software on general-purpose computers, but in those that do, we wish to 94 | avoid the special danger that patents applied to a free program could 95 | make it effectively proprietary. To prevent this, the GPL assures that 96 | patents cannot be used to render the program non-free. 97 | 98 | The precise terms and conditions for copying, distribution and 99 | modification follow. 100 | 101 | TERMS AND CONDITIONS 102 | 103 | 0. Definitions. 104 | 105 | "This License" refers to version 3 of the GNU General Public License. 106 | 107 | "Copyright" also means copyright-like laws that apply to other kinds of 108 | works, such as semiconductor masks. 109 | 110 | "The Program" refers to any copyrightable work licensed under this 111 | License. Each licensee is addressed as "you". "Licensees" and 112 | "recipients" may be individuals or organizations. 113 | 114 | To "modify" a work means to copy from or adapt all or part of the work 115 | in a fashion requiring copyright permission, other than the making of an 116 | exact copy. The resulting work is called a "modified version" of the 117 | earlier work or a work "based on" the earlier work. 118 | 119 | A "covered work" means either the unmodified Program or a work based 120 | on the Program. 121 | 122 | To "propagate" a work means to do anything with it that, without 123 | permission, would make you directly or secondarily liable for 124 | infringement under applicable copyright law, except executing it on a 125 | computer or modifying a private copy. Propagation includes copying, 126 | distribution (with or without modification), making available to the 127 | public, and in some countries other activities as well. 128 | 129 | To "convey" a work means any kind of propagation that enables other 130 | parties to make or receive copies. Mere interaction with a user through 131 | a computer network, with no transfer of a copy, is not conveying. 132 | 133 | An interactive user interface displays "Appropriate Legal Notices" 134 | to the extent that it includes a convenient and prominently visible 135 | feature that (1) displays an appropriate copyright notice, and (2) 136 | tells the user that there is no warranty for the work (except to the 137 | extent that warranties are provided), that licensees may convey the 138 | work under this License, and how to view a copy of this License. If 139 | the interface presents a list of user commands or options, such as a 140 | menu, a prominent item in the list meets this criterion. 141 | 142 | 1. Source Code. 143 | 144 | The "source code" for a work means the preferred form of the work 145 | for making modifications to it. "Object code" means any non-source 146 | form of a work. 147 | 148 | A "Standard Interface" means an interface that either is an official 149 | standard defined by a recognized standards body, or, in the case of 150 | interfaces specified for a particular programming language, one that 151 | is widely used among developers working in that language. 152 | 153 | The "System Libraries" of an executable work include anything, other 154 | than the work as a whole, that (a) is included in the normal form of 155 | packaging a Major Component, but which is not part of that Major 156 | Component, and (b) serves only to enable use of the work with that 157 | Major Component, or to implement a Standard Interface for which an 158 | implementation is available to the public in source code form. A 159 | "Major Component", in this context, means a major essential component 160 | (kernel, window system, and so on) of the specific operating system 161 | (if any) on which the executable work runs, or a compiler used to 162 | produce the work, or an object code interpreter used to run it. 163 | 164 | The "Corresponding Source" for a work in object code form means all 165 | the source code needed to generate, install, and (for an executable 166 | work) run the object code and to modify the work, including scripts to 167 | control those activities. However, it does not include the work's 168 | System Libraries, or general-purpose tools or generally available free 169 | programs which are used unmodified in performing those activities but 170 | which are not part of the work. For example, Corresponding Source 171 | includes interface definition files associated with source files for 172 | the work, and the source code for shared libraries and dynamically 173 | linked subprograms that the work is specifically designed to require, 174 | such as by intimate data communication or control flow between those 175 | subprograms and other parts of the work. 176 | 177 | The Corresponding Source need not include anything that users 178 | can regenerate automatically from other parts of the Corresponding 179 | Source. 180 | 181 | The Corresponding Source for a work in source code form is that 182 | same work. 183 | 184 | 2. Basic Permissions. 185 | 186 | All rights granted under this License are granted for the term of 187 | copyright on the Program, and are irrevocable provided the stated 188 | conditions are met. This License explicitly affirms your unlimited 189 | permission to run the unmodified Program. The output from running a 190 | covered work is covered by this License only if the output, given its 191 | content, constitutes a covered work. This License acknowledges your 192 | rights of fair use or other equivalent, as provided by copyright law. 193 | 194 | You may make, run and propagate covered works that you do not 195 | convey, without conditions so long as your license otherwise remains 196 | in force. You may convey covered works to others for the sole purpose 197 | of having them make modifications exclusively for you, or provide you 198 | with facilities for running those works, provided that you comply with 199 | the terms of this License in conveying all material for which you do 200 | not control copyright. Those thus making or running the covered works 201 | for you must do so exclusively on your behalf, under your direction 202 | and control, on terms that prohibit them from making any copies of 203 | your copyrighted material outside their relationship with you. 204 | 205 | Conveying under any other circumstances is permitted solely under 206 | the conditions stated below. Sublicensing is not allowed; section 10 207 | makes it unnecessary. 208 | 209 | 3. Protecting Users' Legal Rights From Anti-Circumvention Law. 210 | 211 | No covered work shall be deemed part of an effective technological 212 | measure under any applicable law fulfilling obligations under article 213 | 11 of the WIPO copyright treaty adopted on 20 December 1996, or 214 | similar laws prohibiting or restricting circumvention of such 215 | measures. 216 | 217 | When you convey a covered work, you waive any legal power to forbid 218 | circumvention of technological measures to the extent such circumvention 219 | is effected by exercising rights under this License with respect to 220 | the covered work, and you disclaim any intention to limit operation or 221 | modification of the work as a means of enforcing, against the work's 222 | users, your or third parties' legal rights to forbid circumvention of 223 | technological measures. 224 | 225 | 4. Conveying Verbatim Copies. 226 | 227 | You may convey verbatim copies of the Program's source code as you 228 | receive it, in any medium, provided that you conspicuously and 229 | appropriately publish on each copy an appropriate copyright notice; 230 | keep intact all notices stating that this License and any 231 | non-permissive terms added in accord with section 7 apply to the code; 232 | keep intact all notices of the absence of any warranty; and give all 233 | recipients a copy of this License along with the Program. 234 | 235 | You may charge any price or no price for each copy that you convey, 236 | and you may offer support or warranty protection for a fee. 237 | 238 | 5. Conveying Modified Source Versions. 239 | 240 | You may convey a work based on the Program, or the modifications to 241 | produce it from the Program, in the form of source code under the 242 | terms of section 4, provided that you also meet all of these conditions: 243 | 244 | a) The work must carry prominent notices stating that you modified 245 | it, and giving a relevant date. 246 | 247 | b) The work must carry prominent notices stating that it is 248 | released under this License and any conditions added under section 249 | 7. This requirement modifies the requirement in section 4 to 250 | "keep intact all notices". 251 | 252 | c) You must license the entire work, as a whole, under this 253 | License to anyone who comes into possession of a copy. This 254 | License will therefore apply, along with any applicable section 7 255 | additional terms, to the whole of the work, and all its parts, 256 | regardless of how they are packaged. This License gives no 257 | permission to license the work in any other way, but it does not 258 | invalidate such permission if you have separately received it. 259 | 260 | d) If the work has interactive user interfaces, each must display 261 | Appropriate Legal Notices; however, if the Program has interactive 262 | interfaces that do not display Appropriate Legal Notices, your 263 | work need not make them do so. 264 | 265 | A compilation of a covered work with other separate and independent 266 | works, which are not by their nature extensions of the covered work, 267 | and which are not combined with it such as to form a larger program, 268 | in or on a volume of a storage or distribution medium, is called an 269 | "aggregate" if the compilation and its resulting copyright are not 270 | used to limit the access or legal rights of the compilation's users 271 | beyond what the individual works permit. Inclusion of a covered work 272 | in an aggregate does not cause this License to apply to the other 273 | parts of the aggregate. 274 | 275 | 6. Conveying Non-Source Forms. 276 | 277 | You may convey a covered work in object code form under the terms 278 | of sections 4 and 5, provided that you also convey the 279 | machine-readable Corresponding Source under the terms of this License, 280 | in one of these ways: 281 | 282 | a) Convey the object code in, or embodied in, a physical product 283 | (including a physical distribution medium), accompanied by the 284 | Corresponding Source fixed on a durable physical medium 285 | customarily used for software interchange. 286 | 287 | b) Convey the object code in, or embodied in, a physical product 288 | (including a physical distribution medium), accompanied by a 289 | written offer, valid for at least three years and valid for as 290 | long as you offer spare parts or customer support for that product 291 | model, to give anyone who possesses the object code either (1) a 292 | copy of the Corresponding Source for all the software in the 293 | product that is covered by this License, on a durable physical 294 | medium customarily used for software interchange, for a price no 295 | more than your reasonable cost of physically performing this 296 | conveying of source, or (2) access to copy the 297 | Corresponding Source from a network server at no charge. 298 | 299 | c) Convey individual copies of the object code with a copy of the 300 | written offer to provide the Corresponding Source. This 301 | alternative is allowed only occasionally and noncommercially, and 302 | only if you received the object code with such an offer, in accord 303 | with subsection 6b. 304 | 305 | d) Convey the object code by offering access from a designated 306 | place (gratis or for a charge), and offer equivalent access to the 307 | Corresponding Source in the same way through the same place at no 308 | further charge. You need not require recipients to copy the 309 | Corresponding Source along with the object code. If the place to 310 | copy the object code is a network server, the Corresponding Source 311 | may be on a different server (operated by you or a third party) 312 | that supports equivalent copying facilities, provided you maintain 313 | clear directions next to the object code saying where to find the 314 | Corresponding Source. Regardless of what server hosts the 315 | Corresponding Source, you remain obligated to ensure that it is 316 | available for as long as needed to satisfy these requirements. 317 | 318 | e) Convey the object code using peer-to-peer transmission, provided 319 | you inform other peers where the object code and Corresponding 320 | Source of the work are being offered to the general public at no 321 | charge under subsection 6d. 322 | 323 | A separable portion of the object code, whose source code is excluded 324 | from the Corresponding Source as a System Library, need not be 325 | included in conveying the object code work. 326 | 327 | A "User Product" is either (1) a "consumer product", which means any 328 | tangible personal property which is normally used for personal, family, 329 | or household purposes, or (2) anything designed or sold for incorporation 330 | into a dwelling. In determining whether a product is a consumer product, 331 | doubtful cases shall be resolved in favor of coverage. For a particular 332 | product received by a particular user, "normally used" refers to a 333 | typical or common use of that class of product, regardless of the status 334 | of the particular user or of the way in which the particular user 335 | actually uses, or expects or is expected to use, the product. A product 336 | is a consumer product regardless of whether the product has substantial 337 | commercial, industrial or non-consumer uses, unless such uses represent 338 | the only significant mode of use of the product. 339 | 340 | "Installation Information" for a User Product means any methods, 341 | procedures, authorization keys, or other information required to install 342 | and execute modified versions of a covered work in that User Product from 343 | a modified version of its Corresponding Source. The information must 344 | suffice to ensure that the continued functioning of the modified object 345 | code is in no case prevented or interfered with solely because 346 | modification has been made. 347 | 348 | If you convey an object code work under this section in, or with, or 349 | specifically for use in, a User Product, and the conveying occurs as 350 | part of a transaction in which the right of possession and use of the 351 | User Product is transferred to the recipient in perpetuity or for a 352 | fixed term (regardless of how the transaction is characterized), the 353 | Corresponding Source conveyed under this section must be accompanied 354 | by the Installation Information. But this requirement does not apply 355 | if neither you nor any third party retains the ability to install 356 | modified object code on the User Product (for example, the work has 357 | been installed in ROM). 358 | 359 | The requirement to provide Installation Information does not include a 360 | requirement to continue to provide support service, warranty, or updates 361 | for a work that has been modified or installed by the recipient, or for 362 | the User Product in which it has been modified or installed. Access to a 363 | network may be denied when the modification itself materially and 364 | adversely affects the operation of the network or violates the rules and 365 | protocols for communication across the network. 366 | 367 | Corresponding Source conveyed, and Installation Information provided, 368 | in accord with this section must be in a format that is publicly 369 | documented (and with an implementation available to the public in 370 | source code form), and must require no special password or key for 371 | unpacking, reading or copying. 372 | 373 | 7. Additional Terms. 374 | 375 | "Additional permissions" are terms that supplement the terms of this 376 | License by making exceptions from one or more of its conditions. 377 | Additional permissions that are applicable to the entire Program shall 378 | be treated as though they were included in this License, to the extent 379 | that they are valid under applicable law. If additional permissions 380 | apply only to part of the Program, that part may be used separately 381 | under those permissions, but the entire Program remains governed by 382 | this License without regard to the additional permissions. 383 | 384 | When you convey a copy of a covered work, you may at your option 385 | remove any additional permissions from that copy, or from any part of 386 | it. (Additional permissions may be written to require their own 387 | removal in certain cases when you modify the work.) You may place 388 | additional permissions on material, added by you to a covered work, 389 | for which you have or can give appropriate copyright permission. 390 | 391 | Notwithstanding any other provision of this License, for material you 392 | add to a covered work, you may (if authorized by the copyright holders of 393 | that material) supplement the terms of this License with terms: 394 | 395 | a) Disclaiming warranty or limiting liability differently from the 396 | terms of sections 15 and 16 of this License; or 397 | 398 | b) Requiring preservation of specified reasonable legal notices or 399 | author attributions in that material or in the Appropriate Legal 400 | Notices displayed by works containing it; or 401 | 402 | c) Prohibiting misrepresentation of the origin of that material, or 403 | requiring that modified versions of such material be marked in 404 | reasonable ways as different from the original version; or 405 | 406 | d) Limiting the use for publicity purposes of names of licensors or 407 | authors of the material; or 408 | 409 | e) Declining to grant rights under trademark law for use of some 410 | trade names, trademarks, or service marks; or 411 | 412 | f) Requiring indemnification of licensors and authors of that 413 | material by anyone who conveys the material (or modified versions of 414 | it) with contractual assumptions of liability to the recipient, for 415 | any liability that these contractual assumptions directly impose on 416 | those licensors and authors. 417 | 418 | All other non-permissive additional terms are considered "further 419 | restrictions" within the meaning of section 10. If the Program as you 420 | received it, or any part of it, contains a notice stating that it is 421 | governed by this License along with a term that is a further 422 | restriction, you may remove that term. If a license document contains 423 | a further restriction but permits relicensing or conveying under this 424 | License, you may add to a covered work material governed by the terms 425 | of that license document, provided that the further restriction does 426 | not survive such relicensing or conveying. 427 | 428 | If you add terms to a covered work in accord with this section, you 429 | must place, in the relevant source files, a statement of the 430 | additional terms that apply to those files, or a notice indicating 431 | where to find the applicable terms. 432 | 433 | Additional terms, permissive or non-permissive, may be stated in the 434 | form of a separately written license, or stated as exceptions; 435 | the above requirements apply either way. 436 | 437 | 8. Termination. 438 | 439 | You may not propagate or modify a covered work except as expressly 440 | provided under this License. Any attempt otherwise to propagate or 441 | modify it is void, and will automatically terminate your rights under 442 | this License (including any patent licenses granted under the third 443 | paragraph of section 11). 444 | 445 | However, if you cease all violation of this License, then your 446 | license from a particular copyright holder is reinstated (a) 447 | provisionally, unless and until the copyright holder explicitly and 448 | finally terminates your license, and (b) permanently, if the copyright 449 | holder fails to notify you of the violation by some reasonable means 450 | prior to 60 days after the cessation. 451 | 452 | Moreover, your license from a particular copyright holder is 453 | reinstated permanently if the copyright holder notifies you of the 454 | violation by some reasonable means, this is the first time you have 455 | received notice of violation of this License (for any work) from that 456 | copyright holder, and you cure the violation prior to 30 days after 457 | your receipt of the notice. 458 | 459 | Termination of your rights under this section does not terminate the 460 | licenses of parties who have received copies or rights from you under 461 | this License. If your rights have been terminated and not permanently 462 | reinstated, you do not qualify to receive new licenses for the same 463 | material under section 10. 464 | 465 | 9. Acceptance Not Required for Having Copies. 466 | 467 | You are not required to accept this License in order to receive or 468 | run a copy of the Program. Ancillary propagation of a covered work 469 | occurring solely as a consequence of using peer-to-peer transmission 470 | to receive a copy likewise does not require acceptance. However, 471 | nothing other than this License grants you permission to propagate or 472 | modify any covered work. These actions infringe copyright if you do 473 | not accept this License. Therefore, by modifying or propagating a 474 | covered work, you indicate your acceptance of this License to do so. 475 | 476 | 10. Automatic Licensing of Downstream Recipients. 477 | 478 | Each time you convey a covered work, the recipient automatically 479 | receives a license from the original licensors, to run, modify and 480 | propagate that work, subject to this License. You are not responsible 481 | for enforcing compliance by third parties with this License. 482 | 483 | An "entity transaction" is a transaction transferring control of an 484 | organization, or substantially all assets of one, or subdividing an 485 | organization, or merging organizations. If propagation of a covered 486 | work results from an entity transaction, each party to that 487 | transaction who receives a copy of the work also receives whatever 488 | licenses to the work the party's predecessor in interest had or could 489 | give under the previous paragraph, plus a right to possession of the 490 | Corresponding Source of the work from the predecessor in interest, if 491 | the predecessor has it or can get it with reasonable efforts. 492 | 493 | You may not impose any further restrictions on the exercise of the 494 | rights granted or affirmed under this License. For example, you may 495 | not impose a license fee, royalty, or other charge for exercise of 496 | rights granted under this License, and you may not initiate litigation 497 | (including a cross-claim or counterclaim in a lawsuit) alleging that 498 | any patent claim is infringed by making, using, selling, offering for 499 | sale, or importing the Program or any portion of it. 500 | 501 | 11. Patents. 502 | 503 | A "contributor" is a copyright holder who authorizes use under this 504 | License of the Program or a work on which the Program is based. The 505 | work thus licensed is called the contributor's "contributor version". 506 | 507 | A contributor's "essential patent claims" are all patent claims 508 | owned or controlled by the contributor, whether already acquired or 509 | hereafter acquired, that would be infringed by some manner, permitted 510 | by this License, of making, using, or selling its contributor version, 511 | but do not include claims that would be infringed only as a 512 | consequence of further modification of the contributor version. For 513 | purposes of this definition, "control" includes the right to grant 514 | patent sublicenses in a manner consistent with the requirements of 515 | this License. 516 | 517 | Each contributor grants you a non-exclusive, worldwide, royalty-free 518 | patent license under the contributor's essential patent claims, to 519 | make, use, sell, offer for sale, import and otherwise run, modify and 520 | propagate the contents of its contributor version. 521 | 522 | In the following three paragraphs, a "patent license" is any express 523 | agreement or commitment, however denominated, not to enforce a patent 524 | (such as an express permission to practice a patent or covenant not to 525 | sue for patent infringement). To "grant" such a patent license to a 526 | party means to make such an agreement or commitment not to enforce a 527 | patent against the party. 528 | 529 | If you convey a covered work, knowingly relying on a patent license, 530 | and the Corresponding Source of the work is not available for anyone 531 | to copy, free of charge and under the terms of this License, through a 532 | publicly available network server or other readily accessible means, 533 | then you must either (1) cause the Corresponding Source to be so 534 | available, or (2) arrange to deprive yourself of the benefit of the 535 | patent license for this particular work, or (3) arrange, in a manner 536 | consistent with the requirements of this License, to extend the patent 537 | license to downstream recipients. "Knowingly relying" means you have 538 | actual knowledge that, but for the patent license, your conveying the 539 | covered work in a country, or your recipient's use of the covered work 540 | in a country, would infringe one or more identifiable patents in that 541 | country that you have reason to believe are valid. 542 | 543 | If, pursuant to or in connection with a single transaction or 544 | arrangement, you convey, or propagate by procuring conveyance of, a 545 | covered work, and grant a patent license to some of the parties 546 | receiving the covered work authorizing them to use, propagate, modify 547 | or convey a specific copy of the covered work, then the patent license 548 | you grant is automatically extended to all recipients of the covered 549 | work and works based on it. 550 | 551 | A patent license is "discriminatory" if it does not include within 552 | the scope of its coverage, prohibits the exercise of, or is 553 | conditioned on the non-exercise of one or more of the rights that are 554 | specifically granted under this License. You may not convey a covered 555 | work if you are a party to an arrangement with a third party that is 556 | in the business of distributing software, under which you make payment 557 | to the third party based on the extent of your activity of conveying 558 | the work, and under which the third party grants, to any of the 559 | parties who would receive the covered work from you, a discriminatory 560 | patent license (a) in connection with copies of the covered work 561 | conveyed by you (or copies made from those copies), or (b) primarily 562 | for and in connection with specific products or compilations that 563 | contain the covered work, unless you entered into that arrangement, 564 | or that patent license was granted, prior to 28 March 2007. 565 | 566 | Nothing in this License shall be construed as excluding or limiting 567 | any implied license or other defenses to infringement that may 568 | otherwise be available to you under applicable patent law. 569 | 570 | 12. No Surrender of Others' Freedom. 571 | 572 | If conditions are imposed on you (whether by court order, agreement or 573 | otherwise) that contradict the conditions of this License, they do not 574 | excuse you from the conditions of this License. If you cannot convey a 575 | covered work so as to satisfy simultaneously your obligations under this 576 | License and any other pertinent obligations, then as a consequence you may 577 | not convey it at all. For example, if you agree to terms that obligate you 578 | to collect a royalty for further conveying from those to whom you convey 579 | the Program, the only way you could satisfy both those terms and this 580 | License would be to refrain entirely from conveying the Program. 581 | 582 | 13. Use with the GNU Affero General Public License. 583 | 584 | Notwithstanding any other provision of this License, you have 585 | permission to link or combine any covered work with a work licensed 586 | under version 3 of the GNU Affero General Public License into a single 587 | combined work, and to convey the resulting work. The terms of this 588 | License will continue to apply to the part which is the covered work, 589 | but the special requirements of the GNU Affero General Public License, 590 | section 13, concerning interaction through a network will apply to the 591 | combination as such. 592 | 593 | 14. Revised Versions of this License. 594 | 595 | The Free Software Foundation may publish revised and/or new versions of 596 | the GNU General Public License from time to time. Such new versions will 597 | be similar in spirit to the present version, but may differ in detail to 598 | address new problems or concerns. 599 | 600 | Each version is given a distinguishing version number. If the 601 | Program specifies that a certain numbered version of the GNU General 602 | Public License "or any later version" applies to it, you have the 603 | option of following the terms and conditions either of that numbered 604 | version or of any later version published by the Free Software 605 | Foundation. If the Program does not specify a version number of the 606 | GNU General Public License, you may choose any version ever published 607 | by the Free Software Foundation. 608 | 609 | If the Program specifies that a proxy can decide which future 610 | versions of the GNU General Public License can be used, that proxy's 611 | public statement of acceptance of a version permanently authorizes you 612 | to choose that version for the Program. 613 | 614 | Later license versions may give you additional or different 615 | permissions. However, no additional obligations are imposed on any 616 | author or copyright holder as a result of your choosing to follow a 617 | later version. 618 | 619 | 15. Disclaimer of Warranty. 620 | 621 | THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY 622 | APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT 623 | HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY 624 | OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, 625 | THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 626 | PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM 627 | IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF 628 | ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 629 | 630 | 16. Limitation of Liability. 631 | 632 | IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 633 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS 634 | THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY 635 | GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE 636 | USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF 637 | DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD 638 | PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), 639 | EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF 640 | SUCH DAMAGES. 641 | 642 | 17. Interpretation of Sections 15 and 16. 643 | 644 | If the disclaimer of warranty and limitation of liability provided 645 | above cannot be given local legal effect according to their terms, 646 | reviewing courts shall apply local law that most closely approximates 647 | an absolute waiver of all civil liability in connection with the 648 | Program, unless a warranty or assumption of liability accompanies a 649 | copy of the Program in return for a fee. 650 | 651 | END OF TERMS AND CONDITIONS 652 | -------------------------------------------------------------------------------- /README.markdown: -------------------------------------------------------------------------------- 1 | JSZipUtils 2 | ========== 3 | 4 | A collection of cross-browser utilities to go along with JSZip, see 5 | http://stuk.github.io/jszip-utils for all the documentation. 6 | 7 | It has two parts, one for every browsers and one for IE < 10. To use it : 8 | 9 | ```html 10 | 11 | 14 | 17 | ``` 18 | 19 | Development 20 | ----------- 21 | 22 | Run `npm test` to lint, build, and launch a server at http://localhost:8080/test/ . Open the page in a browser to verify that the tests are passing. 23 | 24 | If you have a Saucelabs account set the `SAUCE_USERNAME` and `SAUCE_ACCESS_KEY`environment variables to test remotely. 25 | 26 | License 27 | ------- 28 | 29 | JSZipUtils is dual-licensed. You may use it under the MIT license *or* the GPLv3 30 | license. See LICENSE.markdown. 31 | -------------------------------------------------------------------------------- /_config.yml: -------------------------------------------------------------------------------- 1 | # will be overwritten by github, see https://help.github.com/articles/using-jekyll-with-pages 2 | safe: true 3 | lsi: false 4 | pygments: true 5 | source: ./ 6 | # /overwritten 7 | 8 | baseurl: /jszip-utils 9 | 10 | layouts: ./documentation/_layouts 11 | permalink: none 12 | exclude: ['bin', 'README.md', 'node_modules'] 13 | 14 | markdown: redcarpet 15 | redcarpet: 16 | extensions: [ 17 | 'no_intra_emphasis', 18 | 'fenced_code_blocks', 19 | 'autolink', 20 | 'strikethrough', 21 | 'superscript', 22 | 'with_toc_data', 23 | 'tables', 24 | 'hardwrap' 25 | ] 26 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jszip-utils", 3 | "version": "0.1.0", 4 | "homepage": "https://github.com/Stuk/jszip-utils", 5 | "authors": [ 6 | "Stuart Knightley ", 7 | "David Duponchel " 8 | ], 9 | "description": "A collection of cross-browser utilities to go along with JSZip.", 10 | "main": "dist/jszip-utils.js", 11 | "keywords": [ 12 | "JSZip", 13 | "ajax", 14 | "cross browser", 15 | "IE", 16 | "Internet Explorer" 17 | ], 18 | "license": "MIT or GPLv3", 19 | "ignore": [ 20 | "**/.*", 21 | "node_modules", 22 | "bower_components", 23 | "test", 24 | "tests" 25 | ] 26 | } 27 | -------------------------------------------------------------------------------- /component.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jszip-utils", 3 | "repo": "Stuk/jszip-utils", 4 | "description": "A collection of cross-browser utilities to go along with JSZip.", 5 | "version": "0.1.0", 6 | "keywords": [ 7 | "JSZip", 8 | "ajax", 9 | "cross browser", 10 | "IE", 11 | "Internet Explorer" 12 | ], 13 | "main": "dist/jszip-utils.js", 14 | "license": "MIT or GPLv3", 15 | "scripts": [ 16 | "dist/jszip-utils.js" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /dist/jszip-utils-ie.js: -------------------------------------------------------------------------------- 1 | /*@preserve 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014-2019 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | ;(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o\r\n"+ 18 | "\r\n"; 32 | 33 | // inject VBScript 34 | document.write(IEBinaryToArray_ByteStr_Script); 35 | 36 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 37 | var binary = xhr.responseBody; 38 | var byteMapping = {}; 39 | for ( var i = 0; i < 256; i++ ) { 40 | for ( var j = 0; j < 256; j++ ) { 41 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 42 | String.fromCharCode(i) + String.fromCharCode(j); 43 | } 44 | } 45 | var rawBytes = IEBinaryToArray_ByteStr(binary); 46 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 47 | return rawBytes.replace(/[\s\S]/g, function( match ) { 48 | return byteMapping[match]; 49 | }) + lastChr; 50 | }; 51 | 52 | // enforcing Stuk's coding style 53 | // vim: set shiftwidth=4 softtabstop=4: 54 | 55 | },{}]},{},[1]) 56 | ; -------------------------------------------------------------------------------- /dist/jszip-utils-ie.min.js: -------------------------------------------------------------------------------- 1 | !function i(o,a,y){function f(t,r){if(!a[t]){if(!o[t]){var n="function"==typeof require&&require;if(!r&&n)return n(t,!0);if(u)return u(t,!0);throw new Error("Cannot find module '"+t+"'")}var e=a[t]={exports:{}};o[t][0].call(e.exports,function(r){var n=o[t][1][r];return f(n||r)},e,e.exports,i,o,a,y)}return a[t].exports}for(var u="function"==typeof require&&require,r=0;r\r\nFunction IEBinaryToArray_ByteStr(Binary)\r\n IEBinaryToArray_ByteStr = CStr(Binary)\r\nEnd Function\r\nFunction IEBinaryToArray_ByteStr_Last(Binary)\r\n Dim lastIndex\r\n lastIndex = LenB(Binary)\r\n if lastIndex mod 2 Then\r\n IEBinaryToArray_ByteStr_Last = Chr( AscB( MidB( Binary, lastIndex, 1 ) ) )\r\n Else\r\n IEBinaryToArray_ByteStr_Last = \"\"\r\n End If\r\nEnd Function\r\n<\/script>\r\n"),e.JSZipUtils._getBinaryFromXHR=function(r){for(var n=r.responseBody,t={},e=0;e<256;e++)for(var i=0;i<256;i++)t[String.fromCharCode(e+(i<<8))]=String.fromCharCode(e)+String.fromCharCode(i);var o=IEBinaryToArray_ByteStr(n),a=IEBinaryToArray_ByteStr_Last(n);return o.replace(/[\s\S]/g,function(r){return t[r]})+a}},{}]},{},[1]); -------------------------------------------------------------------------------- /dist/jszip-utils.js: -------------------------------------------------------------------------------- 1 | /*@preserve 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014-2019 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | !function(e){"object"==typeof exports?module.exports=e():"function"==typeof define&&define.amd?define(e):"undefined"!=typeof window?window.JSZipUtils=e():"undefined"!=typeof global?global.JSZipUtils=e():"undefined"!=typeof self&&(self.JSZipUtils=e())}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o 2 | 3 | 4 | 5 | 6 | 7 | 8 | {{page.title}} 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 26 | 29 | 30 | 31 |
32 | 49 |
50 | 62 |
63 |

{{page.title}}

64 | 65 | 66 | 67 | 68 | {{content}} 69 | 70 | 71 | 72 | 73 |
74 |
75 |
76 | 85 | 86 | 87 | -------------------------------------------------------------------------------- /documentation/api.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "JSZipUtils" 3 | layout: default 4 | section: api 5 | --- 6 | This section contains the documentation of the different functions. 7 | -------------------------------------------------------------------------------- /documentation/api/getbinarycontent.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: "getBinaryContent(path, callback)" 3 | layout: default 4 | section: api 5 | --- 6 | 7 | __Description__ : Use an AJAX call to fetch a file (HTTP GET) on the server 8 | that served the file. Cross domain requests will work if the browser support 9 | [them](http://caniuse.com/cors) but only if the server send the 10 | [right headers](https://developer.mozilla.org/en-US/docs/HTTP/Access_control_CORS). 11 | This function doesn't follow redirects: currently only `200 OK` are accepted. 12 | 13 | __Arguments__ 14 | 15 | name | type | description 16 | ---------|--------------------|------------ 17 | path | String | the path to the resource to GET. 18 | options | function or object | A callback function or options object. 19 | 20 | The options object has a required `callback` function property and an optional `progress` function property. 21 | 22 | The `callback` function has the following signature: `function (err, data) {...}` : 23 | 24 | name | type | description 25 | -----|--------------------|------------ 26 | err | Error | the error, if any. 27 | data | ArrayBuffer/String | the data in a format suitable for JSZip. 28 | 29 | The `progress` function has the following signature: `function (event) {...}`, where `event` has the following properties: 30 | 31 | name | type | description 32 | --------|--------------------|------------ 33 | path | string | The path of the file being loaded. 34 | loaded | number | the amount of data currently transfered. 35 | total | number | the total amount of data to be transferred. 36 | percent | number | the percent of data currently transfered. 37 | 38 | The data can be parsed by [JSZip#load](http://stuk.github.io/jszip/#doc_load_data_options) 39 | or used with [JSZip#file](http://stuk.github.io/jszip/#doc_file_name_data_options) 40 | to add a new file. With `JSZip#file` use `{binary:true}` as options. 41 | 42 | __Returns__ : Nothing. 43 | 44 | __Throws__ : Nothing. 45 | 46 | 50 | 51 | __Example__ 52 | 53 | ```js 54 | // loading a zip file 55 | JSZipUtils.getBinaryContent("path/to/file.zip", function (err, data) { 56 | if(err) { 57 | throw err; // or handle the error 58 | } 59 | var zip = new JSZip(data); 60 | }); 61 | 62 | // loading a file and add it in a zip file 63 | JSZipUtils.getBinaryContent("path/to/picture.png", function (err, data) { 64 | if(err) { 65 | throw err; // or handle the error 66 | } 67 | var zip = new JSZip(); 68 | zip.file("picture.png", data, {binary:true}); 69 | }); 70 | 71 | // loading a zip file with a progress callback 72 | JSZipUtils.getBinaryContent("path/to/file.zip", { 73 | progress: function (event) { 74 | console.log(event.percent + "% of " + event.path+ " loaded") 75 | }, 76 | callback: function (err, data) { 77 | if(err) { 78 | throw err; // or handle the error 79 | } 80 | var zip = new JSZip(data); 81 | } 82 | }); 83 | ``` 84 | 85 | 86 | -------------------------------------------------------------------------------- /documentation/css/main.css: -------------------------------------------------------------------------------- 1 | ul.nav ul { 2 | list-style:none; 3 | margin: 0; 4 | padding: 0 0 0 25px; 5 | } 6 | 7 | 8 | -------------------------------------------------------------------------------- /documentation/css/pygments.css: -------------------------------------------------------------------------------- 1 | /* Generated with : 2 | * pygmentize -S default -f html > pygments.css 3 | */ 4 | .hll { background-color: #ffffcc } 5 | .c { color: #408080; font-style: italic } /* Comment */ 6 | .err { border: 1px solid #FF0000 } /* Error */ 7 | .k { color: #008000; font-weight: bold } /* Keyword */ 8 | .o { color: #666666 } /* Operator */ 9 | .cm { color: #408080; font-style: italic } /* Comment.Multiline */ 10 | .cp { color: #BC7A00 } /* Comment.Preproc */ 11 | .c1 { color: #408080; font-style: italic } /* Comment.Single */ 12 | .cs { color: #408080; font-style: italic } /* Comment.Special */ 13 | .gd { color: #A00000 } /* Generic.Deleted */ 14 | .ge { font-style: italic } /* Generic.Emph */ 15 | .gr { color: #FF0000 } /* Generic.Error */ 16 | .gh { color: #000080; font-weight: bold } /* Generic.Heading */ 17 | .gi { color: #00A000 } /* Generic.Inserted */ 18 | .go { color: #888888 } /* Generic.Output */ 19 | .gp { color: #000080; font-weight: bold } /* Generic.Prompt */ 20 | .gs { font-weight: bold } /* Generic.Strong */ 21 | .gu { color: #800080; font-weight: bold } /* Generic.Subheading */ 22 | .gt { color: #0044DD } /* Generic.Traceback */ 23 | .kc { color: #008000; font-weight: bold } /* Keyword.Constant */ 24 | .kd { color: #008000; font-weight: bold } /* Keyword.Declaration */ 25 | .kn { color: #008000; font-weight: bold } /* Keyword.Namespace */ 26 | .kp { color: #008000 } /* Keyword.Pseudo */ 27 | .kr { color: #008000; font-weight: bold } /* Keyword.Reserved */ 28 | .kt { color: #B00040 } /* Keyword.Type */ 29 | .m { color: #666666 } /* Literal.Number */ 30 | .s { color: #BA2121 } /* Literal.String */ 31 | .na { color: #7D9029 } /* Name.Attribute */ 32 | .nb { color: #008000 } /* Name.Builtin */ 33 | .nc { color: #0000FF; font-weight: bold } /* Name.Class */ 34 | .no { color: #880000 } /* Name.Constant */ 35 | .nd { color: #AA22FF } /* Name.Decorator */ 36 | .ni { color: #999999; font-weight: bold } /* Name.Entity */ 37 | .ne { color: #D2413A; font-weight: bold } /* Name.Exception */ 38 | .nf { color: #0000FF } /* Name.Function */ 39 | .nl { color: #A0A000 } /* Name.Label */ 40 | .nn { color: #0000FF; font-weight: bold } /* Name.Namespace */ 41 | .nt { color: #008000; font-weight: bold } /* Name.Tag */ 42 | .nv { color: #19177C } /* Name.Variable */ 43 | .ow { color: #AA22FF; font-weight: bold } /* Operator.Word */ 44 | .w { color: #bbbbbb } /* Text.Whitespace */ 45 | .mf { color: #666666 } /* Literal.Number.Float */ 46 | .mh { color: #666666 } /* Literal.Number.Hex */ 47 | .mi { color: #666666 } /* Literal.Number.Integer */ 48 | .mo { color: #666666 } /* Literal.Number.Oct */ 49 | .sb { color: #BA2121 } /* Literal.String.Backtick */ 50 | .sc { color: #BA2121 } /* Literal.String.Char */ 51 | .sd { color: #BA2121; font-style: italic } /* Literal.String.Doc */ 52 | .s2 { color: #BA2121 } /* Literal.String.Double */ 53 | .se { color: #BB6622; font-weight: bold } /* Literal.String.Escape */ 54 | .sh { color: #BA2121 } /* Literal.String.Heredoc */ 55 | .si { color: #BB6688; font-weight: bold } /* Literal.String.Interpol */ 56 | .sx { color: #008000 } /* Literal.String.Other */ 57 | .sr { color: #BB6688 } /* Literal.String.Regex */ 58 | .s1 { color: #BA2121 } /* Literal.String.Single */ 59 | .ss { color: #19177C } /* Literal.String.Symbol */ 60 | .bp { color: #008000 } /* Name.Builtin.Pseudo */ 61 | .vc { color: #19177C } /* Name.Variable.Class */ 62 | .vg { color: #19177C } /* Name.Variable.Global */ 63 | .vi { color: #19177C } /* Name.Variable.Instance */ 64 | .il { color: #666666 } /* Literal.Number.Integer.Long */ 65 | -------------------------------------------------------------------------------- /index.md: -------------------------------------------------------------------------------- 1 | --- 2 | title: JSZipUtils 3 | layout: default 4 | --- 5 | 6 | A collection of cross-browser utilities to go along with JSZip, see 7 | http://stuk.github.io/jszip-utils for all the documentation. 8 | 9 | It has two parts, one for every browsers and one for IE < 10. To use it : 10 | 11 | ```html 12 | 13 | 16 | 19 | ``` 20 | 21 | License 22 | ------- 23 | 24 | JSZipUtils is dual-licensed. You may use it under the MIT license *or* the GPLv3 25 | license. See LICENSE.markdown. 26 | -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | /*globals Promise */ 3 | 4 | var JSZipUtils = {}; 5 | // just use the responseText with xhr1, response with xhr2. 6 | // The transformation doesn't throw away high-order byte (with responseText) 7 | // because JSZip handles that case. If not used with JSZip, you may need to 8 | // do it, see https://developer.mozilla.org/En/Using_XMLHttpRequest#Handling_binary_data 9 | JSZipUtils._getBinaryFromXHR = function (xhr) { 10 | // for xhr.responseText, the 0xFF mask is applied by JSZip 11 | return xhr.response || xhr.responseText; 12 | }; 13 | 14 | // taken from jQuery 15 | function createStandardXHR() { 16 | try { 17 | return new window.XMLHttpRequest(); 18 | } catch( e ) {} 19 | } 20 | 21 | function createActiveXHR() { 22 | try { 23 | return new window.ActiveXObject("Microsoft.XMLHTTP"); 24 | } catch( e ) {} 25 | } 26 | 27 | // Create the request object 28 | var createXHR = (typeof window !== "undefined" && window.ActiveXObject) ? 29 | /* Microsoft failed to properly 30 | * implement the XMLHttpRequest in IE7 (can't request local files), 31 | * so we use the ActiveXObject when it is available 32 | * Additionally XMLHttpRequest can be disabled in IE7/IE8 so 33 | * we need a fallback. 34 | */ 35 | function() { 36 | return createStandardXHR() || createActiveXHR(); 37 | } : 38 | // For all other browsers, use the standard XMLHttpRequest object 39 | createStandardXHR; 40 | 41 | 42 | /** 43 | * @param {string} path The path to the resource to GET. 44 | * @param {function|{callback: function, progress: function}} options 45 | * @return {Promise|undefined} If no callback is passed then a promise is returned 46 | */ 47 | JSZipUtils.getBinaryContent = function (path, options) { 48 | var promise, resolve, reject; 49 | var callback; 50 | 51 | if (!options) { 52 | options = {}; 53 | } 54 | 55 | // backward compatible callback 56 | if (typeof options === "function") { 57 | callback = options; 58 | options = {}; 59 | } else if (typeof options.callback === 'function') { 60 | // callback inside options object 61 | callback = options.callback; 62 | } 63 | 64 | if (!callback && typeof Promise !== "undefined") { 65 | promise = new Promise(function (_resolve, _reject) { 66 | resolve = _resolve; 67 | reject = _reject; 68 | }); 69 | } else { 70 | resolve = function (data) { callback(null, data); }; 71 | reject = function (err) { callback(err, null); }; 72 | } 73 | 74 | /* 75 | * Here is the tricky part : getting the data. 76 | * In firefox/chrome/opera/... setting the mimeType to 'text/plain; charset=x-user-defined' 77 | * is enough, the result is in the standard xhr.responseText. 78 | * cf https://developer.mozilla.org/En/XMLHttpRequest/Using_XMLHttpRequest#Receiving_binary_data_in_older_browsers 79 | * In IE <= 9, we must use (the IE only) attribute responseBody 80 | * (for binary data, its content is different from responseText). 81 | * In IE 10, the 'charset=x-user-defined' trick doesn't work, only the 82 | * responseType will work : 83 | * http://msdn.microsoft.com/en-us/library/ie/hh673569%28v=vs.85%29.aspx#Binary_Object_upload_and_download 84 | * 85 | * I'd like to use jQuery to avoid this XHR madness, but it doesn't support 86 | * the responseType attribute : http://bugs.jquery.com/ticket/11461 87 | */ 88 | try { 89 | var xhr = createXHR(); 90 | 91 | xhr.open('GET', path, true); 92 | 93 | // recent browsers 94 | if ("responseType" in xhr) { 95 | xhr.responseType = "arraybuffer"; 96 | } 97 | 98 | // older browser 99 | if(xhr.overrideMimeType) { 100 | xhr.overrideMimeType("text/plain; charset=x-user-defined"); 101 | } 102 | 103 | xhr.onreadystatechange = function (event) { 104 | // use `xhr` and not `this`... thanks IE 105 | if (xhr.readyState === 4) { 106 | if (xhr.status === 200 || xhr.status === 0) { 107 | try { 108 | resolve(JSZipUtils._getBinaryFromXHR(xhr)); 109 | } catch(err) { 110 | reject(new Error(err)); 111 | } 112 | } else { 113 | reject(new Error("Ajax error for " + path + " : " + this.status + " " + this.statusText)); 114 | } 115 | } 116 | }; 117 | 118 | if(options.progress) { 119 | xhr.onprogress = function(e) { 120 | options.progress({ 121 | path: path, 122 | originalEvent: e, 123 | percent: e.loaded / e.total * 100, 124 | loaded: e.loaded, 125 | total: e.total 126 | }); 127 | }; 128 | } 129 | 130 | xhr.send(); 131 | 132 | } catch (e) { 133 | reject(new Error(e), null); 134 | } 135 | 136 | // returns a promise or undefined depending on whether a callback was 137 | // provided 138 | return promise; 139 | }; 140 | 141 | // export 142 | module.exports = JSZipUtils; 143 | 144 | // enforcing Stuk's coding style 145 | // vim: set shiftwidth=4 softtabstop=4: 146 | -------------------------------------------------------------------------------- /lib/index_IE.js: -------------------------------------------------------------------------------- 1 | /* jshint evil: true, newcap: false */ 2 | /* global IEBinaryToArray_ByteStr, IEBinaryToArray_ByteStr_Last */ 3 | "use strict"; 4 | 5 | // Adapted from http://stackoverflow.com/questions/1095102/how-do-i-load-binary-image-data-using-javascript-and-xmlhttprequest 6 | var IEBinaryToArray_ByteStr_Script = 7 | "\r\n"+ 8 | "\r\n"; 22 | 23 | // inject VBScript 24 | document.write(IEBinaryToArray_ByteStr_Script); 25 | 26 | global.JSZipUtils._getBinaryFromXHR = function (xhr) { 27 | var binary = xhr.responseBody; 28 | var byteMapping = {}; 29 | for ( var i = 0; i < 256; i++ ) { 30 | for ( var j = 0; j < 256; j++ ) { 31 | byteMapping[ String.fromCharCode( i + (j << 8) ) ] = 32 | String.fromCharCode(i) + String.fromCharCode(j); 33 | } 34 | } 35 | var rawBytes = IEBinaryToArray_ByteStr(binary); 36 | var lastChr = IEBinaryToArray_ByteStr_Last(binary); 37 | return rawBytes.replace(/[\s\S]/g, function( match ) { 38 | return byteMapping[match]; 39 | }) + lastChr; 40 | }; 41 | 42 | // enforcing Stuk's coding style 43 | // vim: set shiftwidth=4 softtabstop=4: 44 | -------------------------------------------------------------------------------- /lib/license_header.js: -------------------------------------------------------------------------------- 1 | /*@preserve 2 | 3 | JSZipUtils - A collection of cross-browser utilities to go along with JSZip. 4 | 5 | 6 | (c) 2014-2019 Stuart Knightley, David Duponchel 7 | Dual licenced under the MIT license or GPLv3. See https://raw.github.com/Stuk/jszip-utils/master/LICENSE.markdown. 8 | 9 | */ 10 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jszip-utils", 3 | "version": "0.1.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "Base64": { 8 | "version": "0.1.4", 9 | "resolved": "https://registry.npmjs.org/Base64/-/Base64-0.1.4.tgz", 10 | "integrity": "sha1-6fbGvvVn/WNepBYqsU3TKedKpt4=", 11 | "dev": true 12 | }, 13 | "JSONStream": { 14 | "version": "0.6.4", 15 | "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-0.6.4.tgz", 16 | "integrity": "sha1-SyyAY/j1Enh7I3X37p22kgj6Lcs=", 17 | "dev": true, 18 | "requires": { 19 | "jsonparse": "0.0.5", 20 | "through": "2.2.7" 21 | }, 22 | "dependencies": { 23 | "through": { 24 | "version": "2.2.7", 25 | "resolved": "https://registry.npmjs.org/through/-/through-2.2.7.tgz", 26 | "integrity": "sha1-bo4hIAGR1OtqmfbwEN9Gqhxusr0=", 27 | "dev": true 28 | } 29 | } 30 | }, 31 | "abbrev": { 32 | "version": "1.1.1", 33 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 34 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 35 | "dev": true 36 | }, 37 | "accepts": { 38 | "version": "1.3.7", 39 | "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", 40 | "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", 41 | "dev": true, 42 | "requires": { 43 | "mime-types": "2.1.24", 44 | "negotiator": "0.6.2" 45 | } 46 | }, 47 | "adm-zip": { 48 | "version": "0.4.13", 49 | "resolved": "https://registry.npmjs.org/adm-zip/-/adm-zip-0.4.13.tgz", 50 | "integrity": "sha512-fERNJX8sOXfel6qCBCMPvZLzENBEhZTzKqg6vrOW5pvoEaQuJhRU4ndTAh6lHOxn1I6jnz2NHra56ZODM751uw==", 51 | "dev": true 52 | }, 53 | "agent-base": { 54 | "version": "4.3.0", 55 | "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-4.3.0.tgz", 56 | "integrity": "sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg==", 57 | "dev": true, 58 | "requires": { 59 | "es6-promisify": "5.0.0" 60 | } 61 | }, 62 | "ajv": { 63 | "version": "6.10.0", 64 | "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.10.0.tgz", 65 | "integrity": "sha512-nffhOpkymDECQyR0mnsUtoCE8RlX38G0rYP+wgLWFyZuUyuuojSSvi/+euOiQBIn63whYwYVIIH1TvE3tu4OEg==", 66 | "dev": true, 67 | "requires": { 68 | "fast-deep-equal": "2.0.1", 69 | "fast-json-stable-stringify": "2.0.0", 70 | "json-schema-traverse": "0.4.1", 71 | "uri-js": "4.2.2" 72 | } 73 | }, 74 | "amdefine": { 75 | "version": "1.0.1", 76 | "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", 77 | "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=", 78 | "dev": true 79 | }, 80 | "ansi-regex": { 81 | "version": "2.1.1", 82 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-2.1.1.tgz", 83 | "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", 84 | "dev": true 85 | }, 86 | "ansi-styles": { 87 | "version": "3.2.1", 88 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 89 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 90 | "dev": true, 91 | "requires": { 92 | "color-convert": "1.9.3" 93 | } 94 | }, 95 | "argparse": { 96 | "version": "0.1.16", 97 | "resolved": "https://registry.npmjs.org/argparse/-/argparse-0.1.16.tgz", 98 | "integrity": "sha1-z9AeD7uj1srtBJ+9dY1A9lGW9Xw=", 99 | "dev": true, 100 | "requires": { 101 | "underscore": "1.7.0", 102 | "underscore.string": "2.4.0" 103 | }, 104 | "dependencies": { 105 | "underscore": { 106 | "version": "1.7.0", 107 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.7.0.tgz", 108 | "integrity": "sha1-a7rwh3UA02vjTsqlhODbn+8DUgk=", 109 | "dev": true 110 | }, 111 | "underscore.string": { 112 | "version": "2.4.0", 113 | "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.4.0.tgz", 114 | "integrity": "sha1-jN2PusTi0uoefi6Al8QvRCKA+Fs=", 115 | "dev": true 116 | } 117 | } 118 | }, 119 | "asn1": { 120 | "version": "0.2.4", 121 | "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.4.tgz", 122 | "integrity": "sha512-jxwzQpLQjSmWXgwaCZE9Nz+glAG01yF1QnWgbhGwHI5A6FRIEY6IVqtHhIepHqI7/kyEyQEagBC5mBEFlIYvdg==", 123 | "dev": true, 124 | "requires": { 125 | "safer-buffer": "2.1.2" 126 | } 127 | }, 128 | "assert": { 129 | "version": "1.4.1", 130 | "resolved": "https://registry.npmjs.org/assert/-/assert-1.4.1.tgz", 131 | "integrity": "sha1-mZEtWRg2tab1s0XA8H7vwI/GXZE=", 132 | "dev": true, 133 | "requires": { 134 | "util": "0.10.3" 135 | } 136 | }, 137 | "assert-plus": { 138 | "version": "1.0.0", 139 | "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", 140 | "integrity": "sha1-8S4PPF13sLHN2RRpQuTpbB5N1SU=", 141 | "dev": true 142 | }, 143 | "astw": { 144 | "version": "0.0.0", 145 | "resolved": "https://registry.npmjs.org/astw/-/astw-0.0.0.tgz", 146 | "integrity": "sha1-RJCGaj7xFqr5GtumPKfd9wttWb0=", 147 | "dev": true, 148 | "requires": { 149 | "esprima": "1.0.2" 150 | } 151 | }, 152 | "async": { 153 | "version": "0.2.10", 154 | "resolved": "https://registry.npmjs.org/async/-/async-0.2.10.tgz", 155 | "integrity": "sha1-trvgsGdLnXGXCMo43owjfLUmw9E=", 156 | "dev": true 157 | }, 158 | "async-limiter": { 159 | "version": "1.0.0", 160 | "resolved": "https://registry.npmjs.org/async-limiter/-/async-limiter-1.0.0.tgz", 161 | "integrity": "sha512-jp/uFnooOiO+L211eZOoSyzpOITMXx1rBITauYykG3BRYPu8h0UcxsPNB04RR5vo4Tyz3+ay17tR6JVf9qzYWg==", 162 | "dev": true 163 | }, 164 | "asynckit": { 165 | "version": "0.4.0", 166 | "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", 167 | "integrity": "sha1-x57Zf380y48robyXkLzDZkdLS3k=", 168 | "dev": true 169 | }, 170 | "aws-sign2": { 171 | "version": "0.7.0", 172 | "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", 173 | "integrity": "sha1-tG6JCTSpWR8tL2+G1+ap8bP+dqg=", 174 | "dev": true 175 | }, 176 | "aws4": { 177 | "version": "1.8.0", 178 | "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.8.0.tgz", 179 | "integrity": "sha512-ReZxvNHIOv88FlT7rxcXIIC0fPt4KZqZbOlivyWtXLt8ESx84zd3kMC6iK5jVeS2qt+g7ftS7ye4fi06X5rtRQ==", 180 | "dev": true 181 | }, 182 | "balanced-match": { 183 | "version": "1.0.0", 184 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", 185 | "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", 186 | "dev": true 187 | }, 188 | "base64-js": { 189 | "version": "0.0.8", 190 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.8.tgz", 191 | "integrity": "sha1-EQHpVE9KdrG8OybUUsqW16NeeXg=", 192 | "dev": true 193 | }, 194 | "basic-auth": { 195 | "version": "2.0.1", 196 | "resolved": "https://registry.npmjs.org/basic-auth/-/basic-auth-2.0.1.tgz", 197 | "integrity": "sha512-NF+epuEdnUYVlGuhaxbbq+dvJttwLnGY+YixlXlME5KpQ5W3CnXA5cVTneY3SPbPDRkcjMbifrwmFYcClgOZeg==", 198 | "dev": true, 199 | "requires": { 200 | "safe-buffer": "5.1.2" 201 | } 202 | }, 203 | "batch": { 204 | "version": "0.6.1", 205 | "resolved": "https://registry.npmjs.org/batch/-/batch-0.6.1.tgz", 206 | "integrity": "sha1-3DQxT05nkxgJP8dgJyUl+UvyXBY=", 207 | "dev": true 208 | }, 209 | "bcrypt-pbkdf": { 210 | "version": "1.0.2", 211 | "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", 212 | "integrity": "sha1-pDAdOJtqQ/m2f/PKEaP2Y342Dp4=", 213 | "dev": true, 214 | "requires": { 215 | "tweetnacl": "0.14.5" 216 | } 217 | }, 218 | "bops": { 219 | "version": "0.0.6", 220 | "resolved": "https://registry.npmjs.org/bops/-/bops-0.0.6.tgz", 221 | "integrity": "sha1-CC0dVfoB5g29wuvC26N/ZZVUzzo=", 222 | "dev": true, 223 | "requires": { 224 | "base64-js": "0.0.2", 225 | "to-utf8": "0.0.1" 226 | }, 227 | "dependencies": { 228 | "base64-js": { 229 | "version": "0.0.2", 230 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-0.0.2.tgz", 231 | "integrity": "sha1-Ak8Pcq+iW3X5wO5zzU9V7Bvtl4Q=", 232 | "dev": true 233 | } 234 | } 235 | }, 236 | "brace-expansion": { 237 | "version": "1.1.11", 238 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", 239 | "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", 240 | "dev": true, 241 | "requires": { 242 | "balanced-match": "1.0.0", 243 | "concat-map": "0.0.1" 244 | } 245 | }, 246 | "browser-builtins": { 247 | "version": "2.0.5", 248 | "resolved": "https://registry.npmjs.org/browser-builtins/-/browser-builtins-2.0.5.tgz", 249 | "integrity": "sha1-ETuPZx9G4McJ3tg4dQy2BMQQIjs=", 250 | "dev": true, 251 | "requires": { 252 | "buffer-browserify": "0.2.5", 253 | "console-browserify": "1.0.3", 254 | "constants-browserify": "0.0.1", 255 | "crypto-browserify": "1.0.9", 256 | "http-browserify": "0.1.14", 257 | "os-browserify": "0.1.2", 258 | "punycode": "1.2.4", 259 | "vm-browserify": "0.0.4", 260 | "zlib-browserify": "0.0.1" 261 | } 262 | }, 263 | "browser-pack": { 264 | "version": "1.1.0", 265 | "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-1.1.0.tgz", 266 | "integrity": "sha1-go2fbR93wMVqnLVzdfcI3yWkaXc=", 267 | "dev": true, 268 | "requires": { 269 | "JSONStream": "0.6.4", 270 | "combine-source-map": "0.3.0", 271 | "through": "2.3.8" 272 | } 273 | }, 274 | "browser-resolve": { 275 | "version": "1.1.4", 276 | "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-1.1.4.tgz", 277 | "integrity": "sha1-/Ds5/7BgwonYZmiHC1EybfDnatw=", 278 | "dev": true, 279 | "requires": { 280 | "resolve": "0.5.1" 281 | } 282 | }, 283 | "browserify": { 284 | "version": "2.35.4", 285 | "resolved": "https://registry.npmjs.org/browserify/-/browserify-2.35.4.tgz", 286 | "integrity": "sha1-8oV2kUj5HdZfqik6FEmEp7rgYY0=", 287 | "dev": true, 288 | "requires": { 289 | "JSONStream": "0.6.4", 290 | "browser-builtins": "2.0.5", 291 | "browser-pack": "1.1.0", 292 | "browser-resolve": "1.1.4", 293 | "concat-stream": "1.0.1", 294 | "deep-equal": "0.1.2", 295 | "deps-sort": "0.1.2", 296 | "duplexer": "0.1.1", 297 | "inherits": "1.0.2", 298 | "insert-module-globals": "1.3.1", 299 | "module-deps": "1.0.2", 300 | "optimist": "0.5.2", 301 | "parents": "0.0.3", 302 | "shell-quote": "0.0.1", 303 | "stream-combiner": "0.0.4", 304 | "syntax-error": "0.0.1", 305 | "through": "2.3.8", 306 | "umd": "1.3.1" 307 | } 308 | }, 309 | "browserify-shim": { 310 | "version": "2.0.10", 311 | "resolved": "https://registry.npmjs.org/browserify-shim/-/browserify-shim-2.0.10.tgz", 312 | "integrity": "sha1-dKDtW5t4SlooeQZROoltMfVKhLg=", 313 | "dev": true, 314 | "requires": { 315 | "through": "2.3.8" 316 | } 317 | }, 318 | "buffer-browserify": { 319 | "version": "0.2.5", 320 | "resolved": "https://registry.npmjs.org/buffer-browserify/-/buffer-browserify-0.2.5.tgz", 321 | "integrity": "sha1-Kcc51qTiR7U5q8CtoHNhIAIWOiE=", 322 | "dev": true, 323 | "requires": { 324 | "base64-js": "0.0.8" 325 | } 326 | }, 327 | "callsite": { 328 | "version": "1.0.0", 329 | "resolved": "https://registry.npmjs.org/callsite/-/callsite-1.0.0.tgz", 330 | "integrity": "sha1-KAOY5dZkvXQDi28JBRU+borxvCA=", 331 | "dev": true 332 | }, 333 | "camelcase": { 334 | "version": "1.2.1", 335 | "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-1.2.1.tgz", 336 | "integrity": "sha1-m7UwTS4LVmmLLHWLCKPqqdqlijk=", 337 | "dev": true 338 | }, 339 | "caseless": { 340 | "version": "0.12.0", 341 | "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", 342 | "integrity": "sha1-G2gcIf+EAzyCZUMJBolCDRhxUdw=", 343 | "dev": true 344 | }, 345 | "chalk": { 346 | "version": "2.4.2", 347 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", 348 | "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", 349 | "dev": true, 350 | "requires": { 351 | "ansi-styles": "3.2.1", 352 | "escape-string-regexp": "1.0.5", 353 | "supports-color": "5.5.0" 354 | } 355 | }, 356 | "cli": { 357 | "version": "0.4.5", 358 | "resolved": "https://registry.npmjs.org/cli/-/cli-0.4.5.tgz", 359 | "integrity": "sha1-ePlIXNFhtWbppsctcXDEJw6B22E=", 360 | "dev": true, 361 | "requires": { 362 | "glob": "3.1.21" 363 | } 364 | }, 365 | "coffee-script": { 366 | "version": "1.3.3", 367 | "resolved": "https://registry.npmjs.org/coffee-script/-/coffee-script-1.3.3.tgz", 368 | "integrity": "sha1-FQ1rTLUiiUNp7+1qIQHCC8f0pPQ=", 369 | "dev": true 370 | }, 371 | "color-convert": { 372 | "version": "1.9.3", 373 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 374 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 375 | "dev": true, 376 | "requires": { 377 | "color-name": "1.1.3" 378 | } 379 | }, 380 | "color-name": { 381 | "version": "1.1.3", 382 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 383 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", 384 | "dev": true 385 | }, 386 | "colors": { 387 | "version": "0.6.2", 388 | "resolved": "https://registry.npmjs.org/colors/-/colors-0.6.2.tgz", 389 | "integrity": "sha1-JCP+ZnisDF2uiFLl0OW+CMmXq8w=", 390 | "dev": true 391 | }, 392 | "combine-source-map": { 393 | "version": "0.3.0", 394 | "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.3.0.tgz", 395 | "integrity": "sha1-2edPWT2c1DgHMSy12EbUUe+qnrc=", 396 | "dev": true, 397 | "requires": { 398 | "convert-source-map": "0.3.5", 399 | "inline-source-map": "0.3.1", 400 | "source-map": "0.1.43" 401 | } 402 | }, 403 | "combined-stream": { 404 | "version": "1.0.8", 405 | "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", 406 | "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", 407 | "dev": true, 408 | "requires": { 409 | "delayed-stream": "1.0.0" 410 | } 411 | }, 412 | "commander": { 413 | "version": "2.20.0", 414 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.0.tgz", 415 | "integrity": "sha512-7j2y+40w61zy6YC2iRNpUe/NwhNyoXrYpHMrSunaMG64nRnaf96zO/KMQR4OyN/UnE5KLyEBnKHd4aG3rskjpQ==", 416 | "dev": true 417 | }, 418 | "commondir": { 419 | "version": "0.0.2", 420 | "resolved": "https://registry.npmjs.org/commondir/-/commondir-0.0.2.tgz", 421 | "integrity": "sha1-xJyIgMb+loRLs1Jd0ucxQFDDie4=", 422 | "dev": true 423 | }, 424 | "concat-map": { 425 | "version": "0.0.1", 426 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 427 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 428 | "dev": true 429 | }, 430 | "concat-stream": { 431 | "version": "1.0.1", 432 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.0.1.tgz", 433 | "integrity": "sha1-AYsYvBx9BzotyCqkhEI0GixN158=", 434 | "dev": true, 435 | "requires": { 436 | "bops": "0.0.6" 437 | } 438 | }, 439 | "connect": { 440 | "version": "3.7.0", 441 | "resolved": "https://registry.npmjs.org/connect/-/connect-3.7.0.tgz", 442 | "integrity": "sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ==", 443 | "dev": true, 444 | "requires": { 445 | "debug": "2.6.9", 446 | "finalhandler": "1.1.2", 447 | "parseurl": "1.3.3", 448 | "utils-merge": "1.0.1" 449 | } 450 | }, 451 | "connect-livereload": { 452 | "version": "0.6.1", 453 | "resolved": "https://registry.npmjs.org/connect-livereload/-/connect-livereload-0.6.1.tgz", 454 | "integrity": "sha512-3R0kMOdL7CjJpU66fzAkCe6HNtd3AavCS4m+uW4KtJjrdGPT0SQEZieAYd+cm+lJoBznNQ4lqipYWkhBMgk00g==", 455 | "dev": true 456 | }, 457 | "console-browserify": { 458 | "version": "1.0.3", 459 | "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.0.3.tgz", 460 | "integrity": "sha1-04mNLDqTEC82QZf4h0tPkrUoao4=", 461 | "dev": true 462 | }, 463 | "constants-browserify": { 464 | "version": "0.0.1", 465 | "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-0.0.1.tgz", 466 | "integrity": "sha1-kld9tSe6bEzwpFaNhLwDH0QeIfI=", 467 | "dev": true 468 | }, 469 | "convert-source-map": { 470 | "version": "0.3.5", 471 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-0.3.5.tgz", 472 | "integrity": "sha1-8dgClQr33SYxof6+BZZVDIarMZA=", 473 | "dev": true 474 | }, 475 | "core-util-is": { 476 | "version": "1.0.2", 477 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 478 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 479 | "dev": true 480 | }, 481 | "crypto-browserify": { 482 | "version": "1.0.9", 483 | "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-1.0.9.tgz", 484 | "integrity": "sha1-zFRJaF37hesRyYKKzHy4erW7/MA=", 485 | "dev": true 486 | }, 487 | "dashdash": { 488 | "version": "1.14.1", 489 | "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", 490 | "integrity": "sha1-hTz6D3y+L+1d4gMmuN1YEDX24vA=", 491 | "dev": true, 492 | "requires": { 493 | "assert-plus": "1.0.0" 494 | } 495 | }, 496 | "dateformat": { 497 | "version": "1.0.2-1.2.3", 498 | "resolved": "https://registry.npmjs.org/dateformat/-/dateformat-1.0.2-1.2.3.tgz", 499 | "integrity": "sha1-sCIMAt6YYXQztyhRz0fePfLNvuk=", 500 | "dev": true 501 | }, 502 | "debug": { 503 | "version": "2.6.9", 504 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 505 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 506 | "dev": true, 507 | "requires": { 508 | "ms": "2.0.0" 509 | } 510 | }, 511 | "decamelize": { 512 | "version": "1.2.0", 513 | "resolved": "https://registry.npmjs.org/decamelize/-/decamelize-1.2.0.tgz", 514 | "integrity": "sha1-9lNNFRSCabIDUue+4m9QH5oZEpA=", 515 | "dev": true 516 | }, 517 | "deep-equal": { 518 | "version": "0.1.2", 519 | "resolved": "https://registry.npmjs.org/deep-equal/-/deep-equal-0.1.2.tgz", 520 | "integrity": "sha1-skbCuApXCkfBG+HZvRBw7IeLh84=", 521 | "dev": true 522 | }, 523 | "delayed-stream": { 524 | "version": "1.0.0", 525 | "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", 526 | "integrity": "sha1-3zrhmayt+31ECqrgsp4icrJOxhk=", 527 | "dev": true 528 | }, 529 | "depd": { 530 | "version": "1.1.2", 531 | "resolved": "https://registry.npmjs.org/depd/-/depd-1.1.2.tgz", 532 | "integrity": "sha1-m81S4UwJd2PnSbJ0xDRu0uVgtak=", 533 | "dev": true 534 | }, 535 | "deps-sort": { 536 | "version": "0.1.2", 537 | "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-0.1.2.tgz", 538 | "integrity": "sha1-2qL7YUoXyWN9gB4vVTOa43DzYRo=", 539 | "dev": true, 540 | "requires": { 541 | "JSONStream": "0.6.4", 542 | "minimist": "0.0.10", 543 | "through": "2.3.8" 544 | } 545 | }, 546 | "destroy": { 547 | "version": "1.0.4", 548 | "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", 549 | "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", 550 | "dev": true 551 | }, 552 | "detective": { 553 | "version": "2.1.2", 554 | "resolved": "https://registry.npmjs.org/detective/-/detective-2.1.2.tgz", 555 | "integrity": "sha1-0irZ8YyC77P1X+4uJEiD2mu7jjc=", 556 | "dev": true, 557 | "requires": { 558 | "escodegen": "0.0.15", 559 | "esprima": "1.0.2" 560 | } 561 | }, 562 | "duplexer": { 563 | "version": "0.1.1", 564 | "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.1.tgz", 565 | "integrity": "sha1-rOb/gIwc5mtX0ev5eXessCM0z8E=", 566 | "dev": true 567 | }, 568 | "duplexify": { 569 | "version": "3.7.1", 570 | "resolved": "https://registry.npmjs.org/duplexify/-/duplexify-3.7.1.tgz", 571 | "integrity": "sha512-07z8uv2wMyS51kKhD1KsdXJg5WQ6t93RneqRxUHnskXVtlYYkLqM0gqStQZ3pj073g687jPCHrqNfCzawLYh5g==", 572 | "dev": true, 573 | "requires": { 574 | "end-of-stream": "1.4.1", 575 | "inherits": "2.0.4", 576 | "readable-stream": "2.3.6", 577 | "stream-shift": "1.0.0" 578 | }, 579 | "dependencies": { 580 | "inherits": { 581 | "version": "2.0.4", 582 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 583 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 584 | "dev": true 585 | } 586 | } 587 | }, 588 | "ecc-jsbn": { 589 | "version": "0.1.2", 590 | "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", 591 | "integrity": "sha1-OoOpBOVDUyh4dMVkt1SThoSamMk=", 592 | "dev": true, 593 | "requires": { 594 | "jsbn": "0.1.1", 595 | "safer-buffer": "2.1.2" 596 | } 597 | }, 598 | "ee-first": { 599 | "version": "1.1.1", 600 | "resolved": "https://registry.npmjs.org/ee-first/-/ee-first-1.1.1.tgz", 601 | "integrity": "sha1-WQxhFWsK4vTwJVcyoViyZrxWsh0=", 602 | "dev": true 603 | }, 604 | "encodeurl": { 605 | "version": "1.0.2", 606 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 607 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", 608 | "dev": true 609 | }, 610 | "end-of-stream": { 611 | "version": "1.4.1", 612 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.1.tgz", 613 | "integrity": "sha512-1MkrZNvWTKCaigbn+W15elq2BB/L22nqrSY5DKlo3X6+vclJm8Bb5djXJBmEX6fS3+zCh/F4VBK5Z2KxJt4s2Q==", 614 | "dev": true, 615 | "requires": { 616 | "once": "1.4.0" 617 | } 618 | }, 619 | "es6-promise": { 620 | "version": "4.2.8", 621 | "resolved": "https://registry.npmjs.org/es6-promise/-/es6-promise-4.2.8.tgz", 622 | "integrity": "sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w==", 623 | "dev": true 624 | }, 625 | "es6-promisify": { 626 | "version": "5.0.0", 627 | "resolved": "https://registry.npmjs.org/es6-promisify/-/es6-promisify-5.0.0.tgz", 628 | "integrity": "sha1-UQnWLz5W6pZ8S2NQWu8IKRyKUgM=", 629 | "dev": true, 630 | "requires": { 631 | "es6-promise": "4.2.8" 632 | } 633 | }, 634 | "escape-html": { 635 | "version": "1.0.3", 636 | "resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz", 637 | "integrity": "sha1-Aljq5NPQwJdN4cFpGI7wBR0dGYg=", 638 | "dev": true 639 | }, 640 | "escape-string-regexp": { 641 | "version": "1.0.5", 642 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", 643 | "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", 644 | "dev": true 645 | }, 646 | "escodegen": { 647 | "version": "0.0.15", 648 | "resolved": "https://registry.npmjs.org/escodegen/-/escodegen-0.0.15.tgz", 649 | "integrity": "sha1-/9qcsmtws098wZ8diHVlOa+1Q70=", 650 | "dev": true, 651 | "requires": { 652 | "esprima": "1.0.2", 653 | "source-map": "0.1.43" 654 | } 655 | }, 656 | "esprima": { 657 | "version": "1.0.2", 658 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-1.0.2.tgz", 659 | "integrity": "sha1-gDm/nOrE2dLBX2IyZPspK1UCzq8=", 660 | "dev": true 661 | }, 662 | "etag": { 663 | "version": "1.8.1", 664 | "resolved": "https://registry.npmjs.org/etag/-/etag-1.8.1.tgz", 665 | "integrity": "sha1-Qa4u62XvpiJorr/qg6x9eSmbCIc=", 666 | "dev": true 667 | }, 668 | "eventemitter2": { 669 | "version": "0.4.14", 670 | "resolved": "https://registry.npmjs.org/eventemitter2/-/eventemitter2-0.4.14.tgz", 671 | "integrity": "sha1-j2G3XN4BKy6esoTUVFWDtWQ7Yas=", 672 | "dev": true 673 | }, 674 | "events": { 675 | "version": "1.1.1", 676 | "resolved": "https://registry.npmjs.org/events/-/events-1.1.1.tgz", 677 | "integrity": "sha1-nr23Y1rQmccNzEwqH1AEKI6L2SQ=", 678 | "dev": true 679 | }, 680 | "exit": { 681 | "version": "0.1.2", 682 | "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", 683 | "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", 684 | "dev": true 685 | }, 686 | "extend": { 687 | "version": "3.0.2", 688 | "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", 689 | "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==", 690 | "dev": true 691 | }, 692 | "extsprintf": { 693 | "version": "1.3.0", 694 | "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", 695 | "integrity": "sha1-lpGEQOMEGnpBT4xS48V06zw+HgU=", 696 | "dev": true 697 | }, 698 | "fast-deep-equal": { 699 | "version": "2.0.1", 700 | "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-2.0.1.tgz", 701 | "integrity": "sha1-ewUhjd+WZ79/Nwv3/bLLFf3Qqkk=", 702 | "dev": true 703 | }, 704 | "fast-json-stable-stringify": { 705 | "version": "2.0.0", 706 | "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.0.0.tgz", 707 | "integrity": "sha1-1RQsDK7msRifh9OnYREGT4bIu/I=", 708 | "dev": true 709 | }, 710 | "fg-lodash": { 711 | "version": "0.0.2", 712 | "resolved": "https://registry.npmjs.org/fg-lodash/-/fg-lodash-0.0.2.tgz", 713 | "integrity": "sha1-mINSU39CfaavIiEpu2OsyknmL6M=", 714 | "dev": true, 715 | "requires": { 716 | "lodash": "2.4.2", 717 | "underscore.string": "2.3.3" 718 | }, 719 | "dependencies": { 720 | "lodash": { 721 | "version": "2.4.2", 722 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", 723 | "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", 724 | "dev": true 725 | }, 726 | "underscore.string": { 727 | "version": "2.3.3", 728 | "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", 729 | "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", 730 | "dev": true 731 | } 732 | } 733 | }, 734 | "figures": { 735 | "version": "1.7.0", 736 | "resolved": "https://registry.npmjs.org/figures/-/figures-1.7.0.tgz", 737 | "integrity": "sha1-y+Hjr/zxzUS4DK3+0o3Hk6lwHS4=", 738 | "dev": true, 739 | "requires": { 740 | "escape-string-regexp": "1.0.5", 741 | "object-assign": "4.1.1" 742 | } 743 | }, 744 | "finalhandler": { 745 | "version": "1.1.2", 746 | "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.1.2.tgz", 747 | "integrity": "sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA==", 748 | "dev": true, 749 | "requires": { 750 | "debug": "2.6.9", 751 | "encodeurl": "1.0.2", 752 | "escape-html": "1.0.3", 753 | "on-finished": "2.3.0", 754 | "parseurl": "1.3.3", 755 | "statuses": "1.5.0", 756 | "unpipe": "1.0.0" 757 | } 758 | }, 759 | "findup-sync": { 760 | "version": "0.1.3", 761 | "resolved": "https://registry.npmjs.org/findup-sync/-/findup-sync-0.1.3.tgz", 762 | "integrity": "sha1-fz56l7gjksZTvwZYm9hRkOk8NoM=", 763 | "dev": true, 764 | "requires": { 765 | "glob": "3.2.11", 766 | "lodash": "2.4.2" 767 | }, 768 | "dependencies": { 769 | "glob": { 770 | "version": "3.2.11", 771 | "resolved": "https://registry.npmjs.org/glob/-/glob-3.2.11.tgz", 772 | "integrity": "sha1-Spc/Y1uRkPcV0QmH1cAP0oFevj0=", 773 | "dev": true, 774 | "requires": { 775 | "inherits": "2.0.4", 776 | "minimatch": "0.3.0" 777 | } 778 | }, 779 | "inherits": { 780 | "version": "2.0.4", 781 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 782 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 783 | "dev": true 784 | }, 785 | "lodash": { 786 | "version": "2.4.2", 787 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", 788 | "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", 789 | "dev": true 790 | }, 791 | "minimatch": { 792 | "version": "0.3.0", 793 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.3.0.tgz", 794 | "integrity": "sha1-J12O2qxPG7MyZHIInnlJyDlGmd0=", 795 | "dev": true, 796 | "requires": { 797 | "lru-cache": "2.7.3", 798 | "sigmund": "1.0.1" 799 | } 800 | } 801 | } 802 | }, 803 | "forever-agent": { 804 | "version": "0.6.1", 805 | "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", 806 | "integrity": "sha1-+8cfDEGt6zf5bFd60e1C2P2sypE=", 807 | "dev": true 808 | }, 809 | "form-data": { 810 | "version": "2.3.3", 811 | "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", 812 | "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", 813 | "dev": true, 814 | "requires": { 815 | "asynckit": "0.4.0", 816 | "combined-stream": "1.0.8", 817 | "mime-types": "2.1.24" 818 | } 819 | }, 820 | "fresh": { 821 | "version": "0.5.2", 822 | "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", 823 | "integrity": "sha1-PYyt2Q2XZWn6g1qx+OSyOhBWBac=", 824 | "dev": true 825 | }, 826 | "fs.realpath": { 827 | "version": "1.0.0", 828 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 829 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 830 | "dev": true 831 | }, 832 | "getobject": { 833 | "version": "0.1.0", 834 | "resolved": "https://registry.npmjs.org/getobject/-/getobject-0.1.0.tgz", 835 | "integrity": "sha1-BHpEl4n6Fg0Bj1SG7ZEyC27HiFw=", 836 | "dev": true 837 | }, 838 | "getpass": { 839 | "version": "0.1.7", 840 | "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", 841 | "integrity": "sha1-Xv+OPmhNVprkyysSgmBOi6YhSfo=", 842 | "dev": true, 843 | "requires": { 844 | "assert-plus": "1.0.0" 845 | } 846 | }, 847 | "glob": { 848 | "version": "3.1.21", 849 | "resolved": "https://registry.npmjs.org/glob/-/glob-3.1.21.tgz", 850 | "integrity": "sha1-0p4KBV3qUTj00H7UDomC6DwgZs0=", 851 | "dev": true, 852 | "requires": { 853 | "graceful-fs": "1.2.3", 854 | "inherits": "1.0.2", 855 | "minimatch": "0.2.14" 856 | } 857 | }, 858 | "graceful-fs": { 859 | "version": "1.2.3", 860 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-1.2.3.tgz", 861 | "integrity": "sha1-FaSAaldUfLLS2/J/QuiajDRRs2Q=", 862 | "dev": true 863 | }, 864 | "grunt": { 865 | "version": "0.4.5", 866 | "resolved": "https://registry.npmjs.org/grunt/-/grunt-0.4.5.tgz", 867 | "integrity": "sha1-VpN81RlDJK3/bSB2MYMqnWuk5/A=", 868 | "dev": true, 869 | "requires": { 870 | "async": "0.1.22", 871 | "coffee-script": "1.3.3", 872 | "colors": "0.6.2", 873 | "dateformat": "1.0.2-1.2.3", 874 | "eventemitter2": "0.4.14", 875 | "exit": "0.1.2", 876 | "findup-sync": "0.1.3", 877 | "getobject": "0.1.0", 878 | "glob": "3.1.21", 879 | "grunt-legacy-log": "0.1.3", 880 | "grunt-legacy-util": "0.2.0", 881 | "hooker": "0.2.3", 882 | "iconv-lite": "0.2.11", 883 | "js-yaml": "2.0.5", 884 | "lodash": "0.9.2", 885 | "minimatch": "0.2.14", 886 | "nopt": "1.0.10", 887 | "rimraf": "2.2.8", 888 | "underscore.string": "2.2.1", 889 | "which": "1.0.9" 890 | }, 891 | "dependencies": { 892 | "async": { 893 | "version": "0.1.22", 894 | "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz", 895 | "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=", 896 | "dev": true 897 | } 898 | } 899 | }, 900 | "grunt-browserify": { 901 | "version": "1.3.2", 902 | "resolved": "https://registry.npmjs.org/grunt-browserify/-/grunt-browserify-1.3.2.tgz", 903 | "integrity": "sha1-9rsWOuePS5cZexXDczzulV5LO2k=", 904 | "dev": true, 905 | "requires": { 906 | "async": "0.2.10", 907 | "browserify-shim": "2.0.10", 908 | "lodash": "2.4.2", 909 | "through": "2.3.8" 910 | }, 911 | "dependencies": { 912 | "lodash": { 913 | "version": "2.4.2", 914 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", 915 | "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", 916 | "dev": true 917 | } 918 | } 919 | }, 920 | "grunt-cli": { 921 | "version": "0.1.13", 922 | "resolved": "https://registry.npmjs.org/grunt-cli/-/grunt-cli-0.1.13.tgz", 923 | "integrity": "sha1-6evEBHYx9QEtkidww5N4EzytEPQ=", 924 | "dev": true, 925 | "requires": { 926 | "findup-sync": "0.1.3", 927 | "nopt": "1.0.10", 928 | "resolve": "0.3.1" 929 | }, 930 | "dependencies": { 931 | "resolve": { 932 | "version": "0.3.1", 933 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.3.1.tgz", 934 | "integrity": "sha1-NMY0R8ZkxwWY0cmxJvxDsqJDEKQ=", 935 | "dev": true 936 | } 937 | } 938 | }, 939 | "grunt-contrib-connect": { 940 | "version": "2.0.0", 941 | "resolved": "https://registry.npmjs.org/grunt-contrib-connect/-/grunt-contrib-connect-2.0.0.tgz", 942 | "integrity": "sha512-JVjM9UDP84WbT2S7swkyuwPuxFtT+zry/RUBuP3IT8LZPEQjtzzMwiM+qimswNKQ9plh5WhcFWaaqz2ruB9/DA==", 943 | "dev": true, 944 | "requires": { 945 | "async": "2.6.2", 946 | "connect": "3.7.0", 947 | "connect-livereload": "0.6.1", 948 | "morgan": "1.9.1", 949 | "node-http2": "4.0.1", 950 | "opn": "5.5.0", 951 | "portscanner": "2.2.0", 952 | "serve-index": "1.9.1", 953 | "serve-static": "1.14.1" 954 | }, 955 | "dependencies": { 956 | "async": { 957 | "version": "2.6.2", 958 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", 959 | "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", 960 | "dev": true, 961 | "requires": { 962 | "lodash": "4.17.11" 963 | } 964 | }, 965 | "lodash": { 966 | "version": "4.17.11", 967 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", 968 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", 969 | "dev": true 970 | } 971 | } 972 | }, 973 | "grunt-contrib-jshint": { 974 | "version": "0.6.5", 975 | "resolved": "https://registry.npmjs.org/grunt-contrib-jshint/-/grunt-contrib-jshint-0.6.5.tgz", 976 | "integrity": "sha1-OvtGdnRTZMxKGe7nk0wOBgCLVm4=", 977 | "dev": true, 978 | "requires": { 979 | "jshint": "2.1.11" 980 | } 981 | }, 982 | "grunt-contrib-uglify": { 983 | "version": "4.0.1", 984 | "resolved": "https://registry.npmjs.org/grunt-contrib-uglify/-/grunt-contrib-uglify-4.0.1.tgz", 985 | "integrity": "sha512-dwf8/+4uW1+7pH72WButOEnzErPGmtUvc8p08B0eQS/6ON0WdeQu0+WFeafaPTbbY1GqtS25lsHWaDeiTQNWPg==", 986 | "dev": true, 987 | "requires": { 988 | "chalk": "2.4.2", 989 | "maxmin": "2.1.0", 990 | "uglify-js": "3.6.0", 991 | "uri-path": "1.0.0" 992 | }, 993 | "dependencies": { 994 | "source-map": { 995 | "version": "0.6.1", 996 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", 997 | "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", 998 | "dev": true 999 | }, 1000 | "uglify-js": { 1001 | "version": "3.6.0", 1002 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.6.0.tgz", 1003 | "integrity": "sha512-W+jrUHJr3DXKhrsS7NUVxn3zqMOFn0hL/Ei6v0anCIMoKC93TjcflTagwIHLW7SfMFfiQuktQyFVCFHGUE0+yg==", 1004 | "dev": true, 1005 | "requires": { 1006 | "commander": "2.20.0", 1007 | "source-map": "0.6.1" 1008 | } 1009 | } 1010 | } 1011 | }, 1012 | "grunt-legacy-log": { 1013 | "version": "0.1.3", 1014 | "resolved": "https://registry.npmjs.org/grunt-legacy-log/-/grunt-legacy-log-0.1.3.tgz", 1015 | "integrity": "sha1-7ClCboAwIa9ZAp+H0vnNczWgVTE=", 1016 | "dev": true, 1017 | "requires": { 1018 | "colors": "0.6.2", 1019 | "grunt-legacy-log-utils": "0.1.1", 1020 | "hooker": "0.2.3", 1021 | "lodash": "2.4.2", 1022 | "underscore.string": "2.3.3" 1023 | }, 1024 | "dependencies": { 1025 | "lodash": { 1026 | "version": "2.4.2", 1027 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", 1028 | "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", 1029 | "dev": true 1030 | }, 1031 | "underscore.string": { 1032 | "version": "2.3.3", 1033 | "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", 1034 | "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", 1035 | "dev": true 1036 | } 1037 | } 1038 | }, 1039 | "grunt-legacy-log-utils": { 1040 | "version": "0.1.1", 1041 | "resolved": "https://registry.npmjs.org/grunt-legacy-log-utils/-/grunt-legacy-log-utils-0.1.1.tgz", 1042 | "integrity": "sha1-wHBrndkGThFvNvI/5OawSGcsD34=", 1043 | "dev": true, 1044 | "requires": { 1045 | "colors": "0.6.2", 1046 | "lodash": "2.4.2", 1047 | "underscore.string": "2.3.3" 1048 | }, 1049 | "dependencies": { 1050 | "lodash": { 1051 | "version": "2.4.2", 1052 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-2.4.2.tgz", 1053 | "integrity": "sha1-+t2DS5aDBz2hebPq5tnA0VBT9z4=", 1054 | "dev": true 1055 | }, 1056 | "underscore.string": { 1057 | "version": "2.3.3", 1058 | "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.3.3.tgz", 1059 | "integrity": "sha1-ccCL9rQosRM/N+ePo6Icgvcymw0=", 1060 | "dev": true 1061 | } 1062 | } 1063 | }, 1064 | "grunt-legacy-util": { 1065 | "version": "0.2.0", 1066 | "resolved": "https://registry.npmjs.org/grunt-legacy-util/-/grunt-legacy-util-0.2.0.tgz", 1067 | "integrity": "sha1-kzJIhNv343qf98Am3/RR2UqeVUs=", 1068 | "dev": true, 1069 | "requires": { 1070 | "async": "0.1.22", 1071 | "exit": "0.1.2", 1072 | "getobject": "0.1.0", 1073 | "hooker": "0.2.3", 1074 | "lodash": "0.9.2", 1075 | "underscore.string": "2.2.1", 1076 | "which": "1.0.9" 1077 | }, 1078 | "dependencies": { 1079 | "async": { 1080 | "version": "0.1.22", 1081 | "resolved": "https://registry.npmjs.org/async/-/async-0.1.22.tgz", 1082 | "integrity": "sha1-D8GqoIig4+8Ovi2IMbqw3PiEUGE=", 1083 | "dev": true 1084 | } 1085 | } 1086 | }, 1087 | "grunt-saucelabs": { 1088 | "version": "github:Stuk/grunt-saucelabs#7e3c9ce1f129c4c38ff2a3efdfaacd0f2b76407c", 1089 | "dev": true, 1090 | "requires": { 1091 | "colors": "1.1.2", 1092 | "lodash": "4.17.11", 1093 | "q": "1.4.1", 1094 | "requestretry": "1.9.1", 1095 | "sauce-connect-launcher": "1.2.7", 1096 | "saucelabs": "1.5.0" 1097 | }, 1098 | "dependencies": { 1099 | "colors": { 1100 | "version": "1.1.2", 1101 | "resolved": "https://registry.npmjs.org/colors/-/colors-1.1.2.tgz", 1102 | "integrity": "sha1-FopHAXVran9RoSzgyXv6KMCE7WM=", 1103 | "dev": true 1104 | }, 1105 | "lodash": { 1106 | "version": "4.17.11", 1107 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", 1108 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", 1109 | "dev": true 1110 | } 1111 | } 1112 | }, 1113 | "gzip-size": { 1114 | "version": "3.0.0", 1115 | "resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-3.0.0.tgz", 1116 | "integrity": "sha1-VGGI6b3DN/Zzdy+BZgRks4nc5SA=", 1117 | "dev": true, 1118 | "requires": { 1119 | "duplexer": "0.1.1" 1120 | } 1121 | }, 1122 | "har-schema": { 1123 | "version": "2.0.0", 1124 | "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", 1125 | "integrity": "sha1-qUwiJOvKwEeCoNkDVSHyRzW37JI=", 1126 | "dev": true 1127 | }, 1128 | "har-validator": { 1129 | "version": "5.1.3", 1130 | "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.3.tgz", 1131 | "integrity": "sha512-sNvOCzEQNr/qrvJgc3UG/kD4QtlHycrzwS+6mfTrrSq97BvaYcPZZI1ZSqGSPR73Cxn4LKTD4PttRwfU7jWq5g==", 1132 | "dev": true, 1133 | "requires": { 1134 | "ajv": "6.10.0", 1135 | "har-schema": "2.0.0" 1136 | } 1137 | }, 1138 | "has-ansi": { 1139 | "version": "2.0.0", 1140 | "resolved": "https://registry.npmjs.org/has-ansi/-/has-ansi-2.0.0.tgz", 1141 | "integrity": "sha1-NPUEnOHs3ysGSa8+8k5F7TVBbZE=", 1142 | "dev": true, 1143 | "requires": { 1144 | "ansi-regex": "2.1.1" 1145 | } 1146 | }, 1147 | "has-flag": { 1148 | "version": "3.0.0", 1149 | "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", 1150 | "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", 1151 | "dev": true 1152 | }, 1153 | "hooker": { 1154 | "version": "0.2.3", 1155 | "resolved": "https://registry.npmjs.org/hooker/-/hooker-0.2.3.tgz", 1156 | "integrity": "sha1-uDT3I8xKJCqmWWNFnfbZhMXT2Vk=", 1157 | "dev": true 1158 | }, 1159 | "http-browserify": { 1160 | "version": "0.1.14", 1161 | "resolved": "https://registry.npmjs.org/http-browserify/-/http-browserify-0.1.14.tgz", 1162 | "integrity": "sha1-nIs/lAAiBFR8fL5Saa/i6mL3HH8=", 1163 | "dev": true, 1164 | "requires": { 1165 | "Base64": "0.1.4", 1166 | "concat-stream": "1.0.1" 1167 | } 1168 | }, 1169 | "http-errors": { 1170 | "version": "1.6.3", 1171 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.6.3.tgz", 1172 | "integrity": "sha1-i1VoC7S+KDoLW/TqLjhYC+HZMg0=", 1173 | "dev": true, 1174 | "requires": { 1175 | "depd": "1.1.2", 1176 | "inherits": "2.0.3", 1177 | "setprototypeof": "1.1.0", 1178 | "statuses": "1.5.0" 1179 | }, 1180 | "dependencies": { 1181 | "inherits": { 1182 | "version": "2.0.3", 1183 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 1184 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 1185 | "dev": true 1186 | } 1187 | } 1188 | }, 1189 | "http-signature": { 1190 | "version": "1.2.0", 1191 | "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", 1192 | "integrity": "sha1-muzZJRFHcvPZW2WmCruPfBj7rOE=", 1193 | "dev": true, 1194 | "requires": { 1195 | "assert-plus": "1.0.0", 1196 | "jsprim": "1.4.1", 1197 | "sshpk": "1.16.1" 1198 | } 1199 | }, 1200 | "https-browserify": { 1201 | "version": "0.0.1", 1202 | "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-0.0.1.tgz", 1203 | "integrity": "sha1-P5E2XKvmC3ftDruiS0VOPgnZWoI=", 1204 | "dev": true 1205 | }, 1206 | "https-proxy-agent": { 1207 | "version": "2.2.1", 1208 | "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz", 1209 | "integrity": "sha512-HPCTS1LW51bcyMYbxUIOO4HEOlQ1/1qRaFWcyxvwaqUS9TY88aoEuHUY33kuAh1YhVVaDQhLZsnPd+XNARWZlQ==", 1210 | "dev": true, 1211 | "requires": { 1212 | "agent-base": "4.3.0", 1213 | "debug": "3.2.6" 1214 | }, 1215 | "dependencies": { 1216 | "debug": { 1217 | "version": "3.2.6", 1218 | "resolved": "https://registry.npmjs.org/debug/-/debug-3.2.6.tgz", 1219 | "integrity": "sha512-mel+jf7nrtEl5Pn1Qx46zARXKDpBbvzezse7p7LqINmdoIk8PYP5SySaxEmYv6TZ0JyEKA1hsCId6DIhgITtWQ==", 1220 | "dev": true, 1221 | "requires": { 1222 | "ms": "2.1.2" 1223 | } 1224 | }, 1225 | "ms": { 1226 | "version": "2.1.2", 1227 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 1228 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 1229 | "dev": true 1230 | } 1231 | } 1232 | }, 1233 | "iconv-lite": { 1234 | "version": "0.2.11", 1235 | "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.2.11.tgz", 1236 | "integrity": "sha1-HOYKOleGSiktEyH/RgnKS7llrcg=", 1237 | "dev": true 1238 | }, 1239 | "indexof": { 1240 | "version": "0.0.1", 1241 | "resolved": "https://registry.npmjs.org/indexof/-/indexof-0.0.1.tgz", 1242 | "integrity": "sha1-gtwzbSMrkGIXnQWrMpOmYFn9Q10=", 1243 | "dev": true 1244 | }, 1245 | "inflight": { 1246 | "version": "1.0.6", 1247 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 1248 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 1249 | "dev": true, 1250 | "requires": { 1251 | "once": "1.4.0", 1252 | "wrappy": "1.0.2" 1253 | } 1254 | }, 1255 | "inherits": { 1256 | "version": "1.0.2", 1257 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-1.0.2.tgz", 1258 | "integrity": "sha1-ykMJ2t7mtUzAuNJH6NfHoJdb3Js=", 1259 | "dev": true 1260 | }, 1261 | "inline-source-map": { 1262 | "version": "0.3.1", 1263 | "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.3.1.tgz", 1264 | "integrity": "sha1-pSi1FOaJ/OkNswiehw2S9Sestes=", 1265 | "dev": true, 1266 | "requires": { 1267 | "source-map": "0.3.0" 1268 | }, 1269 | "dependencies": { 1270 | "source-map": { 1271 | "version": "0.3.0", 1272 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.3.0.tgz", 1273 | "integrity": "sha1-hYb7mloAXltQHiHNGLbyG0V60fk=", 1274 | "dev": true, 1275 | "requires": { 1276 | "amdefine": "1.0.1" 1277 | } 1278 | } 1279 | } 1280 | }, 1281 | "insert-module-globals": { 1282 | "version": "1.3.1", 1283 | "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-1.3.1.tgz", 1284 | "integrity": "sha1-S5R91JcSsk+ynstQZ2iyomosVz8=", 1285 | "dev": true, 1286 | "requires": { 1287 | "JSONStream": "0.4.4", 1288 | "commondir": "0.0.2", 1289 | "duplexer": "0.0.4", 1290 | "lexical-scope": "0.0.15", 1291 | "process": "0.5.2", 1292 | "through": "2.2.7" 1293 | }, 1294 | "dependencies": { 1295 | "JSONStream": { 1296 | "version": "0.4.4", 1297 | "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-0.4.4.tgz", 1298 | "integrity": "sha1-zCzxGShsRb4VBCPLwSjUgOm1SuI=", 1299 | "dev": true, 1300 | "requires": { 1301 | "jsonparse": "0.0.5" 1302 | } 1303 | }, 1304 | "duplexer": { 1305 | "version": "0.0.4", 1306 | "resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.0.4.tgz", 1307 | "integrity": "sha1-r8t/H4uNdPggcmFx1dZKyeSo/yA=", 1308 | "dev": true 1309 | }, 1310 | "through": { 1311 | "version": "2.2.7", 1312 | "resolved": "https://registry.npmjs.org/through/-/through-2.2.7.tgz", 1313 | "integrity": "sha1-bo4hIAGR1OtqmfbwEN9Gqhxusr0=", 1314 | "dev": true 1315 | } 1316 | } 1317 | }, 1318 | "is-number-like": { 1319 | "version": "1.0.8", 1320 | "resolved": "https://registry.npmjs.org/is-number-like/-/is-number-like-1.0.8.tgz", 1321 | "integrity": "sha512-6rZi3ezCyFcn5L71ywzz2bS5b2Igl1En3eTlZlvKjpz1n3IZLAYMbKYAIQgFmEu0GENg92ziU/faEOA/aixjbA==", 1322 | "dev": true, 1323 | "requires": { 1324 | "lodash.isfinite": "3.3.2" 1325 | } 1326 | }, 1327 | "is-typedarray": { 1328 | "version": "1.0.0", 1329 | "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", 1330 | "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", 1331 | "dev": true 1332 | }, 1333 | "is-wsl": { 1334 | "version": "1.1.0", 1335 | "resolved": "https://registry.npmjs.org/is-wsl/-/is-wsl-1.1.0.tgz", 1336 | "integrity": "sha1-HxbkqiKwTRM2tmGIpmrzxgDDpm0=", 1337 | "dev": true 1338 | }, 1339 | "isarray": { 1340 | "version": "1.0.0", 1341 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 1342 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 1343 | "dev": true 1344 | }, 1345 | "isstream": { 1346 | "version": "0.1.2", 1347 | "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", 1348 | "integrity": "sha1-R+Y/evVa+m+S4VAOaQ64uFKcCZo=", 1349 | "dev": true 1350 | }, 1351 | "js-reporters": { 1352 | "version": "1.2.1", 1353 | "resolved": "https://registry.npmjs.org/js-reporters/-/js-reporters-1.2.1.tgz", 1354 | "integrity": "sha1-+IxgjjJKM3OpW8xFrTBeXJecRZs=", 1355 | "dev": true 1356 | }, 1357 | "js-yaml": { 1358 | "version": "2.0.5", 1359 | "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-2.0.5.tgz", 1360 | "integrity": "sha1-olrmUJmZ6X3yeMZxnaEb0Gh3Q6g=", 1361 | "dev": true, 1362 | "requires": { 1363 | "argparse": "0.1.16", 1364 | "esprima": "1.0.2" 1365 | } 1366 | }, 1367 | "jsbn": { 1368 | "version": "0.1.1", 1369 | "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", 1370 | "integrity": "sha1-peZUwuWi3rXyAdls77yoDA7y9RM=", 1371 | "dev": true 1372 | }, 1373 | "jshint": { 1374 | "version": "2.1.11", 1375 | "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.1.11.tgz", 1376 | "integrity": "sha1-61EI/vm6Xd67gwmD9XLSQuSeP5Y=", 1377 | "dev": true, 1378 | "requires": { 1379 | "cli": "0.4.5", 1380 | "console-browserify": "0.1.6", 1381 | "minimatch": "0.2.14", 1382 | "shelljs": "0.1.4", 1383 | "underscore": "1.4.4" 1384 | }, 1385 | "dependencies": { 1386 | "console-browserify": { 1387 | "version": "0.1.6", 1388 | "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-0.1.6.tgz", 1389 | "integrity": "sha1-0SijwLuINQ61YmxufHGm8P1ImDw=", 1390 | "dev": true 1391 | }, 1392 | "underscore": { 1393 | "version": "1.4.4", 1394 | "resolved": "https://registry.npmjs.org/underscore/-/underscore-1.4.4.tgz", 1395 | "integrity": "sha1-YaajIBBiKvoHljvzJSA88SI51gQ=", 1396 | "dev": true 1397 | } 1398 | } 1399 | }, 1400 | "json-schema": { 1401 | "version": "0.2.3", 1402 | "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.2.3.tgz", 1403 | "integrity": "sha1-tIDIkuWaLwWVTOcnvT8qTogvnhM=", 1404 | "dev": true 1405 | }, 1406 | "json-schema-traverse": { 1407 | "version": "0.4.1", 1408 | "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", 1409 | "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==", 1410 | "dev": true 1411 | }, 1412 | "json-stringify-safe": { 1413 | "version": "5.0.1", 1414 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 1415 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", 1416 | "dev": true 1417 | }, 1418 | "jsonparse": { 1419 | "version": "0.0.5", 1420 | "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-0.0.5.tgz", 1421 | "integrity": "sha1-MwVCrT8KZUZlt3jz6y2an6UHrGQ=", 1422 | "dev": true 1423 | }, 1424 | "jsprim": { 1425 | "version": "1.4.1", 1426 | "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.1.tgz", 1427 | "integrity": "sha1-MT5mvB5cwG5Di8G3SZwuXFastqI=", 1428 | "dev": true, 1429 | "requires": { 1430 | "assert-plus": "1.0.0", 1431 | "extsprintf": "1.3.0", 1432 | "json-schema": "0.2.3", 1433 | "verror": "1.10.0" 1434 | } 1435 | }, 1436 | "lexical-scope": { 1437 | "version": "0.0.15", 1438 | "resolved": "https://registry.npmjs.org/lexical-scope/-/lexical-scope-0.0.15.tgz", 1439 | "integrity": "sha1-yllZl6rth7FVywQfSNwEOPSKBNw=", 1440 | "dev": true, 1441 | "requires": { 1442 | "astw": "0.0.0" 1443 | } 1444 | }, 1445 | "lodash": { 1446 | "version": "0.9.2", 1447 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-0.9.2.tgz", 1448 | "integrity": "sha1-jzSZxSRdNG1oLlsNO0B2fgnxqSw=", 1449 | "dev": true 1450 | }, 1451 | "lodash.isfinite": { 1452 | "version": "3.3.2", 1453 | "resolved": "https://registry.npmjs.org/lodash.isfinite/-/lodash.isfinite-3.3.2.tgz", 1454 | "integrity": "sha1-+4m2WpqAKBgz8LdHizpRBPiY67M=", 1455 | "dev": true 1456 | }, 1457 | "lru-cache": { 1458 | "version": "2.7.3", 1459 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-2.7.3.tgz", 1460 | "integrity": "sha1-bUUk6LlV+V1PW1iFHOId1y+06VI=", 1461 | "dev": true 1462 | }, 1463 | "maxmin": { 1464 | "version": "2.1.0", 1465 | "resolved": "https://registry.npmjs.org/maxmin/-/maxmin-2.1.0.tgz", 1466 | "integrity": "sha1-TTsiCQPZXu5+t6x/qGTnLcCaMWY=", 1467 | "dev": true, 1468 | "requires": { 1469 | "chalk": "1.1.3", 1470 | "figures": "1.7.0", 1471 | "gzip-size": "3.0.0", 1472 | "pretty-bytes": "3.0.1" 1473 | }, 1474 | "dependencies": { 1475 | "ansi-styles": { 1476 | "version": "2.2.1", 1477 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-2.2.1.tgz", 1478 | "integrity": "sha1-tDLdM1i2NM914eRmQ2gkBTPB3b4=", 1479 | "dev": true 1480 | }, 1481 | "chalk": { 1482 | "version": "1.1.3", 1483 | "resolved": "https://registry.npmjs.org/chalk/-/chalk-1.1.3.tgz", 1484 | "integrity": "sha1-qBFcVeSnAv5NFQq9OHKCKn4J/Jg=", 1485 | "dev": true, 1486 | "requires": { 1487 | "ansi-styles": "2.2.1", 1488 | "escape-string-regexp": "1.0.5", 1489 | "has-ansi": "2.0.0", 1490 | "strip-ansi": "3.0.1", 1491 | "supports-color": "2.0.0" 1492 | } 1493 | }, 1494 | "supports-color": { 1495 | "version": "2.0.0", 1496 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-2.0.0.tgz", 1497 | "integrity": "sha1-U10EXOa2Nj+kARcIRimZXp3zJMc=", 1498 | "dev": true 1499 | } 1500 | } 1501 | }, 1502 | "mime": { 1503 | "version": "1.6.0", 1504 | "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", 1505 | "integrity": "sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg==", 1506 | "dev": true 1507 | }, 1508 | "mime-db": { 1509 | "version": "1.40.0", 1510 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.40.0.tgz", 1511 | "integrity": "sha512-jYdeOMPy9vnxEqFRRo6ZvTZ8d9oPb+k18PKoYNYUe2stVEBPPwsln/qWzdbmaIvnhZ9v2P+CuecK+fpUfsV2mA==", 1512 | "dev": true 1513 | }, 1514 | "mime-types": { 1515 | "version": "2.1.24", 1516 | "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.24.tgz", 1517 | "integrity": "sha512-WaFHS3MCl5fapm3oLxU4eYDw77IQM2ACcxQ9RIxfaC3ooc6PFuBMGZZsYpvoXS5D5QTWPieo1jjLdAm3TBP3cQ==", 1518 | "dev": true, 1519 | "requires": { 1520 | "mime-db": "1.40.0" 1521 | } 1522 | }, 1523 | "minimatch": { 1524 | "version": "0.2.14", 1525 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-0.2.14.tgz", 1526 | "integrity": "sha1-x054BXT2PG+aCQ6Q775u9TpqdWo=", 1527 | "dev": true, 1528 | "requires": { 1529 | "lru-cache": "2.7.3", 1530 | "sigmund": "1.0.1" 1531 | } 1532 | }, 1533 | "minimist": { 1534 | "version": "0.0.10", 1535 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.10.tgz", 1536 | "integrity": "sha1-3j+YVD2/lggr5IrRoMfNqDYwHc8=", 1537 | "dev": true 1538 | }, 1539 | "module-deps": { 1540 | "version": "1.0.2", 1541 | "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-1.0.2.tgz", 1542 | "integrity": "sha1-Xug8/XC6iDhp+my664IzSo8Gn8s=", 1543 | "dev": true, 1544 | "requires": { 1545 | "JSONStream": "0.6.4", 1546 | "browser-resolve": "1.1.4", 1547 | "concat-stream": "1.0.1", 1548 | "detective": "2.1.2", 1549 | "minimist": "0.0.10", 1550 | "resolve": "0.4.3", 1551 | "through": "2.3.8" 1552 | }, 1553 | "dependencies": { 1554 | "resolve": { 1555 | "version": "0.4.3", 1556 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.4.3.tgz", 1557 | "integrity": "sha1-3K2tIC58rMJGfjo4gAIR9C+cE98=", 1558 | "dev": true 1559 | } 1560 | } 1561 | }, 1562 | "morgan": { 1563 | "version": "1.9.1", 1564 | "resolved": "https://registry.npmjs.org/morgan/-/morgan-1.9.1.tgz", 1565 | "integrity": "sha512-HQStPIV4y3afTiCYVxirakhlCfGkI161c76kKFca7Fk1JusM//Qeo1ej2XaMniiNeaZklMVrh3vTtIzpzwbpmA==", 1566 | "dev": true, 1567 | "requires": { 1568 | "basic-auth": "2.0.1", 1569 | "debug": "2.6.9", 1570 | "depd": "1.1.2", 1571 | "on-finished": "2.3.0", 1572 | "on-headers": "1.0.2" 1573 | } 1574 | }, 1575 | "ms": { 1576 | "version": "2.0.0", 1577 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 1578 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 1579 | "dev": true 1580 | }, 1581 | "negotiator": { 1582 | "version": "0.6.2", 1583 | "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", 1584 | "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", 1585 | "dev": true 1586 | }, 1587 | "node-http2": { 1588 | "version": "4.0.1", 1589 | "resolved": "https://registry.npmjs.org/node-http2/-/node-http2-4.0.1.tgz", 1590 | "integrity": "sha1-Fk/1O13SLITwrxQrh3xerraAmVk=", 1591 | "dev": true, 1592 | "requires": { 1593 | "assert": "1.4.1", 1594 | "events": "1.1.1", 1595 | "https-browserify": "0.0.1", 1596 | "setimmediate": "1.0.5", 1597 | "stream-browserify": "2.0.1", 1598 | "timers-browserify": "2.0.2", 1599 | "url": "0.11.0", 1600 | "websocket-stream": "5.5.0" 1601 | } 1602 | }, 1603 | "node-watch": { 1604 | "version": "0.6.0", 1605 | "resolved": "https://registry.npmjs.org/node-watch/-/node-watch-0.6.0.tgz", 1606 | "integrity": "sha512-XAgTL05z75ptd7JSVejH1a2Dm1zmXYhuDr9l230Qk6Z7/7GPcnAs/UyJJ4ggsXSvWil8iOzwQLW0zuGUvHpG8g==", 1607 | "dev": true 1608 | }, 1609 | "nopt": { 1610 | "version": "1.0.10", 1611 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-1.0.10.tgz", 1612 | "integrity": "sha1-bd0hvSoxQXuScn3Vhfim83YI6+4=", 1613 | "dev": true, 1614 | "requires": { 1615 | "abbrev": "1.1.1" 1616 | } 1617 | }, 1618 | "number-is-nan": { 1619 | "version": "1.0.1", 1620 | "resolved": "https://registry.npmjs.org/number-is-nan/-/number-is-nan-1.0.1.tgz", 1621 | "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", 1622 | "dev": true 1623 | }, 1624 | "oauth-sign": { 1625 | "version": "0.9.0", 1626 | "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", 1627 | "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", 1628 | "dev": true 1629 | }, 1630 | "object-assign": { 1631 | "version": "4.1.1", 1632 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1633 | "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", 1634 | "dev": true 1635 | }, 1636 | "on-finished": { 1637 | "version": "2.3.0", 1638 | "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.3.0.tgz", 1639 | "integrity": "sha1-IPEzZIGwg811M3mSoWlxqi2QaUc=", 1640 | "dev": true, 1641 | "requires": { 1642 | "ee-first": "1.1.1" 1643 | } 1644 | }, 1645 | "on-headers": { 1646 | "version": "1.0.2", 1647 | "resolved": "https://registry.npmjs.org/on-headers/-/on-headers-1.0.2.tgz", 1648 | "integrity": "sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA==", 1649 | "dev": true 1650 | }, 1651 | "once": { 1652 | "version": "1.4.0", 1653 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1654 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1655 | "dev": true, 1656 | "requires": { 1657 | "wrappy": "1.0.2" 1658 | } 1659 | }, 1660 | "opn": { 1661 | "version": "5.5.0", 1662 | "resolved": "https://registry.npmjs.org/opn/-/opn-5.5.0.tgz", 1663 | "integrity": "sha512-PqHpggC9bLV0VeWcdKhkpxY+3JTzetLSqTCWL/z/tFIbI6G8JCjondXklT1JinczLz2Xib62sSp0T/gKT4KksA==", 1664 | "dev": true, 1665 | "requires": { 1666 | "is-wsl": "1.1.0" 1667 | } 1668 | }, 1669 | "optimist": { 1670 | "version": "0.5.2", 1671 | "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.5.2.tgz", 1672 | "integrity": "sha1-hcjBRUszFeSniUfoV7HfAzRQv7w=", 1673 | "dev": true, 1674 | "requires": { 1675 | "wordwrap": "0.0.2" 1676 | } 1677 | }, 1678 | "os-browserify": { 1679 | "version": "0.1.2", 1680 | "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.1.2.tgz", 1681 | "integrity": "sha1-ScoCk+CxlZCl9d4Qx/JlphfY/lQ=", 1682 | "dev": true 1683 | }, 1684 | "parents": { 1685 | "version": "0.0.3", 1686 | "resolved": "https://registry.npmjs.org/parents/-/parents-0.0.3.tgz", 1687 | "integrity": "sha1-+iEvAk2fpjGNu2tM5nbIvkk7nEM=", 1688 | "dev": true, 1689 | "requires": { 1690 | "path-platform": "0.0.1" 1691 | } 1692 | }, 1693 | "parseurl": { 1694 | "version": "1.3.3", 1695 | "resolved": "https://registry.npmjs.org/parseurl/-/parseurl-1.3.3.tgz", 1696 | "integrity": "sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ==", 1697 | "dev": true 1698 | }, 1699 | "path-is-absolute": { 1700 | "version": "1.0.1", 1701 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1702 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1703 | "dev": true 1704 | }, 1705 | "path-parse": { 1706 | "version": "1.0.6", 1707 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", 1708 | "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", 1709 | "dev": true 1710 | }, 1711 | "path-platform": { 1712 | "version": "0.0.1", 1713 | "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.0.1.tgz", 1714 | "integrity": "sha1-tVhdfDxGPYmqAGDYZhHPGv1hfio=", 1715 | "dev": true 1716 | }, 1717 | "performance-now": { 1718 | "version": "2.1.0", 1719 | "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", 1720 | "integrity": "sha1-Ywn04OX6kT7BxpMHrjZLSzd8nns=", 1721 | "dev": true 1722 | }, 1723 | "portscanner": { 1724 | "version": "2.2.0", 1725 | "resolved": "https://registry.npmjs.org/portscanner/-/portscanner-2.2.0.tgz", 1726 | "integrity": "sha512-IFroCz/59Lqa2uBvzK3bKDbDDIEaAY8XJ1jFxcLWTqosrsc32//P4VuSB2vZXoHiHqOmx8B5L5hnKOxL/7FlPw==", 1727 | "dev": true, 1728 | "requires": { 1729 | "async": "2.6.2", 1730 | "is-number-like": "1.0.8" 1731 | }, 1732 | "dependencies": { 1733 | "async": { 1734 | "version": "2.6.2", 1735 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", 1736 | "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", 1737 | "dev": true, 1738 | "requires": { 1739 | "lodash": "4.17.11" 1740 | } 1741 | }, 1742 | "lodash": { 1743 | "version": "4.17.11", 1744 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", 1745 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", 1746 | "dev": true 1747 | } 1748 | } 1749 | }, 1750 | "pretty-bytes": { 1751 | "version": "3.0.1", 1752 | "resolved": "https://registry.npmjs.org/pretty-bytes/-/pretty-bytes-3.0.1.tgz", 1753 | "integrity": "sha1-J9AAjXeAY6C0gRuzXHnxvV1fvM8=", 1754 | "dev": true, 1755 | "requires": { 1756 | "number-is-nan": "1.0.1" 1757 | } 1758 | }, 1759 | "process": { 1760 | "version": "0.5.2", 1761 | "resolved": "https://registry.npmjs.org/process/-/process-0.5.2.tgz", 1762 | "integrity": "sha1-FjjYqONML0QKkduVq5rrZ3/Bhc8=", 1763 | "dev": true 1764 | }, 1765 | "process-nextick-args": { 1766 | "version": "2.0.1", 1767 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1768 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 1769 | "dev": true 1770 | }, 1771 | "psl": { 1772 | "version": "1.2.0", 1773 | "resolved": "https://registry.npmjs.org/psl/-/psl-1.2.0.tgz", 1774 | "integrity": "sha512-GEn74ZffufCmkDDLNcl3uuyF/aSD6exEyh1v/ZSdAomB82t6G9hzJVRx0jBmLDW+VfZqks3aScmMw9DszwUalA==", 1775 | "dev": true 1776 | }, 1777 | "punycode": { 1778 | "version": "1.2.4", 1779 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.2.4.tgz", 1780 | "integrity": "sha1-VACKyXKux0F13vnLpt9/qdORh0A=", 1781 | "dev": true 1782 | }, 1783 | "q": { 1784 | "version": "1.4.1", 1785 | "resolved": "https://registry.npmjs.org/q/-/q-1.4.1.tgz", 1786 | "integrity": "sha1-VXBbzZPF82c1MMLCy8DCs63cKG4=", 1787 | "dev": true 1788 | }, 1789 | "qs": { 1790 | "version": "6.5.2", 1791 | "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.2.tgz", 1792 | "integrity": "sha512-N5ZAX4/LxJmF+7wN74pUD6qAh9/wnvdQcjq9TZjevvXzSUo7bfmw91saqMjzGS2xq91/odN2dW/WOl7qQHNDGA==", 1793 | "dev": true 1794 | }, 1795 | "querystring": { 1796 | "version": "0.2.0", 1797 | "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", 1798 | "integrity": "sha1-sgmEkgO7Jd+CDadW50cAWHhSFiA=", 1799 | "dev": true 1800 | }, 1801 | "qunit": { 1802 | "version": "2.9.2", 1803 | "resolved": "https://registry.npmjs.org/qunit/-/qunit-2.9.2.tgz", 1804 | "integrity": "sha512-wTOYHnioWHcx5wa85Wl15IE7D6zTZe2CQlsodS14yj7s2FZ3MviRnQluspBZsueIDEO7doiuzKlv05yfky1R7w==", 1805 | "dev": true, 1806 | "requires": { 1807 | "commander": "2.12.2", 1808 | "js-reporters": "1.2.1", 1809 | "minimatch": "3.0.4", 1810 | "node-watch": "0.6.0", 1811 | "resolve": "1.9.0" 1812 | }, 1813 | "dependencies": { 1814 | "commander": { 1815 | "version": "2.12.2", 1816 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.12.2.tgz", 1817 | "integrity": "sha512-BFnaq5ZOGcDN7FlrtBT4xxkgIToalIIxwjxLWVJ8bGTpe1LroqMiqQXdA7ygc7CRvaYS+9zfPGFnJqFSayx+AA==", 1818 | "dev": true 1819 | }, 1820 | "minimatch": { 1821 | "version": "3.0.4", 1822 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1823 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 1824 | "dev": true, 1825 | "requires": { 1826 | "brace-expansion": "1.1.11" 1827 | } 1828 | }, 1829 | "resolve": { 1830 | "version": "1.9.0", 1831 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.9.0.tgz", 1832 | "integrity": "sha512-TZNye00tI67lwYvzxCxHGjwTNlUV70io54/Ed4j6PscB8xVfuBJpRenI/o6dVk0cY0PYTY27AgCoGGxRnYuItQ==", 1833 | "dev": true, 1834 | "requires": { 1835 | "path-parse": "1.0.6" 1836 | } 1837 | } 1838 | } 1839 | }, 1840 | "qunitjs": { 1841 | "version": "2.0.1", 1842 | "resolved": "https://registry.npmjs.org/qunitjs/-/qunitjs-2.0.1.tgz", 1843 | "integrity": "sha1-IRAFZRj25LyvB5SlXOh3KfQ6s1M=", 1844 | "dev": true 1845 | }, 1846 | "range-parser": { 1847 | "version": "1.2.1", 1848 | "resolved": "https://registry.npmjs.org/range-parser/-/range-parser-1.2.1.tgz", 1849 | "integrity": "sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg==", 1850 | "dev": true 1851 | }, 1852 | "readable-stream": { 1853 | "version": "2.3.6", 1854 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 1855 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", 1856 | "dev": true, 1857 | "requires": { 1858 | "core-util-is": "1.0.2", 1859 | "inherits": "2.0.4", 1860 | "isarray": "1.0.0", 1861 | "process-nextick-args": "2.0.1", 1862 | "safe-buffer": "5.1.2", 1863 | "string_decoder": "1.1.1", 1864 | "util-deprecate": "1.0.2" 1865 | }, 1866 | "dependencies": { 1867 | "inherits": { 1868 | "version": "2.0.4", 1869 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1870 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1871 | "dev": true 1872 | } 1873 | } 1874 | }, 1875 | "request": { 1876 | "version": "2.88.0", 1877 | "resolved": "https://registry.npmjs.org/request/-/request-2.88.0.tgz", 1878 | "integrity": "sha512-NAqBSrijGLZdM0WZNsInLJpkJokL72XYjUpnB0iwsRgxh7dB6COrHnTBNwN0E+lHDAJzu7kLAkDeY08z2/A0hg==", 1879 | "dev": true, 1880 | "requires": { 1881 | "aws-sign2": "0.7.0", 1882 | "aws4": "1.8.0", 1883 | "caseless": "0.12.0", 1884 | "combined-stream": "1.0.8", 1885 | "extend": "3.0.2", 1886 | "forever-agent": "0.6.1", 1887 | "form-data": "2.3.3", 1888 | "har-validator": "5.1.3", 1889 | "http-signature": "1.2.0", 1890 | "is-typedarray": "1.0.0", 1891 | "isstream": "0.1.2", 1892 | "json-stringify-safe": "5.0.1", 1893 | "mime-types": "2.1.24", 1894 | "oauth-sign": "0.9.0", 1895 | "performance-now": "2.1.0", 1896 | "qs": "6.5.2", 1897 | "safe-buffer": "5.1.2", 1898 | "tough-cookie": "2.4.3", 1899 | "tunnel-agent": "0.6.0", 1900 | "uuid": "3.3.2" 1901 | } 1902 | }, 1903 | "requestretry": { 1904 | "version": "1.9.1", 1905 | "resolved": "https://registry.npmjs.org/requestretry/-/requestretry-1.9.1.tgz", 1906 | "integrity": "sha1-CioATq8hGWnEzCz+vz/p5XuSx04=", 1907 | "dev": true, 1908 | "requires": { 1909 | "extend": "3.0.2", 1910 | "fg-lodash": "0.0.2", 1911 | "request": "2.88.0", 1912 | "when": "3.7.8" 1913 | } 1914 | }, 1915 | "resolve": { 1916 | "version": "0.5.1", 1917 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.5.1.tgz", 1918 | "integrity": "sha1-FeSiIsQja81M+FRUQSwtD7ZSRXY=", 1919 | "dev": true 1920 | }, 1921 | "rfile": { 1922 | "version": "1.0.0", 1923 | "resolved": "https://registry.npmjs.org/rfile/-/rfile-1.0.0.tgz", 1924 | "integrity": "sha1-WXCM+Qyh50xUw8/Fw2/bmBBDUmE=", 1925 | "dev": true, 1926 | "requires": { 1927 | "callsite": "1.0.0", 1928 | "resolve": "0.3.1" 1929 | }, 1930 | "dependencies": { 1931 | "resolve": { 1932 | "version": "0.3.1", 1933 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-0.3.1.tgz", 1934 | "integrity": "sha1-NMY0R8ZkxwWY0cmxJvxDsqJDEKQ=", 1935 | "dev": true 1936 | } 1937 | } 1938 | }, 1939 | "rimraf": { 1940 | "version": "2.2.8", 1941 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.2.8.tgz", 1942 | "integrity": "sha1-5Dm+Kq7jJzIZUnMPmaiSnk/FBYI=", 1943 | "dev": true 1944 | }, 1945 | "ruglify": { 1946 | "version": "1.0.0", 1947 | "resolved": "https://registry.npmjs.org/ruglify/-/ruglify-1.0.0.tgz", 1948 | "integrity": "sha1-3Ikw4qlUSidDAcyZcldMDQmGtnU=", 1949 | "dev": true, 1950 | "requires": { 1951 | "rfile": "1.0.0", 1952 | "uglify-js": "2.2.5" 1953 | }, 1954 | "dependencies": { 1955 | "optimist": { 1956 | "version": "0.3.7", 1957 | "resolved": "https://registry.npmjs.org/optimist/-/optimist-0.3.7.tgz", 1958 | "integrity": "sha1-yQlBrVnkJzMokjB00s8ufLxuwNk=", 1959 | "dev": true, 1960 | "requires": { 1961 | "wordwrap": "0.0.2" 1962 | } 1963 | }, 1964 | "uglify-js": { 1965 | "version": "2.2.5", 1966 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.2.5.tgz", 1967 | "integrity": "sha1-puAqcNg5eSuXgEiLe4sYTAlcmcc=", 1968 | "dev": true, 1969 | "requires": { 1970 | "optimist": "0.3.7", 1971 | "source-map": "0.1.43" 1972 | } 1973 | } 1974 | } 1975 | }, 1976 | "safe-buffer": { 1977 | "version": "5.1.2", 1978 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1979 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1980 | "dev": true 1981 | }, 1982 | "safer-buffer": { 1983 | "version": "2.1.2", 1984 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1985 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1986 | "dev": true 1987 | }, 1988 | "sauce-connect-launcher": { 1989 | "version": "1.2.7", 1990 | "resolved": "https://registry.npmjs.org/sauce-connect-launcher/-/sauce-connect-launcher-1.2.7.tgz", 1991 | "integrity": "sha512-v07+QhFrxgz3seMFuRSonu3gW1s6DbcLQlFhjsRrmKUauzPbbudHdnn91WYgEwhoZVdPNzeZpAEJwcQyd9xnTA==", 1992 | "dev": true, 1993 | "requires": { 1994 | "adm-zip": "0.4.13", 1995 | "async": "2.6.2", 1996 | "https-proxy-agent": "2.2.1", 1997 | "lodash": "4.17.11", 1998 | "rimraf": "2.6.3" 1999 | }, 2000 | "dependencies": { 2001 | "async": { 2002 | "version": "2.6.2", 2003 | "resolved": "https://registry.npmjs.org/async/-/async-2.6.2.tgz", 2004 | "integrity": "sha512-H1qVYh1MYhEEFLsP97cVKqCGo7KfCyTt6uEWqsTBr9SO84oK9Uwbyd/yCW+6rKJLHksBNUVWZDAjfS+Ccx0Bbg==", 2005 | "dev": true, 2006 | "requires": { 2007 | "lodash": "4.17.11" 2008 | } 2009 | }, 2010 | "glob": { 2011 | "version": "7.1.4", 2012 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.4.tgz", 2013 | "integrity": "sha512-hkLPepehmnKk41pUGm3sYxoFs/umurYfYJCerbXEyFIWcAzvpipAgVkBqqT9RBKMGjnq6kMuyYwha6csxbiM1A==", 2014 | "dev": true, 2015 | "requires": { 2016 | "fs.realpath": "1.0.0", 2017 | "inflight": "1.0.6", 2018 | "inherits": "2.0.4", 2019 | "minimatch": "3.0.4", 2020 | "once": "1.4.0", 2021 | "path-is-absolute": "1.0.1" 2022 | } 2023 | }, 2024 | "inherits": { 2025 | "version": "2.0.4", 2026 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 2027 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 2028 | "dev": true 2029 | }, 2030 | "lodash": { 2031 | "version": "4.17.11", 2032 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.11.tgz", 2033 | "integrity": "sha512-cQKh8igo5QUhZ7lg38DYWAxMvjSAKG0A8wGSVimP07SIUEK2UO+arSRKbRZWtelMtN5V0Hkwh5ryOto/SshYIg==", 2034 | "dev": true 2035 | }, 2036 | "minimatch": { 2037 | "version": "3.0.4", 2038 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 2039 | "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", 2040 | "dev": true, 2041 | "requires": { 2042 | "brace-expansion": "1.1.11" 2043 | } 2044 | }, 2045 | "rimraf": { 2046 | "version": "2.6.3", 2047 | "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-2.6.3.tgz", 2048 | "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", 2049 | "dev": true, 2050 | "requires": { 2051 | "glob": "7.1.4" 2052 | } 2053 | } 2054 | } 2055 | }, 2056 | "saucelabs": { 2057 | "version": "1.5.0", 2058 | "resolved": "https://registry.npmjs.org/saucelabs/-/saucelabs-1.5.0.tgz", 2059 | "integrity": "sha512-jlX3FGdWvYf4Q3LFfFWS1QvPg3IGCGWxIc8QBFdPTbpTJnt/v17FHXYVAn7C8sHf1yUXo2c7yIM0isDryfYtHQ==", 2060 | "dev": true, 2061 | "requires": { 2062 | "https-proxy-agent": "2.2.1" 2063 | } 2064 | }, 2065 | "send": { 2066 | "version": "0.17.1", 2067 | "resolved": "https://registry.npmjs.org/send/-/send-0.17.1.tgz", 2068 | "integrity": "sha512-BsVKsiGcQMFwT8UxypobUKyv7irCNRHk1T0G680vk88yf6LBByGcZJOTJCrTP2xVN6yI+XjPJcNuE3V4fT9sAg==", 2069 | "dev": true, 2070 | "requires": { 2071 | "debug": "2.6.9", 2072 | "depd": "1.1.2", 2073 | "destroy": "1.0.4", 2074 | "encodeurl": "1.0.2", 2075 | "escape-html": "1.0.3", 2076 | "etag": "1.8.1", 2077 | "fresh": "0.5.2", 2078 | "http-errors": "1.7.3", 2079 | "mime": "1.6.0", 2080 | "ms": "2.1.1", 2081 | "on-finished": "2.3.0", 2082 | "range-parser": "1.2.1", 2083 | "statuses": "1.5.0" 2084 | }, 2085 | "dependencies": { 2086 | "http-errors": { 2087 | "version": "1.7.3", 2088 | "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.7.3.tgz", 2089 | "integrity": "sha512-ZTTX0MWrsQ2ZAhA1cejAwDLycFsd7I7nVtnkT3Ol0aqodaKW+0CTZDQ1uBv5whptCnc8e8HeRRJxRs0kmm/Qfw==", 2090 | "dev": true, 2091 | "requires": { 2092 | "depd": "1.1.2", 2093 | "inherits": "2.0.4", 2094 | "setprototypeof": "1.1.1", 2095 | "statuses": "1.5.0", 2096 | "toidentifier": "1.0.0" 2097 | } 2098 | }, 2099 | "inherits": { 2100 | "version": "2.0.4", 2101 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 2102 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 2103 | "dev": true 2104 | }, 2105 | "ms": { 2106 | "version": "2.1.1", 2107 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.1.tgz", 2108 | "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", 2109 | "dev": true 2110 | }, 2111 | "setprototypeof": { 2112 | "version": "1.1.1", 2113 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.1.tgz", 2114 | "integrity": "sha512-JvdAWfbXeIGaZ9cILp38HntZSFSo3mWg6xGcJJsd+d4aRMOqauag1C63dJfDw7OaMYwEbHMOxEZ1lqVRYP2OAw==", 2115 | "dev": true 2116 | } 2117 | } 2118 | }, 2119 | "serve-index": { 2120 | "version": "1.9.1", 2121 | "resolved": "https://registry.npmjs.org/serve-index/-/serve-index-1.9.1.tgz", 2122 | "integrity": "sha1-03aNabHn2C5c4FD/9bRTvqEqkjk=", 2123 | "dev": true, 2124 | "requires": { 2125 | "accepts": "1.3.7", 2126 | "batch": "0.6.1", 2127 | "debug": "2.6.9", 2128 | "escape-html": "1.0.3", 2129 | "http-errors": "1.6.3", 2130 | "mime-types": "2.1.24", 2131 | "parseurl": "1.3.3" 2132 | } 2133 | }, 2134 | "serve-static": { 2135 | "version": "1.14.1", 2136 | "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.1.tgz", 2137 | "integrity": "sha512-JMrvUwE54emCYWlTI+hGrGv5I8dEwmco/00EvkzIIsR7MqrHonbD9pO2MOfFnpFntl7ecpZs+3mW+XbQZu9QCg==", 2138 | "dev": true, 2139 | "requires": { 2140 | "encodeurl": "1.0.2", 2141 | "escape-html": "1.0.3", 2142 | "parseurl": "1.3.3", 2143 | "send": "0.17.1" 2144 | } 2145 | }, 2146 | "setimmediate": { 2147 | "version": "1.0.5", 2148 | "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", 2149 | "integrity": "sha1-KQy7Iy4waULX1+qbg3Mqt4VvgoU=", 2150 | "dev": true 2151 | }, 2152 | "setprototypeof": { 2153 | "version": "1.1.0", 2154 | "resolved": "https://registry.npmjs.org/setprototypeof/-/setprototypeof-1.1.0.tgz", 2155 | "integrity": "sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ==", 2156 | "dev": true 2157 | }, 2158 | "shell-quote": { 2159 | "version": "0.0.1", 2160 | "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-0.0.1.tgz", 2161 | "integrity": "sha1-GkEZbzwDM8SCMjWT1ohuzxU92YY=", 2162 | "dev": true 2163 | }, 2164 | "shelljs": { 2165 | "version": "0.1.4", 2166 | "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.1.4.tgz", 2167 | "integrity": "sha1-37vnjVbDwBaNL7eeEOzR28sH7A4=", 2168 | "dev": true 2169 | }, 2170 | "sigmund": { 2171 | "version": "1.0.1", 2172 | "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", 2173 | "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", 2174 | "dev": true 2175 | }, 2176 | "source-map": { 2177 | "version": "0.1.43", 2178 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.43.tgz", 2179 | "integrity": "sha1-wkvBRspRfBRx9drL4lcbK3+eM0Y=", 2180 | "dev": true, 2181 | "requires": { 2182 | "amdefine": "1.0.1" 2183 | } 2184 | }, 2185 | "sshpk": { 2186 | "version": "1.16.1", 2187 | "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.16.1.tgz", 2188 | "integrity": "sha512-HXXqVUq7+pcKeLqqZj6mHFUMvXtOJt1uoUx09pFW6011inTMxqI8BA8PM95myrIyyKwdnzjdFjLiE6KBPVtJIg==", 2189 | "dev": true, 2190 | "requires": { 2191 | "asn1": "0.2.4", 2192 | "assert-plus": "1.0.0", 2193 | "bcrypt-pbkdf": "1.0.2", 2194 | "dashdash": "1.14.1", 2195 | "ecc-jsbn": "0.1.2", 2196 | "getpass": "0.1.7", 2197 | "jsbn": "0.1.1", 2198 | "safer-buffer": "2.1.2", 2199 | "tweetnacl": "0.14.5" 2200 | } 2201 | }, 2202 | "statuses": { 2203 | "version": "1.5.0", 2204 | "resolved": "https://registry.npmjs.org/statuses/-/statuses-1.5.0.tgz", 2205 | "integrity": "sha1-Fhx9rBd2Wf2YEfQ3cfqZOBR4Yow=", 2206 | "dev": true 2207 | }, 2208 | "stream-browserify": { 2209 | "version": "2.0.1", 2210 | "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.1.tgz", 2211 | "integrity": "sha1-ZiZu5fm9uZQKTkUUyvtDu3Hlyds=", 2212 | "dev": true, 2213 | "requires": { 2214 | "inherits": "2.0.4", 2215 | "readable-stream": "2.3.6" 2216 | }, 2217 | "dependencies": { 2218 | "inherits": { 2219 | "version": "2.0.4", 2220 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 2221 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 2222 | "dev": true 2223 | } 2224 | } 2225 | }, 2226 | "stream-combiner": { 2227 | "version": "0.0.4", 2228 | "resolved": "https://registry.npmjs.org/stream-combiner/-/stream-combiner-0.0.4.tgz", 2229 | "integrity": "sha1-TV5DPBhSYd3mI8o/RMWGvPXErRQ=", 2230 | "dev": true, 2231 | "requires": { 2232 | "duplexer": "0.1.1" 2233 | } 2234 | }, 2235 | "stream-shift": { 2236 | "version": "1.0.0", 2237 | "resolved": "https://registry.npmjs.org/stream-shift/-/stream-shift-1.0.0.tgz", 2238 | "integrity": "sha1-1cdSgl5TZ+eG944Y5EXqIjoVWVI=", 2239 | "dev": true 2240 | }, 2241 | "string_decoder": { 2242 | "version": "1.1.1", 2243 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 2244 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 2245 | "dev": true, 2246 | "requires": { 2247 | "safe-buffer": "5.1.2" 2248 | } 2249 | }, 2250 | "strip-ansi": { 2251 | "version": "3.0.1", 2252 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-3.0.1.tgz", 2253 | "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", 2254 | "dev": true, 2255 | "requires": { 2256 | "ansi-regex": "2.1.1" 2257 | } 2258 | }, 2259 | "supports-color": { 2260 | "version": "5.5.0", 2261 | "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", 2262 | "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", 2263 | "dev": true, 2264 | "requires": { 2265 | "has-flag": "3.0.0" 2266 | } 2267 | }, 2268 | "syntax-error": { 2269 | "version": "0.0.1", 2270 | "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-0.0.1.tgz", 2271 | "integrity": "sha1-AZ0HU0jNjFt58GA8c+U4kafFI10=", 2272 | "dev": true, 2273 | "requires": { 2274 | "esprima": "0.9.9" 2275 | }, 2276 | "dependencies": { 2277 | "esprima": { 2278 | "version": "0.9.9", 2279 | "resolved": "https://registry.npmjs.org/esprima/-/esprima-0.9.9.tgz", 2280 | "integrity": "sha1-G5CSXJddYy1ygpOcO7nDpCPDBJA=", 2281 | "dev": true 2282 | } 2283 | } 2284 | }, 2285 | "through": { 2286 | "version": "2.3.8", 2287 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 2288 | "integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU=", 2289 | "dev": true 2290 | }, 2291 | "timers-browserify": { 2292 | "version": "2.0.2", 2293 | "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-2.0.2.tgz", 2294 | "integrity": "sha1-q0iDz1l9zVCvIRNJoA+8pWrIa4Y=", 2295 | "dev": true, 2296 | "requires": { 2297 | "setimmediate": "1.0.5" 2298 | } 2299 | }, 2300 | "to-utf8": { 2301 | "version": "0.0.1", 2302 | "resolved": "https://registry.npmjs.org/to-utf8/-/to-utf8-0.0.1.tgz", 2303 | "integrity": "sha1-0Xrqcv8vujm55DYBvns/9y4ImFI=", 2304 | "dev": true 2305 | }, 2306 | "toidentifier": { 2307 | "version": "1.0.0", 2308 | "resolved": "https://registry.npmjs.org/toidentifier/-/toidentifier-1.0.0.tgz", 2309 | "integrity": "sha512-yaOH/Pk/VEhBWWTlhI+qXxDFXlejDGcQipMlyxda9nthulaxLZUNcUqFxokp0vcYnvteJln5FNQDRrxj3YcbVw==", 2310 | "dev": true 2311 | }, 2312 | "tough-cookie": { 2313 | "version": "2.4.3", 2314 | "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.4.3.tgz", 2315 | "integrity": "sha512-Q5srk/4vDM54WJsJio3XNn6K2sCG+CQ8G5Wz6bZhRZoAe/+TxjWB/GlFAnYEbkYVlON9FMk/fE3h2RLpPXo4lQ==", 2316 | "dev": true, 2317 | "requires": { 2318 | "psl": "1.2.0", 2319 | "punycode": "1.4.1" 2320 | }, 2321 | "dependencies": { 2322 | "punycode": { 2323 | "version": "1.4.1", 2324 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 2325 | "integrity": "sha1-wNWmOycYgArY4esPpSachN1BhF4=", 2326 | "dev": true 2327 | } 2328 | } 2329 | }, 2330 | "tunnel-agent": { 2331 | "version": "0.6.0", 2332 | "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", 2333 | "integrity": "sha1-J6XeoGs2sEoKmWZ3SykIaPD8QP0=", 2334 | "dev": true, 2335 | "requires": { 2336 | "safe-buffer": "5.1.2" 2337 | } 2338 | }, 2339 | "tweetnacl": { 2340 | "version": "0.14.5", 2341 | "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", 2342 | "integrity": "sha1-WuaBd/GS1EViadEIr6k/+HQ/T2Q=", 2343 | "dev": true 2344 | }, 2345 | "uglify-js": { 2346 | "version": "2.4.24", 2347 | "resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-2.4.24.tgz", 2348 | "integrity": "sha1-+tV1XB4Vd2WLsG/5q25UjJW+vW4=", 2349 | "dev": true, 2350 | "requires": { 2351 | "async": "0.2.10", 2352 | "source-map": "0.1.34", 2353 | "uglify-to-browserify": "1.0.2", 2354 | "yargs": "3.5.4" 2355 | }, 2356 | "dependencies": { 2357 | "source-map": { 2358 | "version": "0.1.34", 2359 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.1.34.tgz", 2360 | "integrity": "sha1-p8/omux7FoLDsZjQrPtH19CQVms=", 2361 | "dev": true, 2362 | "requires": { 2363 | "amdefine": "1.0.1" 2364 | } 2365 | } 2366 | } 2367 | }, 2368 | "uglify-to-browserify": { 2369 | "version": "1.0.2", 2370 | "resolved": "https://registry.npmjs.org/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz", 2371 | "integrity": "sha1-bgkk1r2mta/jSeOabWMoUKD4grc=", 2372 | "dev": true 2373 | }, 2374 | "ultron": { 2375 | "version": "1.1.1", 2376 | "resolved": "https://registry.npmjs.org/ultron/-/ultron-1.1.1.tgz", 2377 | "integrity": "sha512-UIEXBNeYmKptWH6z8ZnqTeS8fV74zG0/eRU9VGkpzz+LIJNs8W/zM/L+7ctCkRrgbNnnR0xxw4bKOr0cW0N0Og==", 2378 | "dev": true 2379 | }, 2380 | "umd": { 2381 | "version": "1.3.1", 2382 | "resolved": "https://registry.npmjs.org/umd/-/umd-1.3.1.tgz", 2383 | "integrity": "sha1-/OVXwtv3MfvCB4Mv819qWFcYJYk=", 2384 | "dev": true, 2385 | "requires": { 2386 | "rfile": "1.0.0", 2387 | "ruglify": "1.0.0", 2388 | "through": "2.3.8", 2389 | "uglify-js": "2.4.24" 2390 | } 2391 | }, 2392 | "underscore.string": { 2393 | "version": "2.2.1", 2394 | "resolved": "https://registry.npmjs.org/underscore.string/-/underscore.string-2.2.1.tgz", 2395 | "integrity": "sha1-18D6KvXVoaZ/QlPa7pgTLnM/Dxk=", 2396 | "dev": true 2397 | }, 2398 | "unpipe": { 2399 | "version": "1.0.0", 2400 | "resolved": "https://registry.npmjs.org/unpipe/-/unpipe-1.0.0.tgz", 2401 | "integrity": "sha1-sr9O6FFKrmFltIF4KdIbLvSZBOw=", 2402 | "dev": true 2403 | }, 2404 | "uri-js": { 2405 | "version": "4.2.2", 2406 | "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.2.2.tgz", 2407 | "integrity": "sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==", 2408 | "dev": true, 2409 | "requires": { 2410 | "punycode": "2.1.1" 2411 | }, 2412 | "dependencies": { 2413 | "punycode": { 2414 | "version": "2.1.1", 2415 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.1.1.tgz", 2416 | "integrity": "sha512-XRsRjdf+j5ml+y/6GKHPZbrF/8p2Yga0JPtdqTIY2Xe5ohJPD9saDJJLPvp9+NSBprVvevdXZybnj2cv8OEd0A==", 2417 | "dev": true 2418 | } 2419 | } 2420 | }, 2421 | "uri-path": { 2422 | "version": "1.0.0", 2423 | "resolved": "https://registry.npmjs.org/uri-path/-/uri-path-1.0.0.tgz", 2424 | "integrity": "sha1-l0fwGDWJM8Md4PzP2C0TjmcmLjI=", 2425 | "dev": true 2426 | }, 2427 | "url": { 2428 | "version": "0.11.0", 2429 | "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", 2430 | "integrity": "sha1-ODjpfPxgUh63PFJajlW/3Z4uKPE=", 2431 | "dev": true, 2432 | "requires": { 2433 | "punycode": "1.3.2", 2434 | "querystring": "0.2.0" 2435 | }, 2436 | "dependencies": { 2437 | "punycode": { 2438 | "version": "1.3.2", 2439 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", 2440 | "integrity": "sha1-llOgNvt8HuQjQvIyXM7v6jkmxI0=", 2441 | "dev": true 2442 | } 2443 | } 2444 | }, 2445 | "util": { 2446 | "version": "0.10.3", 2447 | "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", 2448 | "integrity": "sha1-evsa/lCAUkZInj23/g7TeTNqwPk=", 2449 | "dev": true, 2450 | "requires": { 2451 | "inherits": "2.0.1" 2452 | }, 2453 | "dependencies": { 2454 | "inherits": { 2455 | "version": "2.0.1", 2456 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", 2457 | "integrity": "sha1-sX0I0ya0Qj5Wjv9xn5GwscvfafE=", 2458 | "dev": true 2459 | } 2460 | } 2461 | }, 2462 | "util-deprecate": { 2463 | "version": "1.0.2", 2464 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 2465 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 2466 | "dev": true 2467 | }, 2468 | "utils-merge": { 2469 | "version": "1.0.1", 2470 | "resolved": "https://registry.npmjs.org/utils-merge/-/utils-merge-1.0.1.tgz", 2471 | "integrity": "sha1-n5VxD1CiZ5R7LMwSR0HBAoQn5xM=", 2472 | "dev": true 2473 | }, 2474 | "uuid": { 2475 | "version": "3.3.2", 2476 | "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.3.2.tgz", 2477 | "integrity": "sha512-yXJmeNaw3DnnKAOKJE51sL/ZaYfWJRl1pK9dr19YFCu0ObS231AB1/LbqTKRAQ5kw8A90rA6fr4riOUpTZvQZA==", 2478 | "dev": true 2479 | }, 2480 | "verror": { 2481 | "version": "1.10.0", 2482 | "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", 2483 | "integrity": "sha1-OhBcoXBTr1XW4nDB+CiGguGNpAA=", 2484 | "dev": true, 2485 | "requires": { 2486 | "assert-plus": "1.0.0", 2487 | "core-util-is": "1.0.2", 2488 | "extsprintf": "1.3.0" 2489 | } 2490 | }, 2491 | "vm-browserify": { 2492 | "version": "0.0.4", 2493 | "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-0.0.4.tgz", 2494 | "integrity": "sha1-XX6kW7755Kb/ZflUOOCofDV9WnM=", 2495 | "dev": true, 2496 | "requires": { 2497 | "indexof": "0.0.1" 2498 | } 2499 | }, 2500 | "websocket-stream": { 2501 | "version": "5.5.0", 2502 | "resolved": "https://registry.npmjs.org/websocket-stream/-/websocket-stream-5.5.0.tgz", 2503 | "integrity": "sha512-EXy/zXb9kNHI07TIMz1oIUIrPZxQRA8aeJ5XYg5ihV8K4kD1DuA+FY6R96HfdIHzlSzS8HiISAfrm+vVQkZBug==", 2504 | "dev": true, 2505 | "requires": { 2506 | "duplexify": "3.7.1", 2507 | "inherits": "2.0.4", 2508 | "readable-stream": "2.3.6", 2509 | "safe-buffer": "5.1.2", 2510 | "ws": "3.3.3", 2511 | "xtend": "4.0.1" 2512 | }, 2513 | "dependencies": { 2514 | "inherits": { 2515 | "version": "2.0.4", 2516 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 2517 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 2518 | "dev": true 2519 | } 2520 | } 2521 | }, 2522 | "when": { 2523 | "version": "3.7.8", 2524 | "resolved": "https://registry.npmjs.org/when/-/when-3.7.8.tgz", 2525 | "integrity": "sha1-xxMLan6gRpPoQs3J56Hyqjmjn4I=", 2526 | "dev": true 2527 | }, 2528 | "which": { 2529 | "version": "1.0.9", 2530 | "resolved": "https://registry.npmjs.org/which/-/which-1.0.9.tgz", 2531 | "integrity": "sha1-RgwdoPgQED0DIam2M6+eV15kSG8=", 2532 | "dev": true 2533 | }, 2534 | "window-size": { 2535 | "version": "0.1.0", 2536 | "resolved": "https://registry.npmjs.org/window-size/-/window-size-0.1.0.tgz", 2537 | "integrity": "sha1-VDjNLqk7IC76Ohn+iIeu58lPnJ0=", 2538 | "dev": true 2539 | }, 2540 | "wordwrap": { 2541 | "version": "0.0.2", 2542 | "resolved": "https://registry.npmjs.org/wordwrap/-/wordwrap-0.0.2.tgz", 2543 | "integrity": "sha1-t5Zpu0LstAn4PVg8rVLKF+qhZD8=", 2544 | "dev": true 2545 | }, 2546 | "wrappy": { 2547 | "version": "1.0.2", 2548 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 2549 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 2550 | "dev": true 2551 | }, 2552 | "ws": { 2553 | "version": "3.3.3", 2554 | "resolved": "https://registry.npmjs.org/ws/-/ws-3.3.3.tgz", 2555 | "integrity": "sha512-nnWLa/NwZSt4KQJu51MYlCcSQ5g7INpOrOMt4XV8j4dqTXdmlUmSHQ8/oLC069ckre0fRsgfvsKwbTdtKLCDkA==", 2556 | "dev": true, 2557 | "requires": { 2558 | "async-limiter": "1.0.0", 2559 | "safe-buffer": "5.1.2", 2560 | "ultron": "1.1.1" 2561 | } 2562 | }, 2563 | "xtend": { 2564 | "version": "4.0.1", 2565 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.1.tgz", 2566 | "integrity": "sha1-pcbVMr5lbiPbgg77lDofBJmNY68=", 2567 | "dev": true 2568 | }, 2569 | "yargs": { 2570 | "version": "3.5.4", 2571 | "resolved": "https://registry.npmjs.org/yargs/-/yargs-3.5.4.tgz", 2572 | "integrity": "sha1-2K/49mXpTDS9JZvevRv68N3TU2E=", 2573 | "dev": true, 2574 | "requires": { 2575 | "camelcase": "1.2.1", 2576 | "decamelize": "1.2.0", 2577 | "window-size": "0.1.0", 2578 | "wordwrap": "0.0.2" 2579 | } 2580 | }, 2581 | "zlib-browserify": { 2582 | "version": "0.0.1", 2583 | "resolved": "https://registry.npmjs.org/zlib-browserify/-/zlib-browserify-0.0.1.tgz", 2584 | "integrity": "sha1-T6akXQDbwV8xikr6HZr8Aljhdsw=", 2585 | "dev": true 2586 | } 2587 | } 2588 | } 2589 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "jszip-utils", 3 | "version": "0.1.0", 4 | "author": "Stuart Knightley ", 5 | "description": "A collection of cross-browser utilities to go along with JSZip.", 6 | "scripts": { 7 | "test": "npm run test-browser", 8 | "test-browser": "grunt build && grunt test", 9 | "lint": "grunt jshint" 10 | }, 11 | "main": "./lib/index", 12 | "repository": { 13 | "type": "git", 14 | "url": "https://github.com/Stuk/jszip-utils.git" 15 | }, 16 | "contributors": [ 17 | { 18 | "name": "David Duponchel" 19 | } 20 | ], 21 | "keywords": [ 22 | "JSZip", 23 | "ajax", 24 | "cross browser", 25 | "IE", 26 | "Internet Explorer" 27 | ], 28 | "devDependencies": { 29 | "browserify": "~2.35.0", 30 | "grunt": "~0.4.1", 31 | "grunt-browserify": "~1.3.0", 32 | "grunt-cli": "~0.1.9", 33 | "grunt-contrib-connect": "~2.0.0", 34 | "grunt-contrib-jshint": "~0.6.4", 35 | "grunt-contrib-uglify": "~4.0.1", 36 | "grunt-saucelabs": "Stuk/grunt-saucelabs#v10.0.0", 37 | "jshint": "~2.1.11", 38 | "qunit": "~2.9.2", 39 | "qunitjs": "2.0.1" 40 | }, 41 | "license": "(MIT OR GPL-3.0)" 42 | } 43 | -------------------------------------------------------------------------------- /test/index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | JSZip Testing 6 | 7 | 8 | 9 | 37 | 38 | 39 | 42 | 45 | 46 | 47 | 48 | 49 | 50 |
51 |
52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /test/ref/amount.txt: -------------------------------------------------------------------------------- 1 | €15 2 | -------------------------------------------------------------------------------- /test/ref/smile.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Stuk/jszip-utils/a01c0fa02c3b32ec44d6743e3b3d4e563c439271/test/ref/smile.gif -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- 1 | 'use strict'; 2 | 3 | /** 4 | * This is an helper function to transform the input into a binary string. 5 | * The transformation is normaly handled by JSZip. 6 | * @param {String|ArrayBuffer} input the input to convert. 7 | * @return {String} the binary string. 8 | */ 9 | function toString(input) { 10 | var result = "", 11 | i, len, isArray = (typeof input !== "string"); 12 | 13 | if (isArray) { 14 | input = new Uint8Array(input); 15 | } 16 | 17 | for (i = 0, len = input.length; i < len; i++) { 18 | result += String.fromCharCode( 19 | (isArray ? input[i] : input.charCodeAt(i)) % 0xFF 20 | ); 21 | } 22 | 23 | return result; 24 | } 25 | 26 | QUnit.module("callback"); 27 | 28 | QUnit.test("JSZipUtils.getBinaryContent, text, 200 OK", function (assert) { 29 | var done = assert.async(); 30 | var p = JSZipUtils.getBinaryContent("ref/amount.txt", function (err, data) { 31 | assert.equal(err, null, "no error"); 32 | assert.equal(toString(data), "\xe2\x82\xac\x31\x35\x0a", "The content has been fetched"); 33 | done(); 34 | }); 35 | assert.strictEqual(p, undefined, 'not return promise'); 36 | }); 37 | 38 | QUnit.test("JSZipUtils.getBinaryContent, image, 200 OK", function (assert) { 39 | var done = assert.async(); 40 | var p = JSZipUtils.getBinaryContent("ref/smile.gif", function (err, data) { 41 | assert.equal(err, null, "no error"); 42 | assert.equal(toString(data).indexOf("\x47\x49\x46\x38\x37\x61"), 0, "The content has been fetched"); 43 | done(); 44 | }); 45 | assert.strictEqual(p, undefined, 'not return promise'); 46 | }); 47 | 48 | QUnit.test("JSZipUtils.getBinaryContent, 404 NOT FOUND", function (assert) { 49 | var done = assert.async(); 50 | var p = JSZipUtils.getBinaryContent("ref/nothing", function (err, data) { 51 | assert.equal(data, null, "no error"); 52 | assert.ok(err instanceof Error, "The error is an Error"); 53 | done(); 54 | }); 55 | assert.strictEqual(p, undefined, 'not return promise'); 56 | }); 57 | 58 | 59 | 60 | QUnit.module("options={callback}"); 61 | 62 | QUnit.test("JSZipUtils.getBinaryContent, text, 200 OK", function (assert) { 63 | var done = assert.async(); 64 | var p = JSZipUtils.getBinaryContent("ref/amount.txt", { 65 | callback: function (err, data) { 66 | assert.equal(err, null, "no error"); 67 | assert.equal(toString(data), "\xe2\x82\xac\x31\x35\x0a", "The content has been fetched"); 68 | done(); 69 | } 70 | }); 71 | assert.strictEqual(p, undefined, 'not return promise'); 72 | }); 73 | 74 | QUnit.test("JSZipUtils.getBinaryContent, image, 200 OK", function (assert) { 75 | var done = assert.async(); 76 | var p = JSZipUtils.getBinaryContent("ref/smile.gif", { 77 | callback: function (err, data) { 78 | assert.equal(err, null, "no error"); 79 | assert.equal(toString(data).indexOf("\x47\x49\x46\x38\x37\x61"), 0, "The content has been fetched"); 80 | done(); 81 | } 82 | }); 83 | assert.strictEqual(p, undefined, 'not return promise'); 84 | }); 85 | 86 | QUnit.test("JSZipUtils.getBinaryContent, 404 NOT FOUND", function (assert) { 87 | var done = assert.async(); 88 | var p = JSZipUtils.getBinaryContent("ref/nothing", { 89 | callback: function (err, data) { 90 | assert.equal(data, null, "no error"); 91 | assert.ok(err instanceof Error, "The error is an Error"); 92 | done(); 93 | } 94 | }); 95 | assert.strictEqual(p, undefined, 'not return promise'); 96 | }); 97 | 98 | // Guard Promise tests for IE 99 | if (typeof Promise === "undefined") { 100 | QUnit.module("Promises"); 101 | QUnit.skip("Skipping promise tests"); 102 | } else { 103 | QUnit.module("Promise (no parameters)"); 104 | 105 | QUnit.test("JSZipUtils.getBinaryContent amount, text, 200 OK", function (assert) { 106 | var done = assert.async(); 107 | JSZipUtils.getBinaryContent("ref/amount.txt").then(function (data) { 108 | assert.equal(toString(data), "\xe2\x82\xac\x31\x35\x0a", "The content has been fetched"); 109 | done(); 110 | }) 111 | .catch(function (err) { 112 | assert.equal(err, null, "no error"); 113 | done(); 114 | }); 115 | }); 116 | 117 | QUnit.test("JSZipUtils.getBinaryContent smile, image, 200 OK", function (assert) { 118 | var done = assert.async(); 119 | JSZipUtils.getBinaryContent("ref/smile.gif").then(function (data) { 120 | assert.equal(toString(data).indexOf("\x47\x49\x46\x38\x37\x61"), 0, "The content has been fetched"); 121 | done(); 122 | }).catch(function (err) { 123 | assert.equal(err, null, "no error"); 124 | done(); 125 | }); 126 | }); 127 | 128 | QUnit.test("JSZipUtils.getBinaryContent nothing, 404 NOT FOUND", function (assert) { 129 | var done = assert.async(); 130 | JSZipUtils.getBinaryContent("ref/nothing").then(function (data) { 131 | assert.equal(data, null, "no error"); 132 | done(); 133 | }).catch(function (err) { 134 | assert.ok(err instanceof Error, "The error is an Error"); 135 | done(); 136 | }); 137 | }); 138 | 139 | QUnit.module("Promise, options={}"); 140 | 141 | QUnit.test("JSZipUtils.getBinaryContent amount, text, 200 OK", function (assert) { 142 | var done = assert.async(); 143 | JSZipUtils.getBinaryContent("ref/amount.txt", {}).then(function (data) { 144 | assert.equal(toString(data), "\xe2\x82\xac\x31\x35\x0a", "The content has been fetched"); 145 | done(); 146 | }) 147 | .catch(function (err) { 148 | assert.equal(err, null, "no error"); 149 | done(); 150 | }); 151 | }); 152 | 153 | QUnit.test("JSZipUtils.getBinaryContent smile, image, 200 OK", function (assert) { 154 | var done = assert.async(); 155 | JSZipUtils.getBinaryContent("ref/smile.gif", {}).then(function (data) { 156 | assert.equal(toString(data).indexOf("\x47\x49\x46\x38\x37\x61"), 0, "The content has been fetched"); 157 | done(); 158 | }).catch(function (err) { 159 | assert.equal(err, null, "no error"); 160 | done(); 161 | }); 162 | }); 163 | 164 | QUnit.test("JSZipUtils.getBinaryContent nothing, 404 NOT FOUND", function (assert) { 165 | var done = assert.async(); 166 | JSZipUtils.getBinaryContent("ref/nothing", {}).then(function (data) { 167 | assert.equal(data, null, "no error"); 168 | done(); 169 | }).catch(function (err) { 170 | assert.ok(err instanceof Error, "The error is an Error"); 171 | done(); 172 | }); 173 | }); 174 | 175 | QUnit.module("Promise, options={progress}"); 176 | 177 | QUnit.test("JSZipUtils.getBinaryContent amount, text, 200 OK", function (assert) { 178 | var done = assert.async(); 179 | var progress = assert.async(); 180 | JSZipUtils.getBinaryContent("ref/amount.txt", { progress: function(e){ 181 | assert.ok(true, 'progress to be called'); 182 | assert.strictEqual(e.total, 6, 'total'); 183 | progress(); 184 | }}).then(function (data) { 185 | assert.equal(toString(data), "\xe2\x82\xac\x31\x35\x0a", "The content has been fetched"); 186 | done(); 187 | }) 188 | .catch(function (err) { 189 | assert.equal(err, null, "no error"); 190 | done(); 191 | }); 192 | }); 193 | 194 | QUnit.test("JSZipUtils.getBinaryContent smile, image, 200 OK", function (assert) { 195 | var done = assert.async(); 196 | var progress = assert.async(); 197 | JSZipUtils.getBinaryContent("ref/smile.gif", { progress: function(e){ 198 | assert.ok(true, 'progress to be called'); 199 | assert.strictEqual(e.total, 41, 'total'); 200 | progress(); 201 | }}).then(function (data) { 202 | assert.equal(toString(data).indexOf("\x47\x49\x46\x38\x37\x61"), 0, "The content has been fetched"); 203 | done(); 204 | }).catch(function (err) { 205 | assert.equal(err, null, "no error"); 206 | done(); 207 | }); 208 | }); 209 | 210 | QUnit.test("JSZipUtils.getBinaryContent nothing, 404 NOT FOUND", function (assert) { 211 | var done = assert.async(); 212 | 213 | JSZipUtils.getBinaryContent("ref/nothing", { progress: function(e){ 214 | 215 | }}).then(function (data) { 216 | assert.equal(data, null, "no error"); 217 | done(); 218 | }).catch(function (err) { 219 | assert.ok(err instanceof Error, "The error is an Error"); 220 | done(); 221 | }); 222 | }); 223 | } // Promise tests 224 | 225 | // enforcing Stuk's coding style 226 | // vim: set shiftwidth=4 softtabstop=4: 227 | --------------------------------------------------------------------------------