@microsoft/1ds-post-js 4.4.0-nightlybeta3.2602-17 → 4.4.1

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.
Files changed (51) hide show
  1. package/bundle/es5/{ms.post-4.4.0-nightlybeta3.2602-17.gbl.js → ms.post-4.4.1.gbl.js} +137 -130
  2. package/bundle/es5/ms.post-4.4.1.gbl.js.map +1 -0
  3. package/bundle/es5/ms.post-4.4.1.gbl.min.js +7 -0
  4. package/bundle/es5/ms.post-4.4.1.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.post-4.4.1.integrity.json +46 -0
  6. package/bundle/es5/{ms.post-4.4.0-nightlybeta3.2602-17.js → ms.post-4.4.1.js} +137 -130
  7. package/bundle/es5/ms.post-4.4.1.js.map +1 -0
  8. package/bundle/es5/ms.post-4.4.1.min.js +7 -0
  9. package/bundle/es5/ms.post-4.4.1.min.js.map +1 -0
  10. package/bundle/es5/ms.post.gbl.js +136 -129
  11. package/bundle/es5/ms.post.gbl.js.map +1 -1
  12. package/bundle/es5/ms.post.gbl.min.js +2 -2
  13. package/bundle/es5/ms.post.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.post.integrity.json +17 -17
  15. package/bundle/es5/ms.post.js +136 -129
  16. package/bundle/es5/ms.post.js.map +1 -1
  17. package/bundle/es5/ms.post.min.js +2 -2
  18. package/bundle/es5/ms.post.min.js.map +1 -1
  19. package/dist/es5/ms.post.js +134 -127
  20. package/dist/es5/ms.post.js.map +1 -1
  21. package/dist/es5/ms.post.min.js +2 -2
  22. package/dist/es5/ms.post.min.js.map +1 -1
  23. package/dist-es5/BatchNotificationActions.js +1 -1
  24. package/dist-es5/ClockSkewManager.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/EventBatch.js +2 -2
  27. package/dist-es5/EventBatch.js.map +1 -1
  28. package/dist-es5/HttpManager.js +39 -33
  29. package/dist-es5/HttpManager.js.map +1 -1
  30. package/dist-es5/Index.js +1 -1
  31. package/dist-es5/InternalConstants.js +1 -1
  32. package/dist-es5/KillSwitch.js +9 -8
  33. package/dist-es5/KillSwitch.js.map +1 -1
  34. package/dist-es5/PostChannel.js +3 -3
  35. package/dist-es5/PostChannel.js.map +1 -1
  36. package/dist-es5/RetryPolicy.js +1 -1
  37. package/dist-es5/Serializer.js +2 -2
  38. package/dist-es5/Serializer.js.map +1 -1
  39. package/dist-es5/TimeoutOverrideWrapper.js +1 -1
  40. package/dist-es5/__DynamicConstants.js +1 -1
  41. package/dist-es5/typings/XDomainRequest.js +1 -1
  42. package/package.json +64 -67
  43. package/types/1ds-post-js.d.ts +18 -18
  44. package/types/1ds-post-js.namespaced.d.ts +39 -3
  45. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-17.gbl.js.map +0 -1
  46. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-17.gbl.min.js +0 -7
  47. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-17.gbl.min.js.map +0 -1
  48. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-17.integrity.json +0 -46
  49. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-17.js.map +0 -1
  50. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-17.min.js +0 -7
  51. package/bundle/es5/ms.post-4.4.0-nightlybeta3.2602-17.min.js.map +0 -1
