Skip to content

Commit 6020eb5

Browse files
committed
rename log
1 parent ae169e8 commit 6020eb5

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+70
-83
lines changed

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,12 +84,12 @@
8484
},
8585
{
8686
"path": "./build/releases/OneSignalSDK.page.es6.js",
87-
"limit": "45.63 kB",
87+
"limit": "46.153 kB",
8888
"gzip": true
8989
},
9090
{
9191
"path": "./build/releases/OneSignalSDK.sw.js",
92-
"limit": "13.442 kB",
92+
"limit": "13.4 kB",
9393
"gzip": true
9494
},
9595
{

src/core/executors/CustomEventOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getResponseStatusType,
88
ResponseStatusType,
99
} from 'src/shared/helpers/network';
10-
import { debug } from 'src/shared/libraries/log2';
10+
import { debug } from 'src/shared/libraries/log';
1111
import { VERSION } from 'src/shared/utils/env';
1212
import { OPERATION_NAME } from '../constants';
1313
import { Operation } from '../operations/Operation';

src/core/executors/IdentityOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getResponseStatusType,
99
ResponseStatusType,
1010
} from 'src/shared/helpers/network';
11-
import { debug } from 'src/shared/libraries/log2';
11+
import { debug } from 'src/shared/libraries/log';
1212
import { IdentityConstants, OPERATION_NAME } from '../constants';
1313
import { type IdentityModelStore } from '../modelStores/IdentityModelStore';
1414
import { type NewRecordsState } from '../operationRepo/NewRecordsState';

src/core/executors/LoginUserOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
getResponseStatusType,
99
ResponseStatusType,
1010
} from 'src/shared/helpers/network';
11-
import { debug, error } from 'src/shared/libraries/log2';
11+
import { debug, error } from 'src/shared/libraries/log';
1212
import { checkAndTriggerUserChanged } from 'src/shared/listeners';
1313
import { IdentityConstants, OPERATION_NAME } from '../constants';
1414
import { type IPropertiesModelKeys } from '../models/PropertiesModel';

src/core/executors/RefreshUserOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import {
33
ResponseStatusType,
44
} from 'src/shared/helpers/network';
55
import { isPushSubscriptionType } from 'src/shared/helpers/subscription';
6-
import { debug } from 'src/shared/libraries/log2';
6+
import { debug } from 'src/shared/libraries/log';
77
import { NotificationType } from 'src/shared/subscriptions/constants';
88
import { IdentityConstants, OPERATION_NAME } from '../constants';
99
import { IdentityModel } from '../models/IdentityModel';

src/core/executors/SubscriptionOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import {
77
getResponseStatusType,
88
ResponseStatusType,
99
} from 'src/shared/helpers/network';
10-
import { debug } from 'src/shared/libraries/log2';
10+
import { debug } from 'src/shared/libraries/log';
1111
import { IdentityConstants, OPERATION_NAME } from '../constants';
1212
import { type SubscriptionModelStore } from '../modelStores/SubscriptionModelStore';
1313
import { type NewRecordsState } from '../operationRepo/NewRecordsState';

src/core/executors/UpdateUserOperationExecutor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import {
22
getResponseStatusType,
33
ResponseStatusType,
44
} from 'src/shared/helpers/network';
5-
import { debug } from 'src/shared/libraries/log2';
5+
import { debug } from 'src/shared/libraries/log';
66
import { IdentityConstants, OPERATION_NAME } from '../constants';
77
import { type IPropertiesModelKeys } from '../models/PropertiesModel';
88
import { type IdentityModelStore } from '../modelStores/IdentityModelStore';

src/core/modelRepo/OperationModelStore.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import type { IDBStoreName } from 'src/shared/database/types';
2-
import { error } from 'src/shared/libraries/log2';
2+
import { error } from 'src/shared/libraries/log';
33
import { OPERATION_NAME } from '../constants';
44
import { CreateSubscriptionOperation } from '../operations/CreateSubscriptionOperation';
55
import { DeleteAliasOperation } from '../operations/DeleteAliasOperation';
@@ -104,9 +104,7 @@ export class OperationModelStore extends ModelStore<Operation> {
104104

105105
// Must have onesignalId if it is not one of the excluded operations above
106106
if (!object.onesignalId && !excluded.has(operationName)) {
107-
error(
108-
`${operationName} jsonObject must have 'onesignalId' attribute`,
109-
);
107+
error(`${operationName} jsonObject must have 'onesignalId' attribute`);
110108
return false;
111109
}
112110

src/core/operationRepo/OperationRepo.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { APP_ID, ONESIGNAL_ID, SUB_ID } from '__test__/constants';
22
import { db } from 'src/shared/database/client';
33
import type { IndexedDBSchema } from 'src/shared/database/types';
44
import { setConsentRequired } from 'src/shared/helpers/localStorage';
5-
import * as Log from 'src/shared/libraries/log2';
5+
import * as Log from 'src/shared/libraries/log';
66
import { SubscriptionType } from 'src/shared/subscriptions/constants';
77
import { describe, expect, type Mock, vi } from 'vitest';
88
import { OperationModelStore } from '../modelRepo/OperationModelStore';

src/core/operationRepo/OperationRepo.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
} from 'src/core/types/operation';
77
import { db } from 'src/shared/database/client';
88
import { delay } from 'src/shared/helpers/general';
9-
import { debug, error } from 'src/shared/libraries/log2';
9+
import { debug, error } from 'src/shared/libraries/log';
1010
import { type OperationModelStore } from '../modelRepo/OperationModelStore';
1111
import { GroupComparisonType, type Operation } from '../operations/Operation';
1212
import {

0 commit comments

Comments
 (0)