()
| 123 | |
| 124 | // Lazily create the store only when it's needed |
| 125 | function getStore(): Store { |
| 126 | if (store == undefined) { |
| 127 | store = createStore(options.dbName || 'sentry-offline', options.storeName || 'queue'); |
| 128 | } |
| 129 | |
| 130 | return store; |
| 131 | } |
| 132 | |
| 133 | return { |
| 134 | push: async (env: Envelope) => { |
no test coverage detected