@itwin/core-electron 5.0.0-dev.40 → 5.0.0-dev.49

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/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  # Change Log - @itwin/core-electron
2
2
 
3
- This log was last generated on Mon, 13 Jan 2025 14:09:29 GMT and should not be manually modified.
3
+ This log was last generated on Fri, 24 Jan 2025 08:05:17 GMT and should not be manually modified.
4
+
5
+ ## 4.10.6
6
+ Fri, 24 Jan 2025 08:02:40 GMT
7
+
8
+ _Version update only_
9
+
10
+ ## 4.10.5
11
+ Tue, 21 Jan 2025 21:56:45 GMT
12
+
13
+ _Version update only_
4
14
 
5
15
  ## 4.10.4
6
16
  Mon, 13 Jan 2025 14:06:43 GMT
@@ -15,6 +15,6 @@ export declare class ElectronRpcRequest extends RpcRequest {
15
15
  /** @internal */
16
16
  notifyResponse(fulfillment: RpcRequestFulfillment): void;
17
17
  /** @internal */
18
- dispose(): void;
18
+ [Symbol.dispose](): void;
19
19
  }
20
20
  //# sourceMappingURL=ElectronRpcRequest.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ElectronRpcRequest.d.ts","sourceRoot":"","sources":["../../../src/common/ElectronRpcRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,UAAU,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,gBAAgB;AAChB,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,OAAO,CAAC,IAAI,CAA4C;IACxD,OAAO,CAAC,YAAY,CAAgD;IAEpE,0DAA0D;IAC1D,SAAyB,QAAQ,EAAE,mBAAmB,CAA6C;IAEnG,yBAAyB;cACT,IAAI;IAcpB,yBAAyB;cACT,IAAI;IASpB,kCAAkC;IAClC,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIxD,gBAAgB;IACT,cAAc,CAAC,WAAW,EAAE,qBAAqB;IAKxD,gBAAgB;IACA,OAAO;CAIxB"}
1
+ {"version":3,"file":"ElectronRpcRequest.d.ts","sourceRoot":"","sources":["../../../src/common/ElectronRpcRequest.ts"],"names":[],"mappings":"AAKA,OAAO,EAAoB,UAAU,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AACzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAE5D,gBAAgB;AAChB,qBAAa,kBAAmB,SAAQ,UAAU;IAChD,OAAO,CAAC,IAAI,CAA4C;IACxD,OAAO,CAAC,YAAY,CAAgD;IAEpE,0DAA0D;IAC1D,SAAyB,QAAQ,EAAE,mBAAmB,CAA6C;IAEnG,yBAAyB;cACT,IAAI;IAcpB,yBAAyB;cACT,IAAI;IASpB,kCAAkC;IAClC,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI;IAIxD,gBAAgB;IACT,cAAc,CAAC,WAAW,EAAE,qBAAqB;IAKxD,gBAAgB;IACD,CAAC,MAAM,CAAC,OAAO,CAAC;CAIhC"}
@@ -47,9 +47,9 @@ class ElectronRpcRequest extends core_common_1.RpcRequest {
47
47
  this._res(fulfillment.status);
48
48
  }
49
49
  /** @internal */
50
- dispose() {
50
+ [Symbol.dispose]() {
51
51
  this.protocol.requests.delete(this.id);
52
- super.dispose();
52
+ super[Symbol.dispose]();
53
53
  }
54
54
  }
55
55
  exports.ElectronRpcRequest = ElectronRpcRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"ElectronRpcRequest.js","sourceRoot":"","sources":["../../../src/common/ElectronRpcRequest.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,oDAAyF;AAGzF,gBAAgB;AAChB,MAAa,kBAAmB,SAAQ,wBAAU;IAAlD;;QACU,SAAI,GAA4B,GAAG,EAAE,CAAC,SAA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,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvC,KAAK,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC;CACF;AAhDD,gDAgDC","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\nimport { RpcProtocolEvent, RpcRequest, RpcRequestFulfillment } from \"@itwin/core-common\";\nimport { ElectronRpcProtocol } from \"./ElectronRpcProtocol\";\n\n/** @internal */\nexport class ElectronRpcRequest extends RpcRequest {\n private _res: (value: number) => void = () => undefined;\n private _fulfillment: RpcRequestFulfillment | undefined = undefined;\n\n /** Convenience access to the protocol of this request. */\n public override readonly protocol: ElectronRpcProtocol = this.client.configuration.protocol as any;\n\n /** Sends the request. */\n protected async send() {\n try {\n this.protocol.requests.set(this.id, this);\n const request = await this.protocol.serialize(this);\n this.protocol.transport.sendRequest(request);\n } catch {\n this.protocol.events.raiseEvent(RpcProtocolEvent.ConnectionErrorReceived, this); // eslint-disable-line @typescript-eslint/no-deprecated\n }\n\n return new Promise<number>((resolve) => {\n this._res = resolve;\n });\n }\n\n /** Loads the request. */\n protected async load() {\n const fulfillment = this._fulfillment;\n if (!fulfillment) {\n throw new Error(\"No request fulfillment available.\");\n }\n\n return fulfillment.result;\n }\n\n /** Sets request header values. */\n protected setHeader(_name: string, _value: string): void {\n // No implementation\n }\n\n /** @internal */\n public notifyResponse(fulfillment: RpcRequestFulfillment) {\n this._fulfillment = fulfillment;\n this._res(fulfillment.status);\n }\n\n /** @internal */\n public override dispose() {\n this.protocol.requests.delete(this.id);\n super.dispose();\n }\n}\n"]}
