@itwin/core-mobile 5.13.0-dev.3 → 5.13.0-dev.5
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,11 @@
|
|
|
1
1
|
# Change Log - @itwin/core-mobile
|
|
2
2
|
|
|
3
|
-
This log was last generated on
|
|
3
|
+
This log was last generated on Mon, 03 Aug 2026 12:28:16 GMT and should not be manually modified.
|
|
4
|
+
|
|
5
|
+
## 5.12.0
|
|
6
|
+
Mon, 03 Aug 2026 12:25:49 GMT
|
|
7
|
+
|
|
8
|
+
_Version update only_
|
|
4
9
|
|
|
5
10
|
## 5.11.3
|
|
6
11
|
Wed, 15 Jul 2026 19:40:44 GMT
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@itwin/core-mobile",
|
|
3
|
-
"version": "5.13.0-dev.
|
|
3
|
+
"version": "5.13.0-dev.5",
|
|
4
4
|
"description": "iTwin.js MobileHost and MobileApp",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"url": "http://www.bentley.com"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@itwin/core-backend": "5.13.0-dev.
|
|
26
|
-
"@itwin/core-bentley": "5.13.0-dev.
|
|
27
|
-
"@itwin/core-common": "5.13.0-dev.
|
|
28
|
-
"@itwin/core-frontend": "5.13.0-dev.
|
|
25
|
+
"@itwin/core-backend": "5.13.0-dev.5",
|
|
26
|
+
"@itwin/core-bentley": "5.13.0-dev.5",
|
|
27
|
+
"@itwin/core-common": "5.13.0-dev.5",
|
|
28
|
+
"@itwin/core-frontend": "5.13.0-dev.5"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"lodash": "^4.18.0",
|
|
@@ -34,26 +34,18 @@
|
|
|
34
34
|
},
|
|
35
35
|
"devDependencies": {
|
|
36
36
|
"@itwin/eslint-plugin": "^6.0.0",
|
|
37
|
-
"@types/chai": "4.3.1",
|
|
38
|
-
"@types/fs-extra": "^4.0.7",
|
|
39
37
|
"@types/lodash": "^4.14.202",
|
|
40
|
-
"@types/mocha": "^10.0.6",
|
|
41
38
|
"@types/node": "~20.17.0",
|
|
42
39
|
"@types/superagent": "^8.1.6",
|
|
43
40
|
"@types/ws": "^7.0.0",
|
|
44
|
-
"chai": "^4.3.10",
|
|
45
|
-
"chai-as-promised": "^7.1.1",
|
|
46
|
-
"dotenv": "^16.4.5",
|
|
47
|
-
"dotenv-expand": "^5.1.0",
|
|
48
41
|
"eslint": "^9.31.0",
|
|
49
|
-
"mocha": "^11.1.0",
|
|
50
42
|
"rimraf": "^6.0.1",
|
|
51
43
|
"typescript": "~5.6.2",
|
|
52
|
-
"@itwin/build-tools": "5.13.0-dev.
|
|
53
|
-
"@itwin/core-
|
|
54
|
-
"@itwin/core-
|
|
55
|
-
"@itwin/core-frontend": "5.13.0-dev.
|
|
56
|
-
"@itwin/core-
|
|
44
|
+
"@itwin/build-tools": "5.13.0-dev.5",
|
|
45
|
+
"@itwin/core-common": "5.13.0-dev.5",
|
|
46
|
+
"@itwin/core-backend": "5.13.0-dev.5",
|
|
47
|
+
"@itwin/core-frontend": "5.13.0-dev.5",
|
|
48
|
+
"@itwin/core-bentley": "5.13.0-dev.5"
|
|
57
49
|
},
|
|
58
50
|
"scripts": {
|
|
59
51
|
"build": "npm run -s build:cjs",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePlatform.test.d.ts","sourceRoot":"","sources":["../../../../src/test/ios/MobilePlatform.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
/*---------------------------------------------------------------------------------------------
|
|
4
|
-
* Copyright (c) Bentley Systems, Incorporated. All rights reserved.
|
|
5
|
-
* See LICENSE.md in the project root for license terms and full copyright notice.
|
|
6
|
-
*--------------------------------------------------------------------------------------------*/
|
|
7
|
-
const chai_1 = require("chai");
|
|
8
|
-
const fs = require("fs-extra");
|
|
9
|
-
const os = require("os");
|
|
10
|
-
const path = require("path");
|
|
11
|
-
const outputDir = path.join(os.tmpdir(), "output");
|
|
12
|
-
describe("IOS Platform Test", () => {
|
|
13
|
-
it("Filesystem (Uint8Array) - writeFileSync, appendFileSync and readFileSync", () => {
|
|
14
|
-
const testDir = path.join(outputDir, "mobile-introp");
|
|
15
|
-
const testFile = path.join(testDir, "test.bin");
|
|
16
|
-
if (fs.existsSync(testDir)) {
|
|
17
|
-
fs.unlinkSync(testDir);
|
|
18
|
-
}
|
|
19
|
-
fs.mkdirSync(testDir);
|
|
20
|
-
chai_1.assert.isTrue(fs.existsSync(testDir));
|
|
21
|
-
const testArray = new Uint8Array(1024);
|
|
22
|
-
for (let i = 0; i < testArray.length; i++) {
|
|
23
|
-
testArray[i] = i % 255;
|
|
24
|
-
}
|
|
25
|
-
fs.writeFileSync(testFile, testArray);
|
|
26
|
-
// binary test
|
|
27
|
-
const outArray = fs.readFileSync(testFile, { encoding: null });
|
|
28
|
-
chai_1.assert.equal(outArray.length, testArray.length, "array size must match");
|
|
29
|
-
for (let i = 0; i < testArray.length; i++) {
|
|
30
|
-
chai_1.assert.equal(testArray[i], outArray[i], `content at offset ${i} missmatch`);
|
|
31
|
-
}
|
|
32
|
-
chai_1.assert.equal(fs.lstatSync(testFile).size, testArray.length, "file size must match");
|
|
33
|
-
fs.appendFileSync(testFile, testArray);
|
|
34
|
-
// binary test
|
|
35
|
-
const outArrayx2 = fs.readFileSync(testFile, { encoding: null });
|
|
36
|
-
chai_1.assert.equal(outArrayx2.length, testArray.length * 2, "array size must match after append");
|
|
37
|
-
for (let i = 0; i < testArray.length; i++) {
|
|
38
|
-
chai_1.assert.equal(testArray[i], outArrayx2[i], `content at offset ${i} missmatch after append`);
|
|
39
|
-
}
|
|
40
|
-
// check append
|
|
41
|
-
for (let k = 0; k < testArray.length; k++) {
|
|
42
|
-
chai_1.assert.equal(testArray[k], outArrayx2[k + testArray.length], `content at offset ${k} missmatch after append`);
|
|
43
|
-
}
|
|
44
|
-
chai_1.assert.equal(fs.lstatSync(testFile).size, testArray.length * 2, "file size must match after append");
|
|
45
|
-
fs.unlinkSync(testFile);
|
|
46
|
-
chai_1.assert.isFalse(fs.existsSync(testFile));
|
|
47
|
-
});
|
|
48
|
-
it("Filesystem (string) - writeFileSync, appendFileSync and readFileSync", () => {
|
|
49
|
-
const testDir = path.join(outputDir, "mobile-introp");
|
|
50
|
-
const testFile = path.join(testDir, "test.bin");
|
|
51
|
-
if (fs.existsSync(testDir)) {
|
|
52
|
-
fs.unlinkSync(testDir);
|
|
53
|
-
}
|
|
54
|
-
fs.mkdirSync(testDir);
|
|
55
|
-
chai_1.assert.isTrue(fs.existsSync(testDir));
|
|
56
|
-
const testString = "*".repeat(1024);
|
|
57
|
-
fs.writeFileSync(testFile, testString);
|
|
58
|
-
// string test
|
|
59
|
-
const outString = fs.readFileSync(testFile, { encoding: "utf-8" });
|
|
60
|
-
chai_1.assert.equal(testString, outString);
|
|
61
|
-
fs.appendFileSync(testFile, testString);
|
|
62
|
-
const outStringx2 = fs.readFileSync(testFile, { encoding: "utf-8" });
|
|
63
|
-
chai_1.assert.equal(testString.length * 2, outStringx2.length);
|
|
64
|
-
chai_1.assert.equal(testString + testString, outStringx2);
|
|
65
|
-
fs.unlinkSync(testFile);
|
|
66
|
-
chai_1.assert.isFalse(fs.existsSync(testFile));
|
|
67
|
-
});
|
|
68
|
-
/*
|
|
69
|
-
- (bool) existsSync: (NSString*)path;
|
|
70
|
-
- (void) unlinkSync: (NSString*)path;
|
|
71
|
-
- (void) removeSync: (NSString*)path;
|
|
72
|
-
- (void) mkdirSync: (NSString*)path;
|
|
73
|
-
- (void) rmdirSync: (NSString*)path;
|
|
74
|
-
- (void) appendFileSync: (NSString*)path :(JSValue*)data;
|
|
75
|
-
- (NSArray<NSString*>*) readdirSync: (NSString*)path;
|
|
76
|
-
- (void) writeFileSync: (NSString*)path :(JSValue*)content;
|
|
77
|
-
- (void) copySync: (NSString*)fromPath :(NSString*)toPath;
|
|
78
|
-
- (JSValue*) lstatSync: (JSValue*)path;
|
|
79
|
-
- (JSValue*) readFileSync: (JSValue*)path :(JSValue*)options;
|
|
80
|
-
- (JSValue*) istatSync: (JSValue*)path;
|
|
81
|
-
- (NSString*) realpathSync: (JSValue*)path :(JSValue*)options;
|
|
82
|
-
- (void) closeSync: (JSValue*)fd;
|
|
83
|
-
- (JSValue*) openSync: (NSString*)path :(NSString*)flags :(JSValue*)mode; */
|
|
84
|
-
});
|
|
85
|
-
//# sourceMappingURL=MobilePlatform.test.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"MobilePlatform.test.js","sourceRoot":"","sources":["../../../../src/test/ios/MobilePlatform.test.ts"],"names":[],"mappings":";;AAAA;;;+FAG+F;AAC/F,+BAA8B;AAC9B,+BAA+B;AAC/B,yBAAyB;AACzB,6BAA6B;AAE7B,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,QAAQ,CAAC,CAAC;AAEnD,QAAQ,CAAC,mBAAmB,EAAE,GAAG,EAAE;IACjC,EAAE,CAAC,0EAA0E,EAAE,GAAG,EAAE;QAClF,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,eAAe,CAAC,CAAC;QACtD,MAAM,QAAQ,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC;QAChD,IAAI,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,EAAE,CAAC;YAC3B,EAAE,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;QACzB,CAAC;QACD,EAAE,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;QACtB,aAAM,CAAC,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U,CAAC,OAAO,CAAC,CAAC,CAAC;QAEtC,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;QACpC,EAAE,CAAC,aAAa,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAEvC,cAAc;QACd,MAAM,SAAS,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;QACnE,aAAM,CAAC,KAAK,CAAC,UAAU,EAAE,SAAS,CAAC,CAAC;QAEpC,EAAE,CAAC,cAAc,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;QAExC,MAAM,WAAW,GAAG,EAAE,CAAC,YAAY,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,OAAO,EAAE,CAAC,CAAC;QACrE,aAAM,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,GAAG,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;QACxD,aAAM,CAAC,KAAK,CAAC,UAAU,GAAG,UAAU,EAAE,WAAW,CAAC,CAAC;QAEnD,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC;QACxB,aAAM,CAAC,OAAO,CAAC,EAAE,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,CAAC;IAC1C,CAAC,CAAC,CAAC;IAEH;;;;;;;;;;;;;;;8EAe0E;AAE5E,CAAC,CAAC,CAAC","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 { assert } from \"chai\";\r\nimport * as fs from \"fs-extra\";\r\nimport * as os from \"os\";\r\nimport * as path from \"path\";\r\n\r\nconst outputDir = path.join(os.tmpdir(), \"output\");\r\n\r\ndescribe(\"IOS Platform Test\", () => {\r\n it(\"Filesystem (Uint8Array) - writeFileSync, appendFileSync and readFileSync\", () => {\r\n const testDir = path.join(outputDir, \"mobile-introp\");\r\n const testFile = path.join(testDir, \"test.bin\");\r\n if (fs.existsSync(testDir)) {\r\n fs.unlinkSync(testDir);\r\n }\r\n fs.mkdirSync(testDir);\r\n assert.isTrue(fs.existsSync(testDir));\r\n\r\n const testArray = new Uint8Array(1024);\r\n for (let i = 0; i < testArray.length; i++) {\r\n testArray[i] = i % 255;\r\n }\r\n\r\n fs.writeFileSync(testFile, testArray);\r\n // binary test\r\n const outArray = fs.readFileSync(testFile, { encoding: null });\r\n assert.equal(outArray.length, testArray.length, \"array size must match\");\r\n for (let i = 0; i < testArray.length; i++) {\r\n assert.equal(testArray[i], outArray[i], `content at offset ${i} missmatch`);\r\n }\r\n\r\n assert.equal(fs.lstatSync(testFile).size, testArray.length, \"file size must match\");\r\n\r\n fs.appendFileSync(testFile, testArray);\r\n\r\n // binary test\r\n const outArrayx2 = fs.readFileSync(testFile, { encoding: null });\r\n assert.equal(outArrayx2.length, testArray.length * 2, \"array size must match after append\");\r\n for (let i = 0; i < testArray.length; i++) {\r\n assert.equal(testArray[i], outArrayx2[i], `content at offset ${i} missmatch after append`);\r\n }\r\n // check append\r\n for (let k = 0; k < testArray.length; k++) {\r\n assert.equal(testArray[k], outArrayx2[k + testArray.length], `content at offset ${k} missmatch after append`);\r\n }\r\n assert.equal(fs.lstatSync(testFile).size, testArray.length * 2, \"file size must match after append\");\r\n\r\n fs.unlinkSync(testFile);\r\n assert.isFalse(fs.existsSync(testFile));\r\n });\r\n\r\n it(\"Filesystem (string) - writeFileSync, appendFileSync and readFileSync\", () => {\r\n const testDir = path.join(outputDir, \"mobile-introp\");\r\n const testFile = path.join(testDir, \"test.bin\");\r\n if (fs.existsSync(testDir)) {\r\n fs.unlinkSync(testDir);\r\n }\r\n\r\n fs.mkdirSync(testDir);\r\n assert.isTrue(fs.existsSync(testDir));\r\n\r\n const testString = \"*\".repeat(1024);\r\n fs.writeFileSync(testFile, testString);\r\n\r\n // string test\r\n const outString = fs.readFileSync(testFile, { encoding: \"utf-8\" });\r\n assert.equal(testString, outString);\r\n\r\n fs.appendFileSync(testFile, testString);\r\n\r\n const outStringx2 = fs.readFileSync(testFile, { encoding: \"utf-8\" });\r\n assert.equal(testString.length * 2, outStringx2.length);\r\n assert.equal(testString + testString, outStringx2);\r\n\r\n fs.unlinkSync(testFile);\r\n assert.isFalse(fs.existsSync(testFile));\r\n });\r\n\r\n /*\r\n- (bool) existsSync: (NSString*)path;\r\n- (void) unlinkSync: (NSString*)path;\r\n- (void) removeSync: (NSString*)path;\r\n- (void) mkdirSync: (NSString*)path;\r\n- (void) rmdirSync: (NSString*)path;\r\n- (void) appendFileSync: (NSString*)path :(JSValue*)data;\r\n- (NSArray<NSString*>*) readdirSync: (NSString*)path;\r\n- (void) writeFileSync: (NSString*)path :(JSValue*)content;\r\n- (void) copySync: (NSString*)fromPath :(NSString*)toPath;\r\n- (JSValue*) lstatSync: (JSValue*)path;\r\n- (JSValue*) readFileSync: (JSValue*)path :(JSValue*)options;\r\n- (JSValue*) istatSync: (JSValue*)path;\r\n- (NSString*) realpathSync: (JSValue*)path :(JSValue*)options;\r\n- (void) closeSync: (JSValue*)fd;\r\n- (JSValue*) openSync: (NSString*)path :(NSString*)flags :(JSValue*)mode; */\r\n\r\n});\r\n"]}
|