package/package.json CHANGED
@@ -1,67 +1,64 @@
1
- {
2
- "name": "@microsoft/1ds-post-js",
3
- "version": "4.4.0-nightlybeta3.2602-17",
4
- "description": "Microsoft Application Insights JavaScript SDK - 1ds-post-channel-js",
5
- "author": "Microsoft Application Insights Team",
6
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
7
- "license": "MIT",
8
- "sideEffects": false,
9
- "scripts": {
10
- "clean": "git clean -xdf",
11
- "build": "npm run build:esm && npm run build:browser && npm run dtsgen && npm run sri",
12
- "build:esm": "grunt 1dsPostBuild",
13
- "build:browser": "npx rollup -c rollup.config.js --bundleConfigAsCjs",
14
- "rebuild": "npm run build",
15
- "ai-min": "grunt 1dsPost-min",
16
- "ai-restore": "grunt 1dsPost-restore",
17
- "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"1DS JS SDK Post Channel\" -oneDs",
18
- "test": "grunt 1dsPostTest",
19
- "mintest": "grunt adsPostMinTest",
20
- "perftest": "",
21
- "makePublicPackage": "node ../../tools/makePublic/makePublicPackage.js ./package.json && npm pack",
22
- "publishPackage": "npm publish",
23
- "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
24
- "npm-pack": "npm pack",
25
- "api-docs": "typedoc"
26
- },
27
- "dependencies": {
28
- "@microsoft/applicationinsights-shims": "3.0.1",
29
- "@microsoft/dynamicproto-js": "^2.0.3",
30
- "@microsoft/1ds-core-js": "4.4.0-nightlybeta3.2602-17",
31
- "@nevware21/ts-utils": ">= 0.12.6 < 2.x",
32
- "@nevware21/ts-async": ">= 0.5.5 < 2.x"
33
- },
34
- "devDependencies": {
35
- "@microsoft/ai-test-framework": "0.0.1",
36
- "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
37
- "@microsoft/applicationinsights-rollup-es5": "1.0.2",
38
- "@microsoft/api-extractor": "^7.40.0",
39
- "globby": "^11.0.0",
40
- "grunt": "^1.6.1",
41
- "sinon": "^7.3.1",
42
- "@rollup/plugin-commonjs": "^24.0.0",
43
- "@rollup/plugin-node-resolve": "^15.0.1",
44
- "@rollup/plugin-replace": "^5.0.2",
45
- "rollup": "^3.20.0",
46
- "rollup-plugin-cleanup": "^3.2.1",
47
- "rollup-plugin-sourcemaps": "^0.6.3",
48
- "typedoc": "^0.26.6",
49
- "typescript": "^4.9.3",
50
- "pako": "^2.0.3"
51
- },
52
- "repository": {
53
- "type": "git",
54
- "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/channels/1ds-post-js"
55
- },
56
- "main": "dist/es5/ms.post.js",
57
- "module": "dist-es5/Index.js",
58
- "types": "types/1ds-post-js.d.ts",
59
- "keywords": [
60
- "1DS",
61
- "Js",
62
- "SDK"
63
- ],
64
- "publishConfig": {
65
- "tag": "nightlybeta3"
66
- }
67
- }
1
+ {
2
+ "name": "@microsoft/1ds-post-js",
3
+ "version": "4.4.1",
4
+ "description": "Microsoft Application Insights JavaScript SDK - 1ds-post-channel-js",
5
+ "author": "Microsoft Application Insights Team",
6
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
7
+ "license": "MIT",
8
+ "sideEffects": false,
9
+ "scripts": {
10
+ "clean": "git clean -xdf",
11
+ "build": "npm run build:esm && npm run build:browser && npm run dtsgen && npm run sri",
12
+ "build:esm": "grunt 1dsPostBuild",
13
+ "build:browser": "npx rollup -c rollup.config.js --bundleConfigAsCjs",
14
+ "rebuild": "npm run build",
15
+ "ai-min": "grunt 1dsPost-min",
16
+ "ai-restore": "grunt 1dsPost-restore",
17
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"1DS JS SDK Post Channel\" -oneDs",
18
+ "test": "grunt 1dsPostTest",
19
+ "mintest": "grunt adsPostMinTest",
20
+ "perftest": "",
21
+ "makePublicPackage": "node ../../tools/makePublic/makePublicPackage.js ./package.json && npm pack",
22
+ "publishPackage": "npm publish",
23
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
24
+ "npm-pack": "npm pack",
25
+ "api-docs": "typedoc"
26
+ },
27
+ "dependencies": {
28
+ "@microsoft/applicationinsights-shims": "3.0.1",
29
+ "@microsoft/dynamicproto-js": "^2.0.3",
30
+ "@microsoft/applicationinsights-core-js": "3.4.1",
31
+ "@nevware21/ts-utils": ">= 0.12.6 < 2.x",
32
+ "@nevware21/ts-async": ">= 0.5.5 < 2.x"
33
+ },
34
+ "devDependencies": {
35
+ "@microsoft/ai-test-framework": "0.0.1",
36
+ "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
37
+ "@microsoft/applicationinsights-rollup-es5": "1.0.2",
38
+ "@microsoft/api-extractor": "^7.40.0",
39
+ "globby": "^11.0.0",
40
+ "grunt": "^1.6.1",
41
+ "sinon": "^7.3.1",
42
+ "@rollup/plugin-commonjs": "^24.0.0",
43
+ "@rollup/plugin-node-resolve": "^15.0.1",
44
+ "@rollup/plugin-replace": "^5.0.2",
45
+ "rollup": "^3.20.0",
46
+ "rollup-plugin-cleanup": "^3.2.1",
47
+ "rollup-plugin-sourcemaps": "^0.6.3",
48
+ "typedoc": "^0.26.6",
49
+ "typescript": "^4.9.3",
50
+ "pako": "^2.0.3"
51
+ },
52
+ "repository": {
53
+ "type": "git",
54
+ "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/main/channels/1ds-post-js"
55
+ },
56
+ "main": "dist/es5/ms.post.js",
57
+ "module": "dist-es5/Index.js",
58
+ "types": "types/1ds-post-js.d.ts",
59
+ "keywords": [
60
+ "1DS",
61
+ "Js",
62
+ "SDK"
63
+ ]
64
+ }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.4.0-nightlybeta3.2602-17
2
+ * 1DS JS SDK Post Channel, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -12,24 +12,24 @@
12
12
  * ---------------------------------------------------------------------------
