@itwin/workspace-editor 3.3.0-dev.66 → 3.3.0-dev.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/WorkspaceEditor.js +2 -2
- package/package.json +6 -6
package/lib/WorkspaceEditor.js
CHANGED
|
@@ -51,7 +51,7 @@ async function createWorkspaceDb(args) {
|
|
|
51
51
|
const wsFile = new core_backend_1.EditableWorkspaceDb(args, core_backend_1.IModelHost.appWorkspace.getContainer(args, args));
|
|
52
52
|
await wsFile.createDb();
|
|
53
53
|
showMessage(`created WorkspaceDb ${wsFile.sqliteDb.nativeDb.getFilePath()}`);
|
|
54
|
-
|
|
54
|
+
wsFile.close();
|
|
55
55
|
}
|
|
56
56
|
/** open, call a function to process, then close a WorkspaceDb */
|
|
57
57
|
async function processWorkspace(args, ws, fn) {
|
|
@@ -61,7 +61,7 @@ async function processWorkspace(args, ws, fn) {
|
|
|
61
61
|
await fn(ws, args);
|
|
62
62
|
}
|
|
63
63
|
finally {
|
|
64
|
-
|
|
64
|
+
ws.close();
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
67
|
/** get a WorkspaceContainer that may or may not be a cloud container. */
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@itwin/workspace-editor",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"main": "lib/WorkspaceEditor.js",
|
|
5
|
-
"version": "3.3.0-dev.
|
|
5
|
+
"version": "3.3.0-dev.67",
|
|
6
6
|
"bin": {
|
|
7
7
|
"WorkspaceEditor": "./lib/WorkspaceEditor.js"
|
|
8
8
|
},
|
|
@@ -14,15 +14,15 @@
|
|
|
14
14
|
"url": "https://github.com/iTwin/itwinjs-core/tree/master/utils/workspace-editor"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@itwin/core-bentley": "3.3.0-dev.
|
|
18
|
-
"@itwin/core-common": "3.3.0-dev.
|
|
19
|
-
"@itwin/core-backend": "3.3.0-dev.
|
|
17
|
+
"@itwin/core-bentley": "3.3.0-dev.67",
|
|
18
|
+
"@itwin/core-common": "3.3.0-dev.67",
|
|
19
|
+
"@itwin/core-backend": "3.3.0-dev.67",
|
|
20
20
|
"glob": "^7.1.2",
|
|
21
21
|
"yargs": "^17.4.0"
|
|
22
22
|
},
|
|
23
23
|
"devDependencies": {
|
|
24
|
-
"@itwin/build-tools": "3.3.0-dev.
|
|
25
|
-
"@itwin/eslint-plugin": "3.3.0-dev.
|
|
24
|
+
"@itwin/build-tools": "3.3.0-dev.67",
|
|
25
|
+
"@itwin/eslint-plugin": "3.3.0-dev.67",
|
|
26
26
|
"@types/chai": "4.3.1",
|
|
27
27
|
"@types/mocha": "^8.2.2",
|
|
28
28
|
"@types/yargs": "^17.0.10",
|