@salesforce/lds-runtime-mobile 1.134.1 → 1.134.3

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
@@ -7226,15 +7226,10 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
7226
7226
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
7227
7227
  // like this: "x COLLATE NOCASE IN (y,z, ...)".
7228
7228
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
7229
- //if we only have a null in/nin then dont add the IN (y, z, ...)
7230
- if (valueBinding.length > 0) {
7231
- sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
7232
- }
7233
- else {
7234
- sql = `${includesNull ? nullCheck : ''}`;
7235
- }
7229
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql}`;
7236
7230
  binding.push(...valueBinding);
7237
7231
  if (includesNull) {
7232
+ sql = `(${sql} OR ${nullCheck})`;
7238
7233
  binding.push(null);
7239
7234
  }
7240
7235
  }
@@ -15750,4 +15745,4 @@ register({
15750
15745
  });
15751
15746
 
15752
15747
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15753
- // version: 1.134.1-a9e5e5ebc
15748
+ // version: 1.134.3-d4637e557
@@ -1,2 +1,11 @@
1
- import type { Activity } from 'o11y/client';
2
- export declare const activity: Activity;
1
+ declare function stop(_userSchemaOrText?: any | string, _userData?: any): void;
2
+ declare function error(_error: Error, _userSchemaOrText?: any | string, _userData?: any): void;
3
+ declare function discard(): void;
4
+ declare function terminate(): void;
5
+ export declare const activity: {
6
+ stop: typeof stop;
7
+ error: typeof error;
8
+ discard: typeof discard;
9
+ terminate: typeof terminate;
10
+ };
11
+ export {};
@@ -1,2 +1,18 @@
1
- import type { IdleDetector } from 'o11y/client';
2
- export declare const idleDetector: IdleDetector;
1
+ declare function requestIdleDetectedCallback(_callback: any): void;
2
+ declare function declareNotifierTaskSingle(_name: string): {
3
+ isBusy: boolean;
4
+ done: () => void;
5
+ };
6
+ declare function declareNotifierTaskMulti(_name: string, _existingBusyCount?: number): {
7
+ isBusy: boolean;
8
+ add: () => void;
9
+ done: () => void;
10
+ };
11
+ declare function declarePollableTaskMulti(_name: string, _isBusyChecker: any): void;
12
+ export declare const idleDetector: {
13
+ requestIdleDetectedCallback: typeof requestIdleDetectedCallback;
14
+ declareNotifierTaskSingle: typeof declareNotifierTaskSingle;
15
+ declareNotifierTaskMulti: typeof declareNotifierTaskMulti;
16
+ declarePollableTaskMulti: typeof declarePollableTaskMulti;
17
+ };
18
+ export {};
@@ -1,9 +1,8 @@
1
- import type { Activity, MetricsTags, Schema, SchematizedData } from 'o11y/client';
2
- declare function log(_schema: Schema, _data?: SchematizedData): void;
3
- declare function error(_err: Error, _userSchemaOrText?: string, _data?: SchematizedData): void;
4
- declare function startActivity(_name: string): Activity;
5
- declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags): void;
6
- declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags): void;
1
+ declare function log(_schema: any, _data?: any): void;
2
+ declare function error(_err: Error, _userSchemaOrText?: string, _data?: any): void;
3
+ declare function startActivity(_name: string): any;
4
+ declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: any): void;
5
+ declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: any): void;
7
6
  export declare const instrumentation: {
8
7
  log: typeof log;
9
8
  error: typeof error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-runtime-mobile",
3
- "version": "1.134.1",
3
+ "version": "1.134.3",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "LDS runtime for mobile/hybrid environments.",
6
6
  "main": "dist/main.js",
package/sfdc/main.js CHANGED
@@ -7226,15 +7226,10 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
7226
7226
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
7227
7227
  // like this: "x COLLATE NOCASE IN (y,z, ...)".
7228
7228
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
7229
- //if we only have a null in/nin then dont add the IN (y, z, ...)
7230
- if (valueBinding.length > 0) {
7231
- sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
7232
- }
7233
- else {
7234
- sql = `${includesNull ? nullCheck : ''}`;
7235
- }
7229
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql}`;
7236
7230
  binding.push(...valueBinding);
7237
7231
  if (includesNull) {
7232
+ sql = `(${sql} OR ${nullCheck})`;
7238
7233
  binding.push(null);
7239
7234
  }
7240
7235
  }
@@ -15750,4 +15745,4 @@ register({
15750
15745
  });
15751
15746
 
15752
15747
  export { getRuntime, registerReportObserver, reportGraphqlQueryParseError };
15753
- // version: 1.134.1-a9e5e5ebc
15748
+ // version: 1.134.3-d4637e557
@@ -1,2 +1,11 @@
1
- import type { Activity } from 'o11y/client';
2
- export declare const activity: Activity;
1
+ declare function stop(_userSchemaOrText?: any | string, _userData?: any): void;
2
+ declare function error(_error: Error, _userSchemaOrText?: any | string, _userData?: any): void;
3
+ declare function discard(): void;
4
+ declare function terminate(): void;
5
+ export declare const activity: {
6
+ stop: typeof stop;
7
+ error: typeof error;
8
+ discard: typeof discard;
9
+ terminate: typeof terminate;
10
+ };
11
+ export {};
@@ -1,2 +1,18 @@
1
- import type { IdleDetector } from 'o11y/client';
2
- export declare const idleDetector: IdleDetector;
1
+ declare function requestIdleDetectedCallback(_callback: any): void;
2
+ declare function declareNotifierTaskSingle(_name: string): {
3
+ isBusy: boolean;
4
+ done: () => void;
5
+ };
6
+ declare function declareNotifierTaskMulti(_name: string, _existingBusyCount?: number): {
7
+ isBusy: boolean;
8
+ add: () => void;
9
+ done: () => void;
10
+ };
11
+ declare function declarePollableTaskMulti(_name: string, _isBusyChecker: any): void;
12
+ export declare const idleDetector: {
13
+ requestIdleDetectedCallback: typeof requestIdleDetectedCallback;
14
+ declareNotifierTaskSingle: typeof declareNotifierTaskSingle;
15
+ declareNotifierTaskMulti: typeof declareNotifierTaskMulti;
16
+ declarePollableTaskMulti: typeof declarePollableTaskMulti;
17
+ };
18
+ export {};
@@ -1,9 +1,8 @@
1
- import type { Activity, MetricsTags, Schema, SchematizedData } from 'o11y/client';
2
- declare function log(_schema: Schema, _data?: SchematizedData): void;
3
- declare function error(_err: Error, _userSchemaOrText?: string, _data?: SchematizedData): void;
4
- declare function startActivity(_name: string): Activity;
5
- declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: MetricsTags): void;
6
- declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: MetricsTags): void;
1
+ declare function log(_schema: any, _data?: any): void;
2
+ declare function error(_err: Error, _userSchemaOrText?: string, _data?: any): void;
3
+ declare function startActivity(_name: string): any;
4
+ declare function incrementCounter(_operation: string, _increment?: number, _hasError?: boolean, _tags?: any): void;
5
+ declare function trackValue(_operation: string, _value: number, _hasError?: boolean, _tags?: any): void;
7
6
  export declare const instrumentation: {
8
7
  log: typeof log;
9
8
  error: typeof error;