@dereekb/firebase 9.20.1 → 9.20.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/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,19 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.20.3](https://github.com/dereekb/dbx-components/compare/v9.20.2-dev...v9.20.3) (2022-12-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* fixed convertHttpsCallableErrorToReadableError() ([78decc8](https://github.com/dereekb/dbx-components/commit/78decc857912ac1b259e59fdf9ade7e6976af8c9))
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [9.20.2](https://github.com/dereekb/dbx-components/compare/v9.20.1-dev...v9.20.2) (2022-12-21)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
|
|
5
18
|
## [9.20.1](https://github.com/dereekb/dbx-components/compare/v9.20.0-dev...v9.20.1) (2022-12-19)
|
|
6
19
|
|
|
7
20
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.3",
|
|
4
4
|
"devDependencies": {
|
|
5
5
|
"@firebase/rules-unit-testing": "^2.0.0"
|
|
6
6
|
},
|
|
@@ -24,17 +24,17 @@
|
|
|
24
24
|
"peerDependencies": {
|
|
25
25
|
"rxjs": "^7.5.0",
|
|
26
26
|
"firebase": "^9.9.2",
|
|
27
|
-
"@dereekb/util": "9.20.
|
|
27
|
+
"@dereekb/util": "9.20.3",
|
|
28
28
|
"lodash.isequal": "^4.5.0",
|
|
29
29
|
"make-error": "^1.3.0",
|
|
30
30
|
"class-validator": "^0.13.2",
|
|
31
31
|
"ts-essentials": "^9.1.2",
|
|
32
32
|
"extra-set": "^2.2.11",
|
|
33
33
|
"class-transformer": "^0.5.1",
|
|
34
|
-
"@dereekb/rxjs": "9.20.
|
|
34
|
+
"@dereekb/rxjs": "9.20.3",
|
|
35
35
|
"ms": "^3.0.0-canary.1",
|
|
36
|
-
"@dereekb/model": "9.20.
|
|
37
|
-
"@dereekb/date": "9.20.
|
|
36
|
+
"@dereekb/model": "9.20.3",
|
|
37
|
+
"@dereekb/date": "9.20.3",
|
|
38
38
|
"date-fns": "^2.29.0",
|
|
39
39
|
"date-fns-tz": "^1.3.0",
|
|
40
40
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|
|
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
5
5
|
exports.convertHttpsCallableErrorToReadableError = exports.directDataHttpsCallable = exports.mapHttpsCallable = void 0;
|
|
6
6
|
const tslib_1 = require("tslib");
|
|
7
7
|
const util_1 = require("@dereekb/util");
|
|
8
|
-
const app_1 = require("firebase/app");
|
|
9
8
|
const error_1 = require("./error");
|
|
10
9
|
function mapHttpsCallable(callable, wrap, directData = false) {
|
|
11
10
|
const { mapInput = (x) => x, mapOutput = (x) => x } = wrap;
|
|
@@ -36,11 +35,13 @@ function directDataHttpsCallable(callable) {
|
|
|
36
35
|
exports.directDataHttpsCallable = directDataHttpsCallable;
|
|
37
36
|
function convertHttpsCallableErrorToReadableError(error) {
|
|
38
37
|
let result;
|
|
39
|
-
if (error
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
38
|
+
if (typeof error === 'object') {
|
|
39
|
+
if (error.name === 'FirebaseError' || (error.code && error.details)) {
|
|
40
|
+
result = error_1.FirebaseServerError.fromFirebaseError(error);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
result = (0, util_1.toReadableError)(error);
|
|
44
|
+
}
|
|
44
45
|
}
|
|
45
46
|
else {
|
|
46
47
|
result = error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"function.callable.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/client/function/function.callable.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,oGAAoG;;;;AAEpG,wCAAsG;
|
|
1
|
+
{"version":3,"file":"function.callable.js","sourceRoot":"","sources":["../../../../../../../packages/firebase/src/lib/client/function/function.callable.ts"],"names":[],"mappings":";AAAA,uDAAuD;AACvD,oGAAoG;;;;AAEpG,wCAAsG;AAGtG,mCAA8C;AAkB9C,SAAgB,gBAAgB,CAAuB,QAA6B,EAAE,IAAkC,EAAE,UAAU,GAAG,KAAK;IAC1I,MAAM,EAAE,QAAQ,GAAG,CAAC,CAAW,EAAE,EAAE,CAAC,CAAiB,EAAE,SAAS,GAAG,CAAC,CAAW,EAAE,EAAE,CAAC,CAAiB,EAAE,GAAG,IAAI,CAAC;IAE/G,OAAO,CAAC,CAAO,SAAoB,EAAuC,EAAE;QAC1E,MAAM,IAAI,GAAM,MAAM,QAAQ,CAAC,SAAS,CAAC,CAAC;QAE1C,IAAI;YACF,MAAM,MAAM,GAA2B,MAAM,QAAQ,CAAC,IAAI,CAAC,CAAC;YAC5D,MAAM,UAAU,GAAa,MAAM,CAAC,IAAI,CAAC;YACzC,MAAM,gBAAgB,GAAM,MAAM,SAAS,CAAC,UAAU,CAAC,CAAC;YAExD,IAAI,UAAU,EAAE;gBACd,OAAO,gBAAgB,CAAC;aACzB;iBAAM;gBACL,uCACK,MAAM,KACT,IAAI,EAAE,gBAAgB,IACtB;aACH;SACF;QAAC,OAAO,CAAC,EAAE;YACV,MAAM,wCAAwC,CAAC,CAAC,CAAC,CAAC;SACnD;IACH,CAAC,CAAA,CAAuE,CAAC;AAC3E,CAAC;AAvBD,4CAuBC;AAOD,SAAgB,uBAAuB,CAA4D,QAAW;IAC5G,OAAO,CAAC,CAAC,IAAO,EAAE,EAAE,CAClB,QAAQ,CAAC,IAAI,CAAC;SACX,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC;SACnB,KAAK,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,wCAAwC,CAAC,CAAC,CAAC,CAAC,CAA+B,CAAC;AAChG,CAAC;AALD,0DAKC;AAED,SAAgB,wCAAwC,CAAC,KAAc;IACrE,IAAI,MAAe,CAAC;IAEpB,IAAI,OAAO,KAAK,KAAK,QAAQ,EAAE;QAC7B,IAAK,KAAuB,CAAC,IAAI,KAAK,eAAe,IAAI,CAAE,KAAuB,CAAC,IAAI,IAAK,KAA6B,CAAC,OAAO,CAAC,EAAE;YAClI,MAAM,GAAG,2BAAmB,CAAC,iBAAiB,CAAC,KAAsB,CAAC,CAAC;SACxE;aAAM;YACL,MAAM,GAAG,IAAA,sBAAe,EAAC,KAAK,CAAC,CAAC;SACjC;KACF;SAAM;QACL,MAAM,GAAG,KAAK,CAAC;KAChB;IAED,OAAO,MAAM,CAAC;AAChB,CAAC;AAdD,4FAcC"}
|
package/test/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
This file was generated using [@jscutlery/semver](https://github.com/jscutlery/semver).
|
|
4
4
|
|
|
5
|
+
## [9.20.3](https://github.com/dereekb/dbx-components/compare/v9.20.2-dev...v9.20.3) (2022-12-22)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
## [9.20.2](https://github.com/dereekb/dbx-components/compare/v9.20.1-dev...v9.20.2) (2022-12-21)
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
5
13
|
## [9.20.1](https://github.com/dereekb/dbx-components/compare/v9.20.0-dev...v9.20.1) (2022-12-19)
|
|
6
14
|
|
|
7
15
|
|
package/test/package.json
CHANGED
|
@@ -1,26 +1,26 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dereekb/firebase/test",
|
|
3
|
-
"version": "9.20.
|
|
3
|
+
"version": "9.20.3",
|
|
4
4
|
"type": "commonjs",
|
|
5
5
|
"main": "./src/index.js",
|
|
6
6
|
"types": "./src/index.d.ts",
|
|
7
7
|
"dependencies": {},
|
|
8
8
|
"peerDependencies": {
|
|
9
|
-
"@dereekb/util/test": "9.20.
|
|
10
|
-
"@dereekb/util": "9.20.
|
|
9
|
+
"@dereekb/util/test": "9.20.3",
|
|
10
|
+
"@dereekb/util": "9.20.3",
|
|
11
11
|
"lodash.isequal": "^4.5.0",
|
|
12
12
|
"make-error": "^1.3.0",
|
|
13
13
|
"class-validator": "^0.13.2",
|
|
14
14
|
"ts-essentials": "^9.1.2",
|
|
15
15
|
"extra-set": "^2.2.11",
|
|
16
|
-
"@dereekb/firebase": "9.20.
|
|
16
|
+
"@dereekb/firebase": "9.20.3",
|
|
17
17
|
"rxjs": "^7.5.0",
|
|
18
18
|
"firebase": "^9.9.2",
|
|
19
19
|
"class-transformer": "^0.5.1",
|
|
20
|
-
"@dereekb/rxjs": "9.20.
|
|
20
|
+
"@dereekb/rxjs": "9.20.3",
|
|
21
21
|
"ms": "^3.0.0-canary.1",
|
|
22
|
-
"@dereekb/model": "9.20.
|
|
23
|
-
"@dereekb/date": "9.20.
|
|
22
|
+
"@dereekb/model": "9.20.3",
|
|
23
|
+
"@dereekb/date": "9.20.3",
|
|
24
24
|
"date-fns": "^2.29.0",
|
|
25
25
|
"date-fns-tz": "^1.3.0",
|
|
26
26
|
"rrule": "git+https://git@github.com/dereekb/rrule#2b13b1ea881059ba2ecfec380e12ef244ef54570",
|