├── .gitignore ├── ICT_ACCESSIBILITY.md ├── LICENSE ├── README.md ├── VPAT.pdf ├── index.js ├── package-lock.json └── package.json /.gitignore: -------------------------------------------------------------------------------- 1 | # Logs 2 | logs 3 | *.log 4 | npm-debug.log* 5 | 6 | # Runtime data 7 | pids 8 | *.pid 9 | *.seed 10 | 11 | # Directory for instrumented libs generated by jscoverage/JSCover 12 | lib-cov 13 | 14 | # Coverage directory used by tools like istanbul 15 | coverage 16 | 17 | # nyc test coverage 18 | .nyc_output 19 | 20 | # Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) 21 | .grunt 22 | 23 | # node-waf configuration 24 | .lock-wscript 25 | 26 | # Compiled binary addons (http://nodejs.org/api/addons.html) 27 | build/Release 28 | 29 | # Dependency directories 30 | node_modules 31 | jspm_packages 32 | 33 | # Optional npm cache directory 34 | .npm 35 | 36 | # Optional REPL history 37 | .node_repl_history 38 | -------------------------------------------------------------------------------- /ICT_ACCESSIBILITY.md: -------------------------------------------------------------------------------- 1 | # General Policy Statement 2 | At this time we have no plans to make this product more accessible. 3 | 4 | See VPAT.pdf for details. 5 | -------------------------------------------------------------------------------- /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 {yyyy} {name of copyright owner} 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 | # Postcard 2 | A database driven application platform leveraging Electron and PostgreSQL. 3 | 4 | ### What is Postcard 5 | Postcard is a tool for developers that makes writing and distributing database driven applications easy! 6 | 7 | Postcard makes it easy to build database apps. Programs for business, like accounting or inventory. Once you've written your application, Postcard helps you package your app for Linux, Mac and Windows computers. When users go to open your app, Postcard will manage starting PostgeSQL. 8 | 9 | In order to accomplish all this magic, Postcard makes several interesting choices to bring together an application stack. But although a lot of work went into Postcard, it would not have been possible without the following projects: 10 | 11 | #### Electron 12 | Electron (by Github) is an application shell that provides you with several important components. The first is the web engine from Chromium, which renders your HTML and Javascript just like a browser. In order to display your HTML and Javascript files you need a webserver, so Electron provides and embeds a Node server. Finally, Electron helps you package your application so that you can easily distribute it to Linux, Mac and Windows computers. Electron is a powerful combination of technologies and effort. 13 | 14 | #### PostgreSQL 15 | PostgreSQL is an enterprise class, open source object-relational database. Postcard brings portable binaries of PostgreSQL for Linux, Mac and Windows into Node modules. 16 | 17 | Postcard is still pre-release. Please ignore it for now. 18 | 19 | # Getting Started 20 | 21 | There are two functions in Postcard: 22 | 23 | `postcard.init(appName, callback)` 24 | - **appName** 25 | - Postcard uses this to create a folder to hold the PostgreSQL cluster 26 | - **callback(postgresPort)** 27 | - This function will be called after envelope has started up, the `postgresPort` argument will allow you to tell connect to postgres 28 | 29 | `postcard.quit()` 30 | - You need to call this function when the process is going to exit. If you don't then PostgreSQL will keep running and you won't be able to start it the next time. 31 | 32 | ## Example 33 | 34 | #### index.js 35 | 36 | const postcard = require('postcard'); 37 | const electron = require('electron'); 38 | const path = require('path'); 39 | const app = electron.app; 40 | const BrowserWindow = electron.BrowserWindow; 41 | 42 | let mainWindows = []; 43 | 44 | app.on('ready', function () { 45 | postcard.init('postcard-example', function (postgresPort) { 46 | var curWindow = new BrowserWindow({ 47 | 'width': 1024, 48 | 'height': 768 49 | }); 50 | mainWindows.push(curWindow); 51 | 52 | curWindow.loadURL('file://' + path.normalize(app.getAppPath() + '/web_root/index.html'), { 53 | 'extraHeaders': 'pragma: no-cache\n' 54 | }); 55 | 56 | // Emitted when the window is closed. 57 | curWindow.on('closed', function() { 58 | mainWindows.splice(mainWindows.indexOf(curWindow), 1); 59 | }); 60 | }); 61 | }); 62 | 63 | app.on('quit', function() { 64 | postcard.quit(); 65 | }); 66 | 67 | 68 | Then in web_root/index.html, to connect to PostgreSQL, you would do something like: 69 | 70 | const pg = require('pg'); 71 | var client = new pg.Client({ 72 | user: 'main_user', 73 | database: 'postgres', 74 | password: 'password', 75 | host: (process.platform == 'win32' ? '127.0.0.1' : '/tmp'), 76 | port: fs.readFileSync(path.normalize(os.homedir() + '/.postcard-example/postgres_port')).toString(), 77 | ssl: false 78 | }); 79 | 80 | 81 | 82 | -------------------------------------------------------------------------------- /VPAT.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/workflowproducts/postcard/59813c09a4c1b1b4d37526b39e38f3fc174bbb19/VPAT.pdf -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | const os = require('os'); 2 | 3 | const net = require('net'); 4 | const path = require('path'); 5 | const electron = require('electron'); 6 | const fs = require('fs-extra'); 7 | const hidefile = require('hidefile'); 8 | const windowStateKeeper = require('electron-window-state'); 9 | // Module to control application life. 10 | const app = electron.app; 11 | // Module to create native browser window. 12 | const BrowserWindow = electron.BrowserWindow; 13 | 14 | const child_process = require('child_process'); 15 | var postgresqlProc = null; 16 | 17 | //const postgresql_module_name = 'node_modules/postgresql-portable-' + (os.platform() != 'win32' ? (os.platform() + (os.arch() === 'x64' ? '64' : '32')) : 'windows'); 18 | //const postgresql_module_path = require.resolve('postgresql-portable-' + (os.platform() != 'win32' ? (os.platform() + (os.arch() === 'x64' ? '64' : '32')) : 'windows')); 19 | const postgresql_module_path = app.getAppPath() + '/' + 'node_modules/postgresql-portable-' + (os.platform() != 'win32' ? (os.platform() + (os.arch() === 'x64' ? '64' : '32')) : 'windows'); 20 | 21 | exports.init = function (strAppName, callback) { 22 | try { 23 | // Check for postgres data 24 | fs.statSync(os.homedir() + '/.' + strAppName + '/data'); 25 | 26 | // Start postgres 27 | postgresqlProc = child_process.spawn(path.normalize(postgresql_module_path + '/bin/postgres' + (process.platform == 'win32' ? '.exe' : '')), [ 28 | '-D', path.normalize(os.homedir() + '/.' + strAppName + '/data'), 29 | '-k', '/tmp' 30 | ], { 31 | cwd: path.normalize(postgresql_module_path + '/bin/') 32 | }); 33 | postgresqlProc.stderr.on('data', function(data) { 34 | console.log('postgres ' + postgresqlProc.pid + ' got data:\n' + data); 35 | 36 | if (data.indexOf('database system is ready to accept connections') > -1) { 37 | callback(fs.readFileSync(path.normalize(os.homedir() + '/.' + strAppName + '/postgres_port')).toString()); 38 | } 39 | }); 40 | postgresqlProc.on('close', function(code) { 41 | console.log(postgresqlProc.pid + ' closed with code ' + code); 42 | }); 43 | } catch (e) { 44 | // Open the progress window 45 | var progressWindow = new BrowserWindow({ 46 | width: 800, 47 | height: 100, 48 | frame: false 49 | }); 50 | 51 | // Set the content 52 | progressWindow.loadURL('about:blank'); 53 | progressWindow.webContents.executeJavaScript( 54 | 'document.body.innerHTML = \'
' + 55 | ' Performing one-time setup' + 56 | ' ' + 57 | '
\';' + 58 | 'document.body.style.background = \'none\';' + 59 | 'document.body.style.overflow = \'none\';').then( 60 | function() { 61 | // Create the data directory 62 | fs.mkdirsSync(os.homedir() + '/.' + strAppName + '/'); 63 | if (!hidefile.isHiddenSync(os.homedir() + '/.' + strAppName + '/')) { 64 | hidefile.hideSync(os.homedir() + '/.' + strAppName + '/'); 65 | } 66 | fs.mkdirsSync(os.homedir() + '/.' + strAppName + '/data'); 67 | 68 | const int_postgres_port = parseInt(Math.random().toString().substring(2)) % (65535 - 1024) + 1024; 69 | postgresqlProc = child_process.spawn(path.normalize(postgresql_module_path + '/bin/initdb' + (process.platform == 'win32' ? '.exe' : '')), [ 70 | '-D', path.normalize(os.homedir() + '/.' + strAppName + '/data'), 71 | '-E', 'UTF8', 72 | '-U', 'postgres' 73 | ], { 74 | cwd: path.normalize(postgresql_module_path + '/bin/') 75 | }); 76 | 77 | // Every line of stdout advances the progress bar 78 | postgresqlProc.stdout.on('data', function(data) { 79 | progressWindow.webContents.executeJavaScript( 80 | 'var progress = document.getElementsByTagName(\'progress\')[0];' + 81 | 'progress.value = parseInt(progress.value, 10) + ' + data.toString().length / 1.5 + ';' 82 | ); 83 | console.log('initdb ' + postgresqlProc.pid + ' got data:\n' + data); 84 | }); 85 | postgresqlProc.stderr.on('data', function(data) { 86 | console.log('initdb ' + postgresqlProc.pid + ' got data:\n' + data); 87 | }); 88 | postgresqlProc.on('close', function(code) { 89 | console.log('initdb ' + postgresqlProc.pid + ' closed with code ' + code); 90 | 91 | // Add some stuff to postgresql.conf 92 | fs.appendFileSync(path.normalize(os.homedir() + '/.' + strAppName + '/data/postgresql.conf'), 93 | '\n\nport = ' + int_postgres_port + '\nlog_destination = stderr\nlogging_collector = off\n\n'); 94 | 95 | // spawn postgres 96 | postgresqlProc = child_process.spawn(path.normalize(postgresql_module_path + '/bin/postgres' + (process.platform == 'win32' ? '.exe' : '')), [ 97 | '-D', path.normalize(os.homedir() + '/.' + strAppName + '/data'), 98 | '-k', '/tmp' 99 | ], { 100 | cwd: path.normalize(postgresql_module_path + '/bin/') 101 | }); 102 | 103 | postgresqlProc.stdout.on('data', function(data) { 104 | console.log('postgres ' + postgresqlProc.pid + ' got data:\n' + data); 105 | }); 106 | postgresqlProc.stderr.on('data', function(data) { 107 | console.log('postgres ' + postgresqlProc.pid + ' got data:\n' + data); 108 | progressWindow.webContents.executeJavaScript( 109 | 'var progress = document.getElementsByTagName(\'progress\')[0];' + 110 | 'progress.value = parseInt(progress.value, 10) + ' + data.toString().length / 2 + ';' 111 | ); 112 | 113 | // When we are ready 114 | if (data.indexOf('database system is ready to accept connections') > -1) { 115 | // Run init.sql againts the database 116 | var psqlProc = child_process.spawn(path.normalize(postgresql_module_path + '/bin/psql' + (process.platform == 'win32' ? '.exe' : '')), [ 117 | '-f', path.normalize(app.getAppPath() + '/init.sql'), 118 | '-h', (process.platform == 'win32' ? '127.0.0.1' : '/tmp'), 119 | '-p', int_postgres_port, 120 | '-U', 'postgres' 121 | ], { 122 | cwd: path.normalize(postgresql_module_path + '/bin/') 123 | }); 124 | 125 | psqlProc.stdout.on('data', function(data) { 126 | console.log('psql ' + psqlProc.pid + ' got data:\n' + data); 127 | }); 128 | psqlProc.stderr.on('data', function(data) { 129 | console.log('psql ' + psqlProc.pid + ' got data:\n' + data); 130 | progressWindow.webContents.executeJavaScript( 131 | 'var progress = document.getElementsByTagName(\'progress\')[0];' + 132 | 'progress.value = parseInt(progress.value, 10) + ' + data.toString().length / 2 + ';' 133 | ); 134 | }); 135 | psqlProc.on('close', function(code) { 136 | console.log('psql ' + psqlProc.pid + ' closed with code ' + code); 137 | 138 | // Set up pg_hba.conf 139 | if (process.platform == 'win32') { 140 | fs.writeFileSync( 141 | path.normalize(os.homedir() + '/.' + strAppName + '/data/pg_hba.conf'), 142 | 'host all all 127.0.0.1/32 md5' 143 | ); 144 | } else { 145 | fs.writeFileSync( 146 | path.normalize(os.homedir() + '/.' + strAppName + '/data/pg_hba.conf'), 147 | 'local all all md5' 148 | ); 149 | } 150 | // Restart postgresql (by listening for close, and then killing) 151 | postgresqlProc.on('close', function(code) { 152 | postgresqlProc = child_process.spawn(path.normalize(postgresql_module_path + '/bin/postgres' + (process.platform == 'win32' ? '.exe' : '')), [ 153 | '-D', path.normalize(os.homedir() + '/.' + strAppName + '/data'), 154 | '-k', '/tmp' 155 | ], { 156 | cwd: path.normalize(postgresql_module_path + '/bin/') 157 | }); 158 | 159 | postgresqlProc.stdout.on('data', function(data) { 160 | console.log('postgres ' + postgresqlProc.pid + ' got data:\n' + data); 161 | }); 162 | postgresqlProc.stderr.on('data', function thisCallback(data) { 163 | console.log('postgres ' + postgresqlProc.pid + ' got data:\n' + data); 164 | progressWindow.webContents.executeJavaScript( 165 | 'var progress = document.getElementsByTagName(\'progress\')[0];' + 166 | 'progress.value = parseInt(progress.value, 10) + ' + data.toString().length / 2 + ';' 167 | ); 168 | 169 | if (data.indexOf('database system is ready to accept connections') > -1) { 170 | postgresqlProc.stderr.removeListener('data', thisCallback); 171 | fs.writeFileSync( 172 | path.normalize(os.homedir() + '/.' + strAppName + '/postgres_port'), 173 | int_postgres_port.toString() 174 | ); 175 | // Open main window 176 | callback(int_postgres_port); 177 | // Close progress window 178 | progressWindow.close(); 179 | } 180 | }); 181 | postgresqlProc.on('close', function(code) { 182 | console.log('postgres ' + postgresqlProc.pid + ' closed with code ' + code); 183 | }); 184 | }); 185 | 186 | if (process.platform === 'win32') { 187 | var pipe = net.connect('\\\\.\\pipe\\pgsignal_' + postgresqlProc.pid, function () { 188 | var uint8Data = new Uint8Array(1), 189 | data = new Buffer(uint8Data.buffer); 190 | uint8Data[0] = 15; // SIGTERM 191 | pipe.on('error', function () { 192 | console.log('error', arguments); 193 | }); 194 | 195 | pipe.write(data); 196 | pipe.end(); 197 | }); 198 | } else { 199 | postgresqlProc.kill(); 200 | } 201 | }); 202 | } 203 | }); 204 | postgresqlProc.on('close', function(code) { 205 | console.log('postgres ' + postgresqlProc.pid + ' closed with code ' + code); 206 | }); 207 | }); 208 | } 209 | ); 210 | } 211 | }; 212 | 213 | exports.quit = function () { 214 | console.log('quitting'); 215 | if (process.platform === 'win32') { 216 | var pipe = net.connect('\\\\.\\pipe\\pgsignal_' + postgresqlProc.pid, function () { 217 | var uint8Data = new Uint8Array(1), 218 | data = new Buffer(uint8Data.buffer); 219 | uint8Data[0] = 15; // SIGTERM 220 | pipe.on('error', function () { 221 | console.log('error', arguments); 222 | }); 223 | 224 | pipe.write(data); 225 | pipe.end(); 226 | }); 227 | } else { 228 | postgresqlProc.kill(); 229 | } 230 | }; 231 | -------------------------------------------------------------------------------- /package-lock.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "postcard", 3 | "version": "1.1.0", 4 | "lockfileVersion": 1, 5 | "requires": true, 6 | "dependencies": { 7 | "@electron/get": { 8 | "version": "1.7.1", 9 | "resolved": "https://registry.npmjs.org/@electron/get/-/get-1.7.1.tgz", 10 | "integrity": "sha512-+BOIzkmYbe+oOBGqSByq8zXYXCFztccoymR3uNkvX5ckJ/5xU+4peVyEvFyH6+zfv58hCo99RxgIpwuaMfRtRg==", 11 | "dev": true, 12 | "requires": { 13 | "debug": "^4.1.1", 14 | "env-paths": "^2.2.0", 15 | "fs-extra": "^8.1.0", 16 | "global-agent": "^2.0.2", 17 | "global-tunnel-ng": "^2.7.1", 18 | "got": "^9.6.0", 19 | "sanitize-filename": "^1.6.2", 20 | "sumchecker": "^3.0.0" 21 | }, 22 | "dependencies": { 23 | "fs-extra": { 24 | "version": "8.1.0", 25 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", 26 | "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", 27 | "dev": true, 28 | "requires": { 29 | "graceful-fs": "^4.2.0", 30 | "jsonfile": "^4.0.0", 31 | "universalify": "^0.1.0" 32 | } 33 | } 34 | } 35 | }, 36 | "@sindresorhus/is": { 37 | "version": "0.14.0", 38 | "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", 39 | "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", 40 | "dev": true 41 | }, 42 | "@szmarczak/http-timer": { 43 | "version": "1.1.2", 44 | "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", 45 | "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", 46 | "dev": true, 47 | "requires": { 48 | "defer-to-connect": "^1.0.1" 49 | } 50 | }, 51 | "@types/node": { 52 | "version": "12.12.14", 53 | "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.14.tgz", 54 | "integrity": "sha512-u/SJDyXwuihpwjXy7hOOghagLEV1KdAST6syfnOk6QZAMzZuWZqXy5aYYZbh8Jdpd4escVFP0MvftHNDb9pruA==", 55 | "dev": true 56 | }, 57 | "ansi-regex": { 58 | "version": "5.0.0", 59 | "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", 60 | "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==" 61 | }, 62 | "ansi-styles": { 63 | "version": "3.2.1", 64 | "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", 65 | "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", 66 | "requires": { 67 | "color-convert": "^1.9.0" 68 | } 69 | }, 70 | "astral-regex": { 71 | "version": "1.0.0", 72 | "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-1.0.0.tgz", 73 | "integrity": "sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg==" 74 | }, 75 | "boolean": { 76 | "version": "3.0.0", 77 | "resolved": "https://registry.npmjs.org/boolean/-/boolean-3.0.0.tgz", 78 | "integrity": "sha512-OElxJ1lUSinuoUnkpOgLmxp0DC4ytEhODEL6QJU0NpxE/mI4rUSh8h1P1Wkvfi3xQEBcxXR2gBIPNYNuaFcAbQ==", 79 | "dev": true 80 | }, 81 | "buffer-from": { 82 | "version": "1.1.1", 83 | "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", 84 | "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", 85 | "dev": true 86 | }, 87 | "cacheable-request": { 88 | "version": "6.1.0", 89 | "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", 90 | "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", 91 | "dev": true, 92 | "requires": { 93 | "clone-response": "^1.0.2", 94 | "get-stream": "^5.1.0", 95 | "http-cache-semantics": "^4.0.0", 96 | "keyv": "^3.0.0", 97 | "lowercase-keys": "^2.0.0", 98 | "normalize-url": "^4.1.0", 99 | "responselike": "^1.0.2" 100 | }, 101 | "dependencies": { 102 | "get-stream": { 103 | "version": "5.1.0", 104 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.1.0.tgz", 105 | "integrity": "sha512-EXr1FOzrzTfGeL0gQdeFEvOMm2mzMOglyiOXSTpPC+iAjAKftbr3jpCMWynogwYnM+eSj9sHGc6wjIcDvYiygw==", 106 | "dev": true, 107 | "requires": { 108 | "pump": "^3.0.0" 109 | } 110 | }, 111 | "lowercase-keys": { 112 | "version": "2.0.0", 113 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", 114 | "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", 115 | "dev": true 116 | } 117 | } 118 | }, 119 | "cli-truncate": { 120 | "version": "2.0.0", 121 | "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.0.0.tgz", 122 | "integrity": "sha512-C4hp+8GCIFVsUUiXcw+ce+7wexVWImw8rQrgMBFsqerx9LvvcGlwm6sMjQYAEmV/Xb87xc1b5Ttx505MSpZVqg==", 123 | "requires": { 124 | "slice-ansi": "^2.1.0", 125 | "string-width": "^4.1.0" 126 | } 127 | }, 128 | "clone-response": { 129 | "version": "1.0.2", 130 | "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", 131 | "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", 132 | "dev": true, 133 | "requires": { 134 | "mimic-response": "^1.0.0" 135 | } 136 | }, 137 | "color-convert": { 138 | "version": "1.9.3", 139 | "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", 140 | "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", 141 | "requires": { 142 | "color-name": "1.1.3" 143 | } 144 | }, 145 | "color-name": { 146 | "version": "1.1.3", 147 | "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", 148 | "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=" 149 | }, 150 | "concat-stream": { 151 | "version": "1.6.2", 152 | "resolved": "https://registry.npmjs.org/concat-stream/-/concat-stream-1.6.2.tgz", 153 | "integrity": "sha512-27HBghJxjiZtIk3Ycvn/4kbJk/1uZuJFfuPEns6LaEvpvG1f0hTea8lilrouyo9mVc2GWdcEZ8OLoGmSADlrCw==", 154 | "dev": true, 155 | "requires": { 156 | "buffer-from": "^1.0.0", 157 | "inherits": "^2.0.3", 158 | "readable-stream": "^2.2.2", 159 | "typedarray": "^0.0.6" 160 | } 161 | }, 162 | "config-chain": { 163 | "version": "1.1.12", 164 | "resolved": "https://registry.npmjs.org/config-chain/-/config-chain-1.1.12.tgz", 165 | "integrity": "sha512-a1eOIcu8+7lUInge4Rpf/n4Krkf3Dd9lqhljRzII1/Zno/kRtUWnznPO3jOKBmTEktkt3fkxisUcivoj0ebzoA==", 166 | "dev": true, 167 | "optional": true, 168 | "requires": { 169 | "ini": "^1.3.4", 170 | "proto-list": "~1.2.1" 171 | } 172 | }, 173 | "core-js": { 174 | "version": "3.4.5", 175 | "resolved": "https://registry.npmjs.org/core-js/-/core-js-3.4.5.tgz", 176 | "integrity": "sha512-OuvejWH6vIaUo59Ndlh89purNm4DCIy/v3QoYlcGnn+PkYI8BhNHfCuAESrWX+ZPfq9JccVJ+XXgOMy77PJexg==", 177 | "dev": true, 178 | "optional": true 179 | }, 180 | "core-util-is": { 181 | "version": "1.0.2", 182 | "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", 183 | "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", 184 | "dev": true 185 | }, 186 | "debug": { 187 | "version": "4.1.1", 188 | "resolved": "https://registry.npmjs.org/debug/-/debug-4.1.1.tgz", 189 | "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", 190 | "dev": true, 191 | "requires": { 192 | "ms": "^2.1.1" 193 | } 194 | }, 195 | "decompress-response": { 196 | "version": "3.3.0", 197 | "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", 198 | "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", 199 | "dev": true, 200 | "requires": { 201 | "mimic-response": "^1.0.0" 202 | } 203 | }, 204 | "defer-to-connect": { 205 | "version": "1.1.0", 206 | "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.0.tgz", 207 | "integrity": "sha512-WE2sZoctWm/v4smfCAdjYbrfS55JiMRdlY9ZubFhsYbteCK9+BvAx4YV7nPjYM6ZnX5BcoVKwfmyx9sIFTgQMQ==", 208 | "dev": true 209 | }, 210 | "define-properties": { 211 | "version": "1.1.3", 212 | "resolved": "https://registry.npmjs.org/define-properties/-/define-properties-1.1.3.tgz", 213 | "integrity": "sha512-3MqfYKj2lLzdMSf8ZIZE/V+Zuy+BgD6f164e8K2w7dgnpKArBDerGYpM46IYYcjnkdPNMjPk9A6VFB8+3SKlXQ==", 214 | "dev": true, 215 | "optional": true, 216 | "requires": { 217 | "object-keys": "^1.0.12" 218 | } 219 | }, 220 | "detect-node": { 221 | "version": "2.0.4", 222 | "resolved": "https://registry.npmjs.org/detect-node/-/detect-node-2.0.4.tgz", 223 | "integrity": "sha512-ZIzRpLJrOj7jjP2miAtgqIfmzbxa4ZOr5jJc601zklsfEx9oTzmmj2nVpIPRpNlRTIh8lc1kyViIY7BWSGNmKw==", 224 | "dev": true, 225 | "optional": true 226 | }, 227 | "duplexer3": { 228 | "version": "0.1.4", 229 | "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", 230 | "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", 231 | "dev": true 232 | }, 233 | "electron": { 234 | "version": "7.1.2", 235 | "resolved": "https://registry.npmjs.org/electron/-/electron-7.1.2.tgz", 236 | "integrity": "sha512-7hjONYt2GlQfKuKgQrhhUL1P9lbGWLBfMUq+2QFU3yeLtCvM0ROfPJCRP4OF5pVp3KDyfFp4DtmhuVzAnxV3jA==", 237 | "dev": true, 238 | "requires": { 239 | "@electron/get": "^1.0.1", 240 | "@types/node": "^12.0.12", 241 | "extract-zip": "^1.0.3" 242 | } 243 | }, 244 | "electron-context-menu": { 245 | "version": "0.15.1", 246 | "resolved": "https://registry.npmjs.org/electron-context-menu/-/electron-context-menu-0.15.1.tgz", 247 | "integrity": "sha512-+uiTR8c/GKT1D4jxkV5GGEuAJz+RJGFJmdCXD3yIzhQ6BwpjEC99F9DqJJfTzHK1P3R5sxiZ7qoSNvg/3dBgzw==", 248 | "requires": { 249 | "cli-truncate": "^2.0.0", 250 | "electron-dl": "^1.2.0", 251 | "electron-is-dev": "^1.0.1" 252 | } 253 | }, 254 | "electron-dl": { 255 | "version": "1.14.0", 256 | "resolved": "https://registry.npmjs.org/electron-dl/-/electron-dl-1.14.0.tgz", 257 | "integrity": "sha512-4okyei42a1mLsvLK7hLrIfd20EQzB18nIlLTwBV992aMSmTGLUEFRTmO1MfSslGNrzD8nuPuy1l/VxO8so4lig==", 258 | "requires": { 259 | "ext-name": "^5.0.0", 260 | "pupa": "^1.0.0", 261 | "unused-filename": "^1.0.0" 262 | } 263 | }, 264 | "electron-is-dev": { 265 | "version": "1.1.0", 266 | "resolved": "https://registry.npmjs.org/electron-is-dev/-/electron-is-dev-1.1.0.tgz", 267 | "integrity": "sha512-Z1qA/1oHNowGtSBIcWk0pcLEqYT/j+13xUw/MYOrBUOL4X7VN0i0KCTf5SqyvMPmW5pSPKbo28wkxMxzZ20YnQ==" 268 | }, 269 | "electron-window-state": { 270 | "version": "5.0.3", 271 | "resolved": "https://registry.npmjs.org/electron-window-state/-/electron-window-state-5.0.3.tgz", 272 | "integrity": "sha512-1mNTwCfkolXl3kMf50yW3vE2lZj0y92P/HYWFBrb+v2S/pCka5mdwN3cagKm458A7NjndSwijynXgcLWRodsVg==", 273 | "requires": { 274 | "jsonfile": "^4.0.0", 275 | "mkdirp": "^0.5.1" 276 | } 277 | }, 278 | "emoji-regex": { 279 | "version": "8.0.0", 280 | "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", 281 | "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==" 282 | }, 283 | "encodeurl": { 284 | "version": "1.0.2", 285 | "resolved": "https://registry.npmjs.org/encodeurl/-/encodeurl-1.0.2.tgz", 286 | "integrity": "sha1-rT/0yG7C0CkyL1oCw6mmBslbP1k=", 287 | "dev": true, 288 | "optional": true 289 | }, 290 | "end-of-stream": { 291 | "version": "1.4.4", 292 | "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", 293 | "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", 294 | "dev": true, 295 | "requires": { 296 | "once": "^1.4.0" 297 | } 298 | }, 299 | "env-paths": { 300 | "version": "2.2.0", 301 | "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.0.tgz", 302 | "integrity": "sha512-6u0VYSCo/OW6IoD5WCLLy9JUGARbamfSavcNXry/eu8aHVFei6CD3Sw+VGX5alea1i9pgPHW0mbu6Xj0uBh7gA==", 303 | "dev": true 304 | }, 305 | "es6-error": { 306 | "version": "4.1.1", 307 | "resolved": "https://registry.npmjs.org/es6-error/-/es6-error-4.1.1.tgz", 308 | "integrity": "sha512-Um/+FxMr9CISWh0bi5Zv0iOD+4cFh5qLeks1qhAopKVAJw3drgKbKySikp7wGhDL0HPeaja0P5ULZrxLkniUVg==", 309 | "dev": true, 310 | "optional": true 311 | }, 312 | "escape-string-regexp": { 313 | "version": "2.0.0", 314 | "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", 315 | "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", 316 | "dev": true, 317 | "optional": true 318 | }, 319 | "ext-list": { 320 | "version": "2.2.2", 321 | "resolved": "https://registry.npmjs.org/ext-list/-/ext-list-2.2.2.tgz", 322 | "integrity": "sha512-u+SQgsubraE6zItfVA0tBuCBhfU9ogSRnsvygI7wht9TS510oLkBRXBsqopeUG/GBOIQyKZO9wjTqIu/sf5zFA==", 323 | "requires": { 324 | "mime-db": "^1.28.0" 325 | } 326 | }, 327 | "ext-name": { 328 | "version": "5.0.0", 329 | "resolved": "https://registry.npmjs.org/ext-name/-/ext-name-5.0.0.tgz", 330 | "integrity": "sha512-yblEwXAbGv1VQDmow7s38W77hzAgJAO50ztBLMcUyUBfxv1HC+LGwtiEN+Co6LtlqT/5uwVOxsD4TNIilWhwdQ==", 331 | "requires": { 332 | "ext-list": "^2.0.0", 333 | "sort-keys-length": "^1.0.0" 334 | } 335 | }, 336 | "extract-zip": { 337 | "version": "1.6.7", 338 | "resolved": "https://registry.npmjs.org/extract-zip/-/extract-zip-1.6.7.tgz", 339 | "integrity": "sha1-qEC0uK9kAyZMjbV/Txp0Mz74H+k=", 340 | "dev": true, 341 | "requires": { 342 | "concat-stream": "1.6.2", 343 | "debug": "2.6.9", 344 | "mkdirp": "0.5.1", 345 | "yauzl": "2.4.1" 346 | }, 347 | "dependencies": { 348 | "debug": { 349 | "version": "2.6.9", 350 | "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", 351 | "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", 352 | "dev": true, 353 | "requires": { 354 | "ms": "2.0.0" 355 | } 356 | }, 357 | "ms": { 358 | "version": "2.0.0", 359 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", 360 | "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", 361 | "dev": true 362 | } 363 | } 364 | }, 365 | "fd-slicer": { 366 | "version": "1.0.1", 367 | "resolved": "https://registry.npmjs.org/fd-slicer/-/fd-slicer-1.0.1.tgz", 368 | "integrity": "sha1-i1vL2ewyfFBBv5qwI/1nUPEXfmU=", 369 | "dev": true, 370 | "requires": { 371 | "pend": "~1.2.0" 372 | } 373 | }, 374 | "fs-extra": { 375 | "version": "1.0.0", 376 | "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-1.0.0.tgz", 377 | "integrity": "sha1-zTzl9+fLYUWIP8rjGR6Yd/hYeVA=", 378 | "requires": { 379 | "graceful-fs": "^4.1.2", 380 | "jsonfile": "^2.1.0", 381 | "klaw": "^1.0.0" 382 | }, 383 | "dependencies": { 384 | "jsonfile": { 385 | "version": "2.4.0", 386 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-2.4.0.tgz", 387 | "integrity": "sha1-NzaitCi4e72gzIO1P6PWM6NcKug=", 388 | "requires": { 389 | "graceful-fs": "^4.1.6" 390 | } 391 | } 392 | } 393 | }, 394 | "fswin": { 395 | "version": "2.17.1227", 396 | "resolved": "https://registry.npmjs.org/fswin/-/fswin-2.17.1227.tgz", 397 | "integrity": "sha512-xNDktvwzSsXT8Xqnpz59VbuFwGHhtn1w+dS7QQ+wAu5cbH0p3WMGKU9Duf7cPna+nubhR+5ZG1MTl6/V6xgRgw==" 398 | }, 399 | "function-bind": { 400 | "version": "1.1.1", 401 | "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", 402 | "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", 403 | "dev": true, 404 | "optional": true 405 | }, 406 | "get-stream": { 407 | "version": "4.1.0", 408 | "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", 409 | "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", 410 | "dev": true, 411 | "requires": { 412 | "pump": "^3.0.0" 413 | } 414 | }, 415 | "global-agent": { 416 | "version": "2.1.7", 417 | "resolved": "https://registry.npmjs.org/global-agent/-/global-agent-2.1.7.tgz", 418 | "integrity": "sha512-ooK7eqGYZku+LgnbfH/Iv0RJ74XfhrBZDlke1QSzcBt0bw1PmJcnRADPAQuFE+R45pKKDTynAr25SBasY2kvow==", 419 | "dev": true, 420 | "optional": true, 421 | "requires": { 422 | "boolean": "^3.0.0", 423 | "core-js": "^3.4.1", 424 | "es6-error": "^4.1.1", 425 | "matcher": "^2.0.0", 426 | "roarr": "^2.14.5", 427 | "semver": "^6.3.0", 428 | "serialize-error": "^5.0.0" 429 | } 430 | }, 431 | "global-tunnel-ng": { 432 | "version": "2.7.1", 433 | "resolved": "https://registry.npmjs.org/global-tunnel-ng/-/global-tunnel-ng-2.7.1.tgz", 434 | "integrity": "sha512-4s+DyciWBV0eK148wqXxcmVAbFVPqtc3sEtUE/GTQfuU80rySLcMhUmHKSHI7/LDj8q0gDYI1lIhRRB7ieRAqg==", 435 | "dev": true, 436 | "optional": true, 437 | "requires": { 438 | "encodeurl": "^1.0.2", 439 | "lodash": "^4.17.10", 440 | "npm-conf": "^1.1.3", 441 | "tunnel": "^0.0.6" 442 | } 443 | }, 444 | "globalthis": { 445 | "version": "1.0.0", 446 | "resolved": "https://registry.npmjs.org/globalthis/-/globalthis-1.0.0.tgz", 447 | "integrity": "sha512-vcCAZTJ3r5Qcu5l8/2oyVdoFwxKgfYnMTR2vwWeux/NAVZK3PwcMaWkdUIn4GJbmKuRK7xcvDsLuK+CKcXyodg==", 448 | "dev": true, 449 | "optional": true, 450 | "requires": { 451 | "define-properties": "^1.1.2", 452 | "function-bind": "^1.1.1", 453 | "object-keys": "^1.0.12" 454 | } 455 | }, 456 | "got": { 457 | "version": "9.6.0", 458 | "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", 459 | "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", 460 | "dev": true, 461 | "requires": { 462 | "@sindresorhus/is": "^0.14.0", 463 | "@szmarczak/http-timer": "^1.1.2", 464 | "cacheable-request": "^6.0.0", 465 | "decompress-response": "^3.3.0", 466 | "duplexer3": "^0.1.4", 467 | "get-stream": "^4.1.0", 468 | "lowercase-keys": "^1.0.1", 469 | "mimic-response": "^1.0.1", 470 | "p-cancelable": "^1.0.0", 471 | "to-readable-stream": "^1.0.0", 472 | "url-parse-lax": "^3.0.0" 473 | } 474 | }, 475 | "graceful-fs": { 476 | "version": "4.2.3", 477 | "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.3.tgz", 478 | "integrity": "sha512-a30VEBm4PEdx1dRB7MFK7BejejvCvBronbLjht+sHuGYj8PHs7M/5Z+rt5lw551vZ7yfTCj4Vuyy3mSJytDWRQ==" 479 | }, 480 | "hidefile": { 481 | "version": "2.0.0", 482 | "resolved": "https://registry.npmjs.org/hidefile/-/hidefile-2.0.0.tgz", 483 | "integrity": "sha1-eSy/1mEFfeuD8GnWEfS8VZpdOjU=", 484 | "requires": { 485 | "winattr": "^2.0.0" 486 | } 487 | }, 488 | "http-cache-semantics": { 489 | "version": "4.0.3", 490 | "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.0.3.tgz", 491 | "integrity": "sha512-TcIMG3qeVLgDr1TEd2XvHaTnMPwYQUQMIBLy+5pLSDKYFc7UIqj39w8EGzZkaxoLv/l2K8HaI0t5AVA+YYgUew==", 492 | "dev": true 493 | }, 494 | "inherits": { 495 | "version": "2.0.4", 496 | "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", 497 | "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", 498 | "dev": true 499 | }, 500 | "ini": { 501 | "version": "1.3.5", 502 | "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.5.tgz", 503 | "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", 504 | "dev": true, 505 | "optional": true 506 | }, 507 | "is-fullwidth-code-point": { 508 | "version": "2.0.0", 509 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", 510 | "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=" 511 | }, 512 | "is-plain-obj": { 513 | "version": "1.1.0", 514 | "resolved": "https://registry.npmjs.org/is-plain-obj/-/is-plain-obj-1.1.0.tgz", 515 | "integrity": "sha1-caUMhCnfync8kqOQpKA7OfzVHT4=" 516 | }, 517 | "isarray": { 518 | "version": "1.0.0", 519 | "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", 520 | "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", 521 | "dev": true 522 | }, 523 | "json-buffer": { 524 | "version": "3.0.0", 525 | "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", 526 | "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", 527 | "dev": true 528 | }, 529 | "json-stringify-safe": { 530 | "version": "5.0.1", 531 | "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", 532 | "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=", 533 | "dev": true, 534 | "optional": true 535 | }, 536 | "jsonfile": { 537 | "version": "4.0.0", 538 | "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", 539 | "integrity": "sha1-h3Gq4HmbZAdrdmQPygWPnBDjPss=", 540 | "requires": { 541 | "graceful-fs": "^4.1.6" 542 | } 543 | }, 544 | "keyv": { 545 | "version": "3.1.0", 546 | "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", 547 | "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", 548 | "dev": true, 549 | "requires": { 550 | "json-buffer": "3.0.0" 551 | } 552 | }, 553 | "klaw": { 554 | "version": "1.3.1", 555 | "resolved": "https://registry.npmjs.org/klaw/-/klaw-1.3.1.tgz", 556 | "integrity": "sha1-QIhDO0azsbolnXh4XY6W9zugJDk=", 557 | "requires": { 558 | "graceful-fs": "^4.1.9" 559 | } 560 | }, 561 | "lodash": { 562 | "version": "4.17.15", 563 | "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.15.tgz", 564 | "integrity": "sha512-8xOcRHvCjnocdS5cpwXQXVzmmh5e5+saE2QGoeQmbKmRS6J3VQppPOIt0MnmE+4xlZoumy0GPG0D0MVIQbNA1A==", 565 | "dev": true, 566 | "optional": true 567 | }, 568 | "lowercase-keys": { 569 | "version": "1.0.1", 570 | "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", 571 | "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", 572 | "dev": true 573 | }, 574 | "matcher": { 575 | "version": "2.1.0", 576 | "resolved": "https://registry.npmjs.org/matcher/-/matcher-2.1.0.tgz", 577 | "integrity": "sha512-o+nZr+vtJtgPNklyeUKkkH42OsK8WAfdgaJE2FNxcjLPg+5QbeEoT6vRj8Xq/iv18JlQ9cmKsEu0b94ixWf1YQ==", 578 | "dev": true, 579 | "optional": true, 580 | "requires": { 581 | "escape-string-regexp": "^2.0.0" 582 | } 583 | }, 584 | "mime-db": { 585 | "version": "1.42.0", 586 | "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.42.0.tgz", 587 | "integrity": "sha512-UbfJCR4UAVRNgMpfImz05smAXK7+c+ZntjaA26ANtkXLlOe947Aag5zdIcKQULAiF9Cq4WxBi9jUs5zkA84bYQ==" 588 | }, 589 | "mimic-response": { 590 | "version": "1.0.1", 591 | "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", 592 | "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", 593 | "dev": true 594 | }, 595 | "minimist": { 596 | "version": "0.0.8", 597 | "resolved": "https://registry.npmjs.org/minimist/-/minimist-0.0.8.tgz", 598 | "integrity": "sha1-hX/Kv8M5fSYluCKCYuhqp6ARsF0=" 599 | }, 600 | "mkdirp": { 601 | "version": "0.5.1", 602 | "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.1.tgz", 603 | "integrity": "sha1-MAV0OOrGz3+MR2fzhkjWaX11yQM=", 604 | "requires": { 605 | "minimist": "0.0.8" 606 | } 607 | }, 608 | "modify-filename": { 609 | "version": "1.1.0", 610 | "resolved": "https://registry.npmjs.org/modify-filename/-/modify-filename-1.1.0.tgz", 611 | "integrity": "sha1-mi3sg4Bvuy2XXyK+7IWcoms5OqE=" 612 | }, 613 | "ms": { 614 | "version": "2.1.2", 615 | "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", 616 | "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", 617 | "dev": true 618 | }, 619 | "normalize-url": { 620 | "version": "4.5.0", 621 | "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", 622 | "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", 623 | "dev": true 624 | }, 625 | "npm-conf": { 626 | "version": "1.1.3", 627 | "resolved": "https://registry.npmjs.org/npm-conf/-/npm-conf-1.1.3.tgz", 628 | "integrity": "sha512-Yic4bZHJOt9RCFbRP3GgpqhScOY4HH3V2P8yBj6CeYq118Qr+BLXqT2JvpJ00mryLESpgOxf5XlFv4ZjXxLScw==", 629 | "dev": true, 630 | "optional": true, 631 | "requires": { 632 | "config-chain": "^1.1.11", 633 | "pify": "^3.0.0" 634 | } 635 | }, 636 | "object-keys": { 637 | "version": "1.1.1", 638 | "resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz", 639 | "integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA==", 640 | "dev": true 641 | }, 642 | "once": { 643 | "version": "1.4.0", 644 | "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", 645 | "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", 646 | "dev": true, 647 | "requires": { 648 | "wrappy": "1" 649 | } 650 | }, 651 | "p-cancelable": { 652 | "version": "1.1.0", 653 | "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", 654 | "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", 655 | "dev": true 656 | }, 657 | "path-exists": { 658 | "version": "3.0.0", 659 | "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", 660 | "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=" 661 | }, 662 | "pend": { 663 | "version": "1.2.0", 664 | "resolved": "https://registry.npmjs.org/pend/-/pend-1.2.0.tgz", 665 | "integrity": "sha1-elfrVQpng/kRUzH89GY9XI4AelA=", 666 | "dev": true 667 | }, 668 | "pify": { 669 | "version": "3.0.0", 670 | "resolved": "https://registry.npmjs.org/pify/-/pify-3.0.0.tgz", 671 | "integrity": "sha1-5aSs0sEB/fPZpNB/DbxNtJ3SgXY=", 672 | "dev": true, 673 | "optional": true 674 | }, 675 | "postgresql-portable-darwin64": { 676 | "version": "9.6.0-build2", 677 | "resolved": "https://registry.npmjs.org/postgresql-portable-darwin64/-/postgresql-portable-darwin64-9.6.0-build2.tgz", 678 | "integrity": "sha1-e8ecdlG6yXH2lD/vQO2p5iAlw2Q=", 679 | "optional": true 680 | }, 681 | "postgresql-portable-linux32": { 682 | "version": "9.6.0-build2", 683 | "resolved": "https://registry.npmjs.org/postgresql-portable-linux32/-/postgresql-portable-linux32-9.6.0-build2.tgz", 684 | "integrity": "sha1-Z0mFbLLxtSzJk2bUlPhrRrppUE8=", 685 | "optional": true 686 | }, 687 | "postgresql-portable-linux64": { 688 | "version": "9.6.0-build2", 689 | "resolved": "https://registry.npmjs.org/postgresql-portable-linux64/-/postgresql-portable-linux64-9.6.0-build2.tgz", 690 | "integrity": "sha1-7TNs8cXuNhZIe5laKhvw2O8HipM=", 691 | "optional": true 692 | }, 693 | "postgresql-portable-windows": { 694 | "version": "9.6.0-build2", 695 | "resolved": "https://registry.npmjs.org/postgresql-portable-windows/-/postgresql-portable-windows-9.6.0-build2.tgz", 696 | "integrity": "sha1-KZCBNSpfA+XaEn01yNCnNZ+CoHY=", 697 | "optional": true 698 | }, 699 | "prepend-http": { 700 | "version": "2.0.0", 701 | "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", 702 | "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", 703 | "dev": true 704 | }, 705 | "process-nextick-args": { 706 | "version": "2.0.1", 707 | "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", 708 | "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==", 709 | "dev": true 710 | }, 711 | "proto-list": { 712 | "version": "1.2.4", 713 | "resolved": "https://registry.npmjs.org/proto-list/-/proto-list-1.2.4.tgz", 714 | "integrity": "sha1-IS1b/hMYMGpCD2QCuOJv85ZHqEk=", 715 | "dev": true, 716 | "optional": true 717 | }, 718 | "pump": { 719 | "version": "3.0.0", 720 | "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", 721 | "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", 722 | "dev": true, 723 | "requires": { 724 | "end-of-stream": "^1.1.0", 725 | "once": "^1.3.1" 726 | } 727 | }, 728 | "pupa": { 729 | "version": "1.0.0", 730 | "resolved": "https://registry.npmjs.org/pupa/-/pupa-1.0.0.tgz", 731 | "integrity": "sha1-mpVopa9+ZXuEYqbp1TKHQ1YM7/Y=" 732 | }, 733 | "readable-stream": { 734 | "version": "2.3.6", 735 | "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.6.tgz", 736 | "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", 737 | "dev": true, 738 | "requires": { 739 | "core-util-is": "~1.0.0", 740 | "inherits": "~2.0.3", 741 | "isarray": "~1.0.0", 742 | "process-nextick-args": "~2.0.0", 743 | "safe-buffer": "~5.1.1", 744 | "string_decoder": "~1.1.1", 745 | "util-deprecate": "~1.0.1" 746 | } 747 | }, 748 | "responselike": { 749 | "version": "1.0.2", 750 | "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", 751 | "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", 752 | "dev": true, 753 | "requires": { 754 | "lowercase-keys": "^1.0.0" 755 | } 756 | }, 757 | "roarr": { 758 | "version": "2.14.6", 759 | "resolved": "https://registry.npmjs.org/roarr/-/roarr-2.14.6.tgz", 760 | "integrity": "sha512-qjbw0BEesKA+3XFBPt+KVe1PC/Z6ShfJ4wPlx2XifqH5h2Lj8/KQT5XJTsy3n1Es5kai+BwKALaECW3F70B1cg==", 761 | "dev": true, 762 | "optional": true, 763 | "requires": { 764 | "boolean": "^3.0.0", 765 | "detect-node": "^2.0.4", 766 | "globalthis": "^1.0.0", 767 | "json-stringify-safe": "^5.0.1", 768 | "semver-compare": "^1.0.0", 769 | "sprintf-js": "^1.1.2" 770 | } 771 | }, 772 | "safe-buffer": { 773 | "version": "5.1.2", 774 | "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", 775 | "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", 776 | "dev": true 777 | }, 778 | "sanitize-filename": { 779 | "version": "1.6.3", 780 | "resolved": "https://registry.npmjs.org/sanitize-filename/-/sanitize-filename-1.6.3.tgz", 781 | "integrity": "sha512-y/52Mcy7aw3gRm7IrcGDFx/bCk4AhRh2eI9luHOQM86nZsqwiRkkq2GekHXBBD+SmPidc8i2PqtYZl+pWJ8Oeg==", 782 | "dev": true, 783 | "requires": { 784 | "truncate-utf8-bytes": "^1.0.0" 785 | } 786 | }, 787 | "semver": { 788 | "version": "6.3.0", 789 | "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", 790 | "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", 791 | "dev": true, 792 | "optional": true 793 | }, 794 | "semver-compare": { 795 | "version": "1.0.0", 796 | "resolved": "https://registry.npmjs.org/semver-compare/-/semver-compare-1.0.0.tgz", 797 | "integrity": "sha1-De4hahyUGrN+nvsXiPavxf9VN/w=", 798 | "dev": true, 799 | "optional": true 800 | }, 801 | "serialize-error": { 802 | "version": "5.0.0", 803 | "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-5.0.0.tgz", 804 | "integrity": "sha512-/VtpuyzYf82mHYTtI4QKtwHa79vAdU5OQpNPAmE/0UDdlGT0ZxHwC+J6gXkw29wwoVI8fMPsfcVHOwXtUQYYQA==", 805 | "dev": true, 806 | "optional": true, 807 | "requires": { 808 | "type-fest": "^0.8.0" 809 | } 810 | }, 811 | "slice-ansi": { 812 | "version": "2.1.0", 813 | "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-2.1.0.tgz", 814 | "integrity": "sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ==", 815 | "requires": { 816 | "ansi-styles": "^3.2.0", 817 | "astral-regex": "^1.0.0", 818 | "is-fullwidth-code-point": "^2.0.0" 819 | } 820 | }, 821 | "sort-keys": { 822 | "version": "1.1.2", 823 | "resolved": "https://registry.npmjs.org/sort-keys/-/sort-keys-1.1.2.tgz", 824 | "integrity": "sha1-RBttTTRnmPG05J6JIK37oOVD+a0=", 825 | "requires": { 826 | "is-plain-obj": "^1.0.0" 827 | } 828 | }, 829 | "sort-keys-length": { 830 | "version": "1.0.1", 831 | "resolved": "https://registry.npmjs.org/sort-keys-length/-/sort-keys-length-1.0.1.tgz", 832 | "integrity": "sha1-nLb09OnkgVWmqgZx7dM2/xR5oYg=", 833 | "requires": { 834 | "sort-keys": "^1.0.0" 835 | } 836 | }, 837 | "sprintf-js": { 838 | "version": "1.1.2", 839 | "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.2.tgz", 840 | "integrity": "sha512-VE0SOVEHCk7Qc8ulkWw3ntAzXuqf7S2lvwQaDLRnUeIEaKNQJzV6BwmLKhOqT61aGhfUMrXeaBk+oDGCzvhcug==", 841 | "dev": true, 842 | "optional": true 843 | }, 844 | "string-width": { 845 | "version": "4.2.0", 846 | "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.0.tgz", 847 | "integrity": "sha512-zUz5JD+tgqtuDjMhwIg5uFVV3dtqZ9yQJlZVfq4I01/K5Paj5UHj7VyrQOJvzawSVlKpObApbfD0Ed6yJc+1eg==", 848 | "requires": { 849 | "emoji-regex": "^8.0.0", 850 | "is-fullwidth-code-point": "^3.0.0", 851 | "strip-ansi": "^6.0.0" 852 | }, 853 | "dependencies": { 854 | "is-fullwidth-code-point": { 855 | "version": "3.0.0", 856 | "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", 857 | "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==" 858 | } 859 | } 860 | }, 861 | "string_decoder": { 862 | "version": "1.1.1", 863 | "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", 864 | "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", 865 | "dev": true, 866 | "requires": { 867 | "safe-buffer": "~5.1.0" 868 | } 869 | }, 870 | "strip-ansi": { 871 | "version": "6.0.0", 872 | "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", 873 | "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", 874 | "requires": { 875 | "ansi-regex": "^5.0.0" 876 | } 877 | }, 878 | "sumchecker": { 879 | "version": "3.0.1", 880 | "resolved": "https://registry.npmjs.org/sumchecker/-/sumchecker-3.0.1.tgz", 881 | "integrity": "sha512-MvjXzkz/BOfyVDkG0oFOtBxHX2u3gKbMHIF/dXblZsgD3BWOFLmHovIpZY7BykJdAjcqRCBi1WYBNdEC9yI7vg==", 882 | "dev": true, 883 | "requires": { 884 | "debug": "^4.1.0" 885 | } 886 | }, 887 | "to-readable-stream": { 888 | "version": "1.0.0", 889 | "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", 890 | "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", 891 | "dev": true 892 | }, 893 | "truncate-utf8-bytes": { 894 | "version": "1.0.2", 895 | "resolved": "https://registry.npmjs.org/truncate-utf8-bytes/-/truncate-utf8-bytes-1.0.2.tgz", 896 | "integrity": "sha1-QFkjkJWS1W94pYGENLC3hInKXys=", 897 | "dev": true, 898 | "requires": { 899 | "utf8-byte-length": "^1.0.1" 900 | } 901 | }, 902 | "tunnel": { 903 | "version": "0.0.6", 904 | "resolved": "https://registry.npmjs.org/tunnel/-/tunnel-0.0.6.tgz", 905 | "integrity": "sha512-1h/Lnq9yajKY2PEbBadPXj3VxsDDu844OnaAo52UVmIzIvwwtBPIuNvkjuzBlTWpfJyUbG3ez0KSBibQkj4ojg==", 906 | "dev": true, 907 | "optional": true 908 | }, 909 | "type-fest": { 910 | "version": "0.8.1", 911 | "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.8.1.tgz", 912 | "integrity": "sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA==", 913 | "dev": true, 914 | "optional": true 915 | }, 916 | "typedarray": { 917 | "version": "0.0.6", 918 | "resolved": "https://registry.npmjs.org/typedarray/-/typedarray-0.0.6.tgz", 919 | "integrity": "sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=", 920 | "dev": true 921 | }, 922 | "universalify": { 923 | "version": "0.1.2", 924 | "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", 925 | "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", 926 | "dev": true 927 | }, 928 | "unused-filename": { 929 | "version": "1.0.0", 930 | "resolved": "https://registry.npmjs.org/unused-filename/-/unused-filename-1.0.0.tgz", 931 | "integrity": "sha1-00CID3GuIRXrqhMlvvBcxmhEacY=", 932 | "requires": { 933 | "modify-filename": "^1.1.0", 934 | "path-exists": "^3.0.0" 935 | } 936 | }, 937 | "url-parse-lax": { 938 | "version": "3.0.0", 939 | "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", 940 | "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", 941 | "dev": true, 942 | "requires": { 943 | "prepend-http": "^2.0.0" 944 | } 945 | }, 946 | "utf8-byte-length": { 947 | "version": "1.0.4", 948 | "resolved": "https://registry.npmjs.org/utf8-byte-length/-/utf8-byte-length-1.0.4.tgz", 949 | "integrity": "sha1-9F8VDExm7uloGGUFq5P8u4rWv2E=", 950 | "dev": true 951 | }, 952 | "util-deprecate": { 953 | "version": "1.0.2", 954 | "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", 955 | "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", 956 | "dev": true 957 | }, 958 | "winattr": { 959 | "version": "2.0.0", 960 | "resolved": "https://registry.npmjs.org/winattr/-/winattr-2.0.0.tgz", 961 | "integrity": "sha1-VT1ONHyMWYVRqNcDLu/jZSa9UCY=", 962 | "requires": { 963 | "fswin": "^2.16.1102" 964 | } 965 | }, 966 | "wrappy": { 967 | "version": "1.0.2", 968 | "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", 969 | "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", 970 | "dev": true 971 | }, 972 | "yauzl": { 973 | "version": "2.4.1", 974 | "resolved": "https://registry.npmjs.org/yauzl/-/yauzl-2.4.1.tgz", 975 | "integrity": "sha1-lSj0QtqxsihOWLQ3m7GU4i4MQAU=", 976 | "dev": true, 977 | "requires": { 978 | "fd-slicer": "~1.0.1" 979 | } 980 | } 981 | } 982 | } 983 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "postcard", 3 | "version": "1.1.0", 4 | "description": "A database driven application platform using PostgreSQL", 5 | "main": "index.js", 6 | "repository": { 7 | "type": "git", 8 | "url": "git+https://github.com/workflowproducts/postcard.git" 9 | }, 10 | "scripts": { 11 | "start": "electron ." 12 | }, 13 | "keywords": [ 14 | "envelope", 15 | "electron", 16 | "postgres", 17 | "application" 18 | ], 19 | "author": "Nunzio Tocci (http://www.workflowproducts.com/)", 20 | "license": "Apache-2.0", 21 | "bugs": { 22 | "url": "https://github.com/workflowproducts/postcard/issues" 23 | }, 24 | "homepage": "https://github.com/workflowproducts/postcard#readme", 25 | "dependencies": { 26 | "electron-context-menu": "^0.15.1", 27 | "electron-window-state": "^5.0.3", 28 | "fs-extra": "^1.0.0", 29 | "hidefile": "^2.0.0" 30 | }, 31 | "devDependencies": { 32 | "electron": "^7.1.2" 33 | }, 34 | "optionalDependencies": { 35 | "postgresql-portable-darwin64": "9.6.0-build2", 36 | "postgresql-portable-linux32": "9.6.0-build2", 37 | "postgresql-portable-linux64": "9.6.0-build2", 38 | "postgresql-portable-windows": "9.6.0-build2" 39 | } 40 | } 41 | --------------------------------------------------------------------------------