@salesforce/lds-runtime-mobile 1.353.1 → 1.354.0-dev2

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 CHANGED
@@ -42882,12 +42882,16 @@ function isCreateContentDocumentAndVersionDraftAdapterEvent(customEvent) {
42882
42882
  /* global __nimbus */
42883
42883
  function chunkToBase64(chunk) {
42884
42884
  const bytes = new Uint8Array(chunk);
42885
- const binary = String.fromCharCode.apply(null, bytes);
42885
+ const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
42886
+ let binary = '';
42887
+ for (let i = 0; i < bytes.length; i += CHUNK_SIZE) {
42888
+ binary += String.fromCharCode(...bytes.subarray(i, i + CHUNK_SIZE));
42889
+ }
42886
42890
  return btoa(binary);
42887
42891
  }
42888
42892
  async function streamBufferToBinaryStore(binaryStore, file, mimeType) {
42889
42893
  const uri = await binaryStore.createStream(mimeType);
42890
- const CHUNK_SIZE = 64 * 1024; // 64KB
42894
+ const CHUNK_SIZE = 1024 * 1024 * 2; // 2mb
42891
42895
  const fileSize = file.size;
42892
42896
  let offset = 0;
42893
42897
  try {
@@ -55672,4 +55676,4 @@ register({
55672
55676
  });
55673
55677
 
55674
55678
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
55675
- // version: 1.353.1-eeb55fde9b
55679
+ // version: 1.354.0-dev2-be1ef0f23e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.353.1",
3
+ "version": "1.354.0-dev2",
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.353.1",
36
- "@salesforce/lds-bindings": "^1.353.1",
37
- "@salesforce/lds-instrumentation": "^1.353.1",
35
+ "@salesforce/lds-adapters-uiapi": "^1.354.0-dev2",
36
+ "@salesforce/lds-bindings": "^1.354.0-dev2",
37
+ "@salesforce/lds-instrumentation": "^1.354.0-dev2",
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.353.1",
44
- "@salesforce/lds-drafts": "^1.353.1",
45
- "@salesforce/lds-durable-records": "^1.353.1",
46
- "@salesforce/lds-network-adapter": "^1.353.1",
47
- "@salesforce/lds-network-nimbus": "^1.353.1",
48
- "@salesforce/lds-store-binary": "^1.353.1",
49
- "@salesforce/lds-store-nimbus": "^1.353.1",
50
- "@salesforce/lds-store-sql": "^1.353.1",
51
- "@salesforce/lds-utils-adapters": "^1.353.1",
52
- "@salesforce/nimbus-plugin-lds": "^1.353.1",
43
+ "@salesforce/lds-adapters-graphql": "^1.354.0-dev2",
44
+ "@salesforce/lds-drafts": "^1.354.0-dev2",
45
+ "@salesforce/lds-durable-records": "^1.354.0-dev2",
46
+ "@salesforce/lds-network-adapter": "^1.354.0-dev2",
47
+ "@salesforce/lds-network-nimbus": "^1.354.0-dev2",
48
+ "@salesforce/lds-store-binary": "^1.354.0-dev2",
49
+ "@salesforce/lds-store-nimbus": "^1.354.0-dev2",
50
+ "@salesforce/lds-store-sql": "^1.354.0-dev2",
51
+ "@salesforce/lds-utils-adapters": "^1.354.0-dev2",
52
+ "@salesforce/nimbus-plugin-lds": "^1.354.0-dev2",
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
@@ -42882,12 +42882,16 @@ function isCreateContentDocumentAndVersionDraftAdapterEvent(customEvent) {
42882
42882
  /* global __nimbus */
42883
42883
  function chunkToBase64(chunk) {
42884
42884
  const bytes = new Uint8Array(chunk);
42885
- const binary = String.fromCharCode.apply(null, bytes);
42885
+ const CHUNK_SIZE = 64 * 1024; // 64kb, any bigger and fromCharCode() can error out with an overflow.
42886
+ let binary = '';
42887
+ for (let i = 0; i < bytes.length; i += CHUNK_SIZE) {
42888
+ binary += String.fromCharCode(...bytes.subarray(i, i + CHUNK_SIZE));
42889
+ }
42886
42890
  return btoa(binary);
42887
42891
  }
42888
42892
  async function streamBufferToBinaryStore(binaryStore, file, mimeType) {
42889
42893
  const uri = await binaryStore.createStream(mimeType);
42890
- const CHUNK_SIZE = 64 * 1024; // 64KB
42894
+ const CHUNK_SIZE = 1024 * 1024 * 2; // 2mb
42891
42895
  const fileSize = file.size;
42892
42896
  let offset = 0;
42893
42897
  try {
@@ -55672,4 +55676,4 @@ register({
55672
55676
  });
55673
55677
 
55674
55678
  export { O11Y_NAMESPACE_LDS_MOBILE, getRuntime, ingest$1o as ingestDenormalizedRecordRepresentation, registerReportObserver, reportGraphqlQueryParseError };
55675
- // version: 1.353.1-eeb55fde9b
55679
+ // version: 1.354.0-dev2-be1ef0f23e