@medipass/web-sdk 11.34.0 → 11.36.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/CHANGELOG.md +22 -0
- package/lib/index.js +3 -3
- package/lib/{regions-7b23080d.js → regions-ed54f163.js} +1 -1
- package/lib/resources/accounts.js +3 -3
- package/lib/resources/actions.js +3 -3
- package/lib/resources/api-keys.js +3 -3
- package/lib/resources/applications.js +3 -3
- package/lib/resources/attachments.js +3 -3
- package/lib/resources/auth.js +3 -3
- package/lib/resources/bulk-uploads.js +3 -3
- package/lib/resources/business-profiles.js +3 -3
- package/lib/resources/businesses.js +3 -3
- package/lib/resources/claim-items.js +3 -3
- package/lib/resources/devices.js +3 -3
- package/lib/resources/doc-accounts.js +3 -3
- package/lib/resources/documents.js +3 -3
- package/lib/resources/emails.js +3 -3
- package/lib/resources/form-application-templates.js +3 -3
- package/lib/resources/form-applications.js +5 -3
- package/lib/resources/form-applications.js.flow +21 -0
- package/lib/resources/forms.js +3 -3
- package/lib/resources/funder-services.js +3 -3
- package/lib/resources/funder-settings.js +3 -3
- package/lib/resources/funders.js +3 -3
- package/lib/resources/futures.js +3 -3
- package/lib/resources/health-fund-accounts.js +3 -3
- package/lib/resources/health-fund-settings.js +3 -3
- package/lib/resources/healthfunds.js +3 -3
- package/lib/resources/icditems.js +3 -3
- package/lib/resources/invoice-scans.js +3 -3
- package/lib/resources/jhcs.js +3 -3
- package/lib/resources/kyc.js +3 -3
- package/lib/resources/logs.js +3 -3
- package/lib/resources/members.js +3 -3
- package/lib/resources/message-mappings.js +3 -3
- package/lib/resources/minions.js +3 -3
- package/lib/resources/modalities.js +3 -3
- package/lib/resources/notes.js +3 -3
- package/lib/resources/onboarding-applications.js +3 -3
- package/lib/resources/onboarding-requests.js +3 -3
- package/lib/resources/ops.js +3 -3
- package/lib/resources/organisations.js +3 -3
- package/lib/resources/partners.js +3 -3
- package/lib/resources/patients.js +3 -3
- package/lib/resources/payments.js +3 -3
- package/lib/resources/pms.js +3 -3
- package/lib/resources/practice-profiles.js +3 -3
- package/lib/resources/practice-types.js +3 -3
- package/lib/resources/practices.js +3 -3
- package/lib/resources/products.js +3 -3
- package/lib/resources/professional-categories.js +3 -3
- package/lib/resources/provider-number-types.js +3 -3
- package/lib/resources/provider-registration-types.js +3 -3
- package/lib/resources/provider-requests.js +3 -3
- package/lib/resources/provider-types.js +3 -3
- package/lib/resources/ref-sources.js +3 -3
- package/lib/resources/risk.js +3 -3
- package/lib/resources/rnas.js +3 -3
- package/lib/resources/roles.js +3 -3
- package/lib/resources/self-checkout-sessions.js +3 -3
- package/lib/resources/services.js +3 -3
- package/lib/resources/settlements.js +3 -3
- package/lib/resources/sign-up.js +3 -3
- package/lib/resources/specialties.js +3 -3
- package/lib/resources/staff-profiles.js +3 -3
- package/lib/resources/staff.js +3 -3
- package/lib/resources/statistics.js +3 -3
- package/lib/resources/subscriptions.js +3 -3
- package/lib/resources/terminals.js +3 -3
- package/lib/resources/transaction-export.js +3 -3
- package/lib/resources/transactions.js +3 -3
- package/lib/resources/triggers.js +3 -3
- package/lib/resources/vendors.js +3 -3
- package/lib/resources/verify.js +3 -3
- package/lib/resources/workers.js +3 -3
- package/lib/resources/workflow-exceptions.js +3 -3
- package/lib/services/aws.js +3 -3
- package/lib/services/storage.js +1 -1
- package/lib/services/version.js +3 -3
- package/lib/{staff-94979e06.js → staff-6c747752.js} +204 -157
- package/lib/{storage-4b403caa.js → storage-16fd26f8.js} +121 -153
- package/lib/utils/application.js +3 -3
- package/lib/utils/professions.js +3 -3
- package/lib/utils/regions.js +2 -2
- package/lib/utils/request.js +3 -3
- package/lib/utils/staff.js +3 -3
- package/package.json +3 -3
|
@@ -9,52 +9,55 @@ var sessionStorage = _interopDefault(require('store/storages/sessionStorage'));
|
|
|
9
9
|
var masked = _interopDefault(require('masked'));
|
|
10
10
|
var sensitiveKeys = require('@medipass/utils/sensitive-keys');
|
|
11
11
|
|
|
12
|
-
function unwrapExports (x) {
|
|
13
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
12
|
function createCommonjsModule(fn, module) {
|
|
17
13
|
return module = { exports: {} }, fn(module, module.exports), module.exports;
|
|
18
14
|
}
|
|
19
15
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
var
|
|
31
|
-
var
|
|
32
|
-
var
|
|
33
|
-
var
|
|
34
|
-
|
|
35
|
-
var
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
16
|
+
/** @license React v16.13.1
|
|
17
|
+
* react-is.production.min.js
|
|
18
|
+
*
|
|
19
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
20
|
+
*
|
|
21
|
+
* This source code is licensed under the MIT license found in the
|
|
22
|
+
* LICENSE file in the root directory of this source tree.
|
|
23
|
+
*/
|
|
24
|
+
var b="function"===typeof Symbol&&Symbol.for,c=b?Symbol.for("react.element"):60103,d=b?Symbol.for("react.portal"):60106,e=b?Symbol.for("react.fragment"):60107,f=b?Symbol.for("react.strict_mode"):60108,g=b?Symbol.for("react.profiler"):60114,h=b?Symbol.for("react.provider"):60109,k=b?Symbol.for("react.context"):60110,l=b?Symbol.for("react.async_mode"):60111,m=b?Symbol.for("react.concurrent_mode"):60111,n=b?Symbol.for("react.forward_ref"):60112,p=b?Symbol.for("react.suspense"):60113,q=b?
|
|
25
|
+
Symbol.for("react.suspense_list"):60120,r=b?Symbol.for("react.memo"):60115,t=b?Symbol.for("react.lazy"):60116,v=b?Symbol.for("react.block"):60121,w=b?Symbol.for("react.fundamental"):60117,x=b?Symbol.for("react.responder"):60118,y=b?Symbol.for("react.scope"):60119;
|
|
26
|
+
function z(a){if("object"===typeof a&&null!==a){var u=a.$$typeof;switch(u){case c:switch(a=a.type,a){case l:case m:case e:case g:case f:case p:return a;default:switch(a=a&&a.$$typeof,a){case k:case n:case t:case r:case h:return a;default:return u}}case d:return u}}}function A(a){return z(a)===m}var AsyncMode=l;var ConcurrentMode=m;var ContextConsumer=k;var ContextProvider=h;var Element=c;var ForwardRef=n;var Fragment=e;var Lazy=t;var Memo=r;var Portal=d;
|
|
27
|
+
var Profiler=g;var StrictMode=f;var Suspense=p;var isAsyncMode=function(a){return A(a)||z(a)===l};var isConcurrentMode=A;var isContextConsumer=function(a){return z(a)===k};var isContextProvider=function(a){return z(a)===h};var isElement=function(a){return "object"===typeof a&&null!==a&&a.$$typeof===c};var isForwardRef=function(a){return z(a)===n};var isFragment=function(a){return z(a)===e};var isLazy=function(a){return z(a)===t};
|
|
28
|
+
var isMemo=function(a){return z(a)===r};var isPortal=function(a){return z(a)===d};var isProfiler=function(a){return z(a)===g};var isStrictMode=function(a){return z(a)===f};var isSuspense=function(a){return z(a)===p};
|
|
29
|
+
var isValidElementType=function(a){return "string"===typeof a||"function"===typeof a||a===e||a===m||a===g||a===f||a===p||a===q||"object"===typeof a&&null!==a&&(a.$$typeof===t||a.$$typeof===r||a.$$typeof===h||a.$$typeof===k||a.$$typeof===n||a.$$typeof===w||a.$$typeof===x||a.$$typeof===y||a.$$typeof===v)};var typeOf=z;
|
|
30
|
+
|
|
31
|
+
var reactIs_production_min = {
|
|
32
|
+
AsyncMode: AsyncMode,
|
|
33
|
+
ConcurrentMode: ConcurrentMode,
|
|
34
|
+
ContextConsumer: ContextConsumer,
|
|
35
|
+
ContextProvider: ContextProvider,
|
|
36
|
+
Element: Element,
|
|
37
|
+
ForwardRef: ForwardRef,
|
|
38
|
+
Fragment: Fragment,
|
|
39
|
+
Lazy: Lazy,
|
|
40
|
+
Memo: Memo,
|
|
41
|
+
Portal: Portal,
|
|
42
|
+
Profiler: Profiler,
|
|
43
|
+
StrictMode: StrictMode,
|
|
44
|
+
Suspense: Suspense,
|
|
45
|
+
isAsyncMode: isAsyncMode,
|
|
46
|
+
isConcurrentMode: isConcurrentMode,
|
|
47
|
+
isContextConsumer: isContextConsumer,
|
|
48
|
+
isContextProvider: isContextProvider,
|
|
49
|
+
isElement: isElement,
|
|
50
|
+
isForwardRef: isForwardRef,
|
|
51
|
+
isFragment: isFragment,
|
|
52
|
+
isLazy: isLazy,
|
|
53
|
+
isMemo: isMemo,
|
|
54
|
+
isPortal: isPortal,
|
|
55
|
+
isProfiler: isProfiler,
|
|
56
|
+
isStrictMode: isStrictMode,
|
|
57
|
+
isSuspense: isSuspense,
|
|
58
|
+
isValidElementType: isValidElementType,
|
|
59
|
+
typeOf: typeOf
|
|
60
|
+
};
|
|
58
61
|
|
|
59
62
|
var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
60
63
|
|
|
@@ -63,8 +66,6 @@ var reactIs_development = createCommonjsModule(function (module, exports) {
|
|
|
63
66
|
if (process.env.NODE_ENV !== "production") {
|
|
64
67
|
(function() {
|
|
65
68
|
|
|
66
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
67
|
-
|
|
68
69
|
// The Symbol used to tag the ReactElement-like types. If there is no native Symbol
|
|
69
70
|
// nor polyfill, then a plain number is used for performance.
|
|
70
71
|
var hasSymbol = typeof Symbol === 'function' && Symbol.for;
|
|
@@ -84,70 +85,16 @@ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for('react.suspense') : 0xead1;
|
|
|
84
85
|
var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for('react.suspense_list') : 0xead8;
|
|
85
86
|
var REACT_MEMO_TYPE = hasSymbol ? Symbol.for('react.memo') : 0xead3;
|
|
86
87
|
var REACT_LAZY_TYPE = hasSymbol ? Symbol.for('react.lazy') : 0xead4;
|
|
88
|
+
var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for('react.block') : 0xead9;
|
|
87
89
|
var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for('react.fundamental') : 0xead5;
|
|
88
90
|
var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for('react.responder') : 0xead6;
|
|
89
91
|
var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for('react.scope') : 0xead7;
|
|
90
92
|
|
|
91
93
|
function isValidElementType(type) {
|
|
92
94
|
return typeof type === 'string' || typeof type === 'function' || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
93
|
-
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE);
|
|
95
|
+
type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === 'object' && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
|
|
94
96
|
}
|
|
95
97
|
|
|
96
|
-
/**
|
|
97
|
-
* Forked from fbjs/warning:
|
|
98
|
-
* https://github.com/facebook/fbjs/blob/e66ba20ad5be433eb54423f2b097d829324d9de6/packages/fbjs/src/__forks__/warning.js
|
|
99
|
-
*
|
|
100
|
-
* Only change is we use console.warn instead of console.error,
|
|
101
|
-
* and do nothing when 'console' is not supported.
|
|
102
|
-
* This really simplifies the code.
|
|
103
|
-
* ---
|
|
104
|
-
* Similar to invariant but only logs a warning if the condition is not met.
|
|
105
|
-
* This can be used to log issues in development environments in critical
|
|
106
|
-
* paths. Removing the logging code for production environments will keep the
|
|
107
|
-
* same logic and follow the same code paths.
|
|
108
|
-
*/
|
|
109
|
-
var lowPriorityWarningWithoutStack = function () {};
|
|
110
|
-
|
|
111
|
-
{
|
|
112
|
-
var printWarning = function (format) {
|
|
113
|
-
for (var _len = arguments.length, args = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
114
|
-
args[_key - 1] = arguments[_key];
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
var argIndex = 0;
|
|
118
|
-
var message = 'Warning: ' + format.replace(/%s/g, function () {
|
|
119
|
-
return args[argIndex++];
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
if (typeof console !== 'undefined') {
|
|
123
|
-
console.warn(message);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
try {
|
|
127
|
-
// --- Welcome to debugging React ---
|
|
128
|
-
// This error was thrown as a convenience so that you can use this stack
|
|
129
|
-
// to find the callsite that caused this warning to fire.
|
|
130
|
-
throw new Error(message);
|
|
131
|
-
} catch (x) {}
|
|
132
|
-
};
|
|
133
|
-
|
|
134
|
-
lowPriorityWarningWithoutStack = function (condition, format) {
|
|
135
|
-
if (format === undefined) {
|
|
136
|
-
throw new Error('`lowPriorityWarningWithoutStack(condition, format, ...args)` requires a warning ' + 'message argument');
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
if (!condition) {
|
|
140
|
-
for (var _len2 = arguments.length, args = new Array(_len2 > 2 ? _len2 - 2 : 0), _key2 = 2; _key2 < _len2; _key2++) {
|
|
141
|
-
args[_key2 - 2] = arguments[_key2];
|
|
142
|
-
}
|
|
143
|
-
|
|
144
|
-
printWarning.apply(void 0, [format].concat(args));
|
|
145
|
-
}
|
|
146
|
-
};
|
|
147
|
-
}
|
|
148
|
-
|
|
149
|
-
var lowPriorityWarningWithoutStack$1 = lowPriorityWarningWithoutStack;
|
|
150
|
-
|
|
151
98
|
function typeOf(object) {
|
|
152
99
|
if (typeof object === 'object' && object !== null) {
|
|
153
100
|
var $$typeof = object.$$typeof;
|
|
@@ -208,8 +155,9 @@ var hasWarnedAboutDeprecatedIsAsyncMode = false; // AsyncMode should be deprecat
|
|
|
208
155
|
function isAsyncMode(object) {
|
|
209
156
|
{
|
|
210
157
|
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
211
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
212
|
-
|
|
158
|
+
hasWarnedAboutDeprecatedIsAsyncMode = true; // Using console['warn'] to evade Babel and ESLint
|
|
159
|
+
|
|
160
|
+
console['warn']('The ReactIs.isAsyncMode() alias has been deprecated, ' + 'and will be removed in React 17+. Update your code to use ' + 'ReactIs.isConcurrentMode() instead. It has the exact same API.');
|
|
213
161
|
}
|
|
214
162
|
}
|
|
215
163
|
|
|
@@ -252,7 +200,6 @@ function isSuspense(object) {
|
|
|
252
200
|
return typeOf(object) === REACT_SUSPENSE_TYPE;
|
|
253
201
|
}
|
|
254
202
|
|
|
255
|
-
exports.typeOf = typeOf;
|
|
256
203
|
exports.AsyncMode = AsyncMode;
|
|
257
204
|
exports.ConcurrentMode = ConcurrentMode;
|
|
258
205
|
exports.ContextConsumer = ContextConsumer;
|
|
@@ -266,7 +213,6 @@ exports.Portal = Portal;
|
|
|
266
213
|
exports.Profiler = Profiler;
|
|
267
214
|
exports.StrictMode = StrictMode;
|
|
268
215
|
exports.Suspense = Suspense;
|
|
269
|
-
exports.isValidElementType = isValidElementType;
|
|
270
216
|
exports.isAsyncMode = isAsyncMode;
|
|
271
217
|
exports.isConcurrentMode = isConcurrentMode;
|
|
272
218
|
exports.isContextConsumer = isContextConsumer;
|
|
@@ -280,39 +226,39 @@ exports.isPortal = isPortal;
|
|
|
280
226
|
exports.isProfiler = isProfiler;
|
|
281
227
|
exports.isStrictMode = isStrictMode;
|
|
282
228
|
exports.isSuspense = isSuspense;
|
|
229
|
+
exports.isValidElementType = isValidElementType;
|
|
230
|
+
exports.typeOf = typeOf;
|
|
283
231
|
})();
|
|
284
232
|
}
|
|
285
233
|
});
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
var
|
|
289
|
-
var
|
|
290
|
-
var
|
|
291
|
-
var
|
|
292
|
-
var
|
|
293
|
-
var
|
|
294
|
-
var
|
|
295
|
-
var
|
|
296
|
-
var
|
|
297
|
-
var
|
|
298
|
-
var
|
|
299
|
-
var
|
|
300
|
-
var
|
|
301
|
-
var
|
|
302
|
-
var
|
|
303
|
-
var
|
|
304
|
-
var
|
|
305
|
-
var
|
|
306
|
-
var
|
|
307
|
-
var
|
|
308
|
-
var
|
|
309
|
-
var
|
|
310
|
-
var
|
|
311
|
-
var
|
|
312
|
-
var
|
|
313
|
-
var
|
|
314
|
-
var reactIs_development_27 = reactIs_development.isStrictMode;
|
|
315
|
-
var reactIs_development_28 = reactIs_development.isSuspense;
|
|
234
|
+
var reactIs_development_1 = reactIs_development.AsyncMode;
|
|
235
|
+
var reactIs_development_2 = reactIs_development.ConcurrentMode;
|
|
236
|
+
var reactIs_development_3 = reactIs_development.ContextConsumer;
|
|
237
|
+
var reactIs_development_4 = reactIs_development.ContextProvider;
|
|
238
|
+
var reactIs_development_5 = reactIs_development.Element;
|
|
239
|
+
var reactIs_development_6 = reactIs_development.ForwardRef;
|
|
240
|
+
var reactIs_development_7 = reactIs_development.Fragment;
|
|
241
|
+
var reactIs_development_8 = reactIs_development.Lazy;
|
|
242
|
+
var reactIs_development_9 = reactIs_development.Memo;
|
|
243
|
+
var reactIs_development_10 = reactIs_development.Portal;
|
|
244
|
+
var reactIs_development_11 = reactIs_development.Profiler;
|
|
245
|
+
var reactIs_development_12 = reactIs_development.StrictMode;
|
|
246
|
+
var reactIs_development_13 = reactIs_development.Suspense;
|
|
247
|
+
var reactIs_development_14 = reactIs_development.isAsyncMode;
|
|
248
|
+
var reactIs_development_15 = reactIs_development.isConcurrentMode;
|
|
249
|
+
var reactIs_development_16 = reactIs_development.isContextConsumer;
|
|
250
|
+
var reactIs_development_17 = reactIs_development.isContextProvider;
|
|
251
|
+
var reactIs_development_18 = reactIs_development.isElement;
|
|
252
|
+
var reactIs_development_19 = reactIs_development.isForwardRef;
|
|
253
|
+
var reactIs_development_20 = reactIs_development.isFragment;
|
|
254
|
+
var reactIs_development_21 = reactIs_development.isLazy;
|
|
255
|
+
var reactIs_development_22 = reactIs_development.isMemo;
|
|
256
|
+
var reactIs_development_23 = reactIs_development.isPortal;
|
|
257
|
+
var reactIs_development_24 = reactIs_development.isProfiler;
|
|
258
|
+
var reactIs_development_25 = reactIs_development.isStrictMode;
|
|
259
|
+
var reactIs_development_26 = reactIs_development.isSuspense;
|
|
260
|
+
var reactIs_development_27 = reactIs_development.isValidElementType;
|
|
261
|
+
var reactIs_development_28 = reactIs_development.typeOf;
|
|
316
262
|
|
|
317
263
|
var reactIs = createCommonjsModule(function (module) {
|
|
318
264
|
|
|
@@ -423,12 +369,14 @@ var ReactPropTypesSecret = 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED';
|
|
|
423
369
|
|
|
424
370
|
var ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
425
371
|
|
|
372
|
+
var has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
373
|
+
|
|
426
374
|
var printWarning = function() {};
|
|
427
375
|
|
|
428
376
|
if (process.env.NODE_ENV !== 'production') {
|
|
429
377
|
var ReactPropTypesSecret$1 = ReactPropTypesSecret_1;
|
|
430
378
|
var loggedTypeFailures = {};
|
|
431
|
-
var has =
|
|
379
|
+
var has$1 = has;
|
|
432
380
|
|
|
433
381
|
printWarning = function(text) {
|
|
434
382
|
var message = 'Warning: ' + text;
|
|
@@ -440,7 +388,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
440
388
|
// This error was thrown as a convenience so that you can use this stack
|
|
441
389
|
// to find the callsite that caused this warning to fire.
|
|
442
390
|
throw new Error(message);
|
|
443
|
-
} catch (x) {}
|
|
391
|
+
} catch (x) { /**/ }
|
|
444
392
|
};
|
|
445
393
|
}
|
|
446
394
|
|
|
@@ -458,7 +406,7 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
458
406
|
function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
459
407
|
if (process.env.NODE_ENV !== 'production') {
|
|
460
408
|
for (var typeSpecName in typeSpecs) {
|
|
461
|
-
if (has(typeSpecs, typeSpecName)) {
|
|
409
|
+
if (has$1(typeSpecs, typeSpecName)) {
|
|
462
410
|
var error;
|
|
463
411
|
// Prop type validation may throw. In case they do, we don't want to
|
|
464
412
|
// fail the render phase where it didn't fail before. So we log it.
|
|
@@ -469,7 +417,8 @@ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
|
|
|
469
417
|
if (typeof typeSpecs[typeSpecName] !== 'function') {
|
|
470
418
|
var err = Error(
|
|
471
419
|
(componentName || 'React class') + ': ' + location + ' type `' + typeSpecName + '` is invalid; ' +
|
|
472
|
-
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.'
|
|
420
|
+
'it must be a function, usually from the `prop-types` package, but received `' + typeof typeSpecs[typeSpecName] + '`.' +
|
|
421
|
+
'This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.'
|
|
473
422
|
);
|
|
474
423
|
err.name = 'Invariant Violation';
|
|
475
424
|
throw err;
|
|
@@ -517,7 +466,6 @@ checkPropTypes.resetWarningCache = function() {
|
|
|
517
466
|
|
|
518
467
|
var checkPropTypes_1 = checkPropTypes;
|
|
519
468
|
|
|
520
|
-
var has$1 = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
521
469
|
var printWarning$1 = function() {};
|
|
522
470
|
|
|
523
471
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -618,6 +566,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
618
566
|
// Keep this list in sync with production version in `./factoryWithThrowingShims.js`.
|
|
619
567
|
var ReactPropTypes = {
|
|
620
568
|
array: createPrimitiveTypeChecker('array'),
|
|
569
|
+
bigint: createPrimitiveTypeChecker('bigint'),
|
|
621
570
|
bool: createPrimitiveTypeChecker('boolean'),
|
|
622
571
|
func: createPrimitiveTypeChecker('function'),
|
|
623
572
|
number: createPrimitiveTypeChecker('number'),
|
|
@@ -663,8 +612,9 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
663
612
|
* is prohibitively expensive if they are created too often, such as what
|
|
664
613
|
* happens in oneOfType() for any type before the one that matched.
|
|
665
614
|
*/
|
|
666
|
-
function PropTypeError(message) {
|
|
615
|
+
function PropTypeError(message, data) {
|
|
667
616
|
this.message = message;
|
|
617
|
+
this.data = data && typeof data === 'object' ? data: {};
|
|
668
618
|
this.stack = '';
|
|
669
619
|
}
|
|
670
620
|
// Make `instanceof Error` still work for returned errors.
|
|
@@ -699,7 +649,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
699
649
|
) {
|
|
700
650
|
printWarning$1(
|
|
701
651
|
'You are manually calling a React.PropTypes validation ' +
|
|
702
|
-
'function for the `' + propFullName + '` prop on `' + componentName
|
|
652
|
+
'function for the `' + propFullName + '` prop on `' + componentName + '`. This is deprecated ' +
|
|
703
653
|
'and will throw in the standalone `prop-types` package. ' +
|
|
704
654
|
'You may be seeing this warning due to a third-party PropTypes ' +
|
|
705
655
|
'library. See https://fb.me/react-warning-dont-call-proptypes ' + 'for details.'
|
|
@@ -738,7 +688,10 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
738
688
|
// 'of type `object`'.
|
|
739
689
|
var preciseType = getPreciseType(propValue);
|
|
740
690
|
|
|
741
|
-
return new PropTypeError(
|
|
691
|
+
return new PropTypeError(
|
|
692
|
+
'Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + preciseType + '` supplied to `' + componentName + '`, expected ') + ('`' + expectedType + '`.'),
|
|
693
|
+
{expectedType: expectedType}
|
|
694
|
+
);
|
|
742
695
|
}
|
|
743
696
|
return null;
|
|
744
697
|
}
|
|
@@ -852,7 +805,7 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
852
805
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type ' + ('`' + propType + '` supplied to `' + componentName + '`, expected an object.'));
|
|
853
806
|
}
|
|
854
807
|
for (var key in propValue) {
|
|
855
|
-
if (has
|
|
808
|
+
if (has(propValue, key)) {
|
|
856
809
|
var error = typeChecker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
857
810
|
if (error instanceof Error) {
|
|
858
811
|
return error;
|
|
@@ -882,14 +835,19 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
882
835
|
}
|
|
883
836
|
|
|
884
837
|
function validate(props, propName, componentName, location, propFullName) {
|
|
838
|
+
var expectedTypes = [];
|
|
885
839
|
for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
|
|
886
840
|
var checker = arrayOfTypeCheckers[i];
|
|
887
|
-
|
|
841
|
+
var checkerResult = checker(props, propName, componentName, location, propFullName, ReactPropTypesSecret_1);
|
|
842
|
+
if (checkerResult == null) {
|
|
888
843
|
return null;
|
|
889
844
|
}
|
|
845
|
+
if (checkerResult.data && has(checkerResult.data, 'expectedType')) {
|
|
846
|
+
expectedTypes.push(checkerResult.data.expectedType);
|
|
847
|
+
}
|
|
890
848
|
}
|
|
891
|
-
|
|
892
|
-
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '
|
|
849
|
+
var expectedTypesMessage = (expectedTypes.length > 0) ? ', expected one of type [' + expectedTypes.join(', ') + ']': '';
|
|
850
|
+
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` supplied to ' + ('`' + componentName + '`' + expectedTypesMessage + '.'));
|
|
893
851
|
}
|
|
894
852
|
return createChainableTypeChecker(validate);
|
|
895
853
|
}
|
|
@@ -904,6 +862,13 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
904
862
|
return createChainableTypeChecker(validate);
|
|
905
863
|
}
|
|
906
864
|
|
|
865
|
+
function invalidValidatorError(componentName, location, propFullName, key, type) {
|
|
866
|
+
return new PropTypeError(
|
|
867
|
+
(componentName || 'React class') + ': ' + location + ' type `' + propFullName + '.' + key + '` is invalid; ' +
|
|
868
|
+
'it must be a function, usually from the `prop-types` package, but received `' + type + '`.'
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
|
|
907
872
|
function createShapeTypeChecker(shapeTypes) {
|
|
908
873
|
function validate(props, propName, componentName, location, propFullName) {
|
|
909
874
|
var propValue = props[propName];
|
|
@@ -913,8 +878,8 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
913
878
|
}
|
|
914
879
|
for (var key in shapeTypes) {
|
|
915
880
|
var checker = shapeTypes[key];
|
|
916
|
-
if (
|
|
917
|
-
|
|
881
|
+
if (typeof checker !== 'function') {
|
|
882
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
918
883
|
}
|
|
919
884
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
920
885
|
if (error) {
|
|
@@ -933,16 +898,18 @@ var factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
|
|
|
933
898
|
if (propType !== 'object') {
|
|
934
899
|
return new PropTypeError('Invalid ' + location + ' `' + propFullName + '` of type `' + propType + '` ' + ('supplied to `' + componentName + '`, expected `object`.'));
|
|
935
900
|
}
|
|
936
|
-
// We need to check all keys in case some are required but missing from
|
|
937
|
-
// props.
|
|
901
|
+
// We need to check all keys in case some are required but missing from props.
|
|
938
902
|
var allKeys = objectAssign({}, props[propName], shapeTypes);
|
|
939
903
|
for (var key in allKeys) {
|
|
940
904
|
var checker = shapeTypes[key];
|
|
905
|
+
if (has(shapeTypes, key) && typeof checker !== 'function') {
|
|
906
|
+
return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
|
|
907
|
+
}
|
|
941
908
|
if (!checker) {
|
|
942
909
|
return new PropTypeError(
|
|
943
910
|
'Invalid ' + location + ' `' + propFullName + '` key `' + key + '` supplied to `' + componentName + '`.' +
|
|
944
911
|
'\nBad object: ' + JSON.stringify(props[propName], null, ' ') +
|
|
945
|
-
'\nValid keys: ' +
|
|
912
|
+
'\nValid keys: ' + JSON.stringify(Object.keys(shapeTypes), null, ' ')
|
|
946
913
|
);
|
|
947
914
|
}
|
|
948
915
|
var error = checker(propValue, key, componentName, location, propFullName + '.' + key, ReactPropTypesSecret_1);
|
|
@@ -1118,6 +1085,7 @@ var factoryWithThrowingShims = function() {
|
|
|
1118
1085
|
// Keep this list in sync with production version in `./factoryWithTypeCheckers.js`.
|
|
1119
1086
|
var ReactPropTypes = {
|
|
1120
1087
|
array: shim,
|
|
1088
|
+
bigint: shim,
|
|
1121
1089
|
bool: shim,
|
|
1122
1090
|
func: shim,
|
|
1123
1091
|
number: shim,
|
|
@@ -1168,9 +1136,9 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1168
1136
|
}
|
|
1169
1137
|
});
|
|
1170
1138
|
|
|
1171
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object);
|
|
1139
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
1172
1140
|
|
|
1173
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]
|
|
1141
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
1174
1142
|
var STORAGE_PREFIX = 'medipass-web-sdk';
|
|
1175
1143
|
var PERSIST_KEYS = ['_persist', 'device', 'savedEmail', 'rememberEmail', 'region'];
|
|
1176
1144
|
var bpfrpt_proptype_StoreType = propTypes.oneOf(["default", "session"]);
|
package/lib/utils/application.js
CHANGED
|
@@ -18,8 +18,8 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../storage-
|
|
22
|
-
var request = require('../staff-
|
|
21
|
+
require('../storage-16fd26f8.js');
|
|
22
|
+
var request = require('../staff-6c747752.js');
|
|
23
23
|
require('lodash/omitBy');
|
|
24
24
|
require('lodash/isEmpty');
|
|
25
25
|
require('store/src/store-engine');
|
|
@@ -40,7 +40,7 @@ require('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-ed54f163.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
package/lib/utils/professions.js
CHANGED
|
@@ -18,8 +18,8 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../storage-
|
|
22
|
-
var request = require('../staff-
|
|
21
|
+
require('../storage-16fd26f8.js');
|
|
22
|
+
var request = require('../staff-6c747752.js');
|
|
23
23
|
require('lodash/omitBy');
|
|
24
24
|
require('lodash/isEmpty');
|
|
25
25
|
require('store/src/store-engine');
|
|
@@ -40,7 +40,7 @@ require('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-ed54f163.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
package/lib/utils/regions.js
CHANGED
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
require('@babel/runtime/helpers/defineProperty');
|
|
6
|
-
require('../storage-
|
|
6
|
+
require('../storage-16fd26f8.js');
|
|
7
7
|
require('store/src/store-engine');
|
|
8
8
|
require('store/storages/localStorage');
|
|
9
9
|
require('store/storages/sessionStorage');
|
|
10
10
|
require('masked');
|
|
11
11
|
require('@medipass/utils/sensitive-keys');
|
|
12
12
|
require('js-cookie');
|
|
13
|
-
var regions = require('../regions-
|
|
13
|
+
var regions = require('../regions-ed54f163.js');
|
|
14
14
|
|
|
15
15
|
|
|
16
16
|
|
package/lib/utils/request.js
CHANGED
|
@@ -18,8 +18,8 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../storage-
|
|
22
|
-
var request = require('../staff-
|
|
21
|
+
require('../storage-16fd26f8.js');
|
|
22
|
+
var request = require('../staff-6c747752.js');
|
|
23
23
|
require('lodash/omitBy');
|
|
24
24
|
require('lodash/isEmpty');
|
|
25
25
|
require('store/src/store-engine');
|
|
@@ -40,7 +40,7 @@ require('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-ed54f163.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
package/lib/utils/staff.js
CHANGED
|
@@ -18,8 +18,8 @@ require('./param-error.js');
|
|
|
18
18
|
require('./does-param-exist.js');
|
|
19
19
|
require('@medipass/utils/sentry');
|
|
20
20
|
require('./get-axios-error.js');
|
|
21
|
-
require('../storage-
|
|
22
|
-
var request = require('../staff-
|
|
21
|
+
require('../storage-16fd26f8.js');
|
|
22
|
+
var request = require('../staff-6c747752.js');
|
|
23
23
|
require('lodash/omitBy');
|
|
24
24
|
require('lodash/isEmpty');
|
|
25
25
|
require('store/src/store-engine');
|
|
@@ -40,7 +40,7 @@ require('./base-urls/core.js');
|
|
|
40
40
|
require('./base-urls/risk.js');
|
|
41
41
|
require('./base-urls/index.js');
|
|
42
42
|
require('js-cookie');
|
|
43
|
-
require('../regions-
|
|
43
|
+
require('../regions-ed54f163.js');
|
|
44
44
|
require('lodash/flatten');
|
|
45
45
|
|
|
46
46
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@medipass/web-sdk",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.36.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"scripts": {
|
|
@@ -43,11 +43,11 @@
|
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@babel/plugin-transform-runtime": "7.8.3",
|
|
46
|
-
"@medipass/utils": "^11.
|
|
46
|
+
"@medipass/utils": "^11.66.0",
|
|
47
47
|
"axios-mock-adapter": "1.19.0",
|
|
48
48
|
"flow-copy-source": "2.0.2",
|
|
49
49
|
"query-string": "7.0.0",
|
|
50
50
|
"rimraf": "^2.6.2"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "0e7de8c085a7b1ce20ca1d661873a7b59a38a52e"
|
|
53
53
|
}
|