@itwin/workspace-editor 4.0.0-dev.99 → 4.1.0-dev.0
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 +5 -5
- package/package.json +5 -5
package/lib/WorkspaceEditor.js
CHANGED
|
@@ -52,7 +52,7 @@ function friendlyFileSize(size) {
|
|
|
52
52
|
/** Create a new empty WorkspaceDb */
|
|
53
53
|
async function createWorkspaceDb(args) {
|
|
54
54
|
args.writeable = true;
|
|
55
|
-
const wsFile = new core_backend_1.EditableWorkspaceDb(args, core_backend_1.IModelHost.appWorkspace.getContainer(args
|
|
55
|
+
const wsFile = new core_backend_1.EditableWorkspaceDb(args, core_backend_1.IModelHost.appWorkspace.getContainer(args));
|
|
56
56
|
await wsFile.createDb();
|
|
57
57
|
showMessage(`created WorkspaceDb ${wsFile.sqliteDb.nativeDb.getFilePath()}`);
|
|
58
58
|
wsFile.close();
|
|
@@ -71,7 +71,7 @@ async function processWorkspace(args, ws, fn) {
|
|
|
71
71
|
/** get a WorkspaceContainer that may or may not be a cloud container. */
|
|
72
72
|
function getContainer(args) {
|
|
73
73
|
args.writeable = true;
|
|
74
|
-
return core_backend_1.IModelHost.appWorkspace.getContainer(args
|
|
74
|
+
return core_backend_1.IModelHost.appWorkspace.getContainer(args);
|
|
75
75
|
}
|
|
76
76
|
/** get a WorkspaceContainer that is expected to be a cloud container, throw otherwise. */
|
|
77
77
|
function getCloudContainer(args) {
|
|
@@ -310,7 +310,7 @@ function sayContainer(args) {
|
|
|
310
310
|
}
|
|
311
311
|
/** initialize (empty if it exists) a cloud WorkspaceContainer. */
|
|
312
312
|
async function initializeWorkspace(args) {
|
|
313
|
-
if (undefined === args.storageType || !args.
|
|
313
|
+
if (undefined === args.storageType || !args.baseUri)
|
|
314
314
|
throw new Error("No cloud container supplied");
|
|
315
315
|
if (!args.noPrompt) {
|
|
316
316
|
const yesNo = await askQuestion(`Are you sure you want to initialize ${sayContainer(args)}"? [y/n]: `);
|
|
@@ -456,9 +456,9 @@ Yargs.options({
|
|
|
456
456
|
nRequests: { describe: "Number of simultaneous http requests for cloud operations", number: true, hidden: true },
|
|
457
457
|
containerId: { alias: "c", describe: "ContainerId for WorkspaceDb", string: true, demandOption: true },
|
|
458
458
|
user: { describe: "String shown in cloud container locked message", string: true, default: "workspace-editor" },
|
|
459
|
-
|
|
459
|
+
baseUri: { alias: "b", describe: "The base uri for the container", string: true },
|
|
460
460
|
accessToken: { describe: "Token that grants access to the container (either SAS or account key)", string: true, default: "" },
|
|
461
|
-
storageType: { describe: "Cloud storage module type", string: true, default: "azure
|
|
461
|
+
storageType: { describe: "Cloud storage module type", string: true, default: "azure" },
|
|
462
462
|
logging: { describe: "enable log messages", boolean: true, default: false, hidden: true },
|
|
463
463
|
prefetch: { boolean: true, default: false, hidden: true },
|
|
464
464
|
curlDiagnostics: { boolean: true, default: false, hidden: true },
|
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": "4.
|
|
5
|
+
"version": "4.1.0-dev.0",
|
|
6
6
|
"bin": {
|
|
7
7
|
"WorkspaceEditor": "./lib/WorkspaceEditor.js"
|
|
8
8
|
},
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"glob": "^7.1.2",
|
|
19
19
|
"yargs": "^17.4.0",
|
|
20
|
-
"@itwin/core-bentley": "4.
|
|
21
|
-
"@itwin/core-
|
|
22
|
-
"@itwin/core-
|
|
20
|
+
"@itwin/core-bentley": "4.1.0-dev.0",
|
|
21
|
+
"@itwin/core-common": "4.1.0-dev.0",
|
|
22
|
+
"@itwin/core-backend": "4.1.0-dev.0"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@itwin/eslint-plugin": "^4.0.0-dev.33",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"mocha": "^10.0.0",
|
|
32
32
|
"rimraf": "^3.0.2",
|
|
33
33
|
"typescript": "~5.0.2",
|
|
34
|
-
"@itwin/build-tools": "4.
|
|
34
|
+
"@itwin/build-tools": "4.1.0-dev.0"
|
|
35
35
|
},
|
|
36
36
|
"eslintConfig": {
|
|
37
37
|
"plugins": [
|