@microsoft/applicationinsights-offlinechannel-js 0.3.0-nightly3.2406-07 → 0.3.0-nightly3.2406-08
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/dist/es5/applicationinsights-offlinechannel-js.js +25 -11
- package/dist/es5/applicationinsights-offlinechannel-js.js.map +1 -1
- package/dist/es5/applicationinsights-offlinechannel-js.min.js +2 -2
- package/dist/es5/applicationinsights-offlinechannel-js.min.js.map +1 -1
- package/dist-es5/Helpers/Utils.js +1 -1
- package/dist-es5/InMemoryBatch.js +1 -1
- package/dist-es5/Interfaces/IInMemoryBatch.js +1 -1
- package/dist-es5/Interfaces/IOfflineBatch.js +1 -1
- package/dist-es5/Interfaces/IOfflineIndexDb.js +1 -1
- package/dist-es5/Interfaces/IOfflineProvider.js +1 -1
- package/dist-es5/Interfaces/ISender.js +1 -1
- package/dist-es5/OfflineBatchHandler.js +1 -1
- package/dist-es5/OfflineChannel.js +17 -7
- package/dist-es5/OfflineChannel.js.map +1 -1
- package/dist-es5/PayloadHelper.js +1 -1
- package/dist-es5/Providers/IndexDbHelper.js +1 -1
- package/dist-es5/Providers/IndexDbProvider.js +8 -3
- package/dist-es5/Providers/IndexDbProvider.js.map +1 -1
- package/dist-es5/Providers/WebStorageProvider.js +1 -1
- package/dist-es5/Sender.js +1 -1
- package/dist-es5/__DynamicConstants.js +3 -3
- package/dist-es5/__DynamicConstants.js.map +1 -1
- package/dist-es5/applicationinsights-offlinechannel-js.js +1 -1
- package/package.json +3 -3
- package/types/applicationinsights-offlinechannel-js.d.ts +1 -1
- package/types/applicationinsights-offlinechannel-js.namespaced.d.ts +52 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_ENDPOINT = \"endpoint\"; // Count: 4\r\nexport var _DYN_ADD_EVENT = \"addEvent\"; // Count: 8\r\nexport var _DYN_COUNT = \"count\"; // Count: 5\r\nexport var _DYN_PUSH = \"push\"; // Count: 18\r\nexport var _DYN_LENGTH = \"length\"; // Count: 50\r\nexport var _DYN_CLEAR = \"clear\"; // Count: 5\r\nexport var _DYN_GET_ITEMS = \"getItems\"; // Count: 4\r\nexport var _DYN_SPLIT = \"split\"; // Count: 5\r\nexport var _DYN_SPLICE = \"splice\"; // Count: 4\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 11\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 6\r\nexport var _DYN_ITEM_CTX = \"itemCtx\"; // Count: 4\r\nexport var _DYN_STORAGE_CONFIG = \"storageConfig\"; // Count: 4\r\nexport var _DYN_VALUE = \"value\"; // Count: 12\r\nexport var _DYN_REJECTED = \"rejected\"; // Count: 6\r\nexport var _DYN_SEND_NEXT_BATCH = \"sendNextBatch\"; // Count: 3\r\nexport var _DYN_GET_NEXT_BATCH = \"getNextBatch\"; // Count: 5\r\nexport var _DYN_REMOVE_EVENTS = \"removeEvents\"; // Count: 3\r\nexport var _DYN_DATA = \"data\"; // Count: 11\r\nexport var _DYN_SEND_POST = \"sendPOST\"; // Count: 3\r\nexport var _DYN_ATTEMP_CNT = \"attempCnt\"; // Count: 4\r\nexport var _DYN_STATE = \"state\"; // Count: 9\r\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 6\r\nexport var _DYN_IS_ARR = \"isArr\"; // Count: 5\r\nexport var _DYN_INDEX_OF = \"indexOf\"; // Count: 9\r\nexport var _DYN_IS_ONLINE = \"isOnline\"; // Count: 3\r\nexport var _DYN_CANCEL = \"cancel\"; // Count: 5\r\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 3\r\nexport var _DYN_PERSISTENCE = \"persistence\"; // Count: 8\r\nexport var _DYN_ONUNLOAD_FLUSH = \"onunloadFlush\"; // Count: 3\r\nexport var _DYN_BATCH_HANDLER = \"batchHandler\"; // Count:
|
|
1
|
+
{"version":3,"file":"__DynamicConstants.js.map","sources":["__DynamicConstants.js"],"sourcesContent":["// Copyright (c) Microsoft Corporation. All rights reserved.\r\n// Licensed under the MIT License.\r\n// @skip-file-minify\r\n// ##############################################################\r\n// AUTO GENERATED FILE: This file is Auto Generated during build.\r\n// ##############################################################\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\n// Note: DON'T Export these const from the package as we are still targeting ES3 this will export a mutable variables that someone could change!!!\r\n// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!\r\nexport var _DYN_ENDPOINT = \"endpoint\"; // Count: 4\r\nexport var _DYN_ADD_EVENT = \"addEvent\"; // Count: 8\r\nexport var _DYN_COUNT = \"count\"; // Count: 5\r\nexport var _DYN_PUSH = \"push\"; // Count: 18\r\nexport var _DYN_LENGTH = \"length\"; // Count: 50\r\nexport var _DYN_CLEAR = \"clear\"; // Count: 5\r\nexport var _DYN_GET_ITEMS = \"getItems\"; // Count: 4\r\nexport var _DYN_SPLIT = \"split\"; // Count: 5\r\nexport var _DYN_SPLICE = \"splice\"; // Count: 4\r\nexport var _DYN_INITIALIZE = \"initialize\"; // Count: 11\r\nexport var _DYN_DIAG_LOG = \"diagLog\"; // Count: 6\r\nexport var _DYN_ITEM_CTX = \"itemCtx\"; // Count: 4\r\nexport var _DYN_STORAGE_CONFIG = \"storageConfig\"; // Count: 4\r\nexport var _DYN_VALUE = \"value\"; // Count: 12\r\nexport var _DYN_REJECTED = \"rejected\"; // Count: 6\r\nexport var _DYN_SEND_NEXT_BATCH = \"sendNextBatch\"; // Count: 3\r\nexport var _DYN_GET_NEXT_BATCH = \"getNextBatch\"; // Count: 5\r\nexport var _DYN_REMOVE_EVENTS = \"removeEvents\"; // Count: 3\r\nexport var _DYN_DATA = \"data\"; // Count: 11\r\nexport var _DYN_SEND_POST = \"sendPOST\"; // Count: 3\r\nexport var _DYN_ATTEMP_CNT = \"attempCnt\"; // Count: 4\r\nexport var _DYN_STATE = \"state\"; // Count: 9\r\nexport var _DYN_TEARDOWN = \"teardown\"; // Count: 6\r\nexport var _DYN_IS_ARR = \"isArr\"; // Count: 5\r\nexport var _DYN_INDEX_OF = \"indexOf\"; // Count: 9\r\nexport var _DYN_IS_ONLINE = \"isOnline\"; // Count: 3\r\nexport var _DYN_CANCEL = \"cancel\"; // Count: 5\r\nexport var _DYN_PROCESS_NEXT = \"processNext\"; // Count: 3\r\nexport var _DYN_PERSISTENCE = \"persistence\"; // Count: 8\r\nexport var _DYN_ONUNLOAD_FLUSH = \"onunloadFlush\"; // Count: 3\r\nexport var _DYN_BATCH_HANDLER = \"batchHandler\"; // Count: 5\r\nexport var _DYN_MIN_PERSISTENCE_CACH0 = \"minPersistenceCacheLevel\"; // Count: 2\r\nexport var _DYN_REFRESH = \"refresh\"; // Count: 4\r\nexport var _DYN_CREATE_ONE_DSPAYLOAD = \"createOneDSPayload\"; // Count: 2\r\nexport var _DYN_CRITICAL_CNT = \"criticalCnt\"; // Count: 8\r\nexport var _DYN_IS_COMPLETELY_IDLE = \"isCompletelyIdle\"; // Count: 5\r\nexport var _DYN_INSTRUMENTATION_KEY = \"instrumentationKey\"; // Count: 4\r\nexport var _DYN_GET_OFFLINE_SUPPORT = \"getOfflineSupport\"; // Count: 2\r\nexport var _DYN_OVERRIDE_INSTRUMENTA1 = \"overrideInstrumentationKey\"; // Count: 2\r\nexport var _DYN_NOTIFICATION_MGR = \"notificationMgr\"; // Count: 3\r\nexport var _DYN_TO_STRING = \"toString\"; // Count: 5\r\nexport var _DYN_ENABLE_SEND_PROMISE = \"enableSendPromise\"; // Count: 2\r\nexport var _DYN_CHAR_CODE_AT = \"charCodeAt\"; // Count: 3\r\nexport var _DYN_CHAR_AT = \"charAt\"; // Count: 8\r\nexport var _DYN_FROM_CHAR_CODE = \"fromCharCode\"; // Count: 3\r\nexport var _DYN_GET_TIME = \"getTime\"; // Count: 5\r\nexport var _DYN_NAME = \"name\"; // Count: 7\r\nexport var _DYN_DB_HDL = \"dbHdl\"; // Count: 7\r\nexport var _DYN_IS_AVAILABLE = \"isAvailable\"; // Count: 8\r\nexport var _DYN_TRANSACTION = \"transaction\"; // Count: 5\r\nexport var _DYN_OPEN_STORE = \"openStore\"; // Count: 3\r\nexport var _DYN_OPEN_CURSOR = \"openCursor\"; // Count: 3\r\nexport var _DYN_DB_NAME = \"dbName\"; // Count: 5\r\nexport var _DYN_REMOVE = \"remove\"; // Count: 4\r\nexport var _DYN_ONERROR = \"onerror\"; // Count: 9\r\nexport var _DYN_ONSUCCESS = \"onsuccess\"; // Count: 7\r\nexport var _DYN_THEN = \"then\"; // Count: 12\r\nexport var _DYN_KEY_RANGE = \"keyRange\"; // Count: 3\r\nexport var _DYN_CONTINUE = \"continue\"; // Count: 7\r\nexport var _DYN_SUBSTRING = \"substring\"; // Count: 3\r\nexport var _DYN_STORAGE_KEY_PREFIX = \"storageKeyPrefix\"; // Count: 2\r\nexport var _DYN_IN_STORAGE_MAX_TIME = \"inStorageMaxTime\"; // Count: 2\r\nexport var _DYN__EVENTS_TO_DROP_PER_2 = \"EventsToDropPerTime\"; // Count: 2\r\nexport var _DYN_MAX_CRITICAL_EVTS_DR3 = \"maxCriticalEvtsDropCnt\"; // Count: 2\r\nexport var _DYN_SUPPORTS_SYNC_REQUES4 = \"supportsSyncRequests\"; // Count: 2\r\nexport var _DYN_REMOVE_ITEM = \"removeItem\"; // Count: 3\r\nexport var _DYN_EVTS = \"evts\"; // Count: 6\r\nexport var _DYN_LAST_ACCESS_TIME = \"lastAccessTime\"; // Count: 3\r\n//# sourceMappingURL=__DynamicConstants.js.map"],"names":[],"mappings":";;;;AAA4D;AAC1B;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Offline Channel, 0.3.0-nightly3.2406-
|
|
2
|
+
* Application Insights JavaScript SDK - Offline Channel, 0.3.0-nightly3.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
export { BatchSendStatus, BatchStoreStatus, StorageType } from "./Interfaces/IOfflineBatch";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-offlinechannel-js",
|
|
3
|
-
"version": "0.3.0-nightly3.2406-
|
|
3
|
+
"version": "0.3.0-nightly3.2406-08",
|
|
4
4
|
"description": "Microsoft Application Insights JavaScript SDK Offline Channel",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -28,8 +28,8 @@
|
|
|
28
28
|
"dependencies": {
|
|
29
29
|
"@microsoft/dynamicproto-js": "^2.0.3",
|
|
30
30
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
31
|
-
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-
|
|
32
|
-
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-
|
|
31
|
+
"@microsoft/applicationinsights-core-js": "3.3.0-nightly3.2406-08",
|
|
32
|
+
"@microsoft/applicationinsights-common": "3.3.0-nightly3.2406-08",
|
|
33
33
|
"@nevware21/ts-utils": ">= 0.11.1 < 2.x",
|
|
34
34
|
"@nevware21/ts-async": ">= 0.5.1 < 2.x"
|
|
35
35
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK Offline Channel, 0.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK Offline Channel, 0.3.0-nightly3.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK Offline Channel, 0.3.0-nightly3.2406-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK Offline Channel, 0.3.0-nightly3.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -122,6 +122,23 @@ declare namespace ApplicationInsights {
|
|
|
122
122
|
|
|
123
123
|
type DistributedTracingModes = number | eDistributedTracingModes;
|
|
124
124
|
|
|
125
|
+
const enum eActiveStatus {
|
|
126
|
+
NONE = 0,
|
|
127
|
+
/**
|
|
128
|
+
* inactive status means there might be rejected ikey/endpoint promises or ikey/endpoint resolved is not valid
|
|
129
|
+
*/
|
|
130
|
+
INACTIVE = 1,
|
|
131
|
+
/**
|
|
132
|
+
* active mean ikey/endpoint promises is resolved and initializing with ikey/endpoint is successful
|
|
133
|
+
*/
|
|
134
|
+
ACTIVE = 2,
|
|
135
|
+
/**
|
|
136
|
+
* Waiting for promises to be resolved
|
|
137
|
+
* NOTE: if status is set to be pending, incoming changes will be dropped until pending status is removed
|
|
138
|
+
*/
|
|
139
|
+
PENDING = 3
|
|
140
|
+
}
|
|
141
|
+
|
|
125
142
|
const enum eBatchSendStatus {
|
|
126
143
|
Complete = 1,
|
|
127
144
|
Retry = 2,
|
|
@@ -238,7 +255,8 @@ declare namespace ApplicationInsights {
|
|
|
238
255
|
DynamicConfigException = 108,
|
|
239
256
|
DefaultThrottleMsgKey = 109,
|
|
240
257
|
CdnDeprecation = 110,
|
|
241
|
-
SdkLdrUpdate = 111
|
|
258
|
+
SdkLdrUpdate = 111,
|
|
259
|
+
InitPromiseException = 112
|
|
242
260
|
}
|
|
243
261
|
|
|
244
262
|
const enum eLoggingSeverity {
|
|
@@ -493,6 +511,21 @@ declare namespace ApplicationInsights {
|
|
|
493
511
|
* Function used to identify the get w parameter used to identify status bit to some channels
|
|
494
512
|
*/
|
|
495
513
|
getWParam: () => number;
|
|
514
|
+
/**
|
|
515
|
+
* Watches and tracks status of initialization process
|
|
516
|
+
* @returns ActiveStatus
|
|
517
|
+
* @since 3.3.0
|
|
518
|
+
* If returned status is active, it means initialization process is completed.
|
|
519
|
+
* If returned status is pending, it means the initialization process is waiting for promieses to be resolved.
|
|
520
|
+
* If returned status is inactive, it means ikey is invalid or can 't get ikey or enpoint url from promsises.
|
|
521
|
+
*/
|
|
522
|
+
activeStatus?: () => eActiveStatus | number;
|
|
523
|
+
/**
|
|
524
|
+
* Set Active Status to pending, which will block the incoming changes until internal promises are resolved
|
|
525
|
+
* @internal Internal use
|
|
526
|
+
* @since 3.3.0
|
|
527
|
+
*/
|
|
528
|
+
_setPendingStatus?: () => void;
|
|
496
529
|
}
|
|
497
530
|
|
|
498
531
|
interface IBaseProcessingContext {
|
|
@@ -1004,11 +1037,11 @@ declare namespace ApplicationInsights {
|
|
|
1004
1037
|
/**
|
|
1005
1038
|
* Instrumentation key of resource. Either this or connectionString must be specified.
|
|
1006
1039
|
*/
|
|
1007
|
-
instrumentationKey?: string
|
|
1040
|
+
instrumentationKey?: string | IPromise<string>;
|
|
1008
1041
|
/**
|
|
1009
1042
|
* Connection string of resource. Either this or instrumentationKey must be specified.
|
|
1010
1043
|
*/
|
|
1011
|
-
connectionString?: string
|
|
1044
|
+
connectionString?: string | IPromise<string>;
|
|
1012
1045
|
/**
|
|
1013
1046
|
* Set the timer interval (in ms) for internal logging queue, this is the
|
|
1014
1047
|
* amount of time to wait after logger.queue messages are detected to be sent.
|
|
@@ -1052,7 +1085,7 @@ declare namespace ApplicationInsights {
|
|
|
1052
1085
|
/**
|
|
1053
1086
|
* Endpoint where telemetry data is sent
|
|
1054
1087
|
*/
|
|
1055
|
-
endpointUrl?: string
|
|
1088
|
+
endpointUrl?: string | IPromise<string>;
|
|
1056
1089
|
/**
|
|
1057
1090
|
* Extension configs loaded in SDK
|
|
1058
1091
|
*/
|
|
@@ -1154,6 +1187,20 @@ declare namespace ApplicationInsights {
|
|
|
1154
1187
|
* @defaultValue undefined
|
|
1155
1188
|
*/
|
|
1156
1189
|
featureOptIn?: IFeatureOptIn;
|
|
1190
|
+
/**
|
|
1191
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1192
|
+
* this config is to manually set timeout for those promises.
|
|
1193
|
+
* Default: 50000ms
|
|
1194
|
+
* @since 3.3.0
|
|
1195
|
+
*/
|
|
1196
|
+
initTimeOut?: number;
|
|
1197
|
+
/**
|
|
1198
|
+
* If your connection string, instrumentation key and endpoint url are promises,
|
|
1199
|
+
* this config is to manually set in memory proxy track calls count limit before promises finished.
|
|
1200
|
+
* Default: 100
|
|
1201
|
+
* @since 3.3.0
|
|
1202
|
+
*/
|
|
1203
|
+
initInMemoMaxSize?: number;
|
|
1157
1204
|
}
|
|
1158
1205
|
|
|
1159
1206
|
interface ICookieMgr {
|