Socket
Socket
Sign inDemoInstall

@capacitor-community/sqlite

Package Overview
Dependencies
Maintainers
14
Versions
241
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor-community/sqlite - npm Package Compare versions

Comparing version 2.4.0 to 2.4.1-1

10

CHANGELOG.md

@@ -1,3 +0,11 @@

## 2.4.0-beta.3 (2020-08-07)
## 2.4.1-1 (2020-09-22)
### Bug Fixes
- Fix Better permission request on Android issue#40
- Update APIdocumentation.md, .gitignore & .npmignore
- Fix bug in setSyncDate iOS & electron
## 2.4.0 (2020-08-07)
### Chores

@@ -4,0 +12,0 @@

3

dist/esm/definitions.d.ts

@@ -0,1 +1,2 @@

import { Plugin } from '@capacitor/core/dist/esm/definitions';
declare module '@capacitor/core' {

@@ -6,3 +7,3 @@ interface PluginRegistry {

}
export interface CapacitorSQLitePlugin {
export interface CapacitorSQLitePlugin extends Plugin {
echo(options: {

@@ -9,0 +10,0 @@ value: string;

@@ -9,3 +9,3 @@ import { JsonSQLite } from './JsonUtils';

createSyncTable(): Promise<any>;
setSyncDate(syncDate: string): Promise<boolean>;
setSyncDate(syncDate: string): Promise<any>;
close(databaseName: string): Promise<boolean>;

@@ -12,0 +12,0 @@ exec(statements: string): Promise<any>;

{
"name": "@capacitor-community/sqlite",
"version": "2.4.0",
"version": "2.4.1-1",
"description": "Capacitor SQLite Plugin",

@@ -31,3 +31,3 @@ "homepage": "https://github.com/capacitor-community/sqlite",

"prettier": "^2.0.5",
"prettier-plugin-java": "^0.8.0",
"prettier-plugin-java": "^0.8.1",
"pretty-quick": "^2.0.1",

@@ -34,0 +34,0 @@ "rimraf": "^3.0.0",

@@ -306,2 +306,29 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p>

On android, you must request permissions to read and write in storage :
```ts
export class MyPage {
_sqlite: any;
...
async ngAfterViewInit()() {
const info = await Device.getInfo();
if (info.platform === "android") {
this._sqlite = CapacitorSQLite;
try {
// Show request popup
await this._sqlite.requestPermissions();
} catch (e) {
// Permissions declined
}
}
}
}
```
## Dependencies

@@ -322,2 +349,3 @@

<td align="center"><a href="https://github.com/jepiqueau"><img src="https://avatars3.githubusercontent.com/u/16580653?v=4" width="100px;" alt=""/><br /><sub><b>Jean Pierre Quéau</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/paulantoine2"><img src="https://avatars0.githubusercontent.com/u/22882943?s=64&v=4" width="100px;" alt=""/><br /><sub><b>Paul Antoine</b></sub></a><br /><a href="https://github.com/capacitor-community/sqlite/commits?author=jepiqueau" title="Code">💻</a></td>
</tr>

@@ -324,0 +352,0 @@ </table>

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc