@salesforce/lds-runtime-mobile 1.354.0 → 1.355.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/dist/main.js +7 -3
- package/package.json +14 -14
- package/sfdc/main.js +7 -3
package/dist/main.js
CHANGED
|
@@ -42918,12 +42918,16 @@ function isCreateContentDocumentAndVersionDraftAdapterEvent(customEvent) {
|
|
|
42918
42918
|
/* global __nimbus */
|
|
42919
42919
|
function chunkToBase64(chunk) {
|
|
42920
42920
|
const bytes = new Uint8Array(chunk);
|
|
42921
|
-
const
|
|
42921
|
+
const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
|
|
42922
|
+
let binary = '';
|
|
42923
|
+
for (let i = 0; i < bytes.length; i += CHUNK_SIZE) {
|
|
42924
|
+
binary += String.fromCharCode(...bytes.subarray(i, i + CHUNK_SIZE));
|
|
42925
|
+
}
|
|
42922
42926
|
return btoa(binary);
|
|
42923
42927
|
}
|
|
42924
42928
|
async function streamBufferToBinaryStore(binaryStore, file, mimeType) {
|
|
42925
42929
|
const uri = await binaryStore.createStream(mimeType);
|
|
42926
|
-
const CHUNK_SIZE =
|
|
42930
|
+
const CHUNK_SIZE = 1024 * 1024 * 2; // 2mb
|
|
42927
42931
|
const fileSize = file.size;
|
|
42928
42932
|
let offset = 0;
|
|
42929
42933
|
try {
|
|
@@ -55732,4 +55736,4 @@ register({
|
|
|
55732
55736
|
});
|
|
55733
55737
|
|
|
55734
55738
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
55735
|
-
// version: 1.
|
|
55739
|
+
// version: 1.355.0-4ae8017b1b
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-runtime-mobile",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.355.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "LDS runtime for mobile/hybrid environments.",
|
|
6
6
|
"main": "dist/main.js",
|
|
@@ -32,24 +32,24 @@
|
|
|
32
32
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-runtime-mobile"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
36
|
-
"@salesforce/lds-bindings": "^1.
|
|
37
|
-
"@salesforce/lds-instrumentation": "^1.
|
|
35
|
+
"@salesforce/lds-adapters-uiapi": "^1.355.0",
|
|
36
|
+
"@salesforce/lds-bindings": "^1.355.0",
|
|
37
|
+
"@salesforce/lds-instrumentation": "^1.355.0",
|
|
38
38
|
"@salesforce/user": "0.0.21",
|
|
39
39
|
"o11y": "250.7.0",
|
|
40
40
|
"o11y_schema": "256.126.0"
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
44
|
-
"@salesforce/lds-drafts": "^1.
|
|
45
|
-
"@salesforce/lds-durable-records": "^1.
|
|
46
|
-
"@salesforce/lds-network-adapter": "^1.
|
|
47
|
-
"@salesforce/lds-network-nimbus": "^1.
|
|
48
|
-
"@salesforce/lds-store-binary": "^1.
|
|
49
|
-
"@salesforce/lds-store-nimbus": "^1.
|
|
50
|
-
"@salesforce/lds-store-sql": "^1.
|
|
51
|
-
"@salesforce/lds-utils-adapters": "^1.
|
|
52
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
43
|
+
"@salesforce/lds-adapters-graphql": "^1.355.0",
|
|
44
|
+
"@salesforce/lds-drafts": "^1.355.0",
|
|
45
|
+
"@salesforce/lds-durable-records": "^1.355.0",
|
|
46
|
+
"@salesforce/lds-network-adapter": "^1.355.0",
|
|
47
|
+
"@salesforce/lds-network-nimbus": "^1.355.0",
|
|
48
|
+
"@salesforce/lds-store-binary": "^1.355.0",
|
|
49
|
+
"@salesforce/lds-store-nimbus": "^1.355.0",
|
|
50
|
+
"@salesforce/lds-store-sql": "^1.355.0",
|
|
51
|
+
"@salesforce/lds-utils-adapters": "^1.355.0",
|
|
52
|
+
"@salesforce/nimbus-plugin-lds": "^1.355.0",
|
|
53
53
|
"babel-plugin-dynamic-import-node": "^2.3.3",
|
|
54
54
|
"wait-for-expect": "^3.0.2"
|
|
55
55
|
},
|
package/sfdc/main.js
CHANGED
|
@@ -42918,12 +42918,16 @@ function isCreateContentDocumentAndVersionDraftAdapterEvent(customEvent) {
|
|
|
42918
42918
|
/* global __nimbus */
|
|
42919
42919
|
function chunkToBase64(chunk) {
|
|
42920
42920
|
const bytes = new Uint8Array(chunk);
|
|
42921
|
-
const
|
|
42921
|
+
const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
|
|
42922
|
+
let binary = '';
|
|
42923
|
+
for (let i = 0; i < bytes.length; i += CHUNK_SIZE) {
|
|
42924
|
+
binary += String.fromCharCode(...bytes.subarray(i, i + CHUNK_SIZE));
|
|
42925
|
+
}
|
|
42922
42926
|
return btoa(binary);
|
|
42923
42927
|
}
|
|
42924
42928
|
async function streamBufferToBinaryStore(binaryStore, file, mimeType) {
|
|
42925
42929
|
const uri = await binaryStore.createStream(mimeType);
|
|
42926
|
-
const CHUNK_SIZE =
|
|
42930
|
+
const CHUNK_SIZE = 1024 * 1024 * 2; // 2mb
|
|
42927
42931
|
const fileSize = file.size;
|
|
42928
42932
|
let offset = 0;
|
|
42929
42933
|
try {
|
|
@@ -55732,4 +55736,4 @@ register({
|
|
|
55732
55736
|
});
|
|
55733
55737
|
|
|
55734
55738
|
export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
|
|
55735
|
-
// version: 1.
|
|
55739
|
+
// version: 1.355.0-4ae8017b1b
|