13
13
  */
14
14
 
15
- import { BaseTelemetryPlugin } from '@microsoft/1ds-core-js';
16
- import { IAppInsightsCore } from '@microsoft/1ds-core-js';
17
- import { IChannelControls } from '@microsoft/1ds-core-js';
18
- import { IDiagnosticLogger } from '@microsoft/1ds-core-js';
19
- import { IExtendedConfiguration } from '@microsoft/1ds-core-js';
20
- import { IInternalOfflineSupport } from '@microsoft/1ds-core-js';
21
- import { IPayloadData } from '@microsoft/1ds-core-js';
22
- import { IPlugin } from '@microsoft/1ds-core-js';
23
- import { IProcessTelemetryContext } from '@microsoft/1ds-core-js';
15
+ import { BaseTelemetryPlugin } from '@microsoft/applicationinsights-core-js';
16
+ import { IAppInsightsCore } from '@microsoft/applicationinsights-core-js';
17
+ import { IChannelControls } from '@microsoft/applicationinsights-core-js';
18
+ import { IDiagnosticLogger } from '@microsoft/applicationinsights-core-js';
19
+ import { IExtendedConfiguration } from '@microsoft/applicationinsights-core-js';
20
+ import { IInternalOfflineSupport } from '@microsoft/applicationinsights-core-js';
21
+ import { IPayloadData } from '@microsoft/applicationinsights-core-js';
22
+ import { IPlugin } from '@microsoft/applicationinsights-core-js';
23
+ import { IProcessTelemetryContext } from '@microsoft/applicationinsights-core-js';
24
24
  import { IPromise } from '@nevware21/ts-async';
25
- import { ITelemetryItem } from '@microsoft/1ds-core-js';
26
- import { ITelemetryPlugin } from '@microsoft/1ds-core-js';
27
- import { IUnloadHook } from '@microsoft/1ds-core-js';
28
- import { IValueSanitizer } from '@microsoft/1ds-core-js';
29
- import { IXHROverride } from '@microsoft/1ds-core-js';
30
- import { OnCompleteCallback } from '@microsoft/1ds-core-js';
31
- import { SendPOSTFunction } from '@microsoft/1ds-core-js';
32
- import { SendRequestReason } from '@microsoft/1ds-core-js';
25
+ import { ITelemetryItem } from '@microsoft/applicationinsights-core-js';
26
+ import { ITelemetryPlugin } from '@microsoft/applicationinsights-core-js';
27
+ import { IUnloadHook } from '@microsoft/applicationinsights-core-js';
28
+ import { IValueSanitizer } from '@microsoft/applicationinsights-core-js';
29
+ import { IXHROverride } from '@microsoft/applicationinsights-core-js';
30
+ import { OnCompleteCallback } from '@microsoft/applicationinsights-core-js';
31
+ import { SendPOSTFunction } from '@microsoft/applicationinsights-core-js';
32
+ import { SendRequestReason } from '@microsoft/applicationinsights-core-js';
33
33
 
34
34
  /**
35
35
  * Best Effort. RealTime Latency events are sent every 9 sec and
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Post Channel, 4.4.0-nightlybeta3.2602-17
2
+ * 1DS JS SDK Post Channel, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -387,6 +387,38 @@ declare namespace oneDS {
387
387
  All = 3
388
388
  }
389
389
 
390
+ /**
391
+ * Controls how the user can configure which parts of the URL should be redacted. Example, certain query parameters, username and password, etc.
392
+ */
393
+ const enum eUrlRedactionOptions {
394
+ /**
395
+ * The default value, will redact the username and password as well as the default set of query parameters
396
+ */
397
+ true = 1,
398
+ /**
399
+ * Does not redact username and password or any query parameters, the URL will be left as is. Note: this is not recommended as it may lead
400
+ * to sensitive data being sent in clear text.
401
+ */
402
+ false = 2,
403
+ /**
404
+ * This will append any additional queryParams that the user has provided through redactQueryParams config to the default set i.e to
405
+ * @defaultValue ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"].
406
+ */
407
+ appendToDefault = 3,
408
+ /**
409
+ * This will replace the default set of query parameters to redact with the query parameters defined in redactQueryParams config, if provided by the user.
410
+ */
411
+ replaceDefault = 4,
412
+ /**
413
+ * This will redact username and password in the URL but will not redact any query parameters, even those in the default set.
414
+ */
415
+ usernamePasswordOnly = 5,
416
+ /**
417
+ * This will only redact the query parameter in the default set of query parameters to redact. It will not redact username and password.
418
+ */
419
+ queryParamsOnly = 6
420
+ }
421
+
390
422
  const enum FeatureOptInMode {
391
423
  /**
392
424
  * not set, completely depends on cdn cfg
@@ -1331,10 +1363,10 @@ declare namespace oneDS {
1331
1363
  */
1332
1364
  expCfg?: IExceptionConfig;
1333
1365
  /**
1334
- * [Optional] A flag to enable or disable the use of the field redaction for urls.
1366
+ * [Optional] A flag to enable or disable redaction for query parameters and username/password.
1335
1367
  * @defaultValue true
1336
1368
  */
1337
- redactUrls?: boolean;
1369
+ redactUrls?: UrlRedactionOptions;
1338
1370
  /**
1339
1371
  * [Optional] Additional query parameters to redact beyond the default set.
1340
1372
  * Use this to specify custom parameters that contain sensitive information.
@@ -4817,6 +4849,10 @@ declare namespace oneDS {
4817
4849
 
4818
4850
  type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
4819
4851
 
4852
+ const UrlRedactionOptions: EnumValue<typeof eUrlRedactionOptions>;
4853
+
4854
+ type UrlRedactionOptions = boolean | eUrlRedactionOptions;
4855
+
4820
4856
  type WatcherFunction<T = IConfiguration> = (details: IWatchDetails<T>) => void;
4821
4857
 
4822
4858
  }