@microsoft/1ds-core-js 3.2.12 → 4.0.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.
- package/README.md +1 -1
- package/bundle/es5/ms.core-4.0.1.gbl.js +6321 -0
- package/bundle/es5/ms.core-4.0.1.gbl.js.map +1 -0
- package/bundle/es5/ms.core-4.0.1.gbl.min.js +7 -0
- package/bundle/es5/ms.core-4.0.1.gbl.min.js.map +1 -0
- package/bundle/es5/ms.core-4.0.1.integrity.json +46 -0
- package/bundle/es5/ms.core-4.0.1.js +6325 -0
- package/bundle/es5/ms.core-4.0.1.js.map +1 -0
- package/bundle/es5/ms.core-4.0.1.min.js +7 -0
- package/bundle/es5/ms.core-4.0.1.min.js.map +1 -0
- package/bundle/es5/ms.core.gbl.js +6321 -0
- package/bundle/es5/ms.core.gbl.js.map +1 -0
- package/bundle/es5/ms.core.gbl.min.js +7 -0
- package/bundle/es5/ms.core.gbl.min.js.map +1 -0
- package/bundle/es5/ms.core.integrity.json +46 -0
- package/bundle/es5/ms.core.js +6325 -0
- package/bundle/es5/ms.core.js.map +1 -0
- package/bundle/es5/ms.core.min.js +7 -0
- package/bundle/es5/ms.core.min.js.map +1 -0
- package/{bundle → dist/es5}/ms.core.js +3945 -3022
- package/dist/es5/ms.core.js.map +1 -0
- package/dist/es5/ms.core.min.js +7 -0
- package/dist/es5/ms.core.min.js.map +1 -0
- package/dist-es5/AppInsightsCore.js +91 -0
- package/dist-es5/AppInsightsCore.js.map +1 -0
- package/{dist-esm/src → dist-es5}/BaseCore.js +18 -11
- package/dist-es5/BaseCore.js.map +1 -0
- package/{dist-esm/src → dist-es5}/DataModels.js +1 -1
- package/{dist-esm/src → dist-es5}/Enums.js +3 -26
- package/dist-es5/Enums.js.map +1 -0
- package/{dist-esm/src → dist-es5}/Index.js +9 -14
- package/dist-es5/Index.js.map +1 -0
- package/{dist-esm/src → dist-es5}/InternalConstants.js +1 -3
- package/{dist-esm/src → dist-es5}/InternalConstants.js.map +1 -1
- package/{dist-esm/src → dist-es5}/Utils.js +19 -144
- package/dist-es5/Utils.js.map +1 -0
- package/{dist-esm/src → dist-es5}/ValueSanitizer.js +42 -3
- package/dist-es5/ValueSanitizer.js.map +1 -0
- package/package.json +16 -9
- package/tsconfig.json +5 -3
- package/types/1ds-core-js.d.ts +1110 -0
- package/types/1ds-core-js.namespaced.d.ts +1106 -0
- package/bundle/ms.core-3.2.12.gbl.js +0 -5378
- package/bundle/ms.core-3.2.12.gbl.js.map +0 -1
- package/bundle/ms.core-3.2.12.gbl.min.js +0 -7
- package/bundle/ms.core-3.2.12.gbl.min.js.map +0 -1
- package/bundle/ms.core-3.2.12.integrity.json +0 -46
- package/bundle/ms.core-3.2.12.js +0 -5381
- package/bundle/ms.core-3.2.12.js.map +0 -1
- package/bundle/ms.core-3.2.12.min.js +0 -7
- package/bundle/ms.core-3.2.12.min.js.map +0 -1
- package/bundle/ms.core.gbl.js +0 -5378
- package/bundle/ms.core.gbl.js.map +0 -1
- package/bundle/ms.core.gbl.min.js +0 -7
- package/bundle/ms.core.gbl.min.js.map +0 -1
- package/bundle/ms.core.integrity.json +0 -46
- package/bundle/ms.core.js.map +0 -1
- package/bundle/ms.core.min.js +0 -7
- package/bundle/ms.core.min.js.map +0 -1
- package/dist/ms.core.js +0 -1305
- package/dist/ms.core.js.map +0 -1
- package/dist/ms.core.min.js +0 -7
- package/dist/ms.core.min.js.map +0 -1
- package/dist-esm/src/AppInsightsCore.d.ts +0 -15
- package/dist-esm/src/AppInsightsCore.js +0 -114
- package/dist-esm/src/AppInsightsCore.js.map +0 -1
- package/dist-esm/src/BaseCore.d.ts +0 -13
- package/dist-esm/src/BaseCore.js.map +0 -1
- package/dist-esm/src/DataModels.d.ts +0 -273
- package/dist-esm/src/ESPromise.d.ts +0 -110
- package/dist-esm/src/ESPromise.js +0 -286
- package/dist-esm/src/ESPromise.js.map +0 -1
- package/dist-esm/src/ESPromiseScheduler.d.ts +0 -36
- package/dist-esm/src/ESPromiseScheduler.js +0 -274
- package/dist-esm/src/ESPromiseScheduler.js.map +0 -1
- package/dist-esm/src/Enums.d.ts +0 -356
- package/dist-esm/src/Enums.js.map +0 -1
- package/dist-esm/src/Index.d.ts +0 -19
- package/dist-esm/src/Index.js.map +0 -1
- package/dist-esm/src/InternalConstants.d.ts +0 -6
- package/dist-esm/src/Utils.d.ts +0 -190
- package/dist-esm/src/Utils.js.map +0 -1
- package/dist-esm/src/ValueSanitizer.d.ts +0 -40
- package/dist-esm/src/ValueSanitizer.js.map +0 -1
- package/src/AppInsightsCore.ts +0 -135
- package/src/BaseCore.ts +0 -72
- package/src/DataModels.ts +0 -297
- package/src/ESPromise.ts +0 -365
- package/src/ESPromiseScheduler.ts +0 -328
- package/src/Enums.ts +0 -386
- package/src/Index.ts +0 -81
- package/src/InternalConstants.ts +0 -16
- package/src/Utils.ts +0 -565
- package/src/ValueSanitizer.ts +0 -285
- /package/{dist-esm/src → dist-es5}/DataModels.js.map +0 -0
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* 1DS JS SDK Core,
|
|
2
|
+
* 1DS JS SDK Core, 4.0.1
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
6
6
|
import { isNullOrUndefined, isString, objForEachKey } from "@microsoft/applicationinsights-core-js";
|
|
7
|
+
import { arrForEach, arrIncludes, arrIndexOf, getLength } from "@nevware21/ts-utils";
|
|
7
8
|
import { STR_EMPTY } from "./InternalConstants";
|
|
8
9
|
import { getFieldValueType, isValueAssigned, isValueKind } from "./Utils";
|
|
9
10
|
var ValueSanitizer = /** @class */ (function () {
|
|
@@ -66,20 +67,58 @@ var ValueSanitizer = /** @class */ (function () {
|
|
|
66
67
|
}
|
|
67
68
|
return result;
|
|
68
69
|
}
|
|
70
|
+
_self.clearCache = function () {
|
|
71
|
+
_sanitizerMap = {};
|
|
72
|
+
};
|
|
69
73
|
_self.addSanitizer = function (newSanitizer) {
|
|
70
74
|
if (newSanitizer) {
|
|
71
|
-
_sanitizers
|
|
75
|
+
if (!arrIncludes(_sanitizers, newSanitizer)) {
|
|
76
|
+
_sanitizers.push(newSanitizer);
|
|
77
|
+
}
|
|
72
78
|
// Invalidate any previously mapped fields
|
|
73
79
|
_sanitizerMap = {};
|
|
74
80
|
}
|
|
75
81
|
};
|
|
76
82
|
_self.addFieldSanitizer = function (fieldSanitizer) {
|
|
77
83
|
if (fieldSanitizer) {
|
|
78
|
-
_fieldSanitizers
|
|
84
|
+
if (!arrIncludes(_fieldSanitizers, fieldSanitizer)) {
|
|
85
|
+
_fieldSanitizers.push(fieldSanitizer);
|
|
86
|
+
}
|
|
79
87
|
// Invalidate any previously mapped fields
|
|
80
88
|
_sanitizerMap = {};
|
|
81
89
|
}
|
|
82
90
|
};
|
|
91
|
+
_self.rmSanitizer = function (theSanitizer) {
|
|
92
|
+
if (theSanitizer) {
|
|
93
|
+
var idx = arrIndexOf(_sanitizers, theSanitizer);
|
|
94
|
+
if (idx !== -1) {
|
|
95
|
+
_sanitizers.splice(idx, 1);
|
|
96
|
+
// Invalidate any previously mapped fields
|
|
97
|
+
_sanitizerMap = {};
|
|
98
|
+
}
|
|
99
|
+
// Try and remove the sanitizer from any chained sanitizer as well
|
|
100
|
+
arrForEach(_sanitizers, function (sanitizer) {
|
|
101
|
+
sanitizer && sanitizer.rmSanitizer && sanitizer.rmSanitizer(theSanitizer);
|
|
102
|
+
});
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
_self.rmFieldSanitizer = function (theFieldSanitizer) {
|
|
106
|
+
if (theFieldSanitizer) {
|
|
107
|
+
var idx = arrIndexOf(_fieldSanitizers, theFieldSanitizer);
|
|
108
|
+
if (idx !== -1) {
|
|
109
|
+
_fieldSanitizers.splice(idx, 1);
|
|
110
|
+
// Invalidate any previously mapped fields
|
|
111
|
+
_sanitizerMap = {};
|
|
112
|
+
}
|
|
113
|
+
// Try and remove the field sanitizer from any chained sanitizer as well
|
|
114
|
+
arrForEach(_sanitizers, function (sanitizer) {
|
|
115
|
+
sanitizer && sanitizer.rmFieldSanitizer && sanitizer.rmFieldSanitizer(theFieldSanitizer);
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
};
|
|
119
|
+
_self.isEmpty = function () {
|
|
120
|
+
return (getLength(_sanitizers) + getLength(_fieldSanitizers)) === 0;
|
|
121
|
+
};
|
|
83
122
|
_self.handleField = function (path, name) {
|
|
84
123
|
var mapValue = _getFieldSanitizer(path, name);
|
|
85
124
|
return mapValue ? mapValue.canHandle : false;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValueSanitizer.js.map","sources":["ValueSanitizer.js"],"sourcesContent":["import { isNullOrUndefined, isString, objForEachKey } from \"@microsoft/applicationinsights-core-js\";\r\nimport { arrForEach, arrIncludes, arrIndexOf, getLength } from \"@nevware21/ts-utils\";\r\nimport { STR_EMPTY } from \"./InternalConstants\";\r\nimport { getFieldValueType, isValueAssigned, isValueKind } from \"./Utils\";\r\nvar ValueSanitizer = /** @class */ (function () {\r\n function ValueSanitizer(fieldSanitizerProvider) {\r\n var _self = this;\r\n // To aid with performance this is a lookup map to check if the field value sanitizer supports this field\r\n var _sanitizerMap = {};\r\n var _sanitizers = [];\r\n var _fieldSanitizers = [];\r\n if (fieldSanitizerProvider) {\r\n _fieldSanitizers.push(fieldSanitizerProvider);\r\n }\r\n function _getFieldSanitizer(path, name) {\r\n var result;\r\n var fieldLookup = _sanitizerMap[path];\r\n if (fieldLookup) {\r\n result = fieldLookup[name];\r\n }\r\n if (!result && result !== null) {\r\n // Null is a valid result indicating that the value sanitizer does not support this field\r\n if (isString(path) && isString(name)) {\r\n if (_fieldSanitizers.length > 0) {\r\n for (var lp = 0; lp < _fieldSanitizers.length; lp++) {\r\n if (_fieldSanitizers[lp].handleField(path, name)) {\r\n result = {\r\n canHandle: true,\r\n fieldHandler: _fieldSanitizers[lp]\r\n };\r\n break;\r\n }\r\n }\r\n }\r\n else if (_sanitizers.length === 0) {\r\n // Special use-case where there is no sanitizer to pass on to, so just resolving the field\r\n // and returning the resulting value (same as sanitizeProperty())\r\n result = {\r\n canHandle: true\r\n };\r\n }\r\n }\r\n // We still don't have a handler so lets lookup the providers\r\n if (!result && result !== null) {\r\n // Setting the result to null -- which means we and any contained sanitizers can't handle this field\r\n result = null;\r\n for (var lp = 0; lp < _sanitizers.length; lp++) {\r\n if (_sanitizers[lp].handleField(path, name)) {\r\n result = {\r\n canHandle: true,\r\n handler: _sanitizers[lp],\r\n fieldHandler: null\r\n };\r\n break;\r\n }\r\n }\r\n }\r\n if (!fieldLookup) {\r\n fieldLookup = _sanitizerMap[path] = {};\r\n }\r\n fieldLookup[name] = result;\r\n }\r\n return result;\r\n }\r\n _self.clearCache = function () {\r\n _sanitizerMap = {};\r\n };\r\n _self.addSanitizer = function (newSanitizer) {\r\n if (newSanitizer) {\r\n if (!arrIncludes(_sanitizers, newSanitizer)) {\r\n _sanitizers.push(newSanitizer);\r\n }\r\n // Invalidate any previously mapped fields\r\n _sanitizerMap = {};\r\n }\r\n };\r\n _self.addFieldSanitizer = function (fieldSanitizer) {\r\n if (fieldSanitizer) {\r\n if (!arrIncludes(_fieldSanitizers, fieldSanitizer)) {\r\n _fieldSanitizers.push(fieldSanitizer);\r\n }\r\n // Invalidate any previously mapped fields\r\n _sanitizerMap = {};\r\n }\r\n };\r\n _self.rmSanitizer = function (theSanitizer) {\r\n if (theSanitizer) {\r\n var idx = arrIndexOf(_sanitizers, theSanitizer);\r\n if (idx !== -1) {\r\n _sanitizers.splice(idx, 1);\r\n // Invalidate any previously mapped fields\r\n _sanitizerMap = {};\r\n }\r\n // Try and remove the sanitizer from any chained sanitizer as well\r\n arrForEach(_sanitizers, function (sanitizer) {\r\n sanitizer && sanitizer.rmSanitizer && sanitizer.rmSanitizer(theSanitizer);\r\n });\r\n }\r\n };\r\n _self.rmFieldSanitizer = function (theFieldSanitizer) {\r\n if (theFieldSanitizer) {\r\n var idx = arrIndexOf(_fieldSanitizers, theFieldSanitizer);\r\n if (idx !== -1) {\r\n _fieldSanitizers.splice(idx, 1);\r\n // Invalidate any previously mapped fields\r\n _sanitizerMap = {};\r\n }\r\n // Try and remove the field sanitizer from any chained sanitizer as well\r\n arrForEach(_sanitizers, function (sanitizer) {\r\n sanitizer && sanitizer.rmFieldSanitizer && sanitizer.rmFieldSanitizer(theFieldSanitizer);\r\n });\r\n }\r\n };\r\n _self.isEmpty = function () {\r\n return (getLength(_sanitizers) + getLength(_fieldSanitizers)) === 0;\r\n };\r\n _self.handleField = function (path, name) {\r\n var mapValue = _getFieldSanitizer(path, name);\r\n return mapValue ? mapValue.canHandle : false;\r\n };\r\n _self.value = function (path, name, value, stringifyObjects) {\r\n var mapValue = _getFieldSanitizer(path, name);\r\n if (mapValue && mapValue.canHandle) {\r\n if (!mapValue || !mapValue.canHandle) {\r\n return null;\r\n }\r\n if (mapValue.handler) {\r\n // This value sanitizer can't handle this field so pass it only the next one\r\n return mapValue.handler.value(path, name, value, stringifyObjects);\r\n }\r\n // Check that property is valid\r\n if (!isString(name) || isNullOrUndefined(value) || value === STR_EMPTY) {\r\n return null;\r\n }\r\n var property = null;\r\n var fieldType = getFieldValueType(value);\r\n if ((fieldType & 8192 /* FieldValueSanitizerType.EventProperty */) === 8192 /* FieldValueSanitizerType.EventProperty */) {\r\n var subType = fieldType & ~8192 /* FieldValueSanitizerType.EventProperty */;\r\n property = value;\r\n if (!isValueAssigned(property.value) ||\r\n (subType !== 1 /* FieldValueSanitizerType.String */ &&\r\n subType !== 2 /* FieldValueSanitizerType.Number */ &&\r\n subType !== 3 /* FieldValueSanitizerType.Boolean */ &&\r\n (subType & 4096 /* FieldValueSanitizerType.Array */) !== 4096 /* FieldValueSanitizerType.Array */)) {\r\n // Not a supported IEventProperty type to be able to sanitize\r\n return null;\r\n }\r\n }\r\n else if (fieldType === 1 /* FieldValueSanitizerType.String */ ||\r\n fieldType === 2 /* FieldValueSanitizerType.Number */ ||\r\n fieldType === 3 /* FieldValueSanitizerType.Boolean */ ||\r\n (fieldType & 4096 /* FieldValueSanitizerType.Array */) === 4096 /* FieldValueSanitizerType.Array */) {\r\n // If the property isn't IEventProperty (and is either string, number, boolean or array), convert it into one.\r\n property = _convertToProperty(path, name, value);\r\n }\r\n else if (fieldType === 4 /* FieldValueSanitizerType.Object */) {\r\n property = _convertToProperty(path, name, !!stringifyObjects ? JSON.stringify(value) : value);\r\n }\r\n if (property) {\r\n return _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects);\r\n }\r\n }\r\n return null;\r\n };\r\n _self.property = function (path, name, property, stringifyObjects) {\r\n var mapValue = _getFieldSanitizer(path, name);\r\n if (!mapValue || !mapValue.canHandle) {\r\n return null;\r\n }\r\n // Check that property is valid\r\n if (!isString(name) || isNullOrUndefined(property) || !isValueAssigned(property.value)) {\r\n return null;\r\n }\r\n var fieldType = getFieldValueType(property.value);\r\n if (fieldType === 0 /* FieldValueSanitizerType.NotSet */) {\r\n // Not a supported field that we can sanitize or serialize\r\n return null;\r\n }\r\n return _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects);\r\n };\r\n function _handleProperty(mapValue, path, name, fieldType, property, stringifyObjects) {\r\n if (mapValue.handler) {\r\n // This value sanitizer can't handle this field so pass it only the next one\r\n return mapValue.handler.property(path, name, property, stringifyObjects);\r\n }\r\n // If either pii or cc is set convert value to string (since only string pii/cc is allowed).\r\n // If the value is a complex type like an array that can't be converted to string we will drop\r\n // the property.\r\n if (!isNullOrUndefined(property.kind)) {\r\n if ((fieldType & 4096 /* FieldValueSanitizerType.Array */) === 4096 /* FieldValueSanitizerType.Array */ || !isValueKind(property.kind)) {\r\n return null;\r\n }\r\n // Convert the value to a string and assign back to the original value\r\n property.value = property.value.toString();\r\n }\r\n return _callFieldSanitizer(mapValue.fieldHandler, path, name, fieldType, property);\r\n }\r\n function _convertToProperty(path, name, value) {\r\n if (isValueAssigned(value)) {\r\n return { value: value };\r\n }\r\n return null;\r\n }\r\n function _callFieldSanitizer(fieldProvider, path, name, theType, property) {\r\n if (property && fieldProvider) {\r\n var sanitizer = fieldProvider.getSanitizer(path, name, theType, property.kind, property.propertyType);\r\n if (sanitizer) {\r\n // This is where we the field will call the handler to \"scrub\" the value. This the primary hook for the ClientHashing Plugin to\r\n // be able to apply the hashFunc() / Sha256 conversion of the properties value\r\n if (theType === 4 /* FieldValueSanitizerType.Object */) {\r\n // Special case of an embedded object (ext.metadata, data.properties)\r\n var newValue_1 = {};\r\n var propValue = property.value;\r\n objForEachKey(propValue, function (propKey, theValue) {\r\n var newPath = path + \".\" + name;\r\n if (isValueAssigned(theValue)) {\r\n var newProp = _convertToProperty(newPath, propKey, theValue);\r\n newProp = _callFieldSanitizer(fieldProvider, newPath, propKey, getFieldValueType(theValue), newProp);\r\n if (newProp) {\r\n newValue_1[propKey] = newProp.value;\r\n }\r\n }\r\n });\r\n property.value = newValue_1;\r\n }\r\n else {\r\n var details = {\r\n path: path,\r\n name: name,\r\n type: theType,\r\n prop: property,\r\n sanitizer: _self\r\n };\r\n property = sanitizer.call(_self, details);\r\n }\r\n }\r\n }\r\n return property;\r\n }\r\n }\r\n ValueSanitizer.getFieldType = getFieldValueType;\r\n return ValueSanitizer;\r\n}());\r\nexport { ValueSanitizer };\r\n//# sourceMappingURL=ValueSanitizer.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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/1ds-core-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.1",
|
|
4
4
|
"description": "Microsoft Application Insights JavaScript SDK - 1ds-core-js extensions",
|
|
5
5
|
"author": "Microsoft Application Insights Team",
|
|
6
6
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"ai-min": "grunt core-min",
|
|
11
11
|
"ai-restore": "grunt core-restore",
|
|
12
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"1DS JS SDK Core\" -hidePrivate",
|
|
12
13
|
"publishPackage": "npm publish",
|
|
13
14
|
"docs": "typedoc --out docs docs --excludePrivate --excludeProtected --tsconfig lib/tsconfig.json --theme minimal",
|
|
14
15
|
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
@@ -21,8 +22,9 @@
|
|
|
21
22
|
"type": "git",
|
|
22
23
|
"url": "https://github.com/microsoft/ApplicationInsights-JS"
|
|
23
24
|
},
|
|
24
|
-
"main": "dist/ms.core.js",
|
|
25
|
-
"module": "dist-
|
|
25
|
+
"main": "dist/es5/ms.core.js",
|
|
26
|
+
"module": "dist-es5/Index.js",
|
|
27
|
+
"types": "types/1ds-core-js.d.ts",
|
|
26
28
|
"keywords": [
|
|
27
29
|
"1ds",
|
|
28
30
|
"azure",
|
|
@@ -33,14 +35,19 @@
|
|
|
33
35
|
"Js",
|
|
34
36
|
"SDK"
|
|
35
37
|
],
|
|
36
|
-
"types": "dist-esm/src/Index.d.ts",
|
|
37
38
|
"dependencies": {
|
|
38
|
-
"@microsoft/applicationinsights-shims": "^
|
|
39
|
-
"@microsoft/applicationinsights-core-js": "
|
|
40
|
-
"@microsoft/dynamicproto-js": "^
|
|
39
|
+
"@microsoft/applicationinsights-shims": "^3.0.1",
|
|
40
|
+
"@microsoft/applicationinsights-core-js": "3.0.2",
|
|
41
|
+
"@microsoft/dynamicproto-js": "^2.0.2",
|
|
42
|
+
"@nevware21/ts-utils": ">= 0.9.6 < 2.x",
|
|
43
|
+
"@nevware21/ts-async": ">= 0.2.4 < 2.x"
|
|
41
44
|
},
|
|
42
45
|
"devDependencies": {
|
|
43
|
-
"
|
|
44
|
-
"
|
|
46
|
+
"@microsoft/api-extractor": "7.18.19",
|
|
47
|
+
"@nevware21/ts-async": ">= 0.2.4 < 2.x",
|
|
48
|
+
"grunt": "^1.5.3",
|
|
49
|
+
"grunt-cli": "^1.4.3",
|
|
50
|
+
"typescript": "^4.9.3",
|
|
51
|
+
"tslib": "^2.0.0"
|
|
45
52
|
}
|
|
46
53
|
}
|
package/tsconfig.json
CHANGED
|
@@ -4,16 +4,18 @@
|
|
|
4
4
|
"inlineSources": true,
|
|
5
5
|
"module": "es6",
|
|
6
6
|
"moduleResolution": "Node",
|
|
7
|
-
"target": "
|
|
7
|
+
"target": "es5",
|
|
8
8
|
"alwaysStrict": true,
|
|
9
9
|
"strictNullChecks": false,
|
|
10
|
-
"suppressImplicitAnyIndexErrors": true,
|
|
11
10
|
"allowSyntheticDefaultImports": true,
|
|
12
11
|
"importHelpers": true,
|
|
13
12
|
"noEmitHelpers": true,
|
|
14
13
|
"forceConsistentCasingInFileNames": true,
|
|
15
14
|
"declaration": true,
|
|
16
|
-
"
|
|
15
|
+
"declarationDir": "build/types",
|
|
16
|
+
"removeComments": false,
|
|
17
|
+
"outDir": "dist-es5/",
|
|
18
|
+
"rootDir": "./src"
|
|
17
19
|
},
|
|
18
20
|
"include": [
|
|
19
21
|
"./src/**/*.ts"
|