Skip to content

Commit cffebb0

Browse files
svelte,typescript - upgrade to v4
1 parent f7567e2 commit cffebb0

File tree

6 files changed

+196
-38
lines changed

6 files changed

+196
-38
lines changed

svelte/package-lock.json

Lines changed: 76 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

svelte/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"devDependencies": {
77
"cross-env": "^5.2.0",
88
"css-loader": "^2.1.1",
9-
"file-loader": "^5.0.2",
9+
"file-loader": "^6.2.0",
1010
"html-webpack-plugin": "^3.2.0",
1111
"mini-css-extract-plugin": "^0.6.0",
1212
"serve": "^11.0.0",
@@ -24,7 +24,7 @@
2424
"author": "",
2525
"license": "ISC",
2626
"dependencies": {
27-
"jsstore": "^3.6.2",
27+
"jsstore": "^4.0.0",
2828
"svelte": "^3.16.4"
2929
}
3030
}

svelte/src/storage_services/idb_service.js

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as JsStore from 'jsstore';
2-
import { DATA_TYPE } from 'jsstore';
1+
import { DATA_TYPE, Connection } from 'jsstore';
32

43
const getWorkerPath = () => {
54
if (process.env.NODE_ENV === 'development') {
@@ -12,8 +11,8 @@ const getWorkerPath = () => {
1211

1312
// This will ensure that we are using only one instance.
1413
// Otherwise due to multiple instance multiple worker will be created.
15-
const workerPath = getWorkerPath();
16-
export const idbCon = new JsStore.Connection(new Worker(workerPath.default));
14+
const workerPath = getWorkerPath().default
15+
export const idbCon = new Connection(new Worker(workerPath));
1716
export const dbname = 'Svelte_Demo';
1817

1918
const getDatabase = () => {

typescript/package-lock.json

Lines changed: 109 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

typescript/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@
88
},
99
"dependencies": {
1010
"jquery": "^3.4.0",
11-
"jsstore": "^3.6.1"
11+
"jsstore": "^4.0.0"
1212
},
1313
"devDependencies": {
1414
"css-loader": "^0.28.11",
15-
"file-loader": "^1.1.11",
15+
"file-loader": "^6.2.0",
1616
"html-webpack-plugin": "^3.2.0",
1717
"ts-loader": "^4.1.0",
1818
"typescript": "^2.7.2",

typescript/src/storage_service/idb_helper.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import * as JsStore from 'jsstore';
2-
import { IDataBase, DATA_TYPE, ITable } from 'jsstore';
1+
import { IDataBase, DATA_TYPE, ITable, Connection } from 'jsstore';
32

43
const getWorkerPath = () => {
54
if (process.env.NODE_ENV === 'development') {
@@ -12,8 +11,9 @@ const getWorkerPath = () => {
1211

1312
// This will ensure that we are using only one instance.
1413
// Otherwise due to multiple instance multiple worker will be created.
15-
const workerPath = getWorkerPath();
16-
export const idbCon = new JsStore.Connection(new Worker(workerPath));
14+
const workerPath = getWorkerPath().default;
15+
16+
export const idbCon = new Connection(new Worker(workerPath));
1717
export const dbname = 'Demo';
1818

1919
const getDatabase = () => {

0 commit comments

Comments
 (0)