bx-rest 0.0.29 → 0.0.30
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/esm2020/rest.mjs +3 -4
- package/fesm2015/bx-rest.mjs +3 -3
- package/fesm2015/bx-rest.mjs.map +1 -1
- package/fesm2020/bx-rest.mjs +3 -3
- package/fesm2020/bx-rest.mjs.map +1 -1
- package/package.json +1 -1
package/fesm2020/bx-rest.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { NgModule, inject, Component, ViewEncapsulation, Inject, Injectable } from '@angular/core';
|
|
3
3
|
import { map, catchError, tap, mergeMap as mergeMap$1, first } from 'rxjs/operators';
|
|
4
|
-
import { Subscription, filter, take, of, throwError, forkJoin, mergeMap
|
|
4
|
+
import { Subscription, filter, take, of, throwError, forkJoin, mergeMap } from 'rxjs';
|
|
5
5
|
import clone from 'just-clone';
|
|
6
6
|
import * as i1$1 from '@angular/material/snack-bar';
|
|
7
7
|
import { MatSnackBarRef, MAT_SNACK_BAR_DATA } from '@angular/material/snack-bar';
|
|
@@ -1743,9 +1743,9 @@ class BXRest extends new Proxy(BXRestBase, {
|
|
|
1743
1743
|
get(target, prop, receiver) {
|
|
1744
1744
|
const res = Reflect.get(target, prop, receiver);
|
|
1745
1745
|
console.log('res', res);
|
|
1746
|
-
if (res
|
|
1746
|
+
if (typeof res === 'function') {
|
|
1747
1747
|
// let mapRes = new BXRestListsElementMap()
|
|
1748
|
-
|
|
1748
|
+
console.log('res', res);
|
|
1749
1749
|
return Reflect.get(target, prop, receiver).pipe(
|
|
1750
1750
|
// @ts-ignore
|
|
1751
1751
|
map(v => (v && v.result)
|