1
+ {"version":3,"file":"ElectronRpcRequest.js","sourceRoot":"","sources":["../../../src/common/ElectronRpcRequest.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,oDAAyF;AAGzF,gBAAg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C,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IAChC,CAAC;IAED,gBAAgB;IACD,CAAC,MAAM,CAAC,OAAO,CAAC;QAC7B,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;QACvC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,EAAE,CAAC;IAC1B,CAAC;CACF;AAhDD,gDAgDC","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\nimport { RpcProtocolEvent, RpcRequest, RpcRequestFulfillment } from \"@itwin/core-common\";\nimport { ElectronRpcProtocol } from \"./ElectronRpcProtocol\";\n\n/** @internal */\nexport class ElectronRpcRequest extends RpcRequest {\n private _res: (value: number) => void = () => undefined;\n private _fulfillment: RpcRequestFulfillment | undefined = undefined;\n\n /** Convenience access to the protocol of this request. */\n public override readonly protocol: ElectronRpcProtocol = this.client.configuration.protocol as any;\n\n /** Sends the request. */\n protected async send() {\n try {\n this.protocol.requests.set(this.id, this);\n const request = await this.protocol.serialize(this);\n this.protocol.transport.sendRequest(request);\n } catch {\n this.protocol.events.raiseEvent(RpcProtocolEvent.ConnectionErrorReceived, this); // eslint-disable-line @typescript-eslint/no-deprecated\n }\n\n return new Promise<number>((resolve) => {\n this._res = resolve;\n });\n }\n\n /** Loads the request. */\n protected async load() {\n const fulfillment = this._fulfillment;\n if (!fulfillment) {\n throw new Error(\"No request fulfillment available.\");\n }\n\n return fulfillment.result;\n }\n\n /** Sets request header values. */\n protected setHeader(_name: string, _value: string): void {\n // No implementation\n }\n\n /** @internal */\n public notifyResponse(fulfillment: RpcRequestFulfillment) {\n this._fulfillment = fulfillment;\n this._res(fulfillment.status);\n }\n\n /** @internal */\n public override[Symbol.dispose]() {\n this.protocol.requests.delete(this.id);\n super[Symbol.dispose]();\n }\n}\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@itwin/core-electron",
3
- "version": "5.0.0-dev.40",
3
+ "version": "5.0.0-dev.49",
4
4
  "description": "iTwin.js ElectronHost and ElectronApp",
5
5
  "license": "MIT",
6
6
  "engines": {
@@ -22,16 +22,16 @@
22
22
  },
23
23
  "peerDependencies": {
24
24
  "electron": "^33.0.0",
25
- "@itwin/core-backend": "5.0.0-dev.40",
26
- "@itwin/core-bentley": "5.0.0-dev.40",
27
- "@itwin/core-common": "5.0.0-dev.40",
28
- "@itwin/core-frontend": "5.0.0-dev.40"
25
+ "@itwin/core-backend": "5.0.0-dev.49",
26
+ "@itwin/core-frontend": "5.0.0-dev.49",
27
+ "@itwin/core-bentley": "5.0.0-dev.49",
28
+ "@itwin/core-common": "5.0.0-dev.49"
29
29
  },
30
30
  "devDependencies": {
31
31
  "@itwin/eslint-plugin": "5.0.0-dev.1",
32
32
  "@types/chai": "4.3.1",
33
33
  "@types/mocha": "^10.0.6",
34
- "@types/node": "~20.9.5",
34
+ "@types/node": "~20.17.0",
35
35
  "chai": "^4.3.10",
36
36
  "cpx2": "^3.0.0",
37
37
  "electron": "^33.0.0",
@@ -43,12 +43,12 @@
43
43
  "typescript": "~5.6.2",
44
44
  "webpack": "^5.97.1",
45
45
  "webpack-cli": "^5.0.1",
46
- "@itwin/build-tools": "5.0.0-dev.40",
47
- "@itwin/core-common": "5.0.0-dev.40",
48
- "@itwin/certa": "5.0.0-dev.40",
49
- "@itwin/core-backend": "5.0.0-dev.40",
50
- "@itwin/core-bentley": "5.0.0-dev.40",
51
- "@itwin/core-frontend": "5.0.0-dev.40"
46
+ "@itwin/core-backend": "5.0.0-dev.49",
47
+ "@itwin/build-tools": "5.0.0-dev.49",
48
+ "@itwin/certa": "5.0.0-dev.49",
49
+ "@itwin/core-bentley": "5.0.0-dev.49",
50
+ "@itwin/core-common": "5.0.0-dev.49",
51
+ "@itwin/core-frontend": "5.0.0-dev.49"
52
52
  },
53
53
  "dependencies": {
54
54
  "@openid/appauth": "^1.2.6",