@retter/sdk 0.8.3-development.1 → 0.10.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/bundle/index.js +1 -1
- package/bundle/index.js.LICENSE.txt +35 -14
- package/dist/Auth.js +2 -2
- package/dist/Auth.js.map +1 -1
- package/package.json +5 -5
|
@@ -1,17 +1,4 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
Copyright (c) Microsoft Corporation.
|
|
3
|
-
|
|
4
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
5
|
-
purpose with or without fee is hereby granted.
|
|
6
|
-
|
|
7
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
8
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
9
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
10
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
11
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
12
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
13
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
14
|
-
***************************************************************************** */
|
|
1
|
+
/*! Axios v1.13.6 Copyright (c) 2026 Matt Zabriskie and contributors */
|
|
15
2
|
|
|
16
3
|
/**
|
|
17
4
|
* @license
|
|
@@ -115,6 +102,23 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
115
102
|
* limitations under the License.
|
|
116
103
|
*/
|
|
117
104
|
|
|
105
|
+
/**
|
|
106
|
+
* @license
|
|
107
|
+
* Copyright 2021 Google LLC
|
|
108
|
+
*
|
|
109
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
110
|
+
* you may not use this file except in compliance with the License.
|
|
111
|
+
* You may obtain a copy of the License at
|
|
112
|
+
*
|
|
113
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
114
|
+
*
|
|
115
|
+
* Unless required by applicable law | agreed to in writing, software
|
|
116
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
117
|
+
* WITHOUT WARRANTIES | CONDITIONS OF ANY KIND, either express | implied.
|
|
118
|
+
* See the License for the specific language governing permissions and
|
|
119
|
+
* limitations under the License.
|
|
120
|
+
*/
|
|
121
|
+
|
|
118
122
|
/**
|
|
119
123
|
* @license
|
|
120
124
|
* Copyright 2022 Google LLC
|
|
@@ -166,6 +170,23 @@ PERFORMANCE OF THIS SOFTWARE.
|
|
|
166
170
|
* limitations under the License.
|
|
167
171
|
*/
|
|
168
172
|
|
|
173
|
+
/**
|
|
174
|
+
* @license
|
|
175
|
+
* Copyright 2025 Google LLC
|
|
176
|
+
*
|
|
177
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
178
|
+
* you may not use this file except in compliance with the License.
|
|
179
|
+
* You may obtain a copy of the License at
|
|
180
|
+
*
|
|
181
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
182
|
+
*
|
|
183
|
+
* Unless required by applicable law or agreed to in writing, software
|
|
184
|
+
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
185
|
+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
186
|
+
* See the License for the specific language governing permissions and
|
|
187
|
+
* limitations under the License.
|
|
188
|
+
*/
|
|
189
|
+
|
|
169
190
|
/** @license
|
|
170
191
|
|
|
171
192
|
Copyright The Closure Library Authors.
|
package/dist/Auth.js
CHANGED
|
@@ -39,7 +39,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
39
39
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
40
40
|
};
|
|
41
41
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
42
|
-
var jwt_decode_1 =
|
|
42
|
+
var jwt_decode_1 = require("jwt-decode");
|
|
43
43
|
var js_cookie_1 = __importDefault(require("js-cookie"));
|
|
44
44
|
var helpers_1 = require("./helpers");
|
|
45
45
|
var types_1 = require("./types");
|
|
@@ -193,7 +193,7 @@ var Auth = /** @class */ (function () {
|
|
|
193
193
|
* @returns RetterTokenPayload
|
|
194
194
|
*/
|
|
195
195
|
Auth.prototype.decodeToken = function (token) {
|
|
196
|
-
return (0, jwt_decode_1.
|
|
196
|
+
return (0, jwt_decode_1.jwtDecode)(token);
|
|
197
197
|
};
|
|
198
198
|
/**
|
|
199
199
|
* It adds decoded access and refresh tokens to the token data.
|
package/dist/Auth.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Auth.js","sourceRoot":"","sources":["../src/Auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"Auth.js","sourceRoot":"","sources":["../src/Auth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,yCAAsC;AACtC,wDAA+B;AAG/B,qCAAsC;AACtC,iCAAoI;AAEpI;IAeI,cAAY,MAA0B;QAClC,IAAI,CAAC,YAAY,GAAG,MAAM,CAAA;QAC1B,IAAI,CAAC,eAAe,GAAG,yBAAkB,MAAM,CAAC,SAAS,CAAE,CAAA;IAC/D,CAAC;IAEM,sBAAO,GAAd,UAAe,IAAmB;QAC9B,IAAI,CAAC,IAAI,GAAG,IAAI,CAAA;IACpB,CAAC;IAED;;;;;;;OAOG;IACU,6BAAc,GAA3B,UAA4B,SAAmC;;;;;gBACrD,OAAO,GAAG,IAAA,oBAAU,GAAE,CAAA;gBAC5B,IAAI,OAAO,SAAS,KAAK,WAAW;oBAAE,sBAAM;gBAC5C,IAAI,OAAO,KAAK,eAAO,CAAC,GAAG,EAAE,CAAC;oBAC1B,YA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AS,CAAC,kBAAkB,EAAE,CAAC;YACtC,IAAA,KAA4B,SAAS,CAAC,kBAAkB,EAA9C,GAAG,YAAA,EAAE,QAAQ,cAAiC,CAAA;YAE9D,OAAO;gBACH,GAAG,KAAA;gBACH,QAAQ,UAAA;gBACR,UAAU,EAAE,wBAAgB,CAAC,SAAS;aACzC,CAAA;QACL,CAAC;QAED,OAAO,EAAE,UAAU,EAAE,wBAAgB,CAAC,UAAU,EAAE,CAAA;IACtD,CAAC;IACL,WAAC;AAAD,CAAC,AApOD,IAoOC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@retter/sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.10.0",
|
|
4
4
|
"description": "Client sdk for retter.io",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -20,11 +20,11 @@
|
|
|
20
20
|
"license": "ISC",
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"@types/js-cookie": "3.0.6",
|
|
23
|
-
"axios": "1.
|
|
24
|
-
"firebase": "10.
|
|
23
|
+
"axios": "1.13.6",
|
|
24
|
+
"firebase": "12.10.0",
|
|
25
25
|
"js-cookie": "3.0.5",
|
|
26
|
-
"jwt-decode": "
|
|
27
|
-
"rxjs": "
|
|
26
|
+
"jwt-decode": "4.0.0",
|
|
27
|
+
"rxjs": "7.8.2"
|
|
28
28
|
},
|
|
29
29
|
"scripts": {
|
|
30
30
|
"build": "tsc && webpack",
|