Skip to content
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/with-javascript-expo/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ module.exports = {
type: 'ios.simulator',
device: {
type: 'iPhone SE (3rd generation)',
os: 'iOS 18.0'
os: 'iOS 18.6'
}
},

Expand Down
2 changes: 1 addition & 1 deletion examples/with-typescript-react-native/.detoxrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ module.exports = {
type: 'ios.simulator',
device: {
type: 'iPhone SE (3rd generation)',
os: 'iOS 18.0'
os: 'iOS 18.6'
}
},

Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module.exports = {
}
]
},
// Other Jest configuration options
reporters: [
'default',
[
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"name": "@sqlitecloud/drivers",
"version": "1.0.574",
"version": "1.0.613",
"description": "SQLiteCloud drivers for Typescript/Javascript in edge, web and node clients",
"main": "./lib/index.js",
"types": "./lib/index.d.ts",
"files": [
"lib/**/*"
],
"scripts": {
"test": "jest --coverage --testPathIgnorePatterns=core",
"test": "jest --silent --coverage --testPathIgnorePatterns=core",
"build": "rm -rf ./lib/ && tsc --project tsconfig.build.json && npx webpack",
"publish": "npm run build && npm publish --access public",
"prettier": "prettier --write 'src/**/*'",
Expand Down
2 changes: 2 additions & 0 deletions src/drivers/connection-tls.ts
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,8 @@ export class SQLiteCloudTlsConnection extends SQLiteCloudConnection {
connector = tls.connectTLS
}

this.processCallback = callback

this.socket = connector(connectionOptions, () => {
if (this.config.verbose) {
console.debug(`SQLiteCloudTlsConnection - connected to ${this.config.host}, authorized: ${this.socket?.authorized}`)
Expand Down
4 changes: 2 additions & 2 deletions test/database.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -575,11 +575,11 @@ describe('Database.sql (async)', () => {
const databaseNameInjectSQL = `${databaseName}; SELECT * FROM people`
await expect(database.sql`USE DATABASE ${databaseNameInjectSQL}`).rejects.toThrow(`Database name contains invalid characters (${databaseNameInjectSQL}).`)

let key = 'logo_level'
let key = 'log_level'
let value = 'debug'
await expect(database.sql`SET KEY ${key} TO ${value}`).resolves.toBe('OK')

key = 'logo_level'
key = 'log_level'
value = 'debug; DROP TABLE people'
await expect(database.sql`SET KEY ${key} TO ${value}`).resolves.toBe('OK')
const result = await database.sql`SELECT * FROM people`
Expand Down
Loading