@microsoft/power-apps-cli 0.5.3 → 0.5.4

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 (109) hide show
  1. package/lib/Verbs/AddDataSource.js +19 -13
  2. package/lib/Verbs/AddDataSource.js.map +1 -1
  3. package/lib/Verbs/DeleteDataSource.js +3 -3
  4. package/lib/Verbs/DeleteDataSource.js.map +1 -1
  5. package/lib/Verbs/Init.d.ts.map +1 -1
  6. package/lib/Verbs/Init.js +20 -0
  7. package/lib/Verbs/Init.js.map +1 -1
  8. package/lib-cjs/Verbs/AddDataSource.js +38 -43
  9. package/lib-cjs/Verbs/AddDataSource.js.map +1 -1
  10. package/lib-cjs/Verbs/DeleteDataSource.js +11 -19
  11. package/lib-cjs/Verbs/DeleteDataSource.js.map +1 -1
  12. package/lib-cjs/Verbs/Init.d.ts.map +1 -1
  13. package/lib-cjs/Verbs/Init.js +39 -8
  14. package/lib-cjs/Verbs/Init.js.map +1 -1
  15. package/node_modules/@microsoft/1ds-properties-js/README.md +193 -0
  16. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js +4844 -0
  17. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.js.map +1 -0
  18. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js +7 -0
  19. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.gbl.min.js.map +1 -0
  20. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.integrity.json +46 -0
  21. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js +4848 -0
  22. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.js.map +1 -0
  23. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js +7 -0
  24. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties-4.3.9.min.js.map +1 -0
  25. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js +4844 -0
  26. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.js.map +1 -0
  27. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js +7 -0
  28. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.gbl.min.js.map +1 -0
  29. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.integrity.json +46 -0
  30. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js +4848 -0
  31. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.js.map +1 -0
  32. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js +7 -0
  33. package/node_modules/@microsoft/1ds-properties-js/bundle/es5/ms.properties.min.js.map +1 -0
  34. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js +4827 -0
  35. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.js.map +1 -0
  36. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js +7 -0
  37. package/node_modules/@microsoft/1ds-properties-js/dist/es5/ms.properties.min.js.map +1 -0
  38. package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js +13 -0
  39. package/node_modules/@microsoft/1ds-properties-js/dist-es5/DataModels.js.map +1 -0
  40. package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js +95 -0
  41. package/node_modules/@microsoft/1ds-properties-js/dist-es5/ExtensionKeys.js.map +1 -0
  42. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js +16 -0
  43. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Index.js.map +1 -0
  44. package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js +30 -0
  45. package/node_modules/@microsoft/1ds-properties-js/dist-es5/InternalConstants.js.map +1 -0
  46. package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js +200 -0
  47. package/node_modules/@microsoft/1ds-properties-js/dist-es5/PropertiesPlugin.js.map +1 -0
  48. package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js +168 -0
  49. package/node_modules/@microsoft/1ds-properties-js/dist-es5/SessionManager.js.map +1 -0
  50. package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js +286 -0
  51. package/node_modules/@microsoft/1ds-properties-js/dist-es5/TelemetryContext.js.map +1 -0
  52. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js +106 -0
  53. package/node_modules/@microsoft/1ds-properties-js/dist-es5/Utils.js.map +1 -0
  54. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js +178 -0
  55. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Application.js.map +1 -0
  56. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js +17 -0
  57. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Cloud.js.map +1 -0
  58. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js +17 -0
  59. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Device.js.map +1 -0
  60. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js +58 -0
  61. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/IntWeb.js.map +1 -0
  62. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js +29 -0
  63. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Loc.js.map +1 -0
  64. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js +176 -0
  65. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/OperatingSystem.js.map +1 -0
  66. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js +71 -0
  67. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Sdk.js.map +1 -0
  68. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js +47 -0
  69. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Session.js.map +1 -0
  70. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js +36 -0
  71. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Trace.js.map +1 -0
  72. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js +102 -0
  73. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/User.js.map +1 -0
  74. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js +64 -0
  75. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Utc.js.map +1 -0
  76. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js +274 -0
  77. package/node_modules/@microsoft/1ds-properties-js/dist-es5/context/Web.js.map +1 -0
  78. package/node_modules/@microsoft/1ds-properties-js/package.json +65 -0
  79. package/node_modules/@microsoft/1ds-properties-js/tsconfig.json +27 -0
  80. package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.d.ts +706 -0
  81. package/node_modules/@microsoft/1ds-properties-js/types/1ds-properties-js.namespaced.d.ts +2908 -0
  82. package/node_modules/@microsoft/powerapps-data/package.json +1 -1
  83. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js +31 -25
  84. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/AddDataSource.js.map +1 -1
  85. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts +6 -4
  86. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.d.ts.map +1 -1
  87. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js +11 -5
  88. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DataUtils.js.map +1 -1
  89. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js +3 -3
  90. package/node_modules/@microsoft/powerapps-player-actions/lib/Actions/DeleteDataSource.js.map +1 -1
  91. package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts +16 -11
  92. package/node_modules/@microsoft/powerapps-player-actions/lib/Types/ActionTypes.d.ts.map +1 -1
  93. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js +1 -1
  94. package/node_modules/@microsoft/powerapps-player-actions/lib/__tests__/AddDataSource.spec.js.map +1 -1
  95. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js +104 -86
  96. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/AddDataSource.js.map +1 -1
  97. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts +6 -4
  98. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.d.ts.map +1 -1
  99. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js +26 -4
  100. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DataUtils.js.map +1 -1
  101. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js +52 -46
  102. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Actions/DeleteDataSource.js.map +1 -1
  103. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts +16 -11
  104. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/Types/ActionTypes.d.ts.map +1 -1
  105. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js +1 -1
  106. package/node_modules/@microsoft/powerapps-player-actions/lib-cjs/__tests__/AddDataSource.spec.js.map +1 -1
  107. package/node_modules/@microsoft/powerapps-player-actions/package.json +1 -1
  108. package/node_modules/@pa-client/powerapps-player-services/package.json +69 -69
  109. package/package.json +5 -3
