@itwin/rpcinterface-full-stack-tests 4.4.0-dev.32 → 4.4.0-dev.33
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/backend/BackendInit.js.map +1 -1
- package/lib/common/Settings.js +12 -12
- package/lib/common/Settings.js.map +1 -1
- package/lib/common/SideChannels.js.map +1 -1
- package/lib/dist/_bea9.bundled-tests.js.map +1 -1
- package/lib/dist/bundled-tests.js +32 -29
- package/lib/dist/bundled-tests.js.map +1 -1
- package/lib/dist/core_frontend_lib_esm_ApproximateTerrainHeightsProps_js.bundled-tests.js.map +1 -1
- package/lib/dist/vendors-common_temp_node_modules_pnpm_loaders_gl_draco_3_1_6_node_modules_loaders_gl_draco_di-0642a6.bundled-tests.js.map +1 -1
- package/lib/frontend/CodeSpecs.test.js.map +1 -1
- package/lib/frontend/DevToolsRpc.test.js.map +1 -1
- package/lib/frontend/Elements.test.js.map +1 -1
- package/lib/frontend/IModel.test.js.map +1 -1
- package/lib/frontend/IModelConnection.test.js.map +1 -1
- package/lib/frontend/Models.test.js.map +1 -1
- package/lib/frontend/PresentationRpc.test.js.map +1 -1
- package/lib/frontend/Views.test.js.map +1 -1
- package/lib/frontend/setup/IModelSession.js.map +1 -1
- package/lib/frontend/setup/TestContext.js.map +1 -1
- package/lib/frontend/workflows/BasicScenarios.test.js.map +1 -1
- package/package.json +14 -14
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BackendInit.js","sourceRoot":"","sources":["../../src/backend/BackendInit.ts"],"names":[],"mappings":";;AAAA;;;+FAG+F;AAC/F,8DAA4D;AAC5D,yEAAyE;AACzE,6BAA6B;AAC7B,yDAAgE;AAChE,yBAAyB;AAEzB,+BAA+B;AAE/B,sDAAsD;AACtD,SAAS,OAAO,CAAC,OAAe;IAC9B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;QACzB,OAAO;IAET,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,yDAAyD;IAC3F,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,yDAAyD;IACxG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACnD,IAAI,SAAS,CAAC,KAAK,EAAE;QACnB,MAAM,SAAS,CAAC,KAAK,CAAC;KACvB;IAED,YAAY,CAAC,SAAS,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,CAAC,KAAK,IAAI,EAAE;IAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAElD,IAAA,qCAAsB,GAAE,CAAC;AAC3B,CAAC,CAAC,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"BackendInit.js","sourceRoot":"","sources":["../../src/backend/BackendInit.ts"],"names":[],"mappings":";;AAAA;;;+FAG+F;AAC/F,8DAA4D;AAC5D,yEAAyE;AACzE,6BAA6B;AAC7B,yDAAgE;AAChE,yBAAyB;AAEzB,+BAA+B;AAE/B,sDAAsD;AACtD,SAAS,OAAO,CAAC,OAAe;IAC9B,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC;QACzB,OAAO;IAET,MAAM,MAAM,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,yDAAyD;IAC3F,MAAM,YAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAAC,CAAC,yDAAyD;IACxG,MAAM,SAAS,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC,CAAC;IACnD,IAAI,SAAS,CAAC,KAAK,EAAE;QACnB,MAAM,SAAS,CAAC,KAAK,CAAC;KACvB;IAED,YAAY,CAAC,SAAS,CAAC,CAAC;AAC1B,CAAC;AAED,MAAM,CAAC,OAAO,GAAG,CAAC,KAAK,IAAI,EAAE;IAC3B,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;IAElD,IAAA,qCAAsB,GAAE,CAAC;AAC3B,CAAC,CAAC,EAAE,CAAC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport \"@itwin/oidc-signin-tool/lib/cjs/certa/certaBackend\";\n// Sets up certa to allow a method on the frontend to get an access token\nimport * as path from \"path\";\nimport { exposeBackendCallbacks } from \"../common/SideChannels\";\nimport * as fs from \"fs\";\n\n/* eslint-disable no-console */\n\n/** Loads the provided `.env` file into process.env */\nfunction loadEnv(envFile: string) {\n if (!fs.existsSync(envFile))\n return;\n\n const dotenv = require(\"dotenv\"); // eslint-disable-line @typescript-eslint/no-var-requires\n const dotenvExpand = require(\"dotenv-expand\"); // eslint-disable-line @typescript-eslint/no-var-requires\n const envResult = dotenv.config({ path: envFile });\n if (envResult.error) {\n throw envResult.error;\n }\n\n dotenvExpand(envResult);\n}\n\nmodule.exports = (async () => {\n loadEnv(path.join(__dirname, \"..\", \"..\", \".env\"));\n\n exposeBackendCallbacks();\n})();\n"]}
|
package/lib/common/Settings.js
CHANGED
|
@@ -137,18 +137,18 @@ class Settings {
|
|
|
137
137
|
}
|
|
138
138
|
}
|
|
139
139
|
toString() {
|
|
140
|
-
return `Configurations:
|
|
141
|
-
backend location: ${this.Backend.location},
|
|
142
|
-
backend name: ${this.Backend.name},
|
|
143
|
-
backend version: ${this.Backend.version},
|
|
144
|
-
oidc client id: ${this.oidcClientId},
|
|
145
|
-
oidc scopes: ${this.oidcScopes},
|
|
146
|
-
applicationId: ${this.gprid},
|
|
147
|
-
log level: ${this.logLevel},
|
|
148
|
-
testing iModelTileRpcTests: ${this.runiModelTileRpcTests},
|
|
149
|
-
testing PresentationRpcTest: ${this.runPresentationRpcTests},
|
|
150
|
-
testing iModelReadRpcTests: ${this.runiModelReadRpcTests},
|
|
151
|
-
testing DevToolsRpcTests: ${this.runDevToolsRpcTests},
|
|
140
|
+
return `Configurations:
|
|
141
|
+
backend location: ${this.Backend.location},
|
|
142
|
+
backend name: ${this.Backend.name},
|
|
143
|
+
backend version: ${this.Backend.version},
|
|
144
|
+
oidc client id: ${this.oidcClientId},
|
|
145
|
+
oidc scopes: ${this.oidcScopes},
|
|
146
|
+
applicationId: ${this.gprid},
|
|
147
|
+
log level: ${this.logLevel},
|
|
148
|
+
testing iModelTileRpcTests: ${this.runiModelTileRpcTests},
|
|
149
|
+
testing PresentationRpcTest: ${this.runPresentationRpcTests},
|
|
150
|
+
testing iModelReadRpcTests: ${this.runiModelReadRpcTests},
|
|
151
|
+
testing DevToolsRpcTests: ${this.runDevToolsRpcTests},
|
|
152
152
|
testing iModelWriteRpcTests: ${this.runiModelWriteRpcTests}`;
|
|
153
153
|
}
|
|
154
154
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../src/common/Settings.ts"],"names":[],"mappings":";;;AAKA,sDAA+C;AAC/C,oDAA0G;AAE1G,oEAAsE;AAwBtE,SAAgB,gBAAgB,CAAC,QAAkB;IACjD,MAAM,aAAa,GAAG,EAAE,CAAC;IACzB,IAAI,QAAQ,CAAC,mBAAmB;QAC9B,aAAa,CAAC,IAAI,CAAC,kCAAoB,CAAC,CAAC;IAC3C,IAAI,QAAQ,CAAC,uBAAuB;QAClC,aAAa,CAAC,IAAI,CAAC,8CAAwB,CAAC,CAAC;IAC/C,IAAI,QAAQ,CAAC,qBAAqB;QAChC,aAAa,CAAC,IAAI,CAAC,oCAAsB,CAAC,CAAC;IAC7C,IAAI,QAAQ,CAAC,qBAAqB;QAChC,aAAa,CAAC,IAAI,CAAC,oCAAsB,CAA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rB,IAAI,CAAC,YAAY;qBACpB,IAAI,CAAC,UAAU;uBACb,IAAI,CAAC,KAAK;mBACd,IAAI,CAAC,QAAQ;oCACI,IAAI,CAAC,qBAAqB;qCACzB,IAAI,CAAC,uBAAuB;oCAC7B,IAAI,CAAC,qBAAqB;kCAC5B,IAAI,CAAC,mBAAmB;qCACrB,IAAI,CAAC,sBAAsB,EAAE,CAAC;IACjE,CAAC;CACF;AAjKD,4BAiKC","sourcesContent":["/*---------------------------------------------------------------------------------------------\r\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\r\n* See LICENSE.md in the project root for license terms and full copyright notice.\r\n*--------------------------------------------------------------------------------------------*/\r\nimport { ServiceAuthorizationClientConfiguration } from \"@itwin/service-authorization\";\r\nimport { LogLevel } from \"@itwin/core-bentley\";\r\nimport { DevToolsRpcInterface, IModelReadRpcInterface, IModelTileRpcInterface } from \"@itwin/core-common\";\r\nimport { TestUserCredentials } from \"@itwin/oidc-signin-tool\";\r\nimport { PresentationRpcInterface } from \"@itwin/presentation-common\";\r\n\r\n/* eslint-disable @typescript-eslint/indent */\r\n\r\nexport interface Backend {\r\n version: string;\r\n location: string;\r\n name: string;\r\n path: string;\r\n}\r\n\r\n/**\r\n * Holds the information required to u identify an iModel\r\n */\r\nexport interface IModelData {\r\n useName: boolean; // Defines whether or not to use the name of the iModel\r\n id?: string; // The iModel Id - This is not required\r\n name?: string; // The name is not required to actually get the iModel, only the id.\r\n useITwinName: boolean;\r\n iTwinId?: string;\r\n iTwinName?: string;\r\n changeSetId?: string;\r\n}\r\n\r\nexport function getRpcInterfaces(settings: Settings) {\r\n const rpcInterfaces = [];\r\n if (settings.runDevToolsRpcTests)\r\n rpcInterfaces.push(DevToolsRpcInterface);\r\n if (settings.runPresentationRpcTests)\r\n rpcInterfaces.push(PresentationRpcInterface);\r\n if (settings.runiModelReadRpcTests)\r\n rpcInterfaces.push(IModelReadRpcInterface);\r\n if (settings.runiModelTileRpcTests)\r\n rpcInterfaces.push(IModelTileRpcInterface);\r\n\r\n return rpcInterfaces;\r\n}\r\n\r\nfunction checkEnabled(envVariable: string | undefined): boolean {\r\n if (undefined === envVariable)\r\n return false;\r\n\r\n const regex = /true/i;\r\n return regex.test(envVariable);\r\n}\r\n\r\nexport class Settings {\r\n private _backend: Backend = {} as Backend;\r\n public env: number = 0;\r\n public oidcClientId!: string;\r\n public oidcScopes!: string;\r\n public oidcRedirect!: string;\r\n public oidcAuthority?: string;\r\n public gprid?: string;\r\n public logLevel?: number;\r\n public users: TestUserCredentials[] = [];\r\n public clientConfiguration?: ServiceAuthorizationClientConfiguration;\r\n\r\n public iModels: IModelData[] = [];\r\n public get iModel(): IModelData { return this.iModels[0]; }\r\n public get writeIModel(): IModelData { return this.iModels[1]; }\r\n public get user(): TestUserCredentials { return this.users[0]; }\r\n\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n public get Backend(): Backend { return this._backend; }\r\n\r\n public get runiModelTileRpcTests(): boolean { return checkEnabled(process.env.RPC_IMODELTILE_ENABLE); }\r\n public get runPresentationRpcTests(): boolean { return checkEnabled(process.env.RPC_PRESENTATION_ENABLE); }\r\n public get runiModelReadRpcTests(): boolean { return checkEnabled(process.env.RPC_IMODELREAD_ENABLE); }\r\n public get runiModelWriteRpcTests(): boolean { return checkEnabled(process.env.RPC_IMODELWRITE_ENABLE); }\r\n public get runDevToolsRpcTests(): boolean { return checkEnabled(process.env.RPC_DEVTOOLS_ENABLE); }\r\n\r\n constructor(env: NodeJS.ProcessEnv) {\r\n const isFrontend = (typeof (process) === \"undefined\");\r\n if (!isFrontend && undefined === env.TF_BUILD) {\r\n const path = require(\"path\"); // eslint-disable-line @typescript-eslint/no-var-requires\r\n const dotenv = require(\"dotenv\"); // eslint-disable-line @typescript-eslint/no-var-requires\r\n const dotenvExpand = require(\"dotenv-expand\"); // eslint-disable-line @typescript-eslint/no-var-requires\r\n // First check in process.cwd() for the config\r\n let result = dotenv.config();\r\n if (result.error) {\r\n const potential = path.resolve(process.cwd(), \"..\", \"..\", \"..\", \"imodeljs-config\", \".env\");\r\n result = dotenv.config({ path: potential });\r\n if (result.error)\r\n throw result.error;\r\n }\r\n\r\n dotenvExpand(result);\r\n }\r\n\r\n if (isFrontend)\r\n globalThis.process = { browser: true, env } as any;\r\n\r\n // Loads the config out of the environment.\r\n this.load();\r\n }\r\n\r\n /** Loads the necessary variables from `process.env`.\r\n */\r\n private load() {\r\n // Parse OIDC\r\n if (undefined === process.env.OIDC_CLIENT_ID)\r\n throw new Error(\"Missing the 'OIDC_CLIENT_ID' setting.\");\r\n this.oidcClientId = process.env.OIDC_CLIENT_ID!;\r\n\r\n if (undefined === process.env.OIDC_SCOPES)\r\n throw new Error(\"Missing the 'OIDC_SCOPES' setting\");\r\n this.oidcScopes = process.env.OIDC_SCOPES;\r\n\r\n if (process.env.OIDC_AUTHORITY)\r\n this.oidcAuthority = process.env.OIDC_AUTHORITY;\r\n\r\n this.oidcRedirect = (undefined === process.env.OIDC_REDIRECT) ? \"http://localhost:5000\" : process.env.OIDC_REDIRECT;\r\n\r\n // Parse GPRId\r\n if (undefined !== process.env.GPRID)\r\n this.gprid = process.env.GPRID;\r\n\r\n // Parse the iModel variables\r\n if (!process.env.IMODEL_PROJECTID && !process.env.IMODEL_PROJECTNAME)\r\n throw new Error(\"Missing the 'IMODEL_PROJECTID' or 'IMODEL_PROJECTNAME' setting.\");\r\n\r\n if (!process.env.IMODEL_IMODELID && !process.env.IMODEL_IMODELNAME)\r\n throw new Error(\"Missing the 'IMODEL_IMODELID' or 'IMODEL_IMODELNAME' setting.\");\r\n\r\n // Note: This is kind of messy but we don't sign-in to resolve the Names into IDs until the TestContext.\r\n this.iModels.push({\r\n useName: !process.env.IMODEL_IMODELID,\r\n id: process.env.IMODEL_IMODELID,\r\n name: process.env.IMODEL_IMODELNAME,\r\n useITwinName: !process.env.IMODEL_PROJECTID,\r\n iTwinId: process.env.IMODEL_PROJECTID,\r\n iTwinName: process.env.IMODEL_PROJECTNAME,\r\n\r\n // Neither of the next 2 are needed but since they'll be undefined anyway, just always set it.\r\n changeSetId: process.env.IMODEL_CHANGESETID,\r\n });\r\n\r\n // If write rpc interface is defined expect a separate iModel to be used.\r\n if (this.runiModelWriteRpcTests) {\r\n if (!process.env.IMODEL_WRITE_PROJECTID && !process.env.IMODEL_WRITE_PROJECTNAME)\r\n throw new Error(\"Missing the 'IMODEL_WRITE_PROJECTID' or 'IMODEL_WRITE_PROJECTNAME' setting.\");\r\n\r\n if (!process.env.IMODEL_WRITE_IMODELID && !process.env.IMODEL_WRITE_IMODELNAME)\r\n throw new Error(\"Missing the 'IMODEL_WRITE_IMODELID' or 'IMODEL_WRITE_IMODELNAME' setting.\");\r\n\r\n this.iModels.push({\r\n useName: !process.env.IMODEL_WRITE_IMODELID,\r\n id: process.env.IMODEL_WRITE_IMODELID,\r\n name: process.env.IMODEL_WRITE_IMODELNAME,\r\n useITwinName: !process.env.IMODEL_WRITE_PROJECTID,\r\n iTwinId: process.env.IMODEL_WRITE_PROJECTID,\r\n iTwinName: process.env.IMODEL_WRITE_PROJECTNAME,\r\n });\r\n }\r\n\r\n // Parse logging level\r\n if (undefined !== process.env.LOG_LEVEL) {\r\n const level = parseInt(process.env.LOG_LEVEL, 10);\r\n if (!isNaN(level) && undefined !== LogLevel[level])\r\n this.logLevel = level;\r\n }\r\n\r\n // Get backend data\r\n if (undefined === process.env.BACKEND_LOCATION)\r\n throw new Error(\"Missing the 'BACKEND_LOCATION' setting.\");\r\n this._backend.location = process.env.BACKEND_LOCATION;\r\n\r\n if (undefined === process.env.BACKEND_VERSION)\r\n throw new Error(\"Missing the 'BACKEND_VERSION' setting.\");\r\n this._backend.version = process.env.BACKEND_VERSION;\r\n\r\n if (undefined === process.env.BACKEND_NAME)\r\n throw new Error(\"Missing the 'BACKEND_NAME' setting.\");\r\n this._backend.name = process.env.BACKEND_NAME;\r\n\r\n // Get users\r\n this.users.push({\r\n email: process.env.USER_WITH_ACCESS_USERNAME || \"\",\r\n password: process.env.USER_WITH_ACCESS_PASSWORD || \"\",\r\n });\r\n\r\n if (undefined !== process.env.CLIENT_WITH_ACCESS_ID && undefined !== process.env.CLIENT_WITH_ACCESS_SECRET && undefined !== process.env.CLIENT_WITH_ACCESS_SCOPES) {\r\n this.clientConfiguration = {\r\n clientId: process.env.CLIENT_WITH_ACCESS_ID,\r\n clientSecret: process.env.CLIENT_WITH_ACCESS_SECRET,\r\n scope: process.env.CLIENT_WITH_ACCESS_SCOPES,\r\n authority: this.oidcAuthority,\r\n };\r\n }\r\n }\r\n\r\n public toString(): string {\r\n return `Configurations:\r\n backend location: ${this.Backend.location},\r\n backend name: ${this.Backend.name},\r\n backend version: ${this.Backend.version},\r\n oidc client id: ${this.oidcClientId},\r\n oidc scopes: ${this.oidcScopes},\r\n applicationId: ${this.gprid},\r\n log level: ${this.logLevel},\r\n testing iModelTileRpcTests: ${this.runiModelTileRpcTests},\r\n testing PresentationRpcTest: ${this.runPresentationRpcTests},\r\n testing iModelReadRpcTests: ${this.runiModelReadRpcTests},\r\n testing DevToolsRpcTests: ${this.runDevToolsRpcTests},\r\n testing iModelWriteRpcTests: ${this.runiModelWriteRpcTests}`;\r\n }\r\n}\r\n"]}
|
|
1
|
+
{"version":3,"file":"Settings.js","sourceRoot":"","sources":["../../src/common/Settings.ts"],"names":[],"mappings":";;;AAKA,sDAA+C;AAC/C,oDAA0G;AAE1G,oEAAsE;AAwBtE,SAAgB,gBAAgB,CAAC,QAAkB;IACjD,MAAM,aAAa,GAAG,EAAE,CAAC;IACzB,IAAI,QAAQ,CAAC,mBAAmB;QAC9B,aAAa,CAAC,IAAI,CAAC,kCAAoB,CAAC,CAAC;IAC3C,IAAI,QAAQ,CAAC,uBAAuB;QAClC,aAAa,CAAC,IAAI,CAAC,8CAAwB,CAAC,CAAC;IAC/C,IAAI,QAAQ,CAAC,qBAAqB;QAChC,aAAa,CAAC,IAAI,CAAC,oCAAsB,CAAC,CAAC;IAC7C,IAAI,QAAQ,CAAC,qBAAqB;Q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;yBACd,IAAI,CAAC,OAAO,CAAC,OAAO;wBACrB,IAAI,CAAC,YAAY;qBACpB,IAAI,CAAC,UAAU;uBACb,IAAI,CAAC,KAAK;mBACd,IAAI,CAAC,QAAQ;oCACI,IAAI,CAAC,qBAAqB;qCACzB,IAAI,CAAC,uBAAuB;oCAC7B,IAAI,CAAC,qBAAqB;kCAC5B,IAAI,CAAC,mBAAmB;qCACrB,IAAI,CAAC,sBAAsB,EAAE,CAAC;IACjE,CAAC;CACF;AAjKD,4BAiKC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\nimport { ServiceAuthorizationClientConfiguration } from \"@itwin/service-authorization\";\nimport { LogLevel } from \"@itwin/core-bentley\";\nimport { DevToolsRpcInterface, IModelReadRpcInterface, IModelTileRpcInterface } from \"@itwin/core-common\";\nimport { TestUserCredentials } from \"@itwin/oidc-signin-tool\";\nimport { PresentationRpcInterface } from \"@itwin/presentation-common\";\n\n/* eslint-disable @typescript-eslint/indent */\n\nexport interface Backend {\n version: string;\n location: string;\n name: string;\n path: string;\n}\n\n/**\n * Holds the information required to u identify an iModel\n */\nexport interface IModelData {\n useName: boolean; // Defines whether or not to use the name of the iModel\n id?: string; // The iModel Id - This is not required\n name?: string; // The name is not required to actually get the iModel, only the id.\n useITwinName: boolean;\n iTwinId?: string;\n iTwinName?: string;\n changeSetId?: string;\n}\n\nexport function getRpcInterfaces(settings: Settings) {\n const rpcInterfaces = [];\n if (settings.runDevToolsRpcTests)\n rpcInterfaces.push(DevToolsRpcInterface);\n if (settings.runPresentationRpcTests)\n rpcInterfaces.push(PresentationRpcInterface);\n if (settings.runiModelReadRpcTests)\n rpcInterfaces.push(IModelReadRpcInterface);\n if (settings.runiModelTileRpcTests)\n rpcInterfaces.push(IModelTileRpcInterface);\n\n return rpcInterfaces;\n}\n\nfunction checkEnabled(envVariable: string | undefined): boolean {\n if (undefined === envVariable)\n return false;\n\n const regex = /true/i;\n return regex.test(envVariable);\n}\n\nexport class Settings {\n private _backend: Backend = {} as Backend;\n public env: number = 0;\n public oidcClientId!: string;\n public oidcScopes!: string;\n public oidcRedirect!: string;\n public oidcAuthority?: string;\n public gprid?: string;\n public logLevel?: number;\n public users: TestUserCredentials[] = [];\n public clientConfiguration?: ServiceAuthorizationClientConfiguration;\n\n public iModels: IModelData[] = [];\n public get iModel(): IModelData { return this.iModels[0]; }\n public get writeIModel(): IModelData { return this.iModels[1]; }\n public get user(): TestUserCredentials { return this.users[0]; }\n\n // eslint-disable-next-line @typescript-eslint/naming-convention\n public get Backend(): Backend { return this._backend; }\n\n public get runiModelTileRpcTests(): boolean { return checkEnabled(process.env.RPC_IMODELTILE_ENABLE); }\n public get runPresentationRpcTests(): boolean { return checkEnabled(process.env.RPC_PRESENTATION_ENABLE); }\n public get runiModelReadRpcTests(): boolean { return checkEnabled(process.env.RPC_IMODELREAD_ENABLE); }\n public get runiModelWriteRpcTests(): boolean { return checkEnabled(process.env.RPC_IMODELWRITE_ENABLE); }\n public get runDevToolsRpcTests(): boolean { return checkEnabled(process.env.RPC_DEVTOOLS_ENABLE); }\n\n constructor(env: NodeJS.ProcessEnv) {\n const isFrontend = (typeof (process) === \"undefined\");\n if (!isFrontend && undefined === env.TF_BUILD) {\n const path = require(\"path\"); // eslint-disable-line @typescript-eslint/no-var-requires\n const dotenv = require(\"dotenv\"); // eslint-disable-line @typescript-eslint/no-var-requires\n const dotenvExpand = require(\"dotenv-expand\"); // eslint-disable-line @typescript-eslint/no-var-requires\n // First check in process.cwd() for the config\n let result = dotenv.config();\n if (result.error) {\n const potential = path.resolve(process.cwd(), \"..\", \"..\", \"..\", \"imodeljs-config\", \".env\");\n result = dotenv.config({ path: potential });\n if (result.error)\n throw result.error;\n }\n\n dotenvExpand(result);\n }\n\n if (isFrontend)\n globalThis.process = { browser: true, env } as any;\n\n // Loads the config out of the environment.\n this.load();\n }\n\n /** Loads the necessary variables from `process.env`.\n */\n private load() {\n // Parse OIDC\n if (undefined === process.env.OIDC_CLIENT_ID)\n throw new Error(\"Missing the 'OIDC_CLIENT_ID' setting.\");\n this.oidcClientId = process.env.OIDC_CLIENT_ID!;\n\n if (undefined === process.env.OIDC_SCOPES)\n throw new Error(\"Missing the 'OIDC_SCOPES' setting\");\n this.oidcScopes = process.env.OIDC_SCOPES;\n\n if (process.env.OIDC_AUTHORITY)\n this.oidcAuthority = process.env.OIDC_AUTHORITY;\n\n this.oidcRedirect = (undefined === process.env.OIDC_REDIRECT) ? \"http://localhost:5000\" : process.env.OIDC_REDIRECT;\n\n // Parse GPRId\n if (undefined !== process.env.GPRID)\n this.gprid = process.env.GPRID;\n\n // Parse the iModel variables\n if (!process.env.IMODEL_PROJECTID && !process.env.IMODEL_PROJECTNAME)\n throw new Error(\"Missing the 'IMODEL_PROJECTID' or 'IMODEL_PROJECTNAME' setting.\");\n\n if (!process.env.IMODEL_IMODELID && !process.env.IMODEL_IMODELNAME)\n throw new Error(\"Missing the 'IMODEL_IMODELID' or 'IMODEL_IMODELNAME' setting.\");\n\n // Note: This is kind of messy but we don't sign-in to resolve the Names into IDs until the TestContext.\n this.iModels.push({\n useName: !process.env.IMODEL_IMODELID,\n id: process.env.IMODEL_IMODELID,\n name: process.env.IMODEL_IMODELNAME,\n useITwinName: !process.env.IMODEL_PROJECTID,\n iTwinId: process.env.IMODEL_PROJECTID,\n iTwinName: process.env.IMODEL_PROJECTNAME,\n\n // Neither of the next 2 are needed but since they'll be undefined anyway, just always set it.\n changeSetId: process.env.IMODEL_CHANGESETID,\n });\n\n // If write rpc interface is defined expect a separate iModel to be used.\n if (this.runiModelWriteRpcTests) {\n if (!process.env.IMODEL_WRITE_PROJECTID && !process.env.IMODEL_WRITE_PROJECTNAME)\n throw new Error(\"Missing the 'IMODEL_WRITE_PROJECTID' or 'IMODEL_WRITE_PROJECTNAME' setting.\");\n\n if (!process.env.IMODEL_WRITE_IMODELID && !process.env.IMODEL_WRITE_IMODELNAME)\n throw new Error(\"Missing the 'IMODEL_WRITE_IMODELID' or 'IMODEL_WRITE_IMODELNAME' setting.\");\n\n this.iModels.push({\n useName: !process.env.IMODEL_WRITE_IMODELID,\n id: process.env.IMODEL_WRITE_IMODELID,\n name: process.env.IMODEL_WRITE_IMODELNAME,\n useITwinName: !process.env.IMODEL_WRITE_PROJECTID,\n iTwinId: process.env.IMODEL_WRITE_PROJECTID,\n iTwinName: process.env.IMODEL_WRITE_PROJECTNAME,\n });\n }\n\n // Parse logging level\n if (undefined !== process.env.LOG_LEVEL) {\n const level = parseInt(process.env.LOG_LEVEL, 10);\n if (!isNaN(level) && undefined !== LogLevel[level])\n this.logLevel = level;\n }\n\n // Get backend data\n if (undefined === process.env.BACKEND_LOCATION)\n throw new Error(\"Missing the 'BACKEND_LOCATION' setting.\");\n this._backend.location = process.env.BACKEND_LOCATION;\n\n if (undefined === process.env.BACKEND_VERSION)\n throw new Error(\"Missing the 'BACKEND_VERSION' setting.\");\n this._backend.version = process.env.BACKEND_VERSION;\n\n if (undefined === process.env.BACKEND_NAME)\n throw new Error(\"Missing the 'BACKEND_NAME' setting.\");\n this._backend.name = process.env.BACKEND_NAME;\n\n // Get users\n this.users.push({\n email: process.env.USER_WITH_ACCESS_USERNAME || \"\",\n password: process.env.USER_WITH_ACCESS_PASSWORD || \"\",\n });\n\n if (undefined !== process.env.CLIENT_WITH_ACCESS_ID && undefined !== process.env.CLIENT_WITH_ACCESS_SECRET && undefined !== process.env.CLIENT_WITH_ACCESS_SCOPES) {\n this.clientConfiguration = {\n clientId: process.env.CLIENT_WITH_ACCESS_ID,\n clientSecret: process.env.CLIENT_WITH_ACCESS_SECRET,\n scope: process.env.CLIENT_WITH_ACCESS_SCOPES,\n authority: this.oidcAuthority,\n };\n }\n }\n\n public toString(): string {\n return `Configurations:\n backend location: ${this.Backend.location},\n backend name: ${this.Backend.name},\n backend version: ${this.Backend.version},\n oidc client id: ${this.oidcClientId},\n oidc scopes: ${this.oidcScopes},\n applicationId: ${this.gprid},\n log level: ${this.logLevel},\n testing iModelTileRpcTests: ${this.runiModelTileRpcTests},\n testing PresentationRpcTest: ${this.runPresentationRpcTests},\n testing iModelReadRpcTests: ${this.runiModelReadRpcTests},\n testing DevToolsRpcTests: ${this.runDevToolsRpcTests},\n testing iModelWriteRpcTests: ${this.runiModelWriteRpcTests}`;\n }\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SideChannels.js","sourceRoot":"","sources":["../../src/common/SideChannels.ts"],"names":[],"mappings":";;;AAMA,wEAAuG;AAEvG,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AACpC,MAAM,gCAAgC,GAAG,sBAAsB,CAAC;AAEhE,SAAgB,sBAAsB;IACpC,IAAA,uCAAuB,EAAC,kBAAkB,EAAE,GAAG,EAAE;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,IAAA,uCAAuB,EAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;QACnE,0EAA0E;QAC1E,mDAAmD;QACnD,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC;AAVD,wDAUC;AAEM,KAAK,UAAU,wBAAwB;IAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,IAAA,sCAAsB,EAAC,kBAAkB,CAAC,CAAC,CAAC;AACtE,CAAC;AAFD,4DAEC;AACM,KAAK,UAAU,+BAA+B;IACnD,2GAA2G;IAC3G,OAAO,EAAE,CAAC;AACZ,CAAC;AAHD,0EAGC","sourcesContent":["/*---------------------------------------------------------------------------------------------\
|
|
1
|
+
{"version":3,"file":"SideChannels.js","sourceRoot":"","sources":["../../src/common/SideChannels.ts"],"names":[],"mappings":";;;AAMA,wEAAuG;AAEvG,MAAM,kBAAkB,GAAG,QAAQ,CAAC;AACpC,MAAM,gCAAgC,GAAG,sBAAsB,CAAC;AAEhE,SAAgB,sBAAsB;IACpC,IAAA,uCAAuB,EAAC,kBAAkB,EAAE,GAAG,EAAE;QAC/C,OAAO,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACrC,CAAC,CAAC,CAAC;IAEH,IAAA,uCAAuB,EAAC,gCAAgC,EAAE,KAAK,IAAI,EAAE;QACnE,0EAA0E;QAC1E,mDAAmD;QACnD,OAAO,EAAE,CAAC;IACZ,CAAC,CAAC,CAAC;AACL,CAAC;AAVD,wDAUC;AAEM,KAAK,UAAU,wBAAwB;IAC5C,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,IAAA,sCAAsB,EAAC,kBAAkB,CAAC,CAAC,CAAC;AACtE,CAAC;AAFD,4DAEC;AACM,KAAK,UAAU,+BAA+B;IACnD,2GAA2G;IAC3G,OAAO,EAAE,CAAC;AACZ,CAAC;AAHD,0EAGC","sourcesContent":["/*---------------------------------------------------------------------------------------------\n* Copyright (c) Bentley Systems, Incorporated. All rights reserved.\n* See LICENSE.md in the project root for license terms and full copyright notice.\n*--------------------------------------------------------------------------------------------*/\n// import { ServiceAuthorizationClient, ServiceAuthorizationClientConfiguration } from \"@itwin/service-authorization\";\nimport { AccessToken } from \"@itwin/core-bentley\";\nimport { executeBackendCallback, registerBackendCallback } from \"@itwin/certa/lib/utils/CallbackUtils\";\n\nconst getEnvCallbackName = \"getEnv\";\nconst getClientAccessTokenCallbackName = \"getClientAccessToken\";\n\nexport function exposeBackendCallbacks() {\n registerBackendCallback(getEnvCallbackName, () => {\n return JSON.stringify(process.env);\n });\n\n registerBackendCallback(getClientAccessTokenCallbackName, async () => {\n // const authClient = new ServiceAuthorizationClient(clientConfiguration);\n // const token = await authClient.getAccessToken();\n return \"\";\n });\n}\n\nexport async function getProcessEnvFromBackend(): Promise<NodeJS.ProcessEnv> {\n return JSON.parse(await executeBackendCallback(getEnvCallbackName));\n}\nexport async function getClientAccessTokenFromBackend(): Promise<AccessToken> {\n // const tokenString = await executeBackendCallback(getClientAccessTokenCallbackName, clientConfiguration);\n return \"\";\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\
|
|
1
|
+
{"version":3,"file":"_bea9.bundled-tests.js","mappings":";;;;;;;;AAAA","sources":["file:///ignored|D:\\vsts_b\\150\\s\\common\\temp\\node_modules\\.pnpm\\@loaders.gl+worker-utils@3.1.6\\node_modules\\@loaders.gl\\worker-utils\\dist\\esm\\lib\\library-utils|../node/require-utils.node"],"names":[],"sourceRoot":""}
|
|
@@ -30890,15 +30890,12 @@ class Logger {
|
|
|
30890
30890
|
const stack = Logger.logExceptionCallstacks ? `\n${_BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorStack(err)}` : "";
|
|
30891
30891
|
return _BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMessage(err) + stack;
|
|
30892
30892
|
}
|
|
30893
|
-
/** Log the specified exception. The special "ExceptionType" property will be added as metadata
|
|
30894
|
-
* in addition to any other metadata that may be supplied by the caller, unless the
|
|
30895
|
-
* metadata supplied by the caller already includes this property.
|
|
30893
|
+
/** Log the specified exception. The special "ExceptionType" property will be added as metadata.
|
|
30896
30894
|
* @param category The category of the message.
|
|
30897
30895
|
* @param err The exception object.
|
|
30898
30896
|
* @param log The logger output function to use - defaults to Logger.logError
|
|
30899
|
-
* @param metaData Optional data for the message
|
|
30900
30897
|
*/
|
|
30901
|
-
static logException(category, err, log = (_category, message) => Logger.logError(_category, message)) {
|
|
30898
|
+
static logException(category, err, log = (_category, message, metaData) => Logger.logError(_category, message, metaData)) {
|
|
30902
30899
|
log(category, Logger.getExceptionMessage(err), () => {
|
|
30903
30900
|
return { ..._BentleyError__WEBPACK_IMPORTED_MODULE_0__.BentleyError.getErrorMetadata(err), exceptionType: err.constructor.name };
|
|
30904
30901
|
});
|
|
@@ -61076,7 +61073,7 @@ var RpcResponseCacheControl;
|
|
|
61076
61073
|
})(RpcResponseCacheControl || (RpcResponseCacheControl = {}));
|
|
61077
61074
|
/** RPC protocol event types.
|
|
61078
61075
|
* @public
|
|
61079
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in
|
|
61076
|
+
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
|
|
61080
61077
|
*/
|
|
61081
61078
|
var RpcProtocolEvent;
|
|
61082
61079
|
(function (RpcProtocolEvent) {
|
|
@@ -61096,7 +61093,7 @@ var RpcProtocolEvent;
|
|
|
61096
61093
|
})(RpcProtocolEvent || (RpcProtocolEvent = {}));
|
|
61097
61094
|
/** The status of an RPC operation request.
|
|
61098
61095
|
* @public
|
|
61099
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in
|
|
61096
|
+
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
|
|
61100
61097
|
*/
|
|
61101
61098
|
var RpcRequestStatus;
|
|
61102
61099
|
(function (RpcRequestStatus) {
|
|
@@ -61116,7 +61113,7 @@ var RpcRequestStatus;
|
|
|
61116
61113
|
RpcRequestStatus[RpcRequestStatus["RequestTimeout"] = 13] = "RequestTimeout";
|
|
61117
61114
|
RpcRequestStatus[RpcRequestStatus["TooManyRequests"] = 14] = "TooManyRequests";
|
|
61118
61115
|
})(RpcRequestStatus || (RpcRequestStatus = {}));
|
|
61119
|
-
/** @public @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in
|
|
61116
|
+
/** @public @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future. */
|
|
61120
61117
|
(function (RpcRequestStatus) {
|
|
61121
61118
|
function isTransientError(status) {
|
|
61122
61119
|
return status === RpcRequestStatus.BadGateway || status === RpcRequestStatus.ServiceUnavailable || status === RpcRequestStatus.GatewayTimeout
|
|
@@ -61126,7 +61123,7 @@ var RpcRequestStatus;
|
|
|
61126
61123
|
})(RpcRequestStatus || (RpcRequestStatus = {}));
|
|
61127
61124
|
/** RPC request event types.
|
|
61128
61125
|
* @public
|
|
61129
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in
|
|
61126
|
+
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
|
|
61130
61127
|
*/
|
|
61131
61128
|
var RpcRequestEvent;
|
|
61132
61129
|
(function (RpcRequestEvent) {
|
|
@@ -61136,7 +61133,7 @@ var RpcRequestEvent;
|
|
|
61136
61133
|
})(RpcRequestEvent || (RpcRequestEvent = {}));
|
|
61137
61134
|
/** RPC content types.
|
|
61138
61135
|
* @public
|
|
61139
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in
|
|
61136
|
+
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
|
|
61140
61137
|
*/
|
|
61141
61138
|
var RpcContentType;
|
|
61142
61139
|
(function (RpcContentType) {
|
|
@@ -61148,7 +61145,7 @@ var RpcContentType;
|
|
|
61148
61145
|
})(RpcContentType || (RpcContentType = {}));
|
|
61149
61146
|
/** Endpoints for RPC protocols.
|
|
61150
61147
|
* @public
|
|
61151
|
-
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in
|
|
61148
|
+
* @deprecated in 3.6. The RPC system will be significantly refactored (or replaced) in the future.
|
|
61152
61149
|
*/
|
|
61153
61150
|
var RpcEndpoint;
|
|
61154
61151
|
(function (RpcEndpoint) {
|
|
@@ -144571,9 +144568,17 @@ class GltfReader {
|
|
|
144571
144568
|
renderGraphic = renderGraphicList[0];
|
|
144572
144569
|
else
|
|
144573
144570
|
renderGraphic = this._system.createGraphicList(renderGraphicList);
|
|
144574
|
-
if (featureTable)
|
|
144575
|
-
renderGraphic = this._system.createBatch(renderGraphic, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.PackedFeatureTable.pack(featureTable), contentRange);
|
|
144576
144571
|
const transform = this.getTileTransform(transformToRoot, pseudoRtcBias);
|
|
144572
|
+
// Compute range in tileset/world space.
|
|
144573
|
+
let range = contentRange;
|
|
144574
|
+
const invTransform = transform?.inverse();
|
|
144575
|
+
if (invTransform)
|
|
144576
|
+
range = invTransform.multiplyRange(contentRange);
|
|
144577
|
+
// The batch range needs to be in tile coordinate space.
|
|
144578
|
+
// If we computed the content range ourselves, it's already in tile space.
|
|
144579
|
+
// If the content range was supplied by the caller, it's in tileset space and needs to be transformed to tile space.
|
|
144580
|
+
if (featureTable)
|
|
144581
|
+
renderGraphic = this._system.createBatch(renderGraphic, _itwin_core_common__WEBPACK_IMPORTED_MODULE_2__.PackedFeatureTable.pack(featureTable), this._computedContentRange ? contentRange : range);
|
|
144577
144582
|
const viewFlagOverrides = this.viewFlagOverrides;
|
|
144578
144583
|
if (transform || viewFlagOverrides) {
|
|
144579
144584
|
const branch = new _render_GraphicBranch__WEBPACK_IMPORTED_MODULE_4__.GraphicBranch(true);
|
|
@@ -144582,8 +144587,6 @@ class GltfReader {
|
|
|
144582
144587
|
branch.add(renderGraphic);
|
|
144583
144588
|
renderGraphic = this._system.createBranch(branch, transform ?? _itwin_core_geometry__WEBPACK_IMPORTED_MODULE_1__.Transform.createIdentity());
|
|
144584
144589
|
}
|
|
144585
|
-
const invTransform = transform?.inverse();
|
|
144586
|
-
const range = invTransform ? invTransform.multiplyRange(contentRange) : contentRange;
|
|
144587
144590
|
return {
|
|
144588
144591
|
readStatus,
|
|
144589
144592
|
isLeaf,
|
|
@@ -288377,18 +288380,18 @@ class Settings {
|
|
|
288377
288380
|
}
|
|
288378
288381
|
}
|
|
288379
288382
|
toString() {
|
|
288380
|
-
return `Configurations:
|
|
288381
|
-
backend location: ${this.Backend.location},
|
|
288382
|
-
backend name: ${this.Backend.name},
|
|
288383
|
-
backend version: ${this.Backend.version},
|
|
288384
|
-
oidc client id: ${this.oidcClientId},
|
|
288385
|
-
oidc scopes: ${this.oidcScopes},
|
|
288386
|
-
applicationId: ${this.gprid},
|
|
288387
|
-
log level: ${this.logLevel},
|
|
288388
|
-
testing iModelTileRpcTests: ${this.runiModelTileRpcTests},
|
|
288389
|
-
testing PresentationRpcTest: ${this.runPresentationRpcTests},
|
|
288390
|
-
testing iModelReadRpcTests: ${this.runiModelReadRpcTests},
|
|
288391
|
-
testing DevToolsRpcTests: ${this.runDevToolsRpcTests},
|
|
288383
|
+
return `Configurations:
|
|
288384
|
+
backend location: ${this.Backend.location},
|
|
288385
|
+
backend name: ${this.Backend.name},
|
|
288386
|
+
backend version: ${this.Backend.version},
|
|
288387
|
+
oidc client id: ${this.oidcClientId},
|
|
288388
|
+
oidc scopes: ${this.oidcScopes},
|
|
288389
|
+
applicationId: ${this.gprid},
|
|
288390
|
+
log level: ${this.logLevel},
|
|
288391
|
+
testing iModelTileRpcTests: ${this.runiModelTileRpcTests},
|
|
288392
|
+
testing PresentationRpcTest: ${this.runPresentationRpcTests},
|
|
288393
|
+
testing iModelReadRpcTests: ${this.runiModelReadRpcTests},
|
|
288394
|
+
testing DevToolsRpcTests: ${this.runDevToolsRpcTests},
|
|
288392
288395
|
testing iModelWriteRpcTests: ${this.runiModelWriteRpcTests}`;
|
|
288393
288396
|
}
|
|
288394
288397
|
}
|
|
@@ -288593,7 +288596,7 @@ class TestContext {
|
|
|
288593
288596
|
this.initializeRpcInterfaces({ title: this.settings.Backend.name, version: this.settings.Backend.version });
|
|
288594
288597
|
const iModelClient = new imodels_client_management_1.IModelsClient({ api: { baseUrl: `https://${process.env.IMJS_URL_PREFIX ?? ""}api.bentley.com/imodels` } });
|
|
288595
288598
|
await core_frontend_1.NoRenderApp.startup({
|
|
288596
|
-
applicationVersion: "4.4.0-dev.
|
|
288599
|
+
applicationVersion: "4.4.0-dev.33",
|
|
288597
288600
|
applicationId: this.settings.gprid,
|
|
288598
288601
|
authorizationClient: new frontend_1.TestFrontendAuthorizationClient(this.adminUserAccessToken),
|
|
288599
288602
|
hubAccess: new imodels_access_frontend_1.FrontendIModelsAccess(iModelClient),
|
|
@@ -307426,7 +307429,7 @@ module.exports = JSON.parse('{"name":"axios","version":"0.21.4","description":"P
|
|
|
307426
307429
|
/***/ ((module) => {
|
|
307427
307430
|
|
|
307428
307431
|
"use strict";
|
|
307429
|
-
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.
|
|
307432
|
+
module.exports = JSON.parse('{"name":"@itwin/core-frontend","version":"4.4.0-dev.33","description":"iTwin.js frontend components","main":"lib/cjs/core-frontend.js","module":"lib/esm/core-frontend.js","typings":"lib/cjs/core-frontend","license":"MIT","scripts":{"build":"npm run -s copy:public && npm run -s build:cjs && npm run -s build:esm && npm run -s webpackWorkers && npm run -s copy:workers","build:cjs":"npm run -s copy:js:cjs && tsc 1>&2 --outDir lib/cjs","build:esm":"npm run -s copy:js:esm && tsc 1>&2 --module ES2020 --outDir lib/esm","clean":"rimraf lib .rush/temp/package-deps*.json","copy:public":"cpx \\"./src/public/**/*\\" ./lib/public","copy:js:cjs":"cpx \\"./src/**/*.js\\" ./lib/cjs","copy:js:esm":"cpx \\"./src/**/*.js\\" ./lib/esm","copy:workers":"cpx \\"./lib/workers/webpack/parse-imdl-worker.js\\" ./lib/public/scripts","docs":"betools docs --includes=../../generated-docs/extract --json=../../generated-docs/core/core-frontend/file.json --tsIndexFile=./core-frontend.ts --onlyJson --excludes=webgl/**/*,**/map/*.d.ts,**/tile/*.d.ts,**/*-css.ts","extract-api":"betools extract-api --entry=core-frontend && npm run extract-extension-api","extract-extension-api":"eslint -c extraction.eslint.config.js \\"./src/**/*.ts\\" 1>&2","lint":"eslint -f visualstudio \\"./src/**/*.ts\\" 1>&2","lint-fix":"eslint --fix -f visualstudio \\"./src/**/*.ts\\" 1>&2","pseudolocalize":"betools pseudolocalize --englishDir ./src/public/locales/en --out ./public/locales/en-PSEUDO","test":"npm run -s webpackTests && certa -r chrome","cover":"npm -s test","test:debug":"certa -r chrome --debug","webpackTests":"webpack --config ./src/test/utils/webpack.config.js 1>&2 && npm run -s webpackTestWorker","webpackTestWorker":"webpack --config ./src/test/worker/webpack.config.js 1>&2 && cpx \\"./lib/test/test-worker.js\\" ./lib/test","webpackWorkers":"webpack --config ./src/workers/ImdlParser/webpack.config.js 1>&2"},"repository":{"type":"git","url":"https://github.com/iTwin/itwinjs-core.git","directory":"core/frontend"},"keywords":["Bentley","BIM","iModel","digital-twin","iTwin"],"author":{"name":"Bentley Systems, Inc.","url":"http://www.bentley.com"},"peerDependencies":{"@itwin/appui-abstract":"workspace:^4.4.0-dev.33","@itwin/core-bentley":"workspace:^4.4.0-dev.33","@itwin/core-common":"workspace:^4.4.0-dev.33","@itwin/core-geometry":"workspace:^4.4.0-dev.33","@itwin/core-orbitgt":"workspace:^4.4.0-dev.33","@itwin/core-quantity":"workspace:^4.4.0-dev.33"},"//devDependencies":["NOTE: All peerDependencies should also be listed as devDependencies since peerDependencies are not considered by npm install","NOTE: All tools used by scripts in this package must be listed as devDependencies"],"devDependencies":{"@itwin/appui-abstract":"workspace:*","@itwin/build-tools":"workspace:*","@itwin/core-bentley":"workspace:*","@itwin/core-common":"workspace:*","@itwin/core-geometry":"workspace:*","@itwin/core-orbitgt":"workspace:*","@itwin/core-quantity":"workspace:*","@itwin/certa":"workspace:*","@itwin/eslint-plugin":"4.0.0-dev.44","@types/chai":"4.3.1","@types/chai-as-promised":"^7","@types/mocha":"^10.0.6","@types/sinon":"^17.0.2","babel-loader":"~8.2.5","babel-plugin-istanbul":"~6.1.1","chai":"^4.3.10","chai-as-promised":"^7.1.1","cpx2":"^3.0.0","eslint":"^8.44.0","glob":"^7.1.2","mocha":"^10.2.0","nyc":"^15.1.0","rimraf":"^3.0.2","sinon":"^17.0.1","source-map-loader":"^4.0.0","typescript":"~5.0.2","typemoq":"^2.1.0","webpack":"^5.76.0"},"//dependencies":["NOTE: these dependencies should be only for things that DO NOT APPEAR IN THE API","NOTE: core-frontend should remain UI technology agnostic, so no react/angular dependencies are allowed"],"dependencies":{"@itwin/cloud-agnostic-core":"^2.1.0","@itwin/object-storage-core":"^2.2.2","@itwin/core-i18n":"workspace:*","@itwin/core-telemetry":"workspace:*","@itwin/webgl-compatibility":"workspace:*","@loaders.gl/core":"^3.1.6","@loaders.gl/draco":"^3.1.6","fuse.js":"^3.3.0","wms-capabilities":"0.4.0"},"nyc":{"extends":"./node_modules/@itwin/build-tools/.nycrc"}}');
|
|
307430
307433
|
|
|
307431
307434
|
/***/ }),
|
|
307432
307435
|
|