react-sqlite-hook
Advanced tools
Comparing version 0.0.1 to 0.0.2
@@ -0,1 +1,7 @@ | ||
## 0.0.2 (2020-10-07) | ||
### Chores | ||
- @capacitor-community/sqlite: 2.4.2-4 | ||
## 0.0.1 (2020-10-01) | ||
@@ -2,0 +8,0 @@ |
{ | ||
"name": "react-sqlite-hook", | ||
"version": "0.0.1-alpha.2", | ||
"version": "0.0.1", | ||
"description": "React Hook for @Capacitor-community/sqlite plugin", | ||
@@ -46,6 +46,7 @@ "repository": { | ||
"react": "^16.13.1", | ||
"@capacitor/core": "^2.4.2" | ||
"@capacitor/core": "^2.4.2", | ||
"@capacitor-community/sqlite": "^2.4.2-4" | ||
}, | ||
"devDependencies": { | ||
"@capacitor-community/sqlite": "^2.4.2-2", | ||
"@capacitor-community/sqlite": "^2.4.2-4", | ||
"@capacitor/core": "^2.4.2", | ||
@@ -56,3 +57,3 @@ "@testing-library/react-hooks": "^3.4.2", | ||
"conventional-changelog": "^3.1.4", | ||
"jest": "^24.9.0", | ||
"jest": "^26.5.2", | ||
"jest-environment-jsdom-fourteen": "^0.1.0", | ||
@@ -59,0 +60,0 @@ "np": "^6.5.0", |
@@ -71,3 +71,6 @@ import { AvailableResult } from './util/models'; | ||
}; | ||
/** | ||
* useSQLite Hook | ||
*/ | ||
export declare function useSQLite(): SQLiteResult; | ||
export {}; |
@@ -1,2 +0,1 @@ | ||
//Inspired from https://github.com/capacitor-community/react-hooks/blob/master/src/storage/ | ||
import { useCallback } from 'react'; | ||
@@ -6,3 +5,2 @@ import { Capacitor, Plugins } from '@capacitor/core'; | ||
import { isFeatureAvailable, featureNotAvailableError } from './util/feature-check'; | ||
//import * as CCSPlugin from '@capacitor-community/sqlite'; | ||
import '@capacitor-community/sqlite'; | ||
@@ -12,2 +10,5 @@ export const availableFeatures = { | ||
}; | ||
/** | ||
* useSQLite Hook | ||
*/ | ||
export function useSQLite() { | ||
@@ -14,0 +15,0 @@ const { CapacitorSQLite } = Plugins; |
{ | ||
"name": "react-sqlite-hook", | ||
"version": "0.0.1", | ||
"version": "0.0.2", | ||
"description": "React Hook for @Capacitor-community/sqlite plugin", | ||
@@ -47,6 +47,6 @@ "repository": { | ||
"@capacitor/core": "^2.4.2", | ||
"@capacitor-community/sqlite": "^2.4.2-2" | ||
"@capacitor-community/sqlite": "^2.4.2-4" | ||
}, | ||
"devDependencies": { | ||
"@capacitor-community/sqlite": "^2.4.2-2", | ||
"@capacitor-community/sqlite": "^2.4.2-4", | ||
"@capacitor/core": "^2.4.2", | ||
@@ -57,3 +57,3 @@ "@testing-library/react-hooks": "^3.4.2", | ||
"conventional-changelog": "^3.1.4", | ||
"jest": "^24.9.0", | ||
"jest": "^26.5.2", | ||
"jest-environment-jsdom-fourteen": "^0.1.0", | ||
@@ -60,0 +60,0 @@ "np": "^6.5.0", |
@@ -9,3 +9,3 @@ # React Hook for @Capacitor-community/sqlite | ||
```bash | ||
npm install --save @capacitor-community/sqlite | ||
npm install --save @capacitor-community/sqlite@latest | ||
npm install --save-dev react-sqlite-hook | ||
@@ -12,0 +12,0 @@ ``` |
@@ -1,3 +0,1 @@ | ||
//Inspired from https://github.com/capacitor-community/react-hooks/blob/master/src/storage/ | ||
import { useCallback } from 'react'; | ||
@@ -7,3 +5,2 @@ import { Capacitor, Plugins } from '@capacitor/core'; | ||
import { isFeatureAvailable, featureNotAvailableError } from './util/feature-check'; | ||
//import * as CCSPlugin from '@capacitor-community/sqlite'; | ||
import '@capacitor-community/sqlite'; | ||
@@ -30,3 +27,5 @@ | ||
} | ||
/** | ||
* useSQLite Hook | ||
*/ | ||
export function useSQLite(): SQLiteResult { | ||
@@ -33,0 +32,0 @@ const { CapacitorSQLite } = Plugins; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
897
56240