@@ -0,0 +1,64 @@
1
+ /*
2
+ * 1DS JS SDK Properties plugin, 4.3.9
3
+ * Copyright (c) Microsoft and contributors. All rights reserved.
4
+ * (Microsoft Internal Only)
5
+ */
6
+ /**
7
+ * Utc.ts
8
+ * @author Hector Hernandez (hectorh)
9
+ * @copyright Microsoft 2019
10
+ */
11
+ import { onConfigChange } from "@microsoft/1ds-core-js";
12
+ /**
13
+ * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}.
14
+ * Client has hashed or dropped any PII information in the event. Vortex will hash any server-supplied PII fields such
15
+ * as PUID or Global Device ID. This value is used to populate the `ext.utc.eventFlags`.
16
+ * See https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/utc.md&_a=preview&anchor=eventflags and
17
+ * further details https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events.
18
+ */
19
+ export var HASH_IDENTIFIERS_FLAG = 0x100000;
20
+ /**
21
+ * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}.
22
+ * Client has dropped any PII information in the event. Information contained within attached MSA token will not be inserted.
23
+ * This value is used to populate the `ext.utc.eventFlags`.
24
+ * See https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/utc.md&_a=preview&anchor=eventflags and
25
+ * further details https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events.
26
+ */
27
+ export var DROP_IDENTIFIERS_FLAG = 0x200000;
28
+ /**
29
+ * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}. Collector to scrub `ext.ingest.clientIp`
30
+ * field stamped server-side. This takes precedence over both Hash Identifier and Drop Identifier flags above, so as long as this bit is set,
31
+ * the client IP will be scrubbed as "xxx.xxx.xxx.*" for IPv4 and will not be dropped. The main use case for this flag is Interchange customers
32
+ * that need to use OriginalMessage feature but wish not to have IP info in Geneva data store. For more details on this scenario, please see link
33
+ * here: {@link https://eng.ms/docs/products/geneva/connectors/asimov_to_geneva/management#default-commonschema | 1DS Interchange Default CommonSchema }
34
+ * See also {@link https://www.osgwiki.com/wiki/CommonSchema/flags | CommonSchema/flags}
35
+ * @since 3.2.11
36
+ */
37
+ export var SCRUB_IP_FLAG = 0x400000;
38
+ var Utc = /** @class */ (function () {
39
+ function Utc(propertiesConfig, unloadHookContainer) {
40
+ var self = this;
41
+ var _config;
42
+ self.popSample = 100;
43
+ var unloadHook = onConfigChange(propertiesConfig, function () {
44
+ _config = propertiesConfig;
45
+ self.eventFlags = 0;
46
+ if (propertiesConfig.hashIdentifiers) {
47
+ // set value when user didn't set values
48
+ self.eventFlags = self.eventFlags | HASH_IDENTIFIERS_FLAG;
49
+ }
50
+ if (propertiesConfig.dropIdentifiers) {
51
+ // set value when user didn't set values
52
+ self.eventFlags = self.eventFlags | DROP_IDENTIFIERS_FLAG;
53
+ }
54
+ if (propertiesConfig.scrubIpOnly) {
55
+ // set value when user didn't set values
56
+ self.eventFlags = self.eventFlags | SCRUB_IP_FLAG;
57
+ }
58
+ });
59
+ unloadHookContainer && unloadHookContainer.add(unloadHook);
60
+ }
61
+ return Utc;
62
+ }());
63
+ export { Utc };
64
+ //# sourceMappingURL=Utc.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Utc.js.map","sources":["Utc.js"],"sourcesContent":["/**\r\n* Utc.ts\r\n* @author Hector Hernandez (hectorh)\r\n* @copyright Microsoft 2019\r\n*/\r\nimport { onConfigChange } from \"@microsoft/1ds-core-js\";\r\n/**\r\n * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}.\r\n * Client has hashed or dropped any PII information in the event. Vortex will hash any server-supplied PII fields such\r\n * as PUID or Global Device ID. This value is used to populate the `ext.utc.eventFlags`.\r\n * See https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/utc.md&_a=preview&anchor=eventflags and\r\n * further details https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events.\r\n */\r\nexport var HASH_IDENTIFIERS_FLAG = 0x100000;\r\n/**\r\n * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}.\r\n * Client has dropped any PII information in the event. Information contained within attached MSA token will not be inserted.\r\n * This value is used to populate the `ext.utc.eventFlags`.\r\n * See https://msazure.visualstudio.com/DefaultCollection/One/_git/CommonSchema?path=/v4.0/PartA/utc.md&_a=preview&anchor=eventflags and\r\n * further details https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events.\r\n */\r\nexport var DROP_IDENTIFIERS_FLAG = 0x200000;\r\n/**\r\n * See details {@link https://www.osgwiki.com/wiki/Telemetry#De-Identification_of_Telemetry_Events | here}. Collector to scrub `ext.ingest.clientIp`\r\n * field stamped server-side. This takes precedence over both Hash Identifier and Drop Identifier flags above, so as long as this bit is set,\r\n * the client IP will be scrubbed as \"xxx.xxx.xxx.*\" for IPv4 and will not be dropped. The main use case for this flag is Interchange customers\r\n * that need to use OriginalMessage feature but wish not to have IP info in Geneva data store. For more details on this scenario, please see link\r\n * here: {@link https://eng.ms/docs/products/geneva/connectors/asimov_to_geneva/management#default-commonschema | 1DS Interchange Default CommonSchema }\r\n * See also {@link https://www.osgwiki.com/wiki/CommonSchema/flags | CommonSchema/flags}\r\n * @since 3.2.11\r\n */\r\nexport var SCRUB_IP_FLAG = 0x400000;\r\nvar Utc = /** @class */ (function () {\r\n function Utc(propertiesConfig, unloadHookContainer) {\r\n var self = this;\r\n var _config;\r\n self.popSample = 100;\r\n var unloadHook = onConfigChange(propertiesConfig, function () {\r\n _config = propertiesConfig;\r\n self.eventFlags = 0;\r\n if (propertiesConfig.hashIdentifiers) {\r\n // set value when user didn't set values\r\n self.eventFlags = self.eventFlags | HASH_IDENTIFIERS_FLAG;\r\n }\r\n if (propertiesConfig.dropIdentifiers) {\r\n // set value when user didn't set values\r\n self.eventFlags = self.eventFlags | DROP_IDENTIFIERS_FLAG;\r\n }\r\n if (propertiesConfig.scrubIpOnly) {\r\n // set value when user didn't set values\r\n self.eventFlags = self.eventFlags | SCRUB_IP_FLAG;\r\n }\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n return Utc;\r\n}());\r\nexport { Utc };\r\n//# sourceMappingURL=Utc.js.map"],"names":[],"mappings":";;;;;AAAA;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"}
@@ -0,0 +1,274 @@
1
+ /*
2
+ * 1DS JS SDK Properties plugin, 4.3.9
3
+ * Copyright (c) Microsoft and contributors. All rights reserved.
4
+ * (Microsoft Internal Only)
5
+ */
6
+ /**
7
+ * Web.ts
8
+ * @author Hector Hernandez (hectorh)
9
+ * @copyright Microsoft 2019
10
+ */
11
+ import dynamicProto from "@microsoft/dynamicproto-js";
12
+ import { getLocation, getNavigator, getWindow, isArray, onConfigChange, safeGetCookieMgr } from "@microsoft/1ds-core-js";
13
+ import { isBoolean, objDefine, objDefineProps } from "@nevware21/ts-utils";
14
+ var USER_CONSENT_DETAILS = [
15
+ "Required", "Analytics", "SocialMedia", "Advertising"
16
+ ];
17
+ var REGEX_VERSION = "([\\d,.]+)";
18
+ var UNKNOWN = "Unknown";
19
+ var EDGE_CHROMIUM = "Edg/";
20
+ var EDGE_IOS = "EdgiOS/";
21
+ var USER_AGENTS = [
22
+ { ua: "OPR/", b: "Opera" /* BROWSERS.OPERA */ },
23
+ { ua: "PhantomJS" /* BROWSERS.PHANTOMJS */, b: "PhantomJS" /* BROWSERS.PHANTOMJS */ },
24
+ { ua: "Edge" /* BROWSERS.EDGE */, b: "Edge" /* BROWSERS.EDGE */ },
25
+ { ua: EDGE_CHROMIUM, b: "Edge" /* BROWSERS.EDGE */ },
26
+ { ua: EDGE_IOS, b: "Edge" /* BROWSERS.EDGE */ },
27
+ { ua: "Electron" /* BROWSERS.ELECTRON */, b: "Electron" /* BROWSERS.ELECTRON */ },
28
+ { ua: "Chrome" /* BROWSERS.CHROME */, b: "Chrome" /* BROWSERS.CHROME */ },
29
+ { ua: "Trident", b: "MSIE" /* BROWSERS.MSIE */ },
30
+ { ua: "MSIE ", b: "MSIE" /* BROWSERS.MSIE */ },
31
+ { ua: "Firefox" /* BROWSERS.FIREFOX */, b: "Firefox" /* BROWSERS.FIREFOX */ },
32
+ { ua: "Safari" /* BROWSERS.SAFARI */, b: "Safari" /* BROWSERS.SAFARI */ },
33
+ { ua: "SkypeShell" /* BROWSERS.SKYPE_SHELL */, b: "SkypeShell" /* BROWSERS.SKYPE_SHELL */ } // Check for Skype shell
34
+ ];
35
+ var BRANDS = [
36
+ { br: "Microsoft Edge", b: "Edge" /* BROWSERS.EDGE */ },
37
+ { br: "Google Chrome", b: "Chrome" /* BROWSERS.CHROME */ },
38
+ { br: "Opera", b: "Opera" /* BROWSERS.OPERA */ }
39
+ ];
40
+ function _userAgentContainsString(searchString, userAgent) {
41
+ return userAgent.indexOf(searchString) > -1;
42
+ }
43
+ function _getBrandVersion(match, brands) {
44
+ for (var lp = 0; lp < brands.length; lp++) {
45
+ if (match == brands[lp].brand) {
46
+ return brands[lp].version;
47
+ }
48
+ }
49
+ return null;
50
+ }
51
+ function _getBrowserName(userAgent) {
52
+ if (userAgent) {
53
+ for (var lp = 0; lp < USER_AGENTS.length; lp++) {
54
+ var ua = USER_AGENTS[lp].ua;
55
+ if (_userAgentContainsString(ua, userAgent)) {
56
+ return USER_AGENTS[lp].b;
57
+ }
58
+ }
59
+ }
60
+ return UNKNOWN;
61
+ }
62
+ function _getBrowserVersion(userAgent, browserName) {
63
+ if (browserName === "MSIE" /* BROWSERS.MSIE */) {
64
+ return _getIeVersion(userAgent);
65
+ }
66
+ return _getOtherVersion(browserName, userAgent);
67
+ }
68
+ function _getIeVersion(userAgent) {
69
+ var classicIeVersionMatches = userAgent.match(new RegExp("MSIE" /* BROWSERS.MSIE */ + " " + REGEX_VERSION));
70
+ if (classicIeVersionMatches) {
71
+ return classicIeVersionMatches[1];
72
+ }
73
+ var ieVersionMatches = userAgent.match(new RegExp("rv:" + REGEX_VERSION));
74
+ if (ieVersionMatches) {
75
+ return ieVersionMatches[1];
76
+ }
77
+ }
78
+ function _getOtherVersion(browserString, userAgent) {
79
+ if (browserString === "Safari" /* BROWSERS.SAFARI */) {
80
+ browserString = "Version";
81
+ }
82
+ else if (browserString === "Edge" /* BROWSERS.EDGE */) {
83
+ if (_userAgentContainsString(EDGE_CHROMIUM, userAgent)) {
84
+ browserString = "Edg";
85
+ }
86
+ else if (_userAgentContainsString(EDGE_IOS, userAgent)) {
87
+ browserString = "EdgiOS";
88
+ }
89
+ }
90
+ var matches = userAgent.match(new RegExp(browserString + "/" + REGEX_VERSION));
91
+ if (matches) {
92
+ return matches[1];
93
+ }
94
+ if (browserString === "Opera" /* BROWSERS.OPERA */) {
95
+ matches = userAgent.match(new RegExp("OPR/" + REGEX_VERSION));
96
+ if (matches) {
97
+ return matches[1];
98
+ }
99
+ }
100
+ return UNKNOWN;
101
+ }
102
+ /**
103
+ * Get Screen resolution
104
+ * @returns {ScreenResolution} - Screen resolution
105
+ */
106
+ function _getScreenResolution() {
107
+ var screenRes = { h: 0, w: 0 };
108
+ var win = getWindow();
109
+ if (win && win.screen) {
110
+ screenRes.h = screen.height;
111
+ screenRes.w = screen.width;
112
+ }
113
+ return screenRes;
114
+ }
115
+ function _getUserConsent() {
116
+ return this.getUserConsent();
117
+ }
118
+ var Web = /** @class */ (function () {
119
+ function Web(propertiesConfig, core, unloadHookContainer) {
120
+ var _cookieMgr = safeGetCookieMgr(core);
121
+ var _propertiesConfig = propertiesConfig || {};
122
+ var _userAgent = null;
123
+ var _userAgentBrands = null;
124
+ var _userBrowser = null; // save user defined browser. If defined, this value will overwrite dynamic config values
125
+ var _userBrowserVer = null; // save user defined browser ver. If defined, this value will overwrite dynamic config values
126
+ var _browser = null;
127
+ var _browserVer = null;
128
+ var _gpcDataSharingOption = null;
129
+ dynamicProto(Web, this, function (_self) {
130
+ _populateDefaults(propertiesConfig);
131
+ // Add the domain
132
+ var windowLocation = getLocation();
133
+ if (windowLocation) {
134
+ var domain = windowLocation.hostname;
135
+ if (domain) {
136
+ _self.domain = windowLocation.protocol === "file:" ? "local" : domain;
137
+ }
138
+ }
139
+ var screenRes = _getScreenResolution();
140
+ _self.screenRes = screenRes.w + "X" + screenRes.h;
141
+ _self.getUserConsent = function () {
142
+ return false;
143
+ };
144
+ /**
145
+ *
146
+ ** Function to retrieve user consent details.
147
+ * @param callback - Callback function to get user consent details
148
+ * @returns IUserContentDetails stringified object
149
+ */
150
+ _self.getUserConsentDetails = function () {
151
+ var consentDetails = null;
152
+ try {
153
+ var callback = _propertiesConfig.callback;
154
+ if (callback && callback.userConsentDetails) {
155
+ var result = callback.userConsentDetails();
156
+ if (result) {
157
+ if (_propertiesConfig.disableConsentDetailsSanitize) {
158
+ consentDetails = result;
159
+ }
160
+ else {
161
+ consentDetails = {};
162
+ }
163
+ // Apply default values if missing
164
+ for (var lp = 0; lp < USER_CONSENT_DETAILS.length; lp++) {
165
+ var key = USER_CONSENT_DETAILS[lp];
166
+ consentDetails[key] = result[key] || false;
167
+ }
168
+ }
169
+ }
170
+ // Only set if the configuration was provided
171
+ if (_gpcDataSharingOption !== null) {
172
+ consentDetails = consentDetails || {};
173
+ consentDetails.GPC_DataSharingOptIn = !!_gpcDataSharingOption;
174
+ }
175
+ return consentDetails ? JSON.stringify(consentDetails) : null;
176
+ }
177
+ catch (e) {
178
+ // Unexpected - Just making sure we don't crash
179
+ }
180
+ };
181
+ function _parseUserAgent(userAgent, userAgentBrands) {
182
+ if (isArray(userAgentBrands)) {
183
+ try {
184
+ // Go through the ordered list of "known" brands and use the first matching value
185
+ for (var lp = 0; lp < BRANDS.length; lp++) {
186
+ var version = _getBrandVersion(BRANDS[lp].br, userAgentBrands);
187
+ if (version) {
188
+ _browser = BRANDS[lp].b;
189
+ _browserVer = version;
190
+ return;
191
+ }
192
+ }
193
+ }
194
+ catch (e) {
195
+ // Unexpected - Just making sure we don't crash
196
+ }
197
+ }
198
+ if (userAgent) {
199
+ var browserName = _getBrowserName(userAgent);
200
+ _browser = browserName;
201
+ _browserVer = _getBrowserVersion(userAgent, browserName);
202
+ }
203
+ }
204
+ function _setBrowser(value) {
205
+ _userBrowser = value;
206
+ }
207
+ function _setBrowserVer(value) {
208
+ _userBrowserVer = value;
209
+ }
210
+ function _getBrowser() {
211
+ return _userBrowser || _browser;
212
+ }
213
+ function _getBrowserVer() {
214
+ return _userBrowserVer || _browserVer;
215
+ }
216
+ var _getGpcDataSharing = function () {
217
+ return _gpcDataSharingOption;
218
+ };
219
+ var _setGpcDataSharing = function (value) {
220
+ // Setting directly, rather than waiting for the onConfigChange so that the new value is available immediately
221
+ _gpcDataSharingOption = isBoolean(value) ? value : null;
222
+ // Also update the configuration so any listeners are also notified in the next JS cycle
223
+ _propertiesConfig.gpcDataSharingOptIn = _gpcDataSharingOption;
224
+ };
225
+ function _populateDefaults(config) {
226
+ // This function will be re-called whenever any referenced configuration is changed
227
+ var unloadHook = onConfigChange(config, function () {
228
+ _propertiesConfig = config;
229
+ // if populateBrowserInfo is set to false, it will use previous values (so, it will not reset)
230
+ if (_propertiesConfig.populateBrowserInfo) {
231
+ var userAgent = _propertiesConfig.userAgent;
232
+ var userAgentBrands = (_propertiesConfig.userAgentData || {}).brands;
233
+ if (userAgent !== _userAgent || userAgentBrands !== _userAgentBrands) {
234
+ if (!userAgent || !userAgentBrands || userAgentBrands.length === 0) {
235
+ // One or more values not specified so try and derive from the navigator (if available)
236
+ var theNav = getNavigator();
237
+ if (theNav) {
238
+ userAgent = userAgent || theNav.userAgent || "";
239
+ userAgentBrands = userAgentBrands || (theNav.userAgentData || {}).brands;
240
+ }
241
+ }
242
+ _parseUserAgent(userAgent, userAgentBrands);
243
+ _userAgent = userAgent;
244
+ _userAgentBrands = userAgentBrands;
245
+ }
246
+ }
247
+ // Only set if the configuration was provided
248
+ _gpcDataSharingOption = isBoolean(_propertiesConfig.gpcDataSharingOptIn) ? _propertiesConfig.gpcDataSharingOptIn : null;
249
+ });
250
+ unloadHookContainer && unloadHookContainer.add(unloadHook);
251
+ }
252
+ // Remap this get userContext for this instance
253
+ objDefineProps(_self, {
254
+ "userConsent": { g: _self.getUserConsent },
255
+ "browser": { s: _setBrowser, g: _getBrowser },
256
+ "browserVer": { s: _setBrowserVer, g: _getBrowserVer },
257
+ "gpcDataSharingOptIn": { g: _getGpcDataSharing, s: _setGpcDataSharing }
258
+ });
259
+ });
260
+ }
261
+ // Removed Stub for Web.prototype.getUserConsent.
262
+ // Removed Stub for Web.prototype.getUserConsentDetails.
263
+ /**
264
+ * Static constructor, attempt to create accessors
265
+ */
266
+ Web._staticInit = (function () {
267
+ // Dynamically create get/set property accessors
268
+ //objDefineAccessors(Web.prototype, "userConsent", _getUserConsent);
269
+ objDefine(Web.prototype, "userConsent", { g: _getUserConsent });
270
+ })();
271
+ return Web;
272
+ }());
273
+ export { Web };
274
+ //# sourceMappingURL=Web.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Web.js.map","sources":["Web.js"],"sourcesContent":["/**\r\n* Web.ts\r\n* @author Hector Hernandez (hectorh)\r\n* @copyright Microsoft 2019\r\n*/\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { getLocation, getNavigator, getWindow, isArray, onConfigChange, safeGetCookieMgr } from \"@microsoft/1ds-core-js\";\r\nimport { isBoolean, objDefine, objDefineProps } from \"@nevware21/ts-utils\";\r\nvar USER_CONSENT_DETAILS = [\r\n \"Required\", \"Analytics\", \"SocialMedia\", \"Advertising\"\r\n];\r\nvar REGEX_VERSION = \"([\\\\d,.]+)\";\r\nvar UNKNOWN = \"Unknown\";\r\nvar EDGE_CHROMIUM = \"Edg/\";\r\nvar EDGE_IOS = \"EdgiOS/\";\r\nvar USER_AGENTS = [\r\n { ua: \"OPR/\", b: \"Opera\" /* BROWSERS.OPERA */ },\r\n { ua: \"PhantomJS\" /* BROWSERS.PHANTOMJS */, b: \"PhantomJS\" /* BROWSERS.PHANTOMJS */ },\r\n { ua: \"Edge\" /* BROWSERS.EDGE */, b: \"Edge\" /* BROWSERS.EDGE */ },\r\n { ua: EDGE_CHROMIUM, b: \"Edge\" /* BROWSERS.EDGE */ },\r\n { ua: EDGE_IOS, b: \"Edge\" /* BROWSERS.EDGE */ },\r\n { ua: \"Electron\" /* BROWSERS.ELECTRON */, b: \"Electron\" /* BROWSERS.ELECTRON */ },\r\n { ua: \"Chrome\" /* BROWSERS.CHROME */, b: \"Chrome\" /* BROWSERS.CHROME */ },\r\n { ua: \"Trident\", b: \"MSIE\" /* BROWSERS.MSIE */ },\r\n { ua: \"MSIE \", b: \"MSIE\" /* BROWSERS.MSIE */ },\r\n { ua: \"Firefox\" /* BROWSERS.FIREFOX */, b: \"Firefox\" /* BROWSERS.FIREFOX */ },\r\n { ua: \"Safari\" /* BROWSERS.SAFARI */, b: \"Safari\" /* BROWSERS.SAFARI */ },\r\n { ua: \"SkypeShell\" /* BROWSERS.SKYPE_SHELL */, b: \"SkypeShell\" /* BROWSERS.SKYPE_SHELL */ } // Check for Skype shell\r\n];\r\nvar BRANDS = [\r\n { br: \"Microsoft Edge\", b: \"Edge\" /* BROWSERS.EDGE */ },\r\n { br: \"Google Chrome\", b: \"Chrome\" /* BROWSERS.CHROME */ },\r\n { br: \"Opera\", b: \"Opera\" /* BROWSERS.OPERA */ }\r\n];\r\nfunction _userAgentContainsString(searchString, userAgent) {\r\n return userAgent.indexOf(searchString) > -1;\r\n}\r\nfunction _getBrandVersion(match, brands) {\r\n for (var lp = 0; lp < brands.length; lp++) {\r\n if (match == brands[lp].brand) {\r\n return brands[lp].version;\r\n }\r\n }\r\n return null;\r\n}\r\nfunction _getBrowserName(userAgent) {\r\n if (userAgent) {\r\n for (var lp = 0; lp < USER_AGENTS.length; lp++) {\r\n var ua = USER_AGENTS[lp].ua;\r\n if (_userAgentContainsString(ua, userAgent)) {\r\n return USER_AGENTS[lp].b;\r\n }\r\n }\r\n }\r\n return UNKNOWN;\r\n}\r\nfunction _getBrowserVersion(userAgent, browserName) {\r\n if (browserName === \"MSIE\" /* BROWSERS.MSIE */) {\r\n return _getIeVersion(userAgent);\r\n }\r\n return _getOtherVersion(browserName, userAgent);\r\n}\r\nfunction _getIeVersion(userAgent) {\r\n var classicIeVersionMatches = userAgent.match(new RegExp(\"MSIE\" /* BROWSERS.MSIE */ + \" \" + REGEX_VERSION));\r\n if (classicIeVersionMatches) {\r\n return classicIeVersionMatches[1];\r\n }\r\n var ieVersionMatches = userAgent.match(new RegExp(\"rv:\" + REGEX_VERSION));\r\n if (ieVersionMatches) {\r\n return ieVersionMatches[1];\r\n }\r\n}\r\nfunction _getOtherVersion(browserString, userAgent) {\r\n if (browserString === \"Safari\" /* BROWSERS.SAFARI */) {\r\n browserString = \"Version\";\r\n }\r\n else if (browserString === \"Edge\" /* BROWSERS.EDGE */) {\r\n if (_userAgentContainsString(EDGE_CHROMIUM, userAgent)) {\r\n browserString = \"Edg\";\r\n }\r\n else if (_userAgentContainsString(EDGE_IOS, userAgent)) {\r\n browserString = \"EdgiOS\";\r\n }\r\n }\r\n var matches = userAgent.match(new RegExp(browserString + \"/\" + REGEX_VERSION));\r\n if (matches) {\r\n return matches[1];\r\n }\r\n if (browserString === \"Opera\" /* BROWSERS.OPERA */) {\r\n matches = userAgent.match(new RegExp(\"OPR/\" + REGEX_VERSION));\r\n if (matches) {\r\n return matches[1];\r\n }\r\n }\r\n return UNKNOWN;\r\n}\r\n/**\r\n* Get Screen resolution\r\n* @returns {ScreenResolution} - Screen resolution\r\n*/\r\nfunction _getScreenResolution() {\r\n var screenRes = { h: 0, w: 0 };\r\n var win = getWindow();\r\n if (win && win.screen) {\r\n screenRes.h = screen.height;\r\n screenRes.w = screen.width;\r\n }\r\n return screenRes;\r\n}\r\nfunction _getUserConsent() {\r\n return this.getUserConsent();\r\n}\r\nvar Web = /** @class */ (function () {\r\n function Web(propertiesConfig, core, unloadHookContainer) {\r\n var _cookieMgr = safeGetCookieMgr(core);\r\n var _propertiesConfig = propertiesConfig || {};\r\n var _userAgent = null;\r\n var _userAgentBrands = null;\r\n var _userBrowser = null; // save user defined browser. If defined, this value will overwrite dynamic config values\r\n var _userBrowserVer = null; // save user defined browser ver. If defined, this value will overwrite dynamic config values\r\n var _browser = null;\r\n var _browserVer = null;\r\n var _gpcDataSharingOption = null;\r\n dynamicProto(Web, this, function (_self) {\r\n _populateDefaults(propertiesConfig);\r\n // Add the domain\r\n var windowLocation = getLocation();\r\n if (windowLocation) {\r\n var domain = windowLocation.hostname;\r\n if (domain) {\r\n _self.domain = windowLocation.protocol === \"file:\" ? \"local\" : domain;\r\n }\r\n }\r\n var screenRes = _getScreenResolution();\r\n _self.screenRes = screenRes.w + \"X\" + screenRes.h;\r\n _self.getUserConsent = function () {\r\n return false;\r\n };\r\n /**\r\n *\r\n ** Function to retrieve user consent details.\r\n * @param callback - Callback function to get user consent details\r\n * @returns IUserContentDetails stringified object\r\n */\r\n _self.getUserConsentDetails = function () {\r\n var consentDetails = null;\r\n try {\r\n var callback = _propertiesConfig.callback;\r\n if (callback && callback.userConsentDetails) {\r\n var result = callback.userConsentDetails();\r\n if (result) {\r\n if (_propertiesConfig.disableConsentDetailsSanitize) {\r\n consentDetails = result;\r\n }\r\n else {\r\n consentDetails = {};\r\n }\r\n // Apply default values if missing\r\n for (var lp = 0; lp < USER_CONSENT_DETAILS.length; lp++) {\r\n var key = USER_CONSENT_DETAILS[lp];\r\n consentDetails[key] = result[key] || false;\r\n }\r\n }\r\n }\r\n // Only set if the configuration was provided\r\n if (_gpcDataSharingOption !== null) {\r\n consentDetails = consentDetails || {};\r\n consentDetails.GPC_DataSharingOptIn = !!_gpcDataSharingOption;\r\n }\r\n return consentDetails ? JSON.stringify(consentDetails) : null;\r\n }\r\n catch (e) {\r\n // Unexpected - Just making sure we don't crash\r\n }\r\n };\r\n function _parseUserAgent(userAgent, userAgentBrands) {\r\n if (isArray(userAgentBrands)) {\r\n try {\r\n // Go through the ordered list of \"known\" brands and use the first matching value\r\n for (var lp = 0; lp < BRANDS.length; lp++) {\r\n var version = _getBrandVersion(BRANDS[lp].br, userAgentBrands);\r\n if (version) {\r\n _browser = BRANDS[lp].b;\r\n _browserVer = version;\r\n return;\r\n }\r\n }\r\n }\r\n catch (e) {\r\n // Unexpected - Just making sure we don't crash\r\n }\r\n }\r\n if (userAgent) {\r\n var browserName = _getBrowserName(userAgent);\r\n _browser = browserName;\r\n _browserVer = _getBrowserVersion(userAgent, browserName);\r\n }\r\n }\r\n function _setBrowser(value) {\r\n _userBrowser = value;\r\n }\r\n function _setBrowserVer(value) {\r\n _userBrowserVer = value;\r\n }\r\n function _getBrowser() {\r\n return _userBrowser || _browser;\r\n }\r\n function _getBrowserVer() {\r\n return _userBrowserVer || _browserVer;\r\n }\r\n var _getGpcDataSharing = function () {\r\n return _gpcDataSharingOption;\r\n };\r\n var _setGpcDataSharing = function (value) {\r\n // Setting directly, rather than waiting for the onConfigChange so that the new value is available immediately\r\n _gpcDataSharingOption = isBoolean(value) ? value : null;\r\n // Also update the configuration so any listeners are also notified in the next JS cycle\r\n _propertiesConfig.gpcDataSharingOptIn = _gpcDataSharingOption;\r\n };\r\n function _populateDefaults(config) {\r\n // This function will be re-called whenever any referenced configuration is changed\r\n var unloadHook = onConfigChange(config, function () {\r\n _propertiesConfig = config;\r\n // if populateBrowserInfo is set to false, it will use previous values (so, it will not reset)\r\n if (_propertiesConfig.populateBrowserInfo) {\r\n var userAgent = _propertiesConfig.userAgent;\r\n var userAgentBrands = (_propertiesConfig.userAgentData || {}).brands;\r\n if (userAgent !== _userAgent || userAgentBrands !== _userAgentBrands) {\r\n if (!userAgent || !userAgentBrands || userAgentBrands.length === 0) {\r\n // One or more values not specified so try and derive from the navigator (if available)\r\n var theNav = getNavigator();\r\n if (theNav) {\r\n userAgent = userAgent || theNav.userAgent || \"\";\r\n userAgentBrands = userAgentBrands || (theNav.userAgentData || {}).brands;\r\n }\r\n }\r\n _parseUserAgent(userAgent, userAgentBrands);\r\n _userAgent = userAgent;\r\n _userAgentBrands = userAgentBrands;\r\n }\r\n }\r\n // Only set if the configuration was provided\r\n _gpcDataSharingOption = isBoolean(_propertiesConfig.gpcDataSharingOptIn) ? _propertiesConfig.gpcDataSharingOptIn : null;\r\n });\r\n unloadHookContainer && unloadHookContainer.add(unloadHook);\r\n }\r\n // Remap this get userContext for this instance\r\n objDefineProps(_self, {\r\n \"userConsent\": { g: _self.getUserConsent },\r\n \"browser\": { s: _setBrowser, g: _getBrowser },\r\n \"browserVer\": { s: _setBrowserVer, g: _getBrowserVer },\r\n \"gpcDataSharingOptIn\": { g: _getGpcDataSharing, s: _setGpcDataSharing }\r\n });\r\n });\r\n }\r\n /**\r\n * @deprecated use `callback.userConsentDetails` now always false it no longer checks for the presence of the MSCC cookie\r\n * Describes whether the user has given consent for Cookies.\r\n * This is configurable by users to define which cookie to look for marking this flag as true or false.\r\n */\r\n Web.prototype.getUserConsent = function () {\r\n // @DynamicProtoStub - DO NOT add any code as this will be removed during packaging\r\n return false;\r\n };\r\n /**\r\n * Function to retrieve user consent details.\r\n * @param callback - Callback function to get user consent details\r\n * @returns IUserContentDetails stringified object\r\n */\r\n Web.prototype.getUserConsentDetails = function () {\r\n // @DynamicProtoStub - DO NOT add any code as this will be removed during packaging\r\n return null;\r\n };\r\n /**\r\n * Static constructor, attempt to create accessors\r\n */\r\n Web._staticInit = (function () {\r\n // Dynamically create get/set property accessors\r\n //objDefineAccessors(Web.prototype, \"userConsent\", _getUserConsent);\r\n objDefine(Web.prototype, \"userConsent\", { g: _getUserConsent });\r\n })();\r\n return Web;\r\n}());\r\nexport { Web };\r\n//# sourceMappingURL=Web.js.map"],"names":[],"mappings":";;;;;AAAA;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;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;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;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;wDAQM;AACN;AASO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
@@ -0,0 +1,65 @@
1
+ {
2
+ "name": "@microsoft/1ds-properties-js",
3
+ "version": "4.3.9",
4
+ "description": "1DS JS SDK Properties module written in Typescript",
5
+ "author": "Javascript Telemetry SDKs <TelReachSDK@microsoft.com>",
6
+ "homepage": "https://eng.ms/docs/products/geneva/collect/instrument/1ds/javascriptsdk/getting-started",
7
+ "license": "ISC",
8
+ "sideEffects": false,
9
+ "scripts": {
10
+ "build": "npm run build:esm && npm run build:browser && npm run dtsgen && npm run sri",
11
+ "build:esm": "grunt propertiesBuild",
12
+ "build:browser": "npx rollup -c rollup.config.js --bundleConfigAsCjs",
13
+ "rebuild": "npm run build",
14
+ "ai-min": "grunt properties-min",
15
+ "ai-restore": "grunt properties-restore",
16
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"1DS JS SDK Properties plugin\"",
17
+ "test": "grunt propertiesTest",
18
+ "mintest": "grunt propertiesMinTest",
19
+ "perftest": "",
20
+ "publishPackage": "npm publish",
21
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
22
+ "npm-pack": "npm pack",
23
+ "updateTypeDoc": "node ../../tools/typedoc-tools/updateTypedoc.js -baseFolder extensions/properties",
24
+ "docs": "typedoc && npm run updateTypeDoc"
25
+ },
26
+ "publishConfig": {
27
+ "registry": "https://pkgs.dev.azure.com/msazure/One/_packaging/1ds-sdk-js/npm/registry/"
28
+ },
29
+ "dependencies": {
30
+ "@microsoft/applicationinsights-shims": "^3.0.1",
31
+ "@microsoft/dynamicproto-js": "^2.0.3",
32
+ "@microsoft/1ds-core-js": "4.3.9",
33
+ "@microsoft/applicationinsights-core-js": "3.3.9",
34
+ "@nevware21/ts-utils": ">= 0.11.6 < 2.x"
35
+ },
36
+ "devDependencies": {
37
+ "@microsoft/1ds-test-framework": "0.1.0",
38
+ "@microsoft/rollup-plugin-uglify3-js": "1.0.0",
39
+ "@microsoft/applicationinsights-rollup-es5": "^1.0.2",
40
+ "@microsoft/api-extractor": "^7.40.0",
41
+ "@types/qunit": "^2.19.3",
42
+ "globby": "^11.0.0",
43
+ "grunt": "^1.5.3",
44
+ "sinon": "^7.3.1",
45
+ "@rollup/plugin-commonjs": "^24.0.0",
46
+ "@rollup/plugin-node-resolve": "^15.0.1",
47
+ "@rollup/plugin-replace": "^5.0.2",
48
+ "rollup-plugin-cleanup": "^3.2.1",
49
+ "rollup-plugin-sourcemaps": "^0.6.3",
50
+ "rollup": "^3.20.0",
51
+ "typescript": "^4.9.3"
52
+ },
53
+ "repository": {
54
+ "type": "git",
55
+ "url": "https://msazure.visualstudio.com/One/_git/1DS.JavaScript.PartA"
56
+ },
57
+ "main": "dist/es5/ms.properties.js",
58
+ "module": "dist-es5/Index.js",
59
+ "types": "types/1ds-properties-js.d.ts",
60
+ "keywords": [
61
+ "1DS",
62
+ "Js",
63
+ "SDK"
64
+ ]
65
+ }
@@ -0,0 +1,27 @@
1
+ {
2
+ "compilerOptions": {
3
+ "sourceMap": true,
4
+ "inlineSources": true,
5
+ "module": "es6",
6
+ "moduleResolution": "Node",
7
+ "target": "es5",
8
+ "alwaysStrict": true,
9
+ "strictNullChecks": false,
10
+ "suppressImplicitAnyIndexErrors": true,
11
+ "allowSyntheticDefaultImports": true,
12
+ "importHelpers": true,
13
+ "noEmitHelpers": true,
14
+ "forceConsistentCasingInFileNames": true,
15
+ "declaration": true,
16
+ "declarationDir": "build/types",
17
+ "removeComments": false,
18
+ "outDir": "dist-es5/",
19
+ "rootDir": "./src"
20
+ },
21
+ "include": [
22
+ "./src/**/*.ts"
23
+ ],
24
+ "exclude": [
25
+ "node_modules/"
26
+ ]
27
+ }