@authme/core 2.4.10 → 2.4.11

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/index.cjs CHANGED
@@ -49,7 +49,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
49
49
  }
50
50
 
51
51
  var name = "@authme/core";
52
- var version$1 = "2.4.10";
52
+ var version$1 = "2.4.11";
53
53
  var peerDependencies = {
54
54
  "core-js": "^3.6.0"
55
55
  };
@@ -133,7 +133,7 @@ function sendRequest(url, method = 'GET', {
133
133
  try {
134
134
  const normalizedUrl = baseUrl ? new URL(url, baseUrl).toString() : url;
135
135
  resp = requestLoggingFunction ? yield requestLoggingFunction(() => fetch(normalizedUrl.toString(), options), {
136
- runFunction: util.RUN_FUNCTION_NAME.API_REQUEST,
136
+ runFunction: 'api.sendRequest',
137
137
  message: {
138
138
  url: normalizedUrl.toString(),
139
139
  options
@@ -586,6 +586,10 @@ Object.defineProperty(exports, 'ErrorCode', {
586
586
  enumerable: true,
587
587
  get: function () { return util.ErrorCode; }
588
588
  });
589
+ Object.defineProperty(exports, 'debugLog', {
590
+ enumerable: true,
591
+ get: function () { return util.debugLog; }
592
+ });
589
593
  exports.EventListenerService = EventListenerService;
590
594
  exports.TrackingEvent = TrackingEvent;
591
595
  exports.core = core;
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
- import { Storage, getUserAgent, RUN_FUNCTION_NAME, AuthmeError, ErrorCode, STORAGE_KEY, decodeToken, useState, getDeviceInfo, getSystemInfo } from '@authme/util';
2
- export { AuthmeError, ErrorCode } from '@authme/util';
1
+ import { Storage, getUserAgent, AuthmeError, ErrorCode, STORAGE_KEY, decodeToken, useState, getDeviceInfo, getSystemInfo } from '@authme/util';
2
+ export { AuthmeError, ErrorCode, debugLog } from '@authme/util';
3
3
  import 'core-js/modules/es.object.assign.js';
4
4
  import 'core-js/modules/es.regexp.to-string.js';
5
5
  import 'core-js/modules/es.array.iterator.js';
@@ -46,7 +46,7 @@ function __awaiter(thisArg, _arguments, P, generator) {
46
46
  }
47
47
 
48
48
  var name = "@authme/core";
49
- var version$1 = "2.4.10";
49
+ var version$1 = "2.4.11";
50
50
  var peerDependencies = {
51
51
  "core-js": "^3.6.0"
52
52
  };
@@ -130,7 +130,7 @@ function sendRequest(url, method = 'GET', {
130
130
  try {
131
131
  const normalizedUrl = baseUrl ? new URL(url, baseUrl).toString() : url;
132
132
  resp = requestLoggingFunction ? yield requestLoggingFunction(() => fetch(normalizedUrl.toString(), options), {
133
- runFunction: RUN_FUNCTION_NAME.API_REQUEST,
133
+ runFunction: 'api.sendRequest',
134
134
  message: {
135
135
  url: normalizedUrl.toString(),
136
136
  options
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@authme/core",
3
- "version": "2.4.10",
3
+ "version": "2.4.11",
4
4
  "peerDependencies": {
5
5
  "core-js": "^3.6.0",
6
- "@authme/util": "2.4.10",
6
+ "@authme/util": "2.4.11",
7
7
  "rxjs": "7.5.7",
8
8
  "uuid": "8.3.2"
9
9
  },
package/src/index.d.ts CHANGED
@@ -2,6 +2,7 @@ export * from './lib/core';
2
2
  export * from './lib/model';
3
3
  export * from './lib/data-access';
4
4
  export * from './lib/translate';
5
+ export * from './lib/authme-log';
5
6
  export * from './lib/enum/language.enum';
6
7
  export * from './lib/features';
7
8
  export { version } from './lib/version';
@@ -0,0 +1 @@
1
+ export { debugLog } from '@authme/util';