You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

expo-sqlite

Package Overview
Dependencies
Maintainers
15
Versions
169
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

expo-sqlite - npm Package Compare versions

Comparing version

to
7.0.0-rc.0

.eslintrc.js

3

build/index.d.ts

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

export { default as SQLite } from './SQLite';
export * from './SQLite';
export * from './SQLite.types';

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

export { default as SQLite } from './SQLite';
export * from './SQLite';
export * from './SQLite.types';
//# sourceMappingURL=index.js.map
import './polyfillNextTick';
export declare type Query = {
sql: string;
args: unknown[];
};
export interface ResultSetError {
error: Error;
}
export interface ResultSet {
insertId?: number;
rowsAffected: number;
rows: Array<{
[column: string]: any;
}>;
}
export declare type SQLiteCallback = (error?: Error | null, resultSet?: Array<ResultSetError | ResultSet>) => void;
import { WebSQLDatabase } from './SQLite.types';
export declare function openDatabase(name: string, version?: string, description?: string, size?: number, callback?: (db: WebSQLDatabase) => void): WebSQLDatabase;
export interface WebSQLDatabase {
exec(queries: Query[], readOnly: boolean, callback: SQLiteCallback): void;
}
declare const _default: {
openDatabase: typeof openDatabase;
};
export default _default;

@@ -7,4 +7,2 @@ import './polyfillNextTick';

const { ExponentSQLite } = NativeModulesProxy;
;
;
class SQLiteDatabase {

@@ -75,5 +73,2 @@ constructor(name) {

}
export default {
openDatabase,
};
//# sourceMappingURL=SQLite.js.map
{
"name": "expo-sqlite",
"version": "6.0.0",
"version": "7.0.0-rc.0",
"description": "Provides access to a database that can be queried through a WebSQL-like API (https://www.w3.org/TR/webdatabase/). The database is persisted across restarts of your app.",

@@ -11,2 +11,3 @@ "main": "build/index.js",

"clean": "expo-module clean",
"lint": "expo-module lint",
"test": "expo-module test",

@@ -26,3 +27,4 @@ "prepare": "expo-module prepare",

"type": "git",
"url": "https://github.com/expo/expo.git"
"url": "https://github.com/expo/expo.git",
"directory": "packages/expo-sqlite"
},

@@ -44,8 +46,8 @@ "bugs": {

"@types/websql": "^0.0.27",
"lodash": "^4.17.11"
"lodash": "^4.17.15"
},
"devDependencies": {
"expo-module-scripts": "^1.0.0"
"expo-module-scripts": "~1.1.1-rc.0"
},
"gitHead": "9518929d6f2ba9cf8e0aae81d34cc1eb52f7093a"
"gitHead": "5d4fcf318390f59cecd1ae5d191afb15488a4447"
}

@@ -10,6 +10,8 @@ # expo-sqlite

# Installation
# Installation in managed Expo projects
This package is pre-installed in [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects. You may skip the rest of the installation guide if this applies to you.
For managed [managed](https://docs.expo.io/versions/latest/introduction/managed-vs-bare/) Expo projects, please follow the installation instructions in the [API documentation for the latest stable release](#api-documentation). If you follow the link and there is no documentation available then this library is not yet usable within managed projects &mdash; it is likely to be included in an upcoming Expo SDK release.
# Installation in bare React Native projects
For bare React Native projects, you must ensure that you have [installed and configured the `react-native-unimodules` package](https://github.com/unimodules/react-native-unimodules) before continuing.

@@ -16,0 +18,0 @@

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

export { default as SQLite } from './SQLite';
export * from './SQLite';
export * from './SQLite.types';

@@ -7,18 +7,6 @@ import './polyfillNextTick';

import customOpenDatabase from '@expo/websql/custom';
import { Query, SQLiteCallback, ResultSet, ResultSetError, WebSQLDatabase } from './SQLite.types';
const { ExponentSQLite } = NativeModulesProxy;
export type Query = { sql: string; args: unknown[] };
export interface ResultSetError {
error: Error;
};
export interface ResultSet {
insertId?: number;
rowsAffected: number;
rows: Array<{ [column: string]: any }>;
};
export type SQLiteCallback = (error?: Error | null, resultSet?: Array<ResultSetError | ResultSet>) => void;
class SQLiteDatabase {

@@ -91,3 +79,3 @@ _name: string;

db._db.exec(queries, readOnly, callback);
}
};
return db;

@@ -110,9 +98,1 @@ }

}
export interface WebSQLDatabase {
exec(queries: Query[], readOnly: boolean, callback: SQLiteCallback): void;
}
export default {
openDatabase,
};

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