├── .gitignore ├── .jsbeautifyrc ├── .jshintrc ├── LICENSE ├── README.md ├── bower.json ├── index.js ├── package-lock.json ├── package.json ├── test.html └── test.js /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules/ 2 | npm-debug.log 3 | bundle.js 4 | -------------------------------------------------------------------------------- /.jsbeautifyrc: -------------------------------------------------------------------------------- 1 | { 2 | "indent_size": 4, 3 | "indent_size": 2, 4 | "indent_char": " ", 5 | "eol": "\n", 6 | "indent_level": 0, 7 | "indent_with_tabs": false, 8 | "preserve_newlines": true, 9 | "max_preserve_newlines": 2, 10 | "jslint_happy": true, 11 | "brace_style": "collapse", 12 | "keep_array_indentation": false, 13 | "keep_function_indentation": false, 14 | "space-in-paren": true, 15 | "space_before_conditional": true, 16 | "break_chained_methods": false, 17 | "eval_code": false, 18 | "unescape_strings": false, 19 | "wrap_line_length": 0, 20 | "wrap_attributes": "auto", 21 | "wrap_attributes_indent_size": 4, 22 | "end_with_newline": false 23 | } 24 | -------------------------------------------------------------------------------- /.jshintrc: -------------------------------------------------------------------------------- 1 | { 2 | // JSHint Default Configuration File (as on JSHint website) 3 | // See http://jshint.com/docs/ for more details 4 | 5 | "maxerr" : 50, // {int} Maximum error before stopping 6 | 7 | // Enforcing 8 | "bitwise" : true, // true: Prohibit bitwise operators (&, |, ^, etc.) 9 | "camelcase" : true, // true: Identifiers must be in camelCase 10 | "curly" : true, // true: Require {} for every new block or scope 11 | "forin" : true, // true: Require filtering for..in loops with obj.hasOwnProperty() 12 | "indent" : 4, // {int} Number of spaces to use for indentation 13 | "newcap" : true, // true: Require capitalization of all constructor functions 14 | "noarg" : true, // true: Prohibit use of `arguments.caller`, `arguments.callee` 15 | "noempty" : true, // true: Prohibit use of empty blocks 16 | "nonew" : true, // true: Prohibit use of constructors without assignment 17 | "undef" : true, // true: Require all non-global variables to be declared 18 | "unused" : true, // true: Require all defined variables be used 19 | "strict" : true, // true: Requires all functions run in ES5 Strict Mode 20 | "trailing" : true, // true: Prohibit trailing whitespaces 21 | 22 | // Relaxing 23 | "asi" : false, // true: Tolerate Automatic Semicolon Insertion (no semicolons) 24 | "boss" : false, // true: Tolerate assignments where comparisons are expected 25 | "eqnull" : false, // true: Tolerate use of `== null` 26 | "esnext" : true, // true: Allow ES.next (ES6) syntax (ex: `const`) 27 | "evil" : false, // true: Tolerate use of `eval` and `new Function()` 28 | "funcscope" : true, // true: Tolerate defining variables inside control statements" 29 | "globalstrict" : true, // true: Allow global "use strict" (also enables 'strict') 30 | "iterator" : false, // true: Tolerate using the `__iterator__` property 31 | "lastsemic" : false, // true: Tolerate omitting a semicolon for the last statement 32 | "laxbreak" : false, // true: Tolerate possibly unsafe line breakings 33 | "laxcomma" : false, // true: Tolerate comma-first style coding 34 | "loopfunc" : true, // true: Tolerate functions being defined in loops 35 | "multistr" : false, // true: Tolerate multi-line strings 36 | "proto" : false, // true: Tolerate using the `__proto__` property 37 | "scripturl" : false, // true: Tolerate script-targeted URLs 38 | "smarttabs" : false, // true: Tolerate mixed tabs/spaces when used for alignment 39 | "shadow" : false, // true: Allows re-define variables later in code. 40 | "sub" : false, // true: Tolerate using `[]` notation 41 | "supernew" : false, // true: Tolerate `new function () { ... };` and `new Object;` 42 | "validthis" : false, // true: Tolerate using this in a non-constructor function 43 | 44 | // Environments 45 | "browser" : true, // Web Browser (window, document, etc) 46 | "devel" : true, // Development/debugging (alert, confirm, etc) 47 | "jquery" : true, 48 | "node" : true, 49 | 50 | // Custom Globals 51 | "globals" : { 52 | "define" : true, 53 | "AudioContext" : true, 54 | "AudioParam" : true, 55 | "AudioNode" : true, 56 | "AudioBuffer" : true, 57 | "Hammer": true 58 | } // additional predefined global variables 59 | } 60 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | Apache License 2 | Version 2.0, January 2004 3 | http://www.apache.org/licenses/ 4 | 5 | TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 6 | 7 | 1. Definitions. 8 | 9 | "License" shall mean the terms and conditions for use, reproduction, 10 | and distribution as defined by Sections 1 through 9 of this document. 11 | 12 | "Licensor" shall mean the copyright owner or entity authorized by 13 | the copyright owner that is granting the License. 14 | 15 | "Legal Entity" shall mean the union of the acting entity and all 16 | other entities that control, are controlled by, or are under common 17 | control with that entity. For the purposes of this definition, 18 | "control" means (i) the power, direct or indirect, to cause the 19 | direction or management of such entity, whether by contract or 20 | otherwise, or (ii) ownership of fifty percent (50%) or more of the 21 | outstanding shares, or (iii) beneficial ownership of such entity. 22 | 23 | "You" (or "Your") shall mean an individual or Legal Entity 24 | exercising permissions granted by this License. 25 | 26 | "Source" form shall mean the preferred form for making modifications, 27 | including but not limited to software source code, documentation 28 | source, and configuration files. 29 | 30 | "Object" form shall mean any form resulting from mechanical 31 | transformation or translation of a Source form, including but 32 | not limited to compiled object code, generated documentation, 33 | and conversions to other media types. 34 | 35 | "Work" shall mean the work of authorship, whether in Source or 36 | Object form, made available under the License, as indicated by a 37 | copyright notice that is included in or attached to the work 38 | (an example is provided in the Appendix below). 39 | 40 | "Derivative Works" shall mean any work, whether in Source or Object 41 | form, that is based on (or derived from) the Work and for which the 42 | editorial revisions, annotations, elaborations, or other modifications 43 | represent, as a whole, an original work of authorship. For the purposes 44 | of this License, Derivative Works shall not include works that remain 45 | separable from, or merely link (or bind by name) to the interfaces of, 46 | the Work and Derivative Works thereof. 47 | 48 | "Contribution" shall mean any work of authorship, including 49 | the original version of the Work and any modifications or additions 50 | to that Work or Derivative Works thereof, that is intentionally 51 | submitted to Licensor for inclusion in the Work by the copyright owner 52 | or by an individual or Legal Entity authorized to submit on behalf of 53 | the copyright owner. For the purposes of this definition, "submitted" 54 | means any form of electronic, verbal, or written communication sent 55 | to the Licensor or its representatives, including but not limited to 56 | communication on electronic mailing lists, source code control systems, 57 | and issue tracking systems that are managed by, or on behalf of, the 58 | Licensor for the purpose of discussing and improving the Work, but 59 | excluding communication that is conspicuously marked or otherwise 60 | designated in writing by the copyright owner as "Not a Contribution." 61 | 62 | "Contributor" shall mean Licensor and any individual or Legal Entity 63 | on behalf of whom a Contribution has been received by Licensor and 64 | subsequently incorporated within the Work. 65 | 66 | 2. Grant of Copyright License. Subject to the terms and conditions of 67 | this License, each Contributor hereby grants to You a perpetual, 68 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 69 | copyright license to reproduce, prepare Derivative Works of, 70 | publicly display, publicly perform, sublicense, and distribute the 71 | Work and such Derivative Works in Source or Object form. 72 | 73 | 3. Grant of Patent License. Subject to the terms and conditions of 74 | this License, each Contributor hereby grants to You a perpetual, 75 | worldwide, non-exclusive, no-charge, royalty-free, irrevocable 76 | (except as stated in this section) patent license to make, have made, 77 | use, offer to sell, sell, import, and otherwise transfer the Work, 78 | where such license applies only to those patent claims licensable 79 | by such Contributor that are necessarily infringed by their 80 | Contribution(s) alone or by combination of their Contribution(s) 81 | with the Work to which such Contribution(s) was submitted. If You 82 | institute patent litigation against any entity (including a 83 | cross-claim or counterclaim in a lawsuit) alleging that the Work 84 | or a Contribution incorporated within the Work constitutes direct 85 | or contributory patent infringement, then any patent licenses 86 | granted to You under this License for that Work shall terminate 87 | as of the date such litigation is filed. 88 | 89 | 4. Redistribution. You may reproduce and distribute copies of the 90 | Work or Derivative Works thereof in any medium, with or without 91 | modifications, and in Source or Object form, provided that You 92 | meet the following conditions: 93 | 94 | (a) You must give any other recipients of the Work or 95 | Derivative Works a copy of this License; and 96 | 97 | (b) You must cause any modified files to carry prominent notices 98 | stating that You changed the files; and 99 | 100 | (c) You must retain, in the Source form of any Derivative Works 101 | that You distribute, all copyright, patent, trademark, and 102 | attribution notices from the Source form of the Work, 103 | excluding those notices that do not pertain to any part of 104 | the Derivative Works; and 105 | 106 | (d) If the Work includes a "NOTICE" text file as part of its 107 | distribution, then any Derivative Works that You distribute must 108 | include a readable copy of the attribution notices contained 109 | within such NOTICE file, excluding those notices that do not 110 | pertain to any part of the Derivative Works, in at least one 111 | of the following places: within a NOTICE text file distributed 112 | as part of the Derivative Works; within the Source form or 113 | documentation, if provided along with the Derivative Works; or, 114 | within a display generated by the Derivative Works, if and 115 | wherever such third-party notices normally appear. The contents 116 | of the NOTICE file are for informational purposes only and 117 | do not modify the License. You may add Your own attribution 118 | notices within Derivative Works that You distribute, alongside 119 | or as an addendum to the NOTICE text from the Work, provided 120 | that such additional attribution notices cannot be construed 121 | as modifying the License. 122 | 123 | You may add Your own copyright statement to Your modifications and 124 | may provide additional or different license terms and conditions 125 | for use, reproduction, or distribution of Your modifications, or 126 | for any such Derivative Works as a whole, provided Your use, 127 | reproduction, and distribution of the Work otherwise complies with 128 | the conditions stated in this License. 129 | 130 | 5. Submission of Contributions. Unless You explicitly state otherwise, 131 | any Contribution intentionally submitted for inclusion in the Work 132 | by You to the Licensor shall be under the terms and conditions of 133 | this License, without any additional terms or conditions. 134 | Notwithstanding the above, nothing herein shall supersede or modify 135 | the terms of any separate license agreement you may have executed 136 | with Licensor regarding such Contributions. 137 | 138 | 6. Trademarks. This License does not grant permission to use the trade 139 | names, trademarks, service marks, or product names of the Licensor, 140 | except as required for reasonable and customary use in describing the 141 | origin of the Work and reproducing the content of the NOTICE file. 142 | 143 | 7. Disclaimer of Warranty. Unless required by applicable law or 144 | agreed to in writing, Licensor provides the Work (and each 145 | Contributor provides its Contributions) on an "AS IS" BASIS, 146 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 147 | implied, including, without limitation, any warranties or conditions 148 | of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A 149 | PARTICULAR PURPOSE. You are solely responsible for determining the 150 | appropriateness of using or redistributing the Work and assume any 151 | risks associated with Your exercise of permissions under this License. 152 | 153 | 8. Limitation of Liability. In no event and under no legal theory, 154 | whether in tort (including negligence), contract, or otherwise, 155 | unless required by applicable law (such as deliberate and grossly 156 | negligent acts) or agreed to in writing, shall any Contributor be 157 | liable to You for damages, including any direct, indirect, special, 158 | incidental, or consequential damages of any character arising as a 159 | result of this License or out of the use or inability to use the 160 | Work (including but not limited to damages for loss of goodwill, 161 | work stoppage, computer failure or malfunction, or any and all 162 | other commercial damages or losses), even if such Contributor 163 | has been advised of the possibility of such damages. 164 | 165 | 9. Accepting Warranty or Additional Liability. While redistributing 166 | the Work or Derivative Works thereof, You may choose to offer, 167 | and charge a fee for, acceptance of support, warranty, indemnity, 168 | or other liability obligations and/or rights consistent with this 169 | License. However, in accepting such obligations, You may act only 170 | on Your own behalf and on Your sole responsibility, not on behalf 171 | of any other Contributor, and only if You agree to indemnify, 172 | defend, and hold each Contributor harmless for any liability 173 | incurred by, or claims asserted against, such Contributor by reason 174 | of your accepting any such warranty or additional liability. 175 | 176 | END OF TERMS AND CONDITIONS 177 | 178 | APPENDIX: How to apply the Apache License to your work. 179 | 180 | To apply the Apache License to your work, attach the following 181 | boilerplate notice, with the fields enclosed by brackets "{}" 182 | replaced with your own identifying information. (Don't include 183 | the brackets!) The text should be enclosed in the appropriate 184 | comment syntax for the file format. We also recommend that a 185 | file or class name and description of purpose be included on the 186 | same "printed page" as the copyright notice for easier 187 | identification within third-party archives. 188 | 189 | Copyright 2015 Chinmay Pendharkar 190 | 191 | Licensed under the Apache License, Version 2.0 (the "License"); 192 | you may not use this file except in compliance with the License. 193 | You may obtain a copy of the License at 194 | 195 | http://www.apache.org/licenses/LICENSE-2.0 196 | 197 | Unless required by applicable law or agreed to in writing, software 198 | distributed under the License is distributed on an "AS IS" BASIS, 199 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 200 | See the License for the specific language governing permissions and 201 | limitations under the License. 202 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # smoothfade 2 | 3 | [![npm version](https://badge.fury.io/js/smoothfade.svg)](http://badge.fury.io/js/smoothfade) 4 | 5 | Smooth fading of volume (gain) in [WebAudio](http://webaudio.github.io/web-audio-api/) is possible with parameter automation on the [GainNode](http://webaudio.github.io/web-audio-api/#the-gainnode-interface). 6 | 7 | However, currently, there is no easy way to stop and change (for eg. reverse) an automation smoothly. Once an [AudioParam](http://webaudio.github.io/web-audio-api/#idl-def-AudioParam) is automated, there is no easy way to know it's value at a given point of time except for calculating it manually using the [automation equations](http://webaudio.github.io/web-audio-api/#widl-AudioParam-exponentialRampToValueAtTime-void-float-value-double-endTime). Hence stopping and reversing the automation is not trivial. 8 | 9 | [This JSFiddle](http://jsfiddle.net/notthetup/zrLb0pcy/) shows the various techniques that don't work for smooth fading, and finally the calculation based technique which does. 10 | 11 | This library does the calculation and allows fading in/out smoothly. 12 | 13 | # Usage 14 | 15 | ``` 16 | npm install smoothfade 17 | ``` 18 | 19 | ```js 20 | // wrap the smoothfade around a gain node 21 | 22 | var sm = smoothfade(context, gain); 23 | 24 | 25 | // use fadeIn/fadeOut functions to 26 | // fadeIn/fadeOut the audio. 27 | 28 | sm.fadeIn(); 29 | 30 | sm.fadeOut(); 31 | ``` 32 | 33 | 34 | # API 35 | 36 | ## Constructor 37 | 38 | eg: `var sm = smoothfade(context, gainNode, options);` 39 | 40 | - `context`: __AudioContext__ - The [AudioContext](http://webaudio.github.io/web-audio-api/#the-audiocontext-interface) within which the [GainNode](http://webaudio.github.io/web-audio-api/#idl-def-AudioNode) has been created. 41 | - `gainNode`: __GainNode__ - The [GainNode](http://webaudio.github.io/web-audio-api/#the-gainnode-interface) which is connected to the audio graph which needs to be faded in/out. 42 | - `options`: __Object__ - Optional object attribute which contains extra configuration options in the following format 43 | - `startValue` : __Number__ - The initial starting value of the gainNode. If not specified, the library attempts to read it from the gainNode itself. This is useful if the gainNode is already being automated before this library is initialized. 44 | - `type` : __String__ - The type of automation to use. Currently support 'linear' and 'exponential'. 'exponential' fade is considered to be more natural to human ears and hence is the default 45 | - `fadeLength` : __Number__ - The time taken (in seconds) for a complete fadeout (from 1 - 0) or fadein (from 0 - 1). This determines how quickly the volume fades for both fadeins and fadeouts. This defaults to 10. 46 | 47 | 48 | ## Methods 49 | 50 | - `fadeIn` : Fade in the audio. Slowly increase the gain of gainNode. 51 | - eg : 52 | ```js 53 | sm.fadeIn(options); 54 | ``` 55 | - arguments (optional): 56 | - `targetValue` : __Number__ - The targeted value of the gain (between 0 and 1) where the fadeIn will stop. This defaults to 1. 57 | - `startTime` : __Number__ - Timestamp to define when the fading starts, in the same time coordinate system as the AudioContext _currentTime_ attribute. This defaults _currentTime_. 58 | 59 | 60 | - `fadeOut` : Fade out the audio. Slowly decrease the gain of gainNode. 61 | - eg : 62 | ```js 63 | sm.fadeOut(options); 64 | ``` 65 | - arguments (optional): 66 | - `targetValue` : __Number__ - The targeted value of the gain (between 0 and 1) where the fadeOut will stop. This defaults to 1. 67 | - `startTime` : __Number__ - Timestamp to define when the fading starts, in the same time coordinate system as the AudioContext _currentTime_ attribute. This defaults _currentTime_. 68 | 69 | 70 | # License 71 | 72 | Apache-2.0 73 | 74 | See License file 75 | -------------------------------------------------------------------------------- /bower.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "smoothfade", 3 | "main": "index.js", 4 | "version": "1.1.0", 5 | "homepage": "https://github.com/notthetup/smoothfade", 6 | "authors": [ 7 | "Chinmay Pendharkar " 8 | ], 9 | "description": "Smooth volume fading for WebAudio", 10 | "moduleType": [], 11 | "keywords": [ 12 | "webaudio", 13 | "fade", 14 | "volume", 15 | "gain" 16 | ], 17 | "license": "Apache2", 18 | "ignore": [ 19 | "**/.*", 20 | "node_modules", 21 | "bower_components", 22 | "test", 23 | "tests" 24 | ] 25 | } 26 | -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | /* eslint-disable no-prototype-builtins */ 2 | 'use strict'; 3 | 4 | module.exports = function ( context, gainNode, _globalOptions ) { 5 | _globalOptions = _globalOptions || {}; 6 | 7 | if ( !gainNode || !context ) { 8 | throw new Error( 'gainNode and context arguments cannot be null' ); 9 | } 10 | 11 | _globalOptions.startValue = _globalOptions.hasOwnProperty( 'startValue' ) ? _globalOptions.startValue : gainNode.gain.value; 12 | _globalOptions.type = _globalOptions.hasOwnProperty( 'type' ) ? _globalOptions.type : 'exponential'; 13 | _globalOptions.fadeLength = _globalOptions.hasOwnProperty( 'fadeLength' ) ? _globalOptions.fadeLength : 10; 14 | 15 | var ALMOST_ZERO = 0.00001; 16 | 17 | var _currentStartValue = 0; 18 | var _currentTargetValue = _globalOptions.startValue; 19 | var _currentStartTime = 0; 20 | var _currentEndTime = context.currentTime; 21 | var _currDirection = ''; 22 | var _debug = !!_globalOptions.debug; 23 | 24 | function isFading( time ) { 25 | return _currentEndTime > time; 26 | } 27 | 28 | function cauculateInterpolationAt( time ) { 29 | if ( _debug ) { 30 | console.log( 'calculating interpolation' ); 31 | } 32 | if ( time <= _currentStartTime ) { 33 | return _currentStartValue; 34 | } else if ( time >= _currentEndTime ) { 35 | return _currentTargetValue; 36 | } else { 37 | if ( _globalOptions.type === 'linear' ) { 38 | return _currentStartValue + ( _currentTargetValue - _currentStartValue ) * ( ( time - _currentStartTime ) / ( _currentEndTime - _currentStartTime ) ); 39 | } else if ( _globalOptions.type === 'exponential' ) { 40 | var exponent = ( ( time - _currentStartTime ) / ( _currentEndTime - _currentStartTime ) ); 41 | return _currentStartValue * Math.pow( ( _currentTargetValue / _currentStartValue ), exponent ); 42 | } 43 | } 44 | } 45 | 46 | function calculateEndTime( startTime, targetValue ) { 47 | if ( !isFading() ) { 48 | return startTime + _globalOptions.fadeLength; 49 | } else if ( targetValue === _currentStartValue ) { 50 | var timeTillNow = ( context.currentTime - _currentStartTime ); 51 | if ( _debug ) { 52 | console.log( 'end time will be now +', timeTillNow ); 53 | } 54 | return startTime + timeTillNow; 55 | } else { 56 | var startValue = cauculateInterpolationAt( startTime ); 57 | var timeTaken = 0; 58 | if ( _globalOptions.type === 'linear' ) { 59 | var gradient = _globalOptions.fadeLength / ( ALMOST_ZERO - 1 ); 60 | timeTaken = ( ( targetValue - startValue ) * gradient ); 61 | if ( _debug ) { 62 | console.log( 'Time taken to go linearly from ', startValue, '-', targetValue, ' is ', timeTaken ); 63 | } 64 | 65 | } else if ( _globalOptions.type === 'exponential' ) { 66 | var diff = Math.log( targetValue ) - Math.log( startValue ); 67 | timeTaken = ( 10 / Math.log( ALMOST_ZERO ) * diff ); 68 | if ( _debug ) { 69 | console.log( 'Time taken to go expoentially from ', startValue, '-', targetValue, ' is ', timeTaken ); 70 | } 71 | } 72 | return startTime + timeTaken; 73 | } 74 | } 75 | 76 | return { 77 | valueAt: function ( time ) { 78 | if ( !time ) { 79 | time = context.currentTime; 80 | } 81 | 82 | if ( !isFading( time ) ) { 83 | return _currentTargetValue; 84 | } else { 85 | return cauculateInterpolationAt( time ); 86 | } 87 | }, 88 | 89 | fadeIn: function ( _options ) { 90 | if ( _currDirection === 'fadein' ) { 91 | return; 92 | } 93 | 94 | _options = _options || {}; 95 | _options.startTime = _options.hasOwnProperty( 'startTime' ) ? _options.startTime : context.currentTime; 96 | _options.targetValue = _options.hasOwnProperty( 'targetValue' ) ? _options.targetValue : 1; 97 | 98 | if ( !_options.hasOwnProperty( 'endTime' ) ) { 99 | _options.endTime = calculateEndTime( _options.startTime, _options.targetValue ); 100 | } 101 | 102 | var startvalue = cauculateInterpolationAt( _options.startTime ); 103 | if ( _debug ) { 104 | console.log( 'Start value', startvalue ); 105 | } 106 | gainNode.gain.cancelScheduledValues( _options.startTime ); 107 | gainNode.gain.setValueAtTime( startvalue, _options.startTime ); 108 | 109 | if ( _globalOptions.type === 'linear' ) { 110 | gainNode.gain.linearRampToValueAtTime( _options.targetValue, _options.endTime ); 111 | } else if ( _globalOptions.type === 'exponential' ) { 112 | gainNode.gain.exponentialRampToValueAtTime( _options.targetValue, _options.endTime ); 113 | } 114 | 115 | _currentStartValue = startvalue; 116 | _currentTargetValue = _options.targetValue; 117 | _currentStartTime = _options.startTime; 118 | _currentEndTime = _options.endTime; 119 | _currDirection = 'fadein'; 120 | 121 | }, 122 | 123 | fadeOut: function ( _options ) { 124 | if ( _currDirection === 'fadeout' ) { 125 | return; 126 | } 127 | 128 | _options = _options || {}; 129 | _options.startTime = _options.hasOwnProperty( 'startTime' ) ? _options.startTime : context.currentTime; 130 | _options.targetValue = _options.hasOwnProperty( 'targetValue' ) ? _options.targetValue : ALMOST_ZERO; 131 | 132 | if ( !_options.hasOwnProperty( 'endTime' ) ) { 133 | _options.endTime = calculateEndTime( _options.startTime, _options.targetValue ); 134 | } 135 | 136 | var startvalue = cauculateInterpolationAt( _options.startTime ); 137 | if ( _debug ) { 138 | console.log( 'Start value', startvalue ); 139 | } 140 | gainNode.gain.cancelScheduledValues( _options.startTime ); 141 | gainNode.gain.setValueAtTime( startvalue, _options.startTime ); 142 | 143 | if ( _globalOptions.type === 'linear' ) { 144 | gainNode.gain.linearRampToValueAtTime( _options.targetValue, _options.endTime ); 145 | } else if ( _globalOptions.type === 'exponential' ) { 146 | gainNode.gain.exponentialRampToValueAtTime( _options.targetValue, _options.endTime ); 147 | } 148 | 149 | if ( _debug ) { 150 | console.log( context.currentTime, ':: Fading out to ', _options.targetValue, 'starting from', _options.startTime, 'to', _options.endTime ); 151 | } 152 | 153 | _currentStartValue = startvalue; 154 | _currentTargetValue = _options.targetValue; 155 | _currentStartTime = _options.startTime; 156 | _currentEndTime = _options.endTime; 157 | _currDirection = 'fadeout'; 158 | 159 | } 160 | }; 161 | }; 162 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "smoothfade", 3 | "version": "1.1.1", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "JSONStream": { 8 | "version": "1.3.5", 9 | "resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.5.tgz", 10 | "integrity": "sha512-E+iruNOY8VV9s4JEbe1aNEm6MiszPRr/UfcHMz0TQh1BXSxHK+ASV1R6W4HpjBhSeS+54PIsAMCBmwD06LLsqQ==", 11 | "dev": true, 12 | "requires": { 13 | "jsonparse": "^1.2.0", 14 | "through": ">=2.2.7 <3" 15 | } 16 | }, 17 | "abbrev": { 18 | "version": "1.1.1", 19 | "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", 20 | "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", 21 | "dev": true 22 | }, 23 | "acorn": { 24 | "version": "7.4.1", 25 | "resolved": "https://registry.npmjs.org/acorn/-/acorn-7.4.1.tgz", 26 | "integrity": "sha512-nQyp0o1/mNdbTO1PO6kHkwSrmgZ0MT/jCCpNiwbUjGoRN4dlBhqJtoQuCnEOKzgTVwg0ZWiCoQy6SxMebQVh8A==", 27 | "dev": true 28 | }, 29 | "acorn-node": { 30 | "version": "1.8.2", 31 | "resolved": "https://registry.npmjs.org/acorn-node/-/acorn-node-1.8.2.tgz", 32 | "integrity": "sha512-8mt+fslDufLYntIoPAaIMUe/lrbrehIiwmR3t2k9LljIzoigEPF27eLk2hy8zSGzmR/ogr7zbRKINMo1u0yh5A==", 33 | "dev": true, 34 | "requires": { 35 | "acorn": "^7.0.0", 36 | "acorn-walk": "^7.0.0", 37 | "xtend": "^4.0.2" 38 | } 39 | }, 40 | "acorn-walk": { 41 | "version": "7.2.0", 42 | "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-7.2.0.tgz", 43 | "integrity": "sha512-OPdCF6GsMIP+Az+aWfAAOEt2/+iVDKE7oy6lJ098aoe59oAmK76qV6Gw60SbZ8jHuG2wH058GF4pLFbYamYrVA==", 44 | "dev": true 45 | }, 46 | "asn1.js": { 47 | "version": "5.4.1", 48 | "resolved": "https://registry.npmjs.org/asn1.js/-/asn1.js-5.4.1.tgz", 49 | "integrity": "sha512-+I//4cYPccV8LdmBLiX8CYvf9Sp3vQsrqu2QNXRcrbiWvcx/UdlFiqUJJzxRQxgsZmvhXhn4cSKeSmoFjVdupA==", 50 | "dev": true, 51 | "requires": { 52 | "bn.js": "^4.0.0", 53 | "inherits": "^2.0.1", 54 | "minimalistic-assert": "^1.0.0", 55 | "safer-buffer": "^2.1.0" 56 | }, 57 | "dependencies": { 58 | "bn.js": { 59 | "version": "4.12.0", 60 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 61 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", 62 | "dev": true 63 | } 64 | } 65 | }, 66 | "assert": { 67 | "version": "1.5.0", 68 | "resolved": "https://registry.npmjs.org/assert/-/assert-1.5.0.tgz", 69 | "integrity": "sha512-EDsgawzwoun2CZkCgtxJbv392v4nbk9XDD06zI+kQYoBM/3RBWLlEyJARDOmhAAosBjWACEkKL6S+lIZtcAubA==", 70 | "dev": true, 71 | "requires": { 72 | "object-assign": "^4.1.1", 73 | "util": "0.10.3" 74 | }, 75 | "dependencies": { 76 | "inherits": { 77 | "version": "2.0.1", 78 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.1.tgz", 79 | "integrity": "sha512-8nWq2nLTAwd02jTqJExUYFSD/fKq6VH9Y/oG2accc/kdI0V98Bag8d5a4gi3XHz73rDWa2PvTtvcWYquKqSENA==", 80 | "dev": true 81 | }, 82 | "util": { 83 | "version": "0.10.3", 84 | "resolved": "https://registry.npmjs.org/util/-/util-0.10.3.tgz", 85 | "integrity": "sha512-5KiHfsmkqacuKjkRkdV7SsfDJ2EGiPsK92s2MhNSY0craxjTdKTtqKsJaCWp4LW33ZZ0OPUv1WO/TFvNQRiQxQ==", 86 | "dev": true, 87 | "requires": { 88 | "inherits": "2.0.1" 89 | } 90 | } 91 | } 92 | }, 93 | "balanced-match": { 94 | "version": "0.4.2", 95 | "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-0.4.2.tgz", 96 | "integrity": "sha1-yz8+PHMtwPAe5wtAPzAuYddwmDg=", 97 | "dev": true 98 | }, 99 | "base64-js": { 100 | "version": "1.5.1", 101 | "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", 102 | "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", 103 | "dev": true 104 | }, 105 | "bn.js": { 106 | "version": "5.2.1", 107 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-5.2.1.tgz", 108 | "integrity": "sha512-eXRvHzWyYPBuB4NBy0cmYQjGitUrtqwbvlzP3G6VFnNRbsZQIxQ10PbKKHt8gZ/HW/D/747aDl+QkDqg3KQLMQ==", 109 | "dev": true 110 | }, 111 | "brace-expansion": { 112 | "version": "1.1.7", 113 | "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.7.tgz", 114 | "integrity": "sha1-Pv/DxQ4ABTH7cg6v+A8K6O8jz1k=", 115 | "dev": true, 116 | "requires": { 117 | "balanced-match": "^0.4.1", 118 | "concat-map": "0.0.1" 119 | } 120 | }, 121 | "brorand": { 122 | "version": "1.1.0", 123 | "resolved": "https://registry.npmjs.org/brorand/-/brorand-1.1.0.tgz", 124 | "integrity": "sha512-cKV8tMCEpQs4hK/ik71d6LrPOnpkpGBR0wzxqr68g2m/LB2GxVYQroAjMJZRVM1Y4BCjCKc3vAamxSzOY2RP+w==", 125 | "dev": true 126 | }, 127 | "browser-pack": { 128 | "version": "6.1.0", 129 | "resolved": "https://registry.npmjs.org/browser-pack/-/browser-pack-6.1.0.tgz", 130 | "integrity": "sha512-erYug8XoqzU3IfcU8fUgyHqyOXqIE4tUTTQ+7mqUjQlvnXkOO6OlT9c/ZoJVHYoAaqGxr09CN53G7XIsO4KtWA==", 131 | "dev": true, 132 | "requires": { 133 | "JSONStream": "^1.0.3", 134 | "combine-source-map": "~0.8.0", 135 | "defined": "^1.0.0", 136 | "safe-buffer": "^5.1.1", 137 | "through2": "^2.0.0", 138 | "umd": "^3.0.0" 139 | } 140 | }, 141 | "browser-resolve": { 142 | "version": "2.0.0", 143 | "resolved": "https://registry.npmjs.org/browser-resolve/-/browser-resolve-2.0.0.tgz", 144 | "integrity": "sha512-7sWsQlYL2rGLy2IWm8WL8DCTJvYLc/qlOnsakDac87SOoCd16WLsaAMdCiAqsTNHIe+SXfaqyxyo6THoWqs8WQ==", 145 | "dev": true, 146 | "requires": { 147 | "resolve": "^1.17.0" 148 | } 149 | }, 150 | "browserify": { 151 | "version": "16.5.2", 152 | "resolved": "https://registry.npmjs.org/browserify/-/browserify-16.5.2.tgz", 153 | "integrity": "sha512-TkOR1cQGdmXU9zW4YukWzWVSJwrxmNdADFbqbE3HFgQWe5wqZmOawqZ7J/8MPCwk/W8yY7Y0h+7mOtcZxLP23g==", 154 | "dev": true, 155 | "requires": { 156 | "JSONStream": "^1.0.3", 157 | "assert": "^1.4.0", 158 | "browser-pack": "^6.0.1", 159 | "browser-resolve": "^2.0.0", 160 | "browserify-zlib": "~0.2.0", 161 | "buffer": "~5.2.1", 162 | "cached-path-relative": "^1.0.0", 163 | "concat-stream": "^1.6.0", 164 | "console-browserify": "^1.1.0", 165 | "constants-browserify": "~1.0.0", 166 | "crypto-browserify": "^3.0.0", 167 | "defined": "^1.0.0", 168 | "deps-sort": "^2.0.0", 169 | "domain-browser": "^1.2.0", 170 | "duplexer2": "~0.1.2", 171 | "events": "^2.0.0", 172 | "glob": "^7.1.0", 173 | "has": "^1.0.0", 174 | "htmlescape": "^1.1.0", 175 | "https-browserify": "^1.0.0", 176 | "inherits": "~2.0.1", 177 | "insert-module-globals": "^7.0.0", 178 | "labeled-stream-splicer": "^2.0.0", 179 | "mkdirp-classic": "^0.5.2", 180 | "module-deps": "^6.2.3", 181 | "os-browserify": "~0.3.0", 182 | "parents": "^1.0.1", 183 | "path-browserify": "~0.0.0", 184 | "process": "~0.11.0", 185 | "punycode": "^1.3.2", 186 | "querystring-es3": "~0.2.0", 187 | "read-only-stream": "^2.0.0", 188 | "readable-stream": "^2.0.2", 189 | "resolve": "^1.1.4", 190 | "shasum": "^1.0.0", 191 | "shell-quote": "^1.6.1", 192 | "stream-browserify": "^2.0.0", 193 | "stream-http": "^3.0.0", 194 | "string_decoder": "^1.1.1", 195 | "subarg": "^1.0.0", 196 | "syntax-error": "^1.1.1", 197 | "through2": "^2.0.0", 198 | "timers-browserify": "^1.0.1", 199 | "tty-browserify": "0.0.1", 200 | "url": "~0.11.0", 201 | "util": "~0.10.1", 202 | "vm-browserify": "^1.0.0", 203 | "xtend": "^4.0.0" 204 | } 205 | }, 206 | "browserify-aes": { 207 | "version": "1.2.0", 208 | "resolved": "https://registry.npmjs.org/browserify-aes/-/browserify-aes-1.2.0.tgz", 209 | "integrity": "sha512-+7CHXqGuspUn/Sl5aO7Ea0xWGAtETPXNSAjHo48JfLdPWcMng33Xe4znFvQweqc/uzk5zSOI3H52CYnjCfb5hA==", 210 | "dev": true, 211 | "requires": { 212 | "buffer-xor": "^1.0.3", 213 | "cipher-base": "^1.0.0", 214 | "create-hash": "^1.1.0", 215 | "evp_bytestokey": "^1.0.3", 216 | "inherits": "^2.0.1", 217 | "safe-buffer": "^5.0.1" 218 | } 219 | }, 220 | "browserify-cipher": { 221 | "version": "1.0.1", 222 | "resolved": "https://registry.npmjs.org/browserify-cipher/-/browserify-cipher-1.0.1.tgz", 223 | "integrity": "sha512-sPhkz0ARKbf4rRQt2hTpAHqn47X3llLkUGn+xEJzLjwY8LRs2p0v7ljvI5EyoRO/mexrNunNECisZs+gw2zz1w==", 224 | "dev": true, 225 | "requires": { 226 | "browserify-aes": "^1.0.4", 227 | "browserify-des": "^1.0.0", 228 | "evp_bytestokey": "^1.0.0" 229 | } 230 | }, 231 | "browserify-des": { 232 | "version": "1.0.2", 233 | "resolved": "https://registry.npmjs.org/browserify-des/-/browserify-des-1.0.2.tgz", 234 | "integrity": "sha512-BioO1xf3hFwz4kc6iBhI3ieDFompMhrMlnDFC4/0/vd5MokpuAc3R+LYbwTA9A5Yc9pq9UYPqffKpW2ObuwX5A==", 235 | "dev": true, 236 | "requires": { 237 | "cipher-base": "^1.0.1", 238 | "des.js": "^1.0.0", 239 | "inherits": "^2.0.1", 240 | "safe-buffer": "^5.1.2" 241 | } 242 | }, 243 | "browserify-rsa": { 244 | "version": "4.1.0", 245 | "resolved": "https://registry.npmjs.org/browserify-rsa/-/browserify-rsa-4.1.0.tgz", 246 | "integrity": "sha512-AdEER0Hkspgno2aR97SAf6vi0y0k8NuOpGnVH3O99rcA5Q6sh8QxcngtHuJ6uXwnfAXNM4Gn1Gb7/MV1+Ymbog==", 247 | "dev": true, 248 | "requires": { 249 | "bn.js": "^5.0.0", 250 | "randombytes": "^2.0.1" 251 | } 252 | }, 253 | "browserify-sign": { 254 | "version": "4.2.1", 255 | "resolved": "https://registry.npmjs.org/browserify-sign/-/browserify-sign-4.2.1.tgz", 256 | "integrity": "sha512-/vrA5fguVAKKAVTNJjgSm1tRQDHUU6DbwO9IROu/0WAzC8PKhucDSh18J0RMvVeHAn5puMd+QHC2erPRNf8lmg==", 257 | "dev": true, 258 | "requires": { 259 | "bn.js": "^5.1.1", 260 | "browserify-rsa": "^4.0.1", 261 | "create-hash": "^1.2.0", 262 | "create-hmac": "^1.1.7", 263 | "elliptic": "^6.5.3", 264 | "inherits": "^2.0.4", 265 | "parse-asn1": "^5.1.5", 266 | "readable-stream": "^3.6.0", 267 | "safe-buffer": "^5.2.0" 268 | }, 269 | "dependencies": { 270 | "inherits": { 271 | "version": "2.0.4", 272 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 273 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 274 | "dev": true 275 | }, 276 | "readable-stream": { 277 | "version": "3.6.1", 278 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.1.tgz", 279 | "integrity": "sha512-+rQmrWMYGA90yenhTYsLWAsLsqVC8osOw6PKE1HDYiO0gdPeKe/xDHNzIAIn4C91YQ6oenEhfYqqc1883qHbjQ==", 280 | "dev": true, 281 | "requires": { 282 | "inherits": "^2.0.3", 283 | "string_decoder": "^1.1.1", 284 | "util-deprecate": "^1.0.1" 285 | } 286 | } 287 | } 288 | }, 289 | "browserify-zlib": { 290 | "version": "0.2.0", 291 | "resolved": "https://registry.npmjs.org/browserify-zlib/-/browserify-zlib-0.2.0.tgz", 292 | "integrity": "sha512-Z942RysHXmJrhqk88FmKBVq/v5tqmSkDz7p54G/MGyjMnCFFnC79XWNbg+Vta8W6Wb2qtSZTSxIGkJrRpCFEiA==", 293 | "dev": true, 294 | "requires": { 295 | "pako": "~1.0.5" 296 | } 297 | }, 298 | "buffer": { 299 | "version": "5.2.1", 300 | "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.2.1.tgz", 301 | "integrity": "sha512-c+Ko0loDaFfuPWiL02ls9Xd3GO3cPVmUobQ6t3rXNUk304u6hGq+8N/kFi+QEIKhzK3uwolVhLzszmfLmMLnqg==", 302 | "dev": true, 303 | "requires": { 304 | "base64-js": "^1.0.2", 305 | "ieee754": "^1.1.4" 306 | } 307 | }, 308 | "buffer-from": { 309 | "version": "1.1.2", 310 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz", 311 | "integrity": "sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==", 312 | "dev": true 313 | }, 314 | "buffer-xor": { 315 | "version": "1.0.3", 316 | "resolved": "https://registry.npmjs.org/buffer-xor/-/buffer-xor-1.0.3.tgz", 317 | "integrity": "sha512-571s0T7nZWK6vB67HI5dyUF7wXiNcfaPPPTl6zYCNApANjIvYJTg7hlud/+cJpdAhS7dVzqMLmfhfHR3rAcOjQ==", 318 | "dev": true 319 | }, 320 | "builtin-status-codes": { 321 | "version": "3.0.0", 322 | "resolved": "https://registry.npmjs.org/builtin-status-codes/-/builtin-status-codes-3.0.0.tgz", 323 | "integrity": "sha512-HpGFw18DgFWlncDfjTa2rcQ4W88O1mC8e8yZ2AvQY5KDaktSTwo+KRf6nHK6FRI5FyRyb/5T6+TSxfP7QyGsmQ==", 324 | "dev": true 325 | }, 326 | "cached-path-relative": { 327 | "version": "1.1.0", 328 | "resolved": "https://registry.npmjs.org/cached-path-relative/-/cached-path-relative-1.1.0.tgz", 329 | "integrity": "sha512-WF0LihfemtesFcJgO7xfOoOcnWzY/QHR4qeDqV44jPU3HTI54+LnfXK3SA27AVVGCdZFgjjFFaqUA9Jx7dMJZA==", 330 | "dev": true 331 | }, 332 | "cipher-base": { 333 | "version": "1.0.4", 334 | "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", 335 | "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", 336 | "dev": true, 337 | "requires": { 338 | "inherits": "^2.0.1", 339 | "safe-buffer": "^5.0.1" 340 | } 341 | }, 342 | "cli": { 343 | "version": "1.0.1", 344 | "resolved": "https://registry.npmjs.org/cli/-/cli-1.0.1.tgz", 345 | "integrity": "sha1-IoF1NPJL+klQw01TLUjsvGIbjBQ=", 346 | "dev": true, 347 | "requires": { 348 | "exit": "0.1.2", 349 | "glob": "^7.1.1" 350 | } 351 | }, 352 | "combine-source-map": { 353 | "version": "0.8.0", 354 | "resolved": "https://registry.npmjs.org/combine-source-map/-/combine-source-map-0.8.0.tgz", 355 | "integrity": "sha512-UlxQ9Vw0b/Bt/KYwCFqdEwsQ1eL8d1gibiFb7lxQJFdvTgc2hIZi6ugsg+kyhzhPV+QEpUiEIwInIAIrgoEkrg==", 356 | "dev": true, 357 | "requires": { 358 | "convert-source-map": "~1.1.0", 359 | "inline-source-map": "~0.6.0", 360 | "lodash.memoize": "~3.0.3", 361 | "source-map": "~0.5.3" 362 | } 363 | }, 364 | "commander": { 365 | "version": "2.20.3", 366 | "resolved": "https://registry.npmjs.org/commander/-/commander-2.20.3.tgz", 367 | "integrity": "sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ==", 368 | "dev": true 369 | }, 370 | "concat-map": { 371 | "version": "0.0.1", 372 | "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", 373 | "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", 374 | "dev": true 375 | }, 376 | "concat-stream": { 377 | "version": "1.6.2", 378 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 379 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 380 | "dev": true, 381 | "requires": { 382 | "buffer-from": "^1.0.0", 383 | "inherits": "^2.0.3", 384 | "readable-stream": "^2.2.2", 385 | "typedarray": "^0.0.6" 386 | } 387 | }, 388 | "config-chain": { 389 | "version": "1.1.12", 390 | "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", 391 | "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==", 392 | "dev": true, 393 | "requires": { 394 | "ini": "^1.3.4", 395 | "proto-list": "~1.2.1" 396 | } 397 | }, 398 | "console-browserify": { 399 | "version": "1.1.0", 400 | "resolved": "https://registry.npmjs.org/console-browserify/-/console-browserify-1.1.0.tgz", 401 | "integrity": "sha1-8CQcRXMKn8YyOyBtvzjtx0HQuxA=", 402 | "dev": true, 403 | "requires": { 404 | "date-now": "^0.1.4" 405 | } 406 | }, 407 | "constants-browserify": { 408 | "version": "1.0.0", 409 | "resolved": "https://registry.npmjs.org/constants-browserify/-/constants-browserify-1.0.0.tgz", 410 | "integrity": "sha512-xFxOwqIzR/e1k1gLiWEophSCMqXcwVHIH7akf7b/vxcUeGunlj3hvZaaqxwHsTgn+IndtkQJgSztIDWeumWJDQ==", 411 | "dev": true 412 | }, 413 | "convert-source-map": { 414 | "version": "1.1.3", 415 | "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.1.3.tgz", 416 | "integrity": "sha512-Y8L5rp6jo+g9VEPgvqNfEopjTR4OTYct8lXlS8iVQdmnjDvbdbzYe9rjtFCB9egC86JoNCU61WRY+ScjkZpnIg==", 417 | "dev": true 418 | }, 419 | "core-util-is": { 420 | "version": "1.0.2", 421 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 422 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 423 | "dev": true 424 | }, 425 | "create-ecdh": { 426 | "version": "4.0.4", 427 | "resolved": "https://registry.npmjs.org/create-ecdh/-/create-ecdh-4.0.4.tgz", 428 | "integrity": "sha512-mf+TCx8wWc9VpuxfP2ht0iSISLZnt0JgWlrOKZiNqyUZWnjIaCIVNQArMHnCZKfEYRg6IM7A+NeJoN8gf/Ws0A==", 429 | "dev": true, 430 | "requires": { 431 | "bn.js": "^4.1.0", 432 | "elliptic": "^6.5.3" 433 | }, 434 | "dependencies": { 435 | "bn.js": { 436 | "version": "4.12.0", 437 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 438 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", 439 | "dev": true 440 | } 441 | } 442 | }, 443 | "create-hash": { 444 | "version": "1.2.0", 445 | "resolved": "https://registry.npmjs.org/create-hash/-/create-hash-1.2.0.tgz", 446 | "integrity": "sha512-z00bCGNHDG8mHAkP7CtT1qVu+bFQUPjYq/4Iv3C3kWjTFV10zIjfSoeqXo9Asws8gwSHDGj/hl2u4OGIjapeCg==", 447 | "dev": true, 448 | "requires": { 449 | "cipher-base": "^1.0.1", 450 | "inherits": "^2.0.1", 451 | "md5.js": "^1.3.4", 452 | "ripemd160": "^2.0.1", 453 | "sha.js": "^2.4.0" 454 | } 455 | }, 456 | "create-hmac": { 457 | "version": "1.1.7", 458 | "resolved": "https://registry.npmjs.org/create-hmac/-/create-hmac-1.1.7.tgz", 459 | "integrity": "sha512-MJG9liiZ+ogc4TzUwuvbER1JRdgvUFSB5+VR/g5h82fGaIRWMWddtKBHi7/sVhfjQZ6SehlyhvQYrcYkaUIpLg==", 460 | "dev": true, 461 | "requires": { 462 | "cipher-base": "^1.0.3", 463 | "create-hash": "^1.1.0", 464 | "inherits": "^2.0.1", 465 | "ripemd160": "^2.0.0", 466 | "safe-buffer": "^5.0.1", 467 | "sha.js": "^2.4.8" 468 | } 469 | }, 470 | "crypto-browserify": { 471 | "version": "3.12.0", 472 | "resolved": "https://registry.npmjs.org/crypto-browserify/-/crypto-browserify-3.12.0.tgz", 473 | "integrity": "sha512-fz4spIh+znjO2VjL+IdhEpRJ3YN6sMzITSBijk6FK2UvTqruSQW+/cCZTSNsMiZNvUeq0CqurF+dAbyiGOY6Wg==", 474 | "dev": true, 475 | "requires": { 476 | "browserify-cipher": "^1.0.0", 477 | "browserify-sign": "^4.0.0", 478 | "create-ecdh": "^4.0.0", 479 | "create-hash": "^1.1.0", 480 | "create-hmac": "^1.1.0", 481 | "diffie-hellman": "^5.0.0", 482 | "inherits": "^2.0.1", 483 | "pbkdf2": "^3.0.3", 484 | "public-encrypt": "^4.0.0", 485 | "randombytes": "^2.0.0", 486 | "randomfill": "^1.0.3" 487 | } 488 | }, 489 | "dash-ast": { 490 | "version": "1.0.0", 491 | "resolved": "https://registry.npmjs.org/dash-ast/-/dash-ast-1.0.0.tgz", 492 | "integrity": "sha512-Vy4dx7gquTeMcQR/hDkYLGUnwVil6vk4FOOct+djUnHOUWt+zJPJAaRIXaAFkPXtJjvlY7o3rfRu0/3hpnwoUA==", 493 | "dev": true 494 | }, 495 | "date-now": { 496 | "version": "0.1.4", 497 | "resolved": "https://registry.npmjs.org/date-now/-/date-now-0.1.4.tgz", 498 | "integrity": "sha1-6vQ5/U1ISK105cx9vvIAZyueNFs=", 499 | "dev": true 500 | }, 501 | "defined": { 502 | "version": "1.0.1", 503 | "resolved": "https://registry.npmjs.org/defined/-/defined-1.0.1.tgz", 504 | "integrity": "sha512-hsBd2qSVCRE+5PmNdHt1uzyrFu5d3RwmFDKzyNZMFq/EwDNJF7Ee5+D5oEKF0hU6LhtoUF1macFvOe4AskQC1Q==", 505 | "dev": true 506 | }, 507 | "deps-sort": { 508 | "version": "2.0.1", 509 | "resolved": "https://registry.npmjs.org/deps-sort/-/deps-sort-2.0.1.tgz", 510 | "integrity": "sha512-1orqXQr5po+3KI6kQb9A4jnXT1PBwggGl2d7Sq2xsnOeI9GPcE/tGcF9UiSZtZBM7MukY4cAh7MemS6tZYipfw==", 511 | "dev": true, 512 | "requires": { 513 | "JSONStream": "^1.0.3", 514 | "shasum-object": "^1.0.0", 515 | "subarg": "^1.0.0", 516 | "through2": "^2.0.0" 517 | } 518 | }, 519 | "des.js": { 520 | "version": "1.0.1", 521 | "resolved": "https://registry.npmjs.org/des.js/-/des.js-1.0.1.tgz", 522 | "integrity": "sha512-Q0I4pfFrv2VPd34/vfLrFOoRmlYj3OV50i7fskps1jZWK1kApMWWT9G6RRUeYedLcBDIhnSDaUvJMb3AhUlaEA==", 523 | "dev": true, 524 | "requires": { 525 | "inherits": "^2.0.1", 526 | "minimalistic-assert": "^1.0.0" 527 | } 528 | }, 529 | "detective": { 530 | "version": "5.2.1", 531 | "resolved": "https://registry.npmjs.org/detective/-/detective-5.2.1.tgz", 532 | "integrity": "sha512-v9XE1zRnz1wRtgurGu0Bs8uHKFSTdteYZNbIPFVhUZ39L/S79ppMpdmVOZAnoz1jfEFodc48n6MX483Xo3t1yw==", 533 | "dev": true, 534 | "requires": { 535 | "acorn-node": "^1.8.2", 536 | "defined": "^1.0.0", 537 | "minimist": "^1.2.6" 538 | }, 539 | "dependencies": { 540 | "minimist": { 541 | "version": "1.2.8", 542 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 543 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 544 | "dev": true 545 | } 546 | } 547 | }, 548 | "diffie-hellman": { 549 | "version": "5.0.3", 550 | "resolved": "https://registry.npmjs.org/diffie-hellman/-/diffie-hellman-5.0.3.tgz", 551 | "integrity": "sha512-kqag/Nl+f3GwyK25fhUMYj81BUOrZ9IuJsjIcDE5icNM9FJHAVm3VcUDxdLPoQtTuUylWm6ZIknYJwwaPxsUzg==", 552 | "dev": true, 553 | "requires": { 554 | "bn.js": "^4.1.0", 555 | "miller-rabin": "^4.0.0", 556 | "randombytes": "^2.0.0" 557 | }, 558 | "dependencies": { 559 | "bn.js": { 560 | "version": "4.12.0", 561 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 562 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", 563 | "dev": true 564 | } 565 | } 566 | }, 567 | "dom-serializer": { 568 | "version": "0.2.1", 569 | "resolved": "https://registry.npmjs.org/dom-serializer/-/dom-serializer-0.2.1.tgz", 570 | "integrity": "sha512-sK3ujri04WyjwQXVoK4PU3y8ula1stq10GJZpqHIUgoGZdsGzAGu65BnU3d08aTVSvO7mGPZUc0wTEDL+qGE0Q==", 571 | "dev": true, 572 | "requires": { 573 | "domelementtype": "^2.0.1", 574 | "entities": "^2.0.0" 575 | }, 576 | "dependencies": { 577 | "domelementtype": { 578 | "version": "2.0.1", 579 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-2.0.1.tgz", 580 | "integrity": "sha512-5HOHUDsYZWV8FGWN0Njbr/Rn7f/eWSQi1v7+HsUVwXgn8nWWlL64zKDkS0n8ZmQ3mlWOMuXOnR+7Nx/5tMO5AQ==", 581 | "dev": true 582 | }, 583 | "entities": { 584 | "version": "2.0.0", 585 | "resolved": "https://registry.npmjs.org/entities/-/entities-2.0.0.tgz", 586 | "integrity": "sha512-D9f7V0JSRwIxlRI2mjMqufDrRDnx8p+eEOz7aUM9SuvF8gsBzra0/6tbjl1m8eQHrZlYj6PxqE00hZ1SAIKPLw==", 587 | "dev": true 588 | } 589 | } 590 | }, 591 | "domain-browser": { 592 | "version": "1.2.0", 593 | "resolved": "https://registry.npmjs.org/domain-browser/-/domain-browser-1.2.0.tgz", 594 | "integrity": "sha512-jnjyiM6eRyZl2H+W8Q/zLMA481hzi0eszAaBUzIVnmYVDBbnLxVNnfu1HgEBvCbL+71FrxMl3E6lpKH7Ge3OXA==", 595 | "dev": true 596 | }, 597 | "domelementtype": { 598 | "version": "1.3.1", 599 | "resolved": "https://registry.npmjs.org/domelementtype/-/domelementtype-1.3.1.tgz", 600 | "integrity": "sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w==", 601 | "dev": true 602 | }, 603 | "domhandler": { 604 | "version": "2.3.0", 605 | "resolved": "https://registry.npmjs.org/domhandler/-/domhandler-2.3.0.tgz", 606 | "integrity": "sha1-LeWaCCLVAn+r/28DLCsloqir5zg=", 607 | "dev": true, 608 | "requires": { 609 | "domelementtype": "1" 610 | } 611 | }, 612 | "domutils": { 613 | "version": "1.5.1", 614 | "resolved": "https://registry.npmjs.org/domutils/-/domutils-1.5.1.tgz", 615 | "integrity": "sha1-3NhIiib1Y9YQeeSMn3t+Mjc2gs8=", 616 | "dev": true, 617 | "requires": { 618 | "dom-serializer": "0", 619 | "domelementtype": "1" 620 | } 621 | }, 622 | "duplexer2": { 623 | "version": "0.1.4", 624 | "resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz", 625 | "integrity": "sha512-asLFVfWWtJ90ZyOUHMqk7/S2w2guQKxUI2itj3d92ADHhxUSbCMGi1f1cBcJ7xM1To+pE/Khbwo1yuNbMEPKeA==", 626 | "dev": true, 627 | "requires": { 628 | "readable-stream": "^2.0.2" 629 | } 630 | }, 631 | "editorconfig": { 632 | "version": "0.15.3", 633 | "resolved": "https://registry.npmjs.org/editorconfig/-/editorconfig-0.15.3.tgz", 634 | "integrity": "sha512-M9wIMFx96vq0R4F+gRpY3o2exzb8hEj/n9S8unZtHSvYjibBp/iMufSzvmOcV/laG0ZtuTVGtiJggPOSW2r93g==", 635 | "dev": true, 636 | "requires": { 637 | "commander": "^2.19.0", 638 | "lru-cache": "^4.1.5", 639 | "semver": "^5.6.0", 640 | "sigmund": "^1.0.1" 641 | } 642 | }, 643 | "elliptic": { 644 | "version": "6.5.4", 645 | "resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz", 646 | "integrity": "sha512-iLhC6ULemrljPZb+QutR5TQGB+pdW6KGD5RSegS+8sorOZT+rdQFbsQFJgvN3eRqNALqJer4oQ16YvJHlU8hzQ==", 647 | "dev": true, 648 | "requires": { 649 | "bn.js": "^4.11.9", 650 | "brorand": "^1.1.0", 651 | "hash.js": "^1.0.0", 652 | "hmac-drbg": "^1.0.1", 653 | "inherits": "^2.0.4", 654 | "minimalistic-assert": "^1.0.1", 655 | "minimalistic-crypto-utils": "^1.0.1" 656 | }, 657 | "dependencies": { 658 | "bn.js": { 659 | "version": "4.12.0", 660 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 661 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", 662 | "dev": true 663 | }, 664 | "inherits": { 665 | "version": "2.0.4", 666 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 667 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 668 | "dev": true 669 | } 670 | } 671 | }, 672 | "entities": { 673 | "version": "1.0.0", 674 | "resolved": "https://registry.npmjs.org/entities/-/entities-1.0.0.tgz", 675 | "integrity": "sha1-sph6o4ITR/zeZCsk/fyeT7cSvyY=", 676 | "dev": true 677 | }, 678 | "events": { 679 | "version": "2.1.0", 680 | "resolved": "https://registry.npmjs.org/events/-/events-2.1.0.tgz", 681 | "integrity": "sha512-3Zmiobend8P9DjmKAty0Era4jV8oJ0yGYe2nJJAxgymF9+N8F2m0hhZiMoWtcfepExzNKZumFU3ksdQbInGWCg==", 682 | "dev": true 683 | }, 684 | "evp_bytestokey": { 685 | "version": "1.0.3", 686 | "resolved": "https://registry.npmjs.org/evp_bytestokey/-/evp_bytestokey-1.0.3.tgz", 687 | "integrity": "sha512-/f2Go4TognH/KvCISP7OUsHn85hT9nUkxxA9BEWxFn+Oj9o8ZNLm/40hdlgSLyuOimsrTKLUMEorQexp/aPQeA==", 688 | "dev": true, 689 | "requires": { 690 | "md5.js": "^1.3.4", 691 | "safe-buffer": "^5.1.1" 692 | } 693 | }, 694 | "exit": { 695 | "version": "0.1.2", 696 | "resolved": "https://registry.npmjs.org/exit/-/exit-0.1.2.tgz", 697 | "integrity": "sha1-BjJjj42HfMghB9MKD/8aF8uhzQw=", 698 | "dev": true 699 | }, 700 | "fast-safe-stringify": { 701 | "version": "2.1.1", 702 | "resolved": "https://registry.npmjs.org/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz", 703 | "integrity": "sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA==", 704 | "dev": true 705 | }, 706 | "fs.realpath": { 707 | "version": "1.0.0", 708 | "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", 709 | "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", 710 | "dev": true 711 | }, 712 | "function-bind": { 713 | "version": "1.1.1", 714 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 715 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 716 | "dev": true 717 | }, 718 | "get-assigned-identifiers": { 719 | "version": "1.2.0", 720 | "resolved": "https://registry.npmjs.org/get-assigned-identifiers/-/get-assigned-identifiers-1.2.0.tgz", 721 | "integrity": "sha512-mBBwmeGTrxEMO4pMaaf/uUEFHnYtwr8FTe8Y/mer4rcV/bye0qGm6pw1bGZFGStxC5O76c5ZAVBGnqHmOaJpdQ==", 722 | "dev": true 723 | }, 724 | "glob": { 725 | "version": "7.1.2", 726 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.2.tgz", 727 | "integrity": "sha1-wZyd+aAocC1nhhI4SmVSQExjbRU=", 728 | "dev": true, 729 | "requires": { 730 | "fs.realpath": "^1.0.0", 731 | "inflight": "^1.0.4", 732 | "inherits": "2", 733 | "minimatch": "^3.0.4", 734 | "once": "^1.3.0", 735 | "path-is-absolute": "^1.0.0" 736 | } 737 | }, 738 | "has": { 739 | "version": "1.0.3", 740 | "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", 741 | "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", 742 | "dev": true, 743 | "requires": { 744 | "function-bind": "^1.1.1" 745 | } 746 | }, 747 | "hash-base": { 748 | "version": "3.1.0", 749 | "resolved": "https://registry.npmjs.org/hash-base/-/hash-base-3.1.0.tgz", 750 | "integrity": "sha512-1nmYp/rhMDiE7AYkDw+lLwlAzz0AntGIe51F3RfFfEqyQ3feY2eI/NcwC6umIQVOASPMsWJLJScWKSSvzL9IVA==", 751 | "dev": true, 752 | "requires": { 753 | "inherits": "^2.0.4", 754 | "readable-stream": "^3.6.0", 755 | "safe-buffer": "^5.2.0" 756 | }, 757 | "dependencies": { 758 | "inherits": { 759 | "version": "2.0.4", 760 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 761 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 762 | "dev": true 763 | }, 764 | "readable-stream": { 765 | "version": "3.6.1", 766 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.1.tgz", 767 | "integrity": "sha512-+rQmrWMYGA90yenhTYsLWAsLsqVC8osOw6PKE1HDYiO0gdPeKe/xDHNzIAIn4C91YQ6oenEhfYqqc1883qHbjQ==", 768 | "dev": true, 769 | "requires": { 770 | "inherits": "^2.0.3", 771 | "string_decoder": "^1.1.1", 772 | "util-deprecate": "^1.0.1" 773 | } 774 | } 775 | } 776 | }, 777 | "hash.js": { 778 | "version": "1.1.7", 779 | "resolved": "https://registry.npmjs.org/hash.js/-/hash.js-1.1.7.tgz", 780 | "integrity": "sha512-taOaskGt4z4SOANNseOviYDvjEJinIkRgmp7LbKP2YTTmVxWBl87s/uzK9r+44BclBSp2X7K1hqeNfz9JbBeXA==", 781 | "dev": true, 782 | "requires": { 783 | "inherits": "^2.0.3", 784 | "minimalistic-assert": "^1.0.1" 785 | } 786 | }, 787 | "hmac-drbg": { 788 | "version": "1.0.1", 789 | "resolved": "https://registry.npmjs.org/hmac-drbg/-/hmac-drbg-1.0.1.tgz", 790 | "integrity": "sha512-Tti3gMqLdZfhOQY1Mzf/AanLiqh1WTiJgEj26ZuYQ9fbkLomzGchCws4FyrSd4VkpBfiNhaE1On+lOz894jvXg==", 791 | "dev": true, 792 | "requires": { 793 | "hash.js": "^1.0.3", 794 | "minimalistic-assert": "^1.0.0", 795 | "minimalistic-crypto-utils": "^1.0.1" 796 | } 797 | }, 798 | "htmlescape": { 799 | "version": "1.1.1", 800 | "resolved": "https://registry.npmjs.org/htmlescape/-/htmlescape-1.1.1.tgz", 801 | "integrity": "sha512-eVcrzgbR4tim7c7soKQKtxa/kQM4TzjnlU83rcZ9bHU6t31ehfV7SktN6McWgwPWg+JYMA/O3qpGxBvFq1z2Jg==", 802 | "dev": true 803 | }, 804 | "htmlparser2": { 805 | "version": "3.8.3", 806 | "resolved": "https://registry.npmjs.org/htmlparser2/-/htmlparser2-3.8.3.tgz", 807 | "integrity": "sha1-mWwosZFRaovoZQGn15dX5ccMEGg=", 808 | "dev": true, 809 | "requires": { 810 | "domelementtype": "1", 811 | "domhandler": "2.3", 812 | "domutils": "1.5", 813 | "entities": "1.0", 814 | "readable-stream": "1.1" 815 | }, 816 | "dependencies": { 817 | "isarray": { 818 | "version": "0.0.1", 819 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-0.0.1.tgz", 820 | "integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=", 821 | "dev": true 822 | }, 823 | "readable-stream": { 824 | "version": "1.1.14", 825 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-1.1.14.tgz", 826 | "integrity": "sha1-fPTFTvZI44EwhMY23SB54WbAgdk=", 827 | "dev": true, 828 | "requires": { 829 | "core-util-is": "~1.0.0", 830 | "inherits": "~2.0.1", 831 | "isarray": "0.0.1", 832 | "string_decoder": "~0.10.x" 833 | } 834 | }, 835 | "string_decoder": { 836 | "version": "0.10.31", 837 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz", 838 | "integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ=", 839 | "dev": true 840 | } 841 | } 842 | }, 843 | "https-browserify": { 844 | "version": "1.0.0", 845 | "resolved": "https://registry.npmjs.org/https-browserify/-/https-browserify-1.0.0.tgz", 846 | "integrity": "sha512-J+FkSdyD+0mA0N+81tMotaRMfSL9SGi+xpD3T6YApKsc3bGSXJlfXri3VyFOeYkfLRQisDk1W+jIFFKBeUBbBg==", 847 | "dev": true 848 | }, 849 | "ieee754": { 850 | "version": "1.2.1", 851 | "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", 852 | "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", 853 | "dev": true 854 | }, 855 | "inflight": { 856 | "version": "1.0.6", 857 | "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", 858 | "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", 859 | "dev": true, 860 | "requires": { 861 | "once": "^1.3.0", 862 | "wrappy": "1" 863 | } 864 | }, 865 | "inherits": { 866 | "version": "2.0.3", 867 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.3.tgz", 868 | "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", 869 | "dev": true 870 | }, 871 | "ini": { 872 | "version": "1.3.5", 873 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 874 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", 875 | "dev": true 876 | }, 877 | "inline-source-map": { 878 | "version": "0.6.2", 879 | "resolved": "https://registry.npmjs.org/inline-source-map/-/inline-source-map-0.6.2.tgz", 880 | "integrity": "sha512-0mVWSSbNDvedDWIN4wxLsdPM4a7cIPcpyMxj3QZ406QRwQ6ePGB1YIHxVPjqpcUGbWQ5C+nHTwGNWAGvt7ggVA==", 881 | "dev": true, 882 | "requires": { 883 | "source-map": "~0.5.3" 884 | } 885 | }, 886 | "insert-module-globals": { 887 | "version": "7.2.1", 888 | "resolved": "https://registry.npmjs.org/insert-module-globals/-/insert-module-globals-7.2.1.tgz", 889 | "integrity": "sha512-ufS5Qq9RZN+Bu899eA9QCAYThY+gGW7oRkmb0vC93Vlyu/CFGcH0OYPEjVkDXA5FEbTt1+VWzdoOD3Ny9N+8tg==", 890 | "dev": true, 891 | "requires": { 892 | "JSONStream": "^1.0.3", 893 | "acorn-node": "^1.5.2", 894 | "combine-source-map": "^0.8.0", 895 | "concat-stream": "^1.6.1", 896 | "is-buffer": "^1.1.0", 897 | "path-is-absolute": "^1.0.1", 898 | "process": "~0.11.0", 899 | "through2": "^2.0.0", 900 | "undeclared-identifiers": "^1.1.2", 901 | "xtend": "^4.0.0" 902 | } 903 | }, 904 | "is-buffer": { 905 | "version": "1.1.6", 906 | "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", 907 | "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==", 908 | "dev": true 909 | }, 910 | "is-core-module": { 911 | "version": "2.11.0", 912 | "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.11.0.tgz", 913 | "integrity": "sha512-RRjxlvLDkD1YJwDbroBHMb+cukurkDWNyHx7D3oNB5x9rb5ogcksMC5wHCadcXoo67gVr/+3GFySh3134zi6rw==", 914 | "dev": true, 915 | "requires": { 916 | "has": "^1.0.3" 917 | } 918 | }, 919 | "isarray": { 920 | "version": "1.0.0", 921 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 922 | "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==", 923 | "dev": true 924 | }, 925 | "js-beautify": { 926 | "version": "1.10.2", 927 | "resolved": "https://registry.npmjs.org/js-beautify/-/js-beautify-1.10.2.tgz", 928 | "integrity": "sha512-ZtBYyNUYJIsBWERnQP0rPN9KjkrDfJcMjuVGcvXOUJrD1zmOGwhRwQ4msG+HJ+Ni/FA7+sRQEMYVzdTQDvnzvQ==", 929 | "dev": true, 930 | "requires": { 931 | "config-chain": "^1.1.12", 932 | "editorconfig": "^0.15.3", 933 | "glob": "^7.1.3", 934 | "mkdirp": "~0.5.1", 935 | "nopt": "~4.0.1" 936 | }, 937 | "dependencies": { 938 | "glob": { 939 | "version": "7.1.5", 940 | "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.5.tgz", 941 | "integrity": "sha512-J9dlskqUXK1OeTOYBEn5s8aMukWMwWfs+rPTn/jn50Ux4MNXVhubL1wu/j2t+H4NVI+cXEcCaYellqaPVGXNqQ==", 942 | "dev": true, 943 | "requires": { 944 | "fs.realpath": "^1.0.0", 945 | "inflight": "^1.0.4", 946 | "inherits": "2", 947 | "minimatch": "^3.0.4", 948 | "once": "^1.3.0", 949 | "path-is-absolute": "^1.0.0" 950 | } 951 | } 952 | } 953 | }, 954 | "jshint": { 955 | "version": "2.10.2", 956 | "resolved": "https://registry.npmjs.org/jshint/-/jshint-2.10.2.tgz", 957 | "integrity": "sha512-e7KZgCSXMJxznE/4WULzybCMNXNAd/bf5TSrvVEq78Q/K8ZwFpmBqQeDtNiHc3l49nV4E/+YeHU/JZjSUIrLAA==", 958 | "dev": true, 959 | "requires": { 960 | "cli": "~1.0.0", 961 | "console-browserify": "1.1.x", 962 | "exit": "0.1.x", 963 | "htmlparser2": "3.8.x", 964 | "lodash": "~4.17.11", 965 | "minimatch": "~3.0.2", 966 | "shelljs": "0.3.x", 967 | "strip-json-comments": "1.0.x" 968 | } 969 | }, 970 | "json-stable-stringify": { 971 | "version": "0.0.1", 972 | "resolved": "https://registry.npmjs.org/json-stable-stringify/-/json-stable-stringify-0.0.1.tgz", 973 | "integrity": "sha512-nKtD/Qxm7tWdZqJoldEC7fF0S41v0mWbeaXG3637stOWfyGxTgWTYE2wtfKmjzpvxv2MA2xzxsXOIiwUpkX6Qw==", 974 | "dev": true, 975 | "requires": { 976 | "jsonify": "~0.0.0" 977 | } 978 | }, 979 | "jsonify": { 980 | "version": "0.0.1", 981 | "resolved": "https://registry.npmjs.org/jsonify/-/jsonify-0.0.1.tgz", 982 | "integrity": "sha512-2/Ki0GcmuqSrgFyelQq9M05y7PS0mEwuIzrf3f1fPqkVDVRvZrPZtVSMHxdgo8Aq0sxAOb/cr2aqqA3LeWHVPg==", 983 | "dev": true 984 | }, 985 | "jsonparse": { 986 | "version": "1.3.1", 987 | "resolved": "https://registry.npmjs.org/jsonparse/-/jsonparse-1.3.1.tgz", 988 | "integrity": "sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg==", 989 | "dev": true 990 | }, 991 | "labeled-stream-splicer": { 992 | "version": "2.0.2", 993 | "resolved": "https://registry.npmjs.org/labeled-stream-splicer/-/labeled-stream-splicer-2.0.2.tgz", 994 | "integrity": "sha512-Ca4LSXFFZUjPScRaqOcFxneA0VpKZr4MMYCljyQr4LIewTLb3Y0IUTIsnBBsVubIeEfxeSZpSjSsRM8APEQaAw==", 995 | "dev": true, 996 | "requires": { 997 | "inherits": "^2.0.1", 998 | "stream-splicer": "^2.0.0" 999 | } 1000 | }, 1001 | "lodash": { 1002 | "version": "4.17.15", 1003 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", 1004 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", 1005 | "dev": true 1006 | }, 1007 | "lodash.memoize": { 1008 | "version": "3.0.4", 1009 | "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-3.0.4.tgz", 1010 | "integrity": "sha512-eDn9kqrAmVUC1wmZvlQ6Uhde44n+tXpqPrN8olQJbttgh0oKclk+SF54P47VEGE9CEiMeRwAP8BaM7UHvBkz2A==", 1011 | "dev": true 1012 | }, 1013 | "lru-cache": { 1014 | "version": "4.1.5", 1015 | "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-4.1.5.tgz", 1016 | "integrity": "sha512-sWZlbEP2OsHNkXrMl5GYk/jKk70MBng6UU4YI/qGDYbgf6YbP4EvmqISbXCoJiRKs+1bSpFHVgQxvJ17F2li5g==", 1017 | "dev": true, 1018 | "requires": { 1019 | "pseudomap": "^1.0.2", 1020 | "yallist": "^2.1.2" 1021 | } 1022 | }, 1023 | "md5.js": { 1024 | "version": "1.3.5", 1025 | "resolved": "https://registry.npmjs.org/md5.js/-/md5.js-1.3.5.tgz", 1026 | "integrity": "sha512-xitP+WxNPcTTOgnTJcrhM0xvdPepipPSf3I8EIpGKeFLjt3PlJLIDG3u8EX53ZIubkb+5U2+3rELYpEhHhzdkg==", 1027 | "dev": true, 1028 | "requires": { 1029 | "hash-base": "^3.0.0", 1030 | "inherits": "^2.0.1", 1031 | "safe-buffer": "^5.1.2" 1032 | } 1033 | }, 1034 | "miller-rabin": { 1035 | "version": "4.0.1", 1036 | "resolved": "https://registry.npmjs.org/miller-rabin/-/miller-rabin-4.0.1.tgz", 1037 | "integrity": "sha512-115fLhvZVqWwHPbClyntxEVfVDfl9DLLTuJvq3g2O/Oxi8AiNouAHvDSzHS0viUJc+V5vm3eq91Xwqn9dp4jRA==", 1038 | "dev": true, 1039 | "requires": { 1040 | "bn.js": "^4.0.0", 1041 | "brorand": "^1.0.1" 1042 | }, 1043 | "dependencies": { 1044 | "bn.js": { 1045 | "version": "4.12.0", 1046 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 1047 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", 1048 | "dev": true 1049 | } 1050 | } 1051 | }, 1052 | "minimalistic-assert": { 1053 | "version": "1.0.1", 1054 | "resolved": "https://registry.npmjs.org/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz", 1055 | "integrity": "sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A==", 1056 | "dev": true 1057 | }, 1058 | "minimalistic-crypto-utils": { 1059 | "version": "1.0.1", 1060 | "resolved": "https://registry.npmjs.org/minimalistic-crypto-utils/-/minimalistic-crypto-utils-1.0.1.tgz", 1061 | "integrity": "sha512-JIYlbt6g8i5jKfJ3xz7rF0LXmv2TkDxBLUkiBeZ7bAx4GnnNMr8xFpGnOxn6GhTEHx3SjRrZEoU+j04prX1ktg==", 1062 | "dev": true 1063 | }, 1064 | "minimatch": { 1065 | "version": "3.0.4", 1066 | "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", 1067 | "integrity": "sha1-UWbihkV/AzBgZL5Ul+jbsMPTIIM=", 1068 | "dev": true, 1069 | "requires": { 1070 | "brace-expansion": "^1.1.7" 1071 | } 1072 | }, 1073 | "mkdirp": { 1074 | "version": "0.5.6", 1075 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", 1076 | "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", 1077 | "dev": true, 1078 | "requires": { 1079 | "minimist": "^1.2.6" 1080 | }, 1081 | "dependencies": { 1082 | "minimist": { 1083 | "version": "1.2.8", 1084 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 1085 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 1086 | "dev": true 1087 | } 1088 | } 1089 | }, 1090 | "mkdirp-classic": { 1091 | "version": "0.5.3", 1092 | "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", 1093 | "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==", 1094 | "dev": true 1095 | }, 1096 | "module-deps": { 1097 | "version": "6.2.3", 1098 | "resolved": "https://registry.npmjs.org/module-deps/-/module-deps-6.2.3.tgz", 1099 | "integrity": "sha512-fg7OZaQBcL4/L+AK5f4iVqf9OMbCclXfy/znXRxTVhJSeW5AIlS9AwheYwDaXM3lVW7OBeaeUEY3gbaC6cLlSA==", 1100 | "dev": true, 1101 | "requires": { 1102 | "JSONStream": "^1.0.3", 1103 | "browser-resolve": "^2.0.0", 1104 | "cached-path-relative": "^1.0.2", 1105 | "concat-stream": "~1.6.0", 1106 | "defined": "^1.0.0", 1107 | "detective": "^5.2.0", 1108 | "duplexer2": "^0.1.2", 1109 | "inherits": "^2.0.1", 1110 | "parents": "^1.0.0", 1111 | "readable-stream": "^2.0.2", 1112 | "resolve": "^1.4.0", 1113 | "stream-combiner2": "^1.1.1", 1114 | "subarg": "^1.0.0", 1115 | "through2": "^2.0.0", 1116 | "xtend": "^4.0.0" 1117 | } 1118 | }, 1119 | "nopt": { 1120 | "version": "4.0.1", 1121 | "resolved": "https://registry.npmjs.org/nopt/-/nopt-4.0.1.tgz", 1122 | "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", 1123 | "dev": true, 1124 | "requires": { 1125 | "abbrev": "1", 1126 | "osenv": "^0.1.4" 1127 | } 1128 | }, 1129 | "object-assign": { 1130 | "version": "4.1.1", 1131 | "resolved": "https://registry.npmjs.org/object-assign/-/object-assign-4.1.1.tgz", 1132 | "integrity": "sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg==", 1133 | "dev": true 1134 | }, 1135 | "once": { 1136 | "version": "1.4.0", 1137 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 1138 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 1139 | "dev": true, 1140 | "requires": { 1141 | "wrappy": "1" 1142 | } 1143 | }, 1144 | "os-browserify": { 1145 | "version": "0.3.0", 1146 | "resolved": "https://registry.npmjs.org/os-browserify/-/os-browserify-0.3.0.tgz", 1147 | "integrity": "sha512-gjcpUc3clBf9+210TRaDWbf+rZZZEshZ+DlXMRCeAjp0xhTrnQsKHypIy1J3d5hKdUzj69t708EHtU8P6bUn0A==", 1148 | "dev": true 1149 | }, 1150 | "os-homedir": { 1151 | "version": "1.0.2", 1152 | "resolved": "https://registry.npmjs.org/os-homedir/-/os-homedir-1.0.2.tgz", 1153 | "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", 1154 | "dev": true 1155 | }, 1156 | "os-tmpdir": { 1157 | "version": "1.0.2", 1158 | "resolved": "https://registry.npmjs.org/os-tmpdir/-/os-tmpdir-1.0.2.tgz", 1159 | "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", 1160 | "dev": true 1161 | }, 1162 | "osenv": { 1163 | "version": "0.1.5", 1164 | "resolved": "https://registry.npmjs.org/osenv/-/osenv-0.1.5.tgz", 1165 | "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", 1166 | "dev": true, 1167 | "requires": { 1168 | "os-homedir": "^1.0.0", 1169 | "os-tmpdir": "^1.0.0" 1170 | } 1171 | }, 1172 | "pako": { 1173 | "version": "1.0.11", 1174 | "resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz", 1175 | "integrity": "sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw==", 1176 | "dev": true 1177 | }, 1178 | "parents": { 1179 | "version": "1.0.1", 1180 | "resolved": "https://registry.npmjs.org/parents/-/parents-1.0.1.tgz", 1181 | "integrity": "sha512-mXKF3xkoUt5td2DoxpLmtOmZvko9VfFpwRwkKDHSNvgmpLAeBo18YDhcPbBzJq+QLCHMbGOfzia2cX4U+0v9Mg==", 1182 | "dev": true, 1183 | "requires": { 1184 | "path-platform": "~0.11.15" 1185 | } 1186 | }, 1187 | "parse-asn1": { 1188 | "version": "5.1.6", 1189 | "resolved": "https://registry.npmjs.org/parse-asn1/-/parse-asn1-5.1.6.tgz", 1190 | "integrity": "sha512-RnZRo1EPU6JBnra2vGHj0yhp6ebyjBZpmUCLHWiFhxlzvBCCpAuZ7elsBp1PVAbQN0/04VD/19rfzlBSwLstMw==", 1191 | "dev": true, 1192 | "requires": { 1193 | "asn1.js": "^5.2.0", 1194 | "browserify-aes": "^1.0.0", 1195 | "evp_bytestokey": "^1.0.0", 1196 | "pbkdf2": "^3.0.3", 1197 | "safe-buffer": "^5.1.1" 1198 | } 1199 | }, 1200 | "path-browserify": { 1201 | "version": "0.0.1", 1202 | "resolved": "https://registry.npmjs.org/path-browserify/-/path-browserify-0.0.1.tgz", 1203 | "integrity": "sha512-BapA40NHICOS+USX9SN4tyhq+A2RrN/Ws5F0Z5aMHDp98Fl86lX8Oti8B7uN93L4Ifv4fHOEA+pQw87gmMO/lQ==", 1204 | "dev": true 1205 | }, 1206 | "path-is-absolute": { 1207 | "version": "1.0.1", 1208 | "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", 1209 | "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", 1210 | "dev": true 1211 | }, 1212 | "path-parse": { 1213 | "version": "1.0.7", 1214 | "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.7.tgz", 1215 | "integrity": "sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw==", 1216 | "dev": true 1217 | }, 1218 | "path-platform": { 1219 | "version": "0.11.15", 1220 | "resolved": "https://registry.npmjs.org/path-platform/-/path-platform-0.11.15.tgz", 1221 | "integrity": "sha512-Y30dB6rab1A/nfEKsZxmr01nUotHX0c/ZiIAsCTatEe1CmS5Pm5He7fZ195bPT7RdquoaL8lLxFCMQi/bS7IJg==", 1222 | "dev": true 1223 | }, 1224 | "pbkdf2": { 1225 | "version": "3.1.2", 1226 | "resolved": "https://registry.npmjs.org/pbkdf2/-/pbkdf2-3.1.2.tgz", 1227 | "integrity": "sha512-iuh7L6jA7JEGu2WxDwtQP1ddOpaJNC4KlDEFfdQajSGgGPNi4OyDc2R7QnbY2bR9QjBVGwgvTdNJZoE7RaxUMA==", 1228 | "dev": true, 1229 | "requires": { 1230 | "create-hash": "^1.1.2", 1231 | "create-hmac": "^1.1.4", 1232 | "ripemd160": "^2.0.1", 1233 | "safe-buffer": "^5.0.1", 1234 | "sha.js": "^2.4.8" 1235 | } 1236 | }, 1237 | "process": { 1238 | "version": "0.11.10", 1239 | "resolved": "https://registry.npmjs.org/process/-/process-0.11.10.tgz", 1240 | "integrity": "sha512-cdGef/drWFoydD1JsMzuFf8100nZl+GT+yacc2bEced5f9Rjk4z+WtFUTBu9PhOi9j/jfmBPu0mMEY4wIdAF8A==", 1241 | "dev": true 1242 | }, 1243 | "process-nextick-args": { 1244 | "version": "2.0.1", 1245 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 1246 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 1247 | "dev": true 1248 | }, 1249 | "proto-list": { 1250 | "version": "1.2.4", 1251 | "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", 1252 | "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", 1253 | "dev": true 1254 | }, 1255 | "pseudomap": { 1256 | "version": "1.0.2", 1257 | "resolved": "https://registry.npmjs.org/pseudomap/-/pseudomap-1.0.2.tgz", 1258 | "integrity": "sha1-8FKijacOYYkX7wqKw0wa5aaChrM=", 1259 | "dev": true 1260 | }, 1261 | "public-encrypt": { 1262 | "version": "4.0.3", 1263 | "resolved": "https://registry.npmjs.org/public-encrypt/-/public-encrypt-4.0.3.tgz", 1264 | "integrity": "sha512-zVpa8oKZSz5bTMTFClc1fQOnyyEzpl5ozpi1B5YcvBrdohMjH2rfsBtyXcuNuwjsDIXmBYlF2N5FlJYhR29t8Q==", 1265 | "dev": true, 1266 | "requires": { 1267 | "bn.js": "^4.1.0", 1268 | "browserify-rsa": "^4.0.0", 1269 | "create-hash": "^1.1.0", 1270 | "parse-asn1": "^5.0.0", 1271 | "randombytes": "^2.0.1", 1272 | "safe-buffer": "^5.1.2" 1273 | }, 1274 | "dependencies": { 1275 | "bn.js": { 1276 | "version": "4.12.0", 1277 | "resolved": "https://registry.npmjs.org/bn.js/-/bn.js-4.12.0.tgz", 1278 | "integrity": "sha512-c98Bf3tPniI+scsdk237ku1Dc3ujXQTSgyiPUDEOe7tRkhrqridvh8klBv0HCEso1OLOYcHuCv/cS6DNxKH+ZA==", 1279 | "dev": true 1280 | } 1281 | } 1282 | }, 1283 | "punycode": { 1284 | "version": "1.4.1", 1285 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz", 1286 | "integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ==", 1287 | "dev": true 1288 | }, 1289 | "querystring": { 1290 | "version": "0.2.0", 1291 | "resolved": "https://registry.npmjs.org/querystring/-/querystring-0.2.0.tgz", 1292 | "integrity": "sha512-X/xY82scca2tau62i9mDyU9K+I+djTMUsvwf7xnUX5GLvVzgJybOJf4Y6o9Zx3oJK/LSXg5tTZBjwzqVPaPO2g==", 1293 | "dev": true 1294 | }, 1295 | "querystring-es3": { 1296 | "version": "0.2.1", 1297 | "resolved": "https://registry.npmjs.org/querystring-es3/-/querystring-es3-0.2.1.tgz", 1298 | "integrity": "sha512-773xhDQnZBMFobEiztv8LIl70ch5MSF/jUQVlhwFyBILqq96anmoctVIYz+ZRp0qbCKATTn6ev02M3r7Ga5vqA==", 1299 | "dev": true 1300 | }, 1301 | "randombytes": { 1302 | "version": "2.1.0", 1303 | "resolved": "https://registry.npmjs.org/randombytes/-/randombytes-2.1.0.tgz", 1304 | "integrity": "sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ==", 1305 | "dev": true, 1306 | "requires": { 1307 | "safe-buffer": "^5.1.0" 1308 | } 1309 | }, 1310 | "randomfill": { 1311 | "version": "1.0.4", 1312 | "resolved": "https://registry.npmjs.org/randomfill/-/randomfill-1.0.4.tgz", 1313 | "integrity": "sha512-87lcbR8+MhcWcUiQ+9e+Rwx8MyR2P7qnt15ynUlbm3TU/fjbgz4GsvfSUDTemtCCtVCqb4ZcEFlyPNTh9bBTLw==", 1314 | "dev": true, 1315 | "requires": { 1316 | "randombytes": "^2.0.5", 1317 | "safe-buffer": "^5.1.0" 1318 | } 1319 | }, 1320 | "read-only-stream": { 1321 | "version": "2.0.0", 1322 | "resolved": "https://registry.npmjs.org/read-only-stream/-/read-only-stream-2.0.0.tgz", 1323 | "integrity": "sha512-3ALe0bjBVZtkdWKIcThYpQCLbBMd/+Tbh2CDSrAIDO3UsZ4Xs+tnyjv2MjCOMMgBG+AsUOeuP1cgtY1INISc8w==", 1324 | "dev": true, 1325 | "requires": { 1326 | "readable-stream": "^2.0.2" 1327 | } 1328 | }, 1329 | "readable-stream": { 1330 | "version": "2.3.8", 1331 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.8.tgz", 1332 | "integrity": "sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA==", 1333 | "dev": true, 1334 | "requires": { 1335 | "core-util-is": "~1.0.0", 1336 | "inherits": "~2.0.3", 1337 | "isarray": "~1.0.0", 1338 | "process-nextick-args": "~2.0.0", 1339 | "safe-buffer": "~5.1.1", 1340 | "string_decoder": "~1.1.1", 1341 | "util-deprecate": "~1.0.1" 1342 | }, 1343 | "dependencies": { 1344 | "safe-buffer": { 1345 | "version": "5.1.2", 1346 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 1347 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 1348 | "dev": true 1349 | }, 1350 | "string_decoder": { 1351 | "version": "1.1.1", 1352 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 1353 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 1354 | "dev": true, 1355 | "requires": { 1356 | "safe-buffer": "~5.1.0" 1357 | } 1358 | } 1359 | } 1360 | }, 1361 | "resolve": { 1362 | "version": "1.22.1", 1363 | "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.22.1.tgz", 1364 | "integrity": "sha512-nBpuuYuY5jFsli/JIs1oldw6fOQCBioohqWZg/2hiaOybXOft4lonv85uDOKXdf8rhyK159cxU5cDcK/NKk8zw==", 1365 | "dev": true, 1366 | "requires": { 1367 | "is-core-module": "^2.9.0", 1368 | "path-parse": "^1.0.7", 1369 | "supports-preserve-symlinks-flag": "^1.0.0" 1370 | } 1371 | }, 1372 | "ripemd160": { 1373 | "version": "2.0.2", 1374 | "resolved": "https://registry.npmjs.org/ripemd160/-/ripemd160-2.0.2.tgz", 1375 | "integrity": "sha512-ii4iagi25WusVoiC4B4lq7pbXfAp3D9v5CwfkY33vffw2+pkDjY1D8GaN7spsxvCSx8dkPqOZCEZyfxcmJG2IA==", 1376 | "dev": true, 1377 | "requires": { 1378 | "hash-base": "^3.0.0", 1379 | "inherits": "^2.0.1" 1380 | } 1381 | }, 1382 | "safe-buffer": { 1383 | "version": "5.2.1", 1384 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", 1385 | "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", 1386 | "dev": true 1387 | }, 1388 | "safer-buffer": { 1389 | "version": "2.1.2", 1390 | "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", 1391 | "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", 1392 | "dev": true 1393 | }, 1394 | "semver": { 1395 | "version": "5.7.1", 1396 | "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", 1397 | "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", 1398 | "dev": true 1399 | }, 1400 | "sha.js": { 1401 | "version": "2.4.11", 1402 | "resolved": "https://registry.npmjs.org/sha.js/-/sha.js-2.4.11.tgz", 1403 | "integrity": "sha512-QMEp5B7cftE7APOjk5Y6xgrbWu+WkLVQwk8JNjZ8nKRciZaByEW6MubieAiToS7+dwvrjGhH8jRXz3MVd0AYqQ==", 1404 | "dev": true, 1405 | "requires": { 1406 | "inherits": "^2.0.1", 1407 | "safe-buffer": "^5.0.1" 1408 | } 1409 | }, 1410 | "shasum": { 1411 | "version": "1.0.2", 1412 | "resolved": "https://registry.npmjs.org/shasum/-/shasum-1.0.2.tgz", 1413 | "integrity": "sha512-UTzHm/+AzKfO9RgPgRpDIuMSNie1ubXRaljjlhFMNGYoG7z+rm9AHLPMf70R7887xboDH9Q+5YQbWKObFHEAtw==", 1414 | "dev": true, 1415 | "requires": { 1416 | "json-stable-stringify": "~0.0.0", 1417 | "sha.js": "~2.4.4" 1418 | } 1419 | }, 1420 | "shasum-object": { 1421 | "version": "1.0.0", 1422 | "resolved": "https://registry.npmjs.org/shasum-object/-/shasum-object-1.0.0.tgz", 1423 | "integrity": "sha512-Iqo5rp/3xVi6M4YheapzZhhGPVs0yZwHj7wvwQ1B9z8H6zk+FEnI7y3Teq7qwnekfEhu8WmG2z0z4iWZaxLWVg==", 1424 | "dev": true, 1425 | "requires": { 1426 | "fast-safe-stringify": "^2.0.7" 1427 | } 1428 | }, 1429 | "shell-quote": { 1430 | "version": "1.8.0", 1431 | "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.0.tgz", 1432 | "integrity": "sha512-QHsz8GgQIGKlRi24yFc6a6lN69Idnx634w49ay6+jA5yFh7a1UY+4Rp6HPx/L/1zcEDPEij8cIsiqR6bQsE5VQ==", 1433 | "dev": true 1434 | }, 1435 | "shelljs": { 1436 | "version": "0.3.0", 1437 | "resolved": "https://registry.npmjs.org/shelljs/-/shelljs-0.3.0.tgz", 1438 | "integrity": "sha1-NZbmMHp4FUT1kfN9phg2DzHbV7E=", 1439 | "dev": true 1440 | }, 1441 | "sigmund": { 1442 | "version": "1.0.1", 1443 | "resolved": "https://registry.npmjs.org/sigmund/-/sigmund-1.0.1.tgz", 1444 | "integrity": "sha1-P/IfGYytIXX587eBhT/ZTQ0ZtZA=", 1445 | "dev": true 1446 | }, 1447 | "simple-concat": { 1448 | "version": "1.0.1", 1449 | "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", 1450 | "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", 1451 | "dev": true 1452 | }, 1453 | "source-map": { 1454 | "version": "0.5.7", 1455 | "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.5.7.tgz", 1456 | "integrity": "sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ==", 1457 | "dev": true 1458 | }, 1459 | "stream-browserify": { 1460 | "version": "2.0.2", 1461 | "resolved": "https://registry.npmjs.org/stream-browserify/-/stream-browserify-2.0.2.tgz", 1462 | "integrity": "sha512-nX6hmklHs/gr2FuxYDltq8fJA1GDlxKQCz8O/IM4atRqBH8OORmBNgfvW5gG10GT/qQ9u0CzIvr2X5Pkt6ntqg==", 1463 | "dev": true, 1464 | "requires": { 1465 | "inherits": "~2.0.1", 1466 | "readable-stream": "^2.0.2" 1467 | } 1468 | }, 1469 | "stream-combiner2": { 1470 | "version": "1.1.1", 1471 | "resolved": "https://registry.npmjs.org/stream-combiner2/-/stream-combiner2-1.1.1.tgz", 1472 | "integrity": "sha512-3PnJbYgS56AeWgtKF5jtJRT6uFJe56Z0Hc5Ngg/6sI6rIt8iiMBTa9cvdyFfpMQjaVHr8dusbNeFGIIonxOvKw==", 1473 | "dev": true, 1474 | "requires": { 1475 | "duplexer2": "~0.1.0", 1476 | "readable-stream": "^2.0.2" 1477 | } 1478 | }, 1479 | "stream-http": { 1480 | "version": "3.2.0", 1481 | "resolved": "https://registry.npmjs.org/stream-http/-/stream-http-3.2.0.tgz", 1482 | "integrity": "sha512-Oq1bLqisTyK3TSCXpPbT4sdeYNdmyZJv1LxpEm2vu1ZhK89kSE5YXwZc3cWk0MagGaKriBh9mCFbVGtO+vY29A==", 1483 | "dev": true, 1484 | "requires": { 1485 | "builtin-status-codes": "^3.0.0", 1486 | "inherits": "^2.0.4", 1487 | "readable-stream": "^3.6.0", 1488 | "xtend": "^4.0.2" 1489 | }, 1490 | "dependencies": { 1491 | "inherits": { 1492 | "version": "2.0.4", 1493 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 1494 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 1495 | "dev": true 1496 | }, 1497 | "readable-stream": { 1498 | "version": "3.6.1", 1499 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.1.tgz", 1500 | "integrity": "sha512-+rQmrWMYGA90yenhTYsLWAsLsqVC8osOw6PKE1HDYiO0gdPeKe/xDHNzIAIn4C91YQ6oenEhfYqqc1883qHbjQ==", 1501 | "dev": true, 1502 | "requires": { 1503 | "inherits": "^2.0.3", 1504 | "string_decoder": "^1.1.1", 1505 | "util-deprecate": "^1.0.1" 1506 | } 1507 | } 1508 | } 1509 | }, 1510 | "stream-splicer": { 1511 | "version": "2.0.1", 1512 | "resolved": "https://registry.npmjs.org/stream-splicer/-/stream-splicer-2.0.1.tgz", 1513 | "integrity": "sha512-Xizh4/NPuYSyAXyT7g8IvdJ9HJpxIGL9PjyhtywCZvvP0OPIdqyrr4dMikeuvY8xahpdKEBlBTySe583totajg==", 1514 | "dev": true, 1515 | "requires": { 1516 | "inherits": "^2.0.1", 1517 | "readable-stream": "^2.0.2" 1518 | } 1519 | }, 1520 | "string_decoder": { 1521 | "version": "1.3.0", 1522 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", 1523 | "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", 1524 | "dev": true, 1525 | "requires": { 1526 | "safe-buffer": "~5.2.0" 1527 | } 1528 | }, 1529 | "strip-json-comments": { 1530 | "version": "1.0.4", 1531 | "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-1.0.4.tgz", 1532 | "integrity": "sha1-HhX7ysl9Pumb8tc7TGVrCCu6+5E=", 1533 | "dev": true 1534 | }, 1535 | "subarg": { 1536 | "version": "1.0.0", 1537 | "resolved": "https://registry.npmjs.org/subarg/-/subarg-1.0.0.tgz", 1538 | "integrity": "sha512-RIrIdRY0X1xojthNcVtgT9sjpOGagEUKpZdgBUi054OEPFo282yg+zE+t1Rj3+RqKq2xStL7uUHhY+AjbC4BXg==", 1539 | "dev": true, 1540 | "requires": { 1541 | "minimist": "^1.1.0" 1542 | }, 1543 | "dependencies": { 1544 | "minimist": { 1545 | "version": "1.2.8", 1546 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", 1547 | "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", 1548 | "dev": true 1549 | } 1550 | } 1551 | }, 1552 | "supports-preserve-symlinks-flag": { 1553 | "version": "1.0.0", 1554 | "resolved": "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz", 1555 | "integrity": "sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w==", 1556 | "dev": true 1557 | }, 1558 | "syntax-error": { 1559 | "version": "1.4.0", 1560 | "resolved": "https://registry.npmjs.org/syntax-error/-/syntax-error-1.4.0.tgz", 1561 | "integrity": "sha512-YPPlu67mdnHGTup2A8ff7BC2Pjq0e0Yp/IyTFN03zWO0RcK07uLcbi7C2KpGR2FvWbaB0+bfE27a+sBKebSo7w==", 1562 | "dev": true, 1563 | "requires": { 1564 | "acorn-node": "^1.2.0" 1565 | } 1566 | }, 1567 | "through": { 1568 | "version": "2.3.8", 1569 | "resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz", 1570 | "integrity": "sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg==", 1571 | "dev": true 1572 | }, 1573 | "through2": { 1574 | "version": "2.0.5", 1575 | "resolved": "https://registry.npmjs.org/through2/-/through2-2.0.5.tgz", 1576 | "integrity": "sha512-/mrRod8xqpA+IHSLyGCQ2s8SPHiCDEeQJSep1jqLYeEUClOFG2Qsh+4FU6G9VeqpZnGW/Su8LQGc4YKni5rYSQ==", 1577 | "dev": true, 1578 | "requires": { 1579 | "readable-stream": "~2.3.6", 1580 | "xtend": "~4.0.1" 1581 | } 1582 | }, 1583 | "timers-browserify": { 1584 | "version": "1.4.2", 1585 | "resolved": "https://registry.npmjs.org/timers-browserify/-/timers-browserify-1.4.2.tgz", 1586 | "integrity": "sha512-PIxwAupJZiYU4JmVZYwXp9FKsHMXb5h0ZEFyuXTAn8WLHOlcij+FEcbrvDsom1o5dr1YggEtFbECvGCW2sT53Q==", 1587 | "dev": true, 1588 | "requires": { 1589 | "process": "~0.11.0" 1590 | } 1591 | }, 1592 | "tty-browserify": { 1593 | "version": "0.0.1", 1594 | "resolved": "https://registry.npmjs.org/tty-browserify/-/tty-browserify-0.0.1.tgz", 1595 | "integrity": "sha512-C3TaO7K81YvjCgQH9Q1S3R3P3BtN3RIM8n+OvX4il1K1zgE8ZhI0op7kClgkxtutIE8hQrcrHBXvIheqKUUCxw==", 1596 | "dev": true 1597 | }, 1598 | "typedarray": { 1599 | "version": "0.0.6", 1600 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 1601 | "integrity": "sha512-/aCDEGatGvZ2BIk+HmLf4ifCJFwvKFNb9/JeZPMulfgFracn9QFcAf5GO8B/mweUjSoblS5In0cWhqpfs/5PQA==", 1602 | "dev": true 1603 | }, 1604 | "umd": { 1605 | "version": "3.0.3", 1606 | "resolved": "https://registry.npmjs.org/umd/-/umd-3.0.3.tgz", 1607 | "integrity": "sha512-4IcGSufhFshvLNcMCV80UnQVlZ5pMOC8mvNPForqwA4+lzYQuetTESLDQkeLmihq8bRcnpbQa48Wb8Lh16/xow==", 1608 | "dev": true 1609 | }, 1610 | "undeclared-identifiers": { 1611 | "version": "1.1.3", 1612 | "resolved": "https://registry.npmjs.org/undeclared-identifiers/-/undeclared-identifiers-1.1.3.tgz", 1613 | "integrity": "sha512-pJOW4nxjlmfwKApE4zvxLScM/njmwj/DiUBv7EabwE4O8kRUy+HIwxQtZLBPll/jx1LJyBcqNfB3/cpv9EZwOw==", 1614 | "dev": true, 1615 | "requires": { 1616 | "acorn-node": "^1.3.0", 1617 | "dash-ast": "^1.0.0", 1618 | "get-assigned-identifiers": "^1.2.0", 1619 | "simple-concat": "^1.0.0", 1620 | "xtend": "^4.0.1" 1621 | } 1622 | }, 1623 | "url": { 1624 | "version": "0.11.0", 1625 | "resolved": "https://registry.npmjs.org/url/-/url-0.11.0.tgz", 1626 | "integrity": "sha512-kbailJa29QrtXnxgq+DdCEGlbTeYM2eJUxsz6vjZavrCYPMIFHMKQmSKYAIuUK2i7hgPm28a8piX5NTUtM/LKQ==", 1627 | "dev": true, 1628 | "requires": { 1629 | "punycode": "1.3.2", 1630 | "querystring": "0.2.0" 1631 | }, 1632 | "dependencies": { 1633 | "punycode": { 1634 | "version": "1.3.2", 1635 | "resolved": "https://registry.npmjs.org/punycode/-/punycode-1.3.2.tgz", 1636 | "integrity": "sha512-RofWgt/7fL5wP1Y7fxE7/EmTLzQVnB0ycyibJ0OOHIlJqTNzglYFxVwETOcIoJqJmpDXJ9xImDv+Fq34F/d4Dw==", 1637 | "dev": true 1638 | } 1639 | } 1640 | }, 1641 | "util": { 1642 | "version": "0.10.4", 1643 | "resolved": "https://registry.npmjs.org/util/-/util-0.10.4.tgz", 1644 | "integrity": "sha512-0Pm9hTQ3se5ll1XihRic3FDIku70C+iHUdT/W926rSgHV5QgXsYbKZN8MSC3tJtSkhuROzvsQjAaFENRXr+19A==", 1645 | "dev": true, 1646 | "requires": { 1647 | "inherits": "2.0.3" 1648 | } 1649 | }, 1650 | "util-deprecate": { 1651 | "version": "1.0.2", 1652 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 1653 | "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==", 1654 | "dev": true 1655 | }, 1656 | "vm-browserify": { 1657 | "version": "1.1.2", 1658 | "resolved": "https://registry.npmjs.org/vm-browserify/-/vm-browserify-1.1.2.tgz", 1659 | "integrity": "sha512-2ham8XPWTONajOR0ohOKOHXkm3+gaBmGut3SRuu75xLd/RRaY6vqgh8NBYYk7+RW3u5AtzPQZG8F10LHkl0lAQ==", 1660 | "dev": true 1661 | }, 1662 | "wrappy": { 1663 | "version": "1.0.2", 1664 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 1665 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 1666 | "dev": true 1667 | }, 1668 | "xtend": { 1669 | "version": "4.0.2", 1670 | "resolved": "https://registry.npmjs.org/xtend/-/xtend-4.0.2.tgz", 1671 | "integrity": "sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ==", 1672 | "dev": true 1673 | }, 1674 | "yallist": { 1675 | "version": "2.1.2", 1676 | "resolved": "https://registry.npmjs.org/yallist/-/yallist-2.1.2.tgz", 1677 | "integrity": "sha1-HBH5IY8HYImkfdUS+TxmmaaoHVI=", 1678 | "dev": true 1679 | } 1680 | } 1681 | } 1682 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "smoothfade", 3 | "version": "1.1.1", 4 | "description": "Smooth volume fading for WebAudio", 5 | "main": "index.js", 6 | "scripts": { 7 | "test": "jshint index.js && browserify test.js > bundle.js && http-server", 8 | "build": "jshint index.js && js-beautify -r index.js" 9 | }, 10 | "repository": { 11 | "type": "git", 12 | "url": "https://github.com/notthetup/smoothfade.git" 13 | }, 14 | "keywords": [ 15 | "webaudio", 16 | "fade", 17 | "volume", 18 | "gain" 19 | ], 20 | "author": "Chinmay Pendharkar", 21 | "license": "Apache2", 22 | "bugs": { 23 | "url": "https://github.com/notthetup/smoothfade/issues" 24 | }, 25 | "homepage": "https://github.com/notthetup/smoothfade", 26 | "devDependencies": { 27 | "browserify": "^16.5.0", 28 | "js-beautify": "^1.10.2", 29 | "jshint": "^2.10.2" 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /test.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | SmoothFade Test 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 |
13 | 14 | 15 | -------------------------------------------------------------------------------- /test.js: -------------------------------------------------------------------------------- 1 | var smoothfade = require('./index.js'); 2 | var sm; 3 | 4 | window.addEventListener('load', function(){ 5 | var fadeIn = document.getElementById('fadein'); 6 | var fadeOut = document.getElementById('fadeout'); 7 | document.getElementById('start').addEventListener('click', function () { 8 | window.AudioContext = window.AudioContext || window.webkitAudioContext; 9 | var context = new AudioContext(); 10 | 11 | var osc = context.createOscillator(); 12 | var gain = context.createGain(); 13 | 14 | osc.connect(gain); 15 | gain.connect(context.destination); 16 | 17 | sm = smoothfade(context, gain, { 18 | 'startValue': 1, //optional, default = 1 19 | 'fadeLength': 2, //optional, default 10 20 | 'type': 'exponential' // optional, default = 'linear' 21 | }); 22 | 23 | fadeIn.disabled = false; 24 | fadeOut.disabled = false; 25 | osc.start(0); 26 | }); 27 | 28 | fadeIn.addEventListener('click', function(){ 29 | if(sm) sm.fadeIn(); 30 | }); 31 | fadeOut.addEventListener('click', function(){ 32 | if (sm) sm.fadeOut({ 33 | 'targetValue': 0.3 34 | }); 35 | }); 36 | }); 37 | 38 | --------------------------------------------------------------------------------