@itwin/core-electron 4.4.0-dev.2 → 4.4.0-dev.21
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 +21 -1
- package/lib/cjs/common/ElectronPush.js +1 -1
- package/lib/cjs/common/ElectronPush.js.map +1 -1
- package/package.json +13 -13
package/CHANGELOG.md
CHANGED
|
@@ -1,6 +1,21 @@
|
|
|
1
1
|
# Change Log - @itwin/core-electron
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Wed, 03 Jan 2024 19:29:41 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 4.3.3
|
|
6
|
+
Wed, 03 Jan 2024 19:28:38 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
9
|
+
|
|
10
|
+
## 4.3.2
|
|
11
|
+
Thu, 14 Dec 2023 20:23:02 GMT
|
|
12
|
+
|
|
13
|
+
_Version update only_
|
|
14
|
+
|
|
15
|
+
## 4.3.1
|
|
16
|
+
Wed, 13 Dec 2023 17:25:55 GMT
|
|
17
|
+
|
|
18
|
+
_Version update only_
|
|
4
19
|
|
|
5
20
|
## 4.3.0
|
|
6
21
|
Thu, 07 Dec 2023 17:43:09 GMT
|
|
@@ -141,6 +156,11 @@ Mon, 22 May 2023 15:34:14 GMT
|
|
|
141
156
|
- Drop Electron 14, 15, 16, 17, 22. Start supporting Electron 23.
|
|
142
157
|
- Stopped registering any rpcs by default
|
|
143
158
|
|
|
159
|
+
## 3.8.0
|
|
160
|
+
Fri, 08 Dec 2023 15:23:59 GMT
|
|
161
|
+
|
|
162
|
+
_Version update only_
|
|
163
|
+
|
|
144
164
|
## 3.7.17
|
|
145
165
|
Mon, 20 Nov 2023 18:24:23 GMT
|
|
146
166
|
|
|
@@ -36,7 +36,7 @@ class ElectronPushConnection extends core_common_1.RpcPushConnection {
|
|
|
36
36
|
this._ipc = ipc;
|
|
37
37
|
}
|
|
38
38
|
async send(messageData) {
|
|
39
|
-
const result =
|
|
39
|
+
const result = core_common_1.RpcMarshaling.serialize(this._ipc.protocol, messageData);
|
|
40
40
|
const fulfillment = { result, rawResult: messageData, interfaceName: PUSH, id: this.channel.id, status: ++this._next };
|
|
41
41
|
this._ipc.sendResponse(fulfillment, undefined);
|
|
42
42
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElectronPush.js","sourceRoot":"","sources":["../../../src/common/ElectronPush.ts"],"names":[],"mappings":";AAAA;;;+FAG+F;;;AAE/F,oDAA+H;AAG/H,MAAM,IAAI,GAAG,UAAU,CAAC;AAExB,gBAAgB;AAChB,MAAa,qBAAsB,SAAQ,8BAAgB;IAIzD,IAAW,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;IAExC,YAAmB,GAAyB;QAC1C,KAAK,EAAE,CAAC;QALF,UAAK,GAAW,CAAC,CAAC,CAAC;QAMzB,IAAI,CAAC,IAAI,GAAG,GAAG,CAAC;IAClB,CAAC;IAEM,OAAO,CAAC,QAA+B;QAC5C,IAAI,QAAQ,CAAC,aAAa,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SACd;QAED,IAAI,CAAC,KAAK,GAAG,QAAQ,CAAC,MAAM,CAAC;QAE7B,IAAI,IAAI,CAAC,SAAS,EAAE;YAClB,MAAM,WAAW,GAAG,2BAAa,CAAC,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;YACnF,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC;SAC1C;QAED,OAAO,IAAI,CAAC;IACd,CAAC;CACF;AAzBD,sDAyBC;AAED,gBAAgB;AAChB,MAAa,sBAA0B,SAAQ,+BAAoB;IAIjE,YAAmB,OAA0B,EAAE,MAAe,EAAE,GAAwB;QACtF,KAAK,CAAC,OAAO,EAAE,MAAM,CAAC,CA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GAAG,CAAC;IAClB,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,WAAgB;QAChC,MAAM,MAAM,GAAG,2BAAa,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,WAAW,CAAC,CAAC;QACxE,MAAM,WAAW,GAA0B,EAAE,MAAM,EAAE,SAAS,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,EAAE,EAAE,IAAI,CAAC,OAAO,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC;QAC9I,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,SAAS,CAAC,CAAC;IACjD,CAAC;CACF;AAdD,wDAcC","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\n\r\nimport { RpcMarshaling, RpcPushChannel, RpcPushConnection, RpcPushTransport, RpcRequestFulfillment } from \"@itwin/core-common\";\r\nimport { BackendIpcTransport, FrontendIpcTransport } from \"./ElectronIpcTransport\";\r\n\r\nconst PUSH = \"__push__\";\r\n\r\n/** @internal */\r\nexport class ElectronPushTransport extends RpcPushTransport {\r\n private _ipc: FrontendIpcTransport;\r\n private _last: number = -1;\r\n\r\n public get last() { return this._last; }\r\n\r\n public constructor(ipc: FrontendIpcTransport) {\r\n super();\r\n this._ipc = ipc;\r\n }\r\n\r\n public consume(response: RpcRequestFulfillment): boolean {\r\n if (response.interfaceName !== PUSH) {\r\n return false;\r\n }\r\n\r\n this._last = response.status;\r\n\r\n if (this.onMessage) {\r\n const messageData = RpcMarshaling.deserialize(this._ipc.protocol, response.result);\r\n this.onMessage(response.id, messageData);\r\n }\r\n\r\n return true;\r\n }\r\n}\r\n\r\n/** @internal */\r\nexport class ElectronPushConnection<T> extends RpcPushConnection<T> {\r\n private _ipc: BackendIpcTransport;\r\n private _next: number = -1;\r\n\r\n public constructor(channel: RpcPushChannel<T>, client: unknown, ipc: BackendIpcTransport) {\r\n super(channel, client);\r\n this._ipc = ipc;\r\n }\r\n\r\n public async send(messageData: any) {\r\n const result = RpcMarshaling.serialize(this._ipc.protocol, messageData);\r\n const fulfillment: RpcRequestFulfillment = { result, rawResult: messageData, interfaceName: PUSH, id: this.channel.id, status: ++this._next };\r\n this._ipc.sendResponse(fulfillment, undefined);\r\n }\r\n}\r\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-electron",
|
|
3
|
-
"version": "4.4.0-dev.
|
|
3
|
+
"version": "4.4.0-dev.21",
|
|
4
4
|
"description": "iTwin.js ElectronHost and ElectronApp",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -21,33 +21,33 @@
|
|
|
21
21
|
"url": "http://www.bentley.com"
|
|
22
22
|
},
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@itwin/core-backend": "^4.4.0-dev.
|
|
25
|
-
"@itwin/core-bentley": "^4.4.0-dev.
|
|
26
|
-
"@itwin/core-common": "^4.4.0-dev.
|
|
27
|
-
"@itwin/core-frontend": "^4.4.0-dev.
|
|
24
|
+
"@itwin/core-backend": "^4.4.0-dev.21",
|
|
25
|
+
"@itwin/core-bentley": "^4.4.0-dev.21",
|
|
26
|
+
"@itwin/core-common": "^4.4.0-dev.21",
|
|
27
|
+
"@itwin/core-frontend": "^4.4.0-dev.21",
|
|
28
28
|
"electron": ">=23.0.0 <29.0.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
31
|
"@itwin/eslint-plugin": "4.0.0-dev.44",
|
|
32
32
|
"@types/chai": "4.3.1",
|
|
33
|
-
"@types/mocha": "^
|
|
33
|
+
"@types/mocha": "^10.0.6",
|
|
34
34
|
"@types/node": "~18.16.20",
|
|
35
35
|
"chai": "^4.3.10",
|
|
36
36
|
"electron": "^28.0.0",
|
|
37
37
|
"eslint": "^8.44.0",
|
|
38
38
|
"glob": "^7.1.2",
|
|
39
|
-
"mocha": "^10.
|
|
39
|
+
"mocha": "^10.2.0",
|
|
40
40
|
"rimraf": "^3.0.2",
|
|
41
41
|
"source-map-loader": "^4.0.0",
|
|
42
42
|
"typescript": "~5.0.2",
|
|
43
43
|
"webpack": "^5.76.0",
|
|
44
44
|
"webpack-cli": "^5.0.1",
|
|
45
|
-
"@itwin/
|
|
46
|
-
"@itwin/core-
|
|
47
|
-
"@itwin/
|
|
48
|
-
"@itwin/
|
|
49
|
-
"@itwin/core-
|
|
50
|
-
"@itwin/core-frontend": "4.4.0-dev.
|
|
45
|
+
"@itwin/core-backend": "4.4.0-dev.21",
|
|
46
|
+
"@itwin/core-common": "4.4.0-dev.21",
|
|
47
|
+
"@itwin/build-tools": "4.4.0-dev.21",
|
|
48
|
+
"@itwin/certa": "4.4.0-dev.21",
|
|
49
|
+
"@itwin/core-bentley": "4.4.0-dev.21",
|
|
50
|
+
"@itwin/core-frontend": "4.4.0-dev.21"
|
|
51
51
|
},
|
|
52
52
|
"dependencies": {
|
|
53
53
|
"@openid/appauth": "^1.2.6",
|