Skip to content

Commit

Permalink
random cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
stevensJourney committed Jul 10, 2024
1 parent 04e35c1 commit d856e91
Show file tree
Hide file tree
Showing 4 changed files with 56 additions and 57 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export const SystemProvider = ({ children }: { children: React.ReactNode }) => {
const l = connector.registerListener({
initialized: () => {},
sessionStarted: () => {
powerSync.connect(connector);
powerSync.connect(connector, {connectionMethod: SyncStreamConnectionMethod.WEB_SOCKET});
}
});

Expand Down
23 changes: 12 additions & 11 deletions packages/common/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"author": "JOURNEYAPPS",
"license": "Apache-2.0",
"files": [
"lib"
"lib",
"dist"
],
"repository": {
"type": "git",
Expand All @@ -27,16 +28,8 @@
"test": "vitest"
},
"dependencies": {
"async-mutex": "^0.4.0",
"buffer": "^6.0.3",
"can-ndjson-stream": "^1.0.2",
"cross-fetch": "^4.0.0",
"event-iterator": "^2.0.0",
"js-logger": "^1.6.1",
"lodash": "^4.17.21",
"rsocket-core": "1.0.0-alpha.3",
"rsocket-websocket-client": "1.0.0-alpha.3",
"web-streams-polyfill": "3.2.1"
"js-logger": "^1.6.1"
},
"devDependencies": {
"@rollup/plugin-commonjs": "^25.0.7",
Expand All @@ -46,10 +39,18 @@
"@types/lodash": "^4.14.197",
"@types/node": "^20.5.9",
"@types/uuid": "^9.0.1",
"async-mutex": "^0.4.0",
"bson": "^6.6.0",
"buffer": "^6.0.3",
"can-ndjson-stream": "^1.0.2",
"event-iterator": "^2.0.0",
"lodash": "^4.17.21",
"rollup": "4.14.3",
"rsocket-core": "1.0.0-alpha.3",
"rsocket-websocket-client": "1.0.0-alpha.3",
"text-encoding": "^0.7.0",
"typescript": "^5.1.3",
"vitest": "^1.5.2"
"vitest": "^1.5.2",
"web-streams-polyfill": "3.2.1"
}
}
8 changes: 4 additions & 4 deletions packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@
},
"dependencies": {
"@powersync/common": "workspace:*",
"@powersync/react": "workspace:*",
"async-lock": "^1.4.0",
"bson": "^6.6.0",
"react-native-fetch-api": "^3.0.0"
"@powersync/react": "workspace:*"
},
"devDependencies": {
"async-lock": "^1.4.0",
"bson": "^6.6.0",
"react-native-fetch-api": "^3.0.0",
"@craftzdog/react-native-buffer": "^6.0.5",
"@journeyapps/react-native-quick-sqlite": "^1.1.6",
"@rollup/plugin-alias": "^5.1.0",
Expand Down
Loading

0 comments on commit d856e91

Please sign in to comment.