Update Dependencies and convert missed test framework changes (#1613)

This commit is contained in:
Nev 2021-07-22 12:11:47 -07:00 коммит произвёл GitHub
Родитель 0013f9baf0
Коммит 73c619127e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
50 изменённых файлов: 2831 добавлений и 16169 удалений

Просмотреть файл

@ -35,9 +35,6 @@
"devDependencies": {
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
"@types/qunit": "^2.5.3",
"@types/sinon": "4.3.3",
"qunit": "^2.11.2",
"sinon": "^7.3.1",
"chromedriver": "^2.45.0",
"@microsoft/api-extractor": "^7.9.11",
@ -45,7 +42,7 @@
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"grunt-tslint": "^5.0.2",
"globby": "^11.0.0",
"magic-string": "^0.25.7",

Просмотреть файл

@ -25,7 +25,7 @@
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"@rollup/plugin-commonjs": "^18.0.0",

Различия файлов скрыты, потому что одна или несколько строк слишком длинны

Просмотреть файл

@ -1,44 +0,0 @@
(function myReporter() {
var reported = false;
var a = document.createElement("a");
document.body.appendChild(a);
//your reporter code
blanket.customReporter = function (coverage) {
blanket.defaultReporter(coverage);
var styleTags = document.getElementsByTagName("style");
var styles = "";
for (var i = 0; i < styleTags.length; i++) {
styles += styleTags[i].outerHTML;
}
var scriptTags = document.getElementsByTagName("body")[0].getElementsByTagName("script");
var scripts = "";
for (var i = 0; i < scriptTags.length; i++) {
scripts += scriptTags[i].outerHTML;
}
var title = document.getElementsByTagName("title")[0].text;
var documentName = title.replace(/[^\w]/ig, '') + 'Coverage.html';
var coverageReport = '';
coverageReport += '<html>' + '<head>' + styles + "</head><body><h1>" + title.replace(/[^\w\s]/ig, '') + "</h1>" + scripts + document.getElementById("blanket-main").outerHTML + "</body></html>";
var file = new Blob([coverageReport], { type: 'text/plain' });
a.href = URL.createObjectURL(file);
a.download = documentName;
if (!reported) {
a.click();
reported = true;
}
};
})();

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -1,691 +0,0 @@
// Type definitions for QUnit v2.5.0
// Project: http://qunitjs.com/
// Definitions by: James Bracy <https://github.com/waratuman>
// Mike North <https://github.com/mike-north>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface Assert {
/**
* Instruct QUnit to wait for an asynchronous operation.
*
* The callback returned from `assert.async()` will throw an Error if it is
* invoked more than once (or more often than the accepted call count, if
* provided).
*
* This replaces functionality previously provided by `QUnit.stop()` and
* `QUnit.start()`.
*
* @param {number} [acceptCallCount=1] Number of expected callbacks before the test is done.
*/
async(acceptCallCount?: number): () => void;
/**
* A deep recursive comparison, working on primitive types, arrays, objects,
* regular expressions, dates and functions.
*
* The `deepEqual()` assertion can be used just like `equal()` when comparing
* the value of objects, such that `{ key: value }` is equal to
* `{ key: value }`. For non-scalar values, identity will be disregarded by
* deepEqual.
*
* `notDeepEqual()` can be used to explicitly test deep, strict inequality.
*
* @param actual Object or Expression being tested
* @param expected Known comparision value
* @param {string} [message] A short description of the assertion
*/
deepEqual<T>(actual: T, expected: T, message?: string): void;
/**
* A non-strict comparison, roughly equivalent to JUnit's assertEquals.
*
* The `equal` assertion uses the simple comparison operator (`==`) to
* compare the actual and expected arguments. When they are equal, the
* assertion passes; otherwise, it fails. When it fails, both actual and
* expected values are displayed in the test result, in addition to a given
* message.
*
* `notEqual()` can be used to explicitly test inequality.
*
* `strictEqual()` can be used to test strict equality.
*
* @param actual Expression being tested
* @param expected Known comparison value
* @param {string} [message] A short description of the assertion
*/
equal(actual: any, expected: any, message?: string): void;
/**
* Specify how many assertions are expected to run within a test.
*
* To ensure that an explicit number of assertions are run within any test,
* use `assert.expect( number )` to register an expected count. If the
* number of assertions run does not match the expected count, the test will
* fail.
*
* @param {number} amount Number of assertions in this test.
*/
expect(amount: number): void;
/**
* An inverted deep recursive comparison, working on primitive types,
* arrays, objects, regular expressions, dates and functions.
*
* @param actual Object or Expression being tested
* @param expected Known comparison value
* @param {string} [message] A short description of the assertion
*/
notDeepEqual(actual: any, expected: any, message?: string): void;
/**
* A non-strict comparison, checking for inequality.
*
* The `notEqual` assertion uses the simple inverted comparison operator
* (`!=`) to compare the actual and expected arguments. When they aren't
* equal, the assertion passes; otherwise, it fails. When it fails, both
* actual and expected values are displayed in the test result, in addition
* to a given message.
*
* `equal()` can be used to test equality.
*
* `notStrictEqual()` can be used to test strict inequality.
*
* @param actual Object or Expression being tested
* @param expected Known comparison value
* @param {string} [message] A short description of the assertion
*/
notEqual(actual: any, expected: any, message?: string): void;
/**
* A boolean check, inverse of `ok()` and CommonJS's `assert.ok()`, and
* equivalent to JUnit's `assertFalse()`. Passes if the first argument is
* falsy.
*
* `notOk()` requires just one argument. If the argument evaluates to false,
* the assertion passes; otherwise, it fails. If a second message argument
* is provided, it will be displayed in place of the result.
*
* @param state Expression being tested
* @param {string} [message] A short description of the assertion
*/
notOk(state: any, message?: string): void;
/**
* A strict comparison of an object's own properties, checking for inequality.
*
* The `notPropEqual` assertion uses the strict inverted comparison operator
* (`!==`) to compare the actual and expected arguments as Objects regarding
* only their properties but not their constructors.
*
* When they aren't equal, the assertion passes; otherwise, it fails. When
* it fails, both actual and expected values are displayed in the test
* result, in addition to a given message.
*
* `equal()` can be used to test equality.
*
* `propEqual()` can be used to test strict equality of an Object properties.
*
* @param actual Object or Expression being tested
* @param expected Known comparison value
* @param {string} [message] A short description of the assertion
*/
notPropEqual(actual: any, expected: any, message?: string): void;
/**
* A strict comparison, checking for inequality.
*
* The `notStrictEqual` assertion uses the strict inverted comparison
* operator (`!==`) to compare the actual and expected arguments. When they
* aren't equal, the assertion passes; otherwise, it fails. When it fails,
* both actual and expected values are displayed in the test result, in
* addition to a given message.
*
* `equal()` can be used to test equality.
*
* `strictEqual()` can be used to test strict equality.
*
* @param actual Object or Expression being tested
* @param expected Known comparison value
* @param {string} [message] A short description of the assertion
*/
notStrictEqual(actual: any, expected: any, message?: string): void;
/**
* A boolean check, equivalent to CommonJS's assert.ok() and JUnit's
* assertTrue(). Passes if the first argument is truthy.
*
* The most basic assertion in QUnit, ok() requires just one argument. If
* the argument evaluates to true, the assertion passes; otherwise, it
* fails. If a second message argument is provided, it will be displayed in
* place of the result.
*
* @param state Expression being tested
* @param {string} message A short description of the assertion
*/
ok(state: any, message?: string): void;
/**
* A strict type and value comparison of an object's own properties.
*
* The `propEqual()` assertion provides strictly (`===`) comparison of
* Object properties. Unlike `deepEqual()`, this assertion can be used to
* compare two objects made with different constructors and prototype.
*
* `strictEqual()` can be used to test strict equality.
*
* `notPropEqual()` can be used to explicitly test strict inequality of
* Object properties.
*
* @param actual Object or Expression being tested
* @param expected Known comparison value
* @param {string} [message] A short description of the assertion
*/
propEqual(actual: any, expected: any, message?: string): void;
/**
* Report the result of a custom assertion
*
* Some test suites may need to express an expectation that is not defined
* by any of QUnit's built-in assertions. This need may be met by
* encapsulating the expectation in a JavaScript function which returns a
* `Boolean` value representing the result; this value can then be passed
* into QUnit's `ok` assertion.
*
* A more readable solution would involve defining a custom assertion. If
* the expectation function invokes `pushResult`, QUnit will be notified of
* the result and report it accordingly.
*
* @param assertionResult The assertion result
*/
pushResult(assertResult: {
result: boolean;
actual: any;
expected: any;
message: string;
}): void;
/**
* A strict type and value comparison.
*
* The `strictEqual()` assertion provides the most rigid comparison of type
* and value with the strict equality operator (`===`).
*
* `equal()` can be used to test non-strict equality.
*
* `notStrictEqual()` can be used to explicitly test strict inequality.
*
* @param actual Object or Expression being tested
* @param expected Known comparison value
* @param {string} [message] A short description of the assertion
*/
strictEqual<T>(actual: T, expected: T, message?: string): void;
/**
* Test if a callback throws an exception, and optionally compare the thrown
* error.
*
* When testing code that is expected to throw an exception based on a
* specific set of circumstances, use assert.throws() to catch the error
* object for testing and comparison.
*
* In very few environments, like Closure Compiler, throws is considered a
* reserved word and will cause an error. For that case, an alias is bundled
* called `raises`. It has the same signature and behaviour, just a
* different name.
*/
throws(block: () => void, expected?: any, message?: any): void;
raises(block: () => void, expected?: any, message?: any): void;
/**
* Test if the provided promise rejects, and optionally compare the
* rejection value.
*
* When testing code that is expected to return a rejected promise based on
* a specific set of circumstances, use assert.rejects() for testing and
* comparison.
*
* The expectedMatcher argument can be:
* A function that returns true when the assertion should be considered passing.
* An Error object
* A base constructor to use ala rejectionValue instanceof expectedMatcher
* A RegExp that matches (or partially matches) rejectionValue.toString()
*
* Note: in order to avoid confusion between the message and the expectedMatcher,
* the expectedMatcher can not be a string.
*
* @param promise promise to test for rejection
* @param expectedMatcher Rejection value matcher
* @param message A short description of the assertion
*/
rejects(promise: Promise<any>, message?: string): void;
rejects(
promise: Promise<any>,
expectedMatcher?: any,
message?: string,
): void;
/**
* A marker for progress in a given test.
*
* The `step()` assertion registers a passing assertion with a provided message. This makes
* it easy to check that specific portions of code are being executed, especially in
* asynchronous test cases and when used with `verifySteps()`.
*
* Together with the `verifySteps()` method, `step()` assertions give you an easy way
* to verify both the count and order of code execution.
*
* @param message Message to display for the step
*/
step(message: string): void;
/**
* A helper assertion to verify the order and number of steps in a test.
*
* The assert.verifySteps() assertion compares a given array of string values (representing steps)
* with the order and values of previous step() calls. This assertion is helpful for verifying
* the order and count of portions of code paths, especially asynchronous ones.
*
* @param steps Array of strings representing steps to verify
* @param message A short description of the assertion
*/
verifySteps(steps: string[], message?: string): void;
}
interface Config {
altertitle: boolean;
autostart: boolean;
collapse: boolean;
current: any;
filter: string | RegExp
fixture: string;
hidepassed: boolean;
maxDepth: number;
module: string;
moduleId: string[];
notrycatch: boolean;
noglobals: boolean;
seed: string;
reorder: boolean;
requireExpects: boolean;
testId: string[];
testTimeout: number;
scrolltop: boolean;
urlConfig: {
id?: string;
label?: string;
tooltip?: string;
value?: string | string[] | { [key: string]: string }
}[];
}
interface Hooks {
/**
* Runs after the last test. If additional tests are defined after the
* module's queue has emptied, it will not run this hook again.
*/
after?: (assert: Assert) => void;
/**
* Runs after each test.
*/
afterEach?: (assert: Assert) => void;
/**
* Runs before the first test.
*/
before?: (assert: Assert) => void;
/**
* Runs before each test.
*/
beforeEach?: (assert: Assert) => void;
}
interface NestedHooks {
/**
* Runs after the last test. If additional tests are defined after the
* module's queue has emptied, it will not run this hook again.
*/
after: (fn: (assert: Assert) => void) => void;
/**
* Runs after each test.
*/
afterEach: (fn: (assert: Assert) => void) => void;
/**
* Runs before the first test.
*/
before: (fn: (assert: Assert) => void) => void;
/**
* Runs before each test.
*/
beforeEach: (fn: (assert: Assert) => void) => void;
}
declare namespace QUnit {
interface BeginDetails { totalTests: number }
interface DoneDetails { failed: number, passed: number, total: number, runtime: number }
interface LogDetails {
result: boolean,
actual: any;
expected: any;
message: string;
source: string;
module: string;
name: string;
runtime: number;
}
interface ModuleDoneDetails {
name: string;
failed: number;
passed: number;
total: number;
runtime: number;
}
interface ModuleStartDetails { name: string }
interface TestDoneDetails {
name: string;
module: string;
failed: number;
passed: number;
total: number;
runtime: number;
}
interface TestStartDetails { name: string; module: string; }
}
interface QUnit {
/**
* Namespace for QUnit assertions
*
* QUnit's built-in assertions are defined on the `QUnit.assert` object. An
* instance of this object is passed as the only argument to the `QUnit.test`
* function callback.
*
* This object has properties for each of QUnit's built-in assertion methods.
*/
assert: Assert;
/**
* Register a callback to fire whenever the test suite begins.
*
* `QUnit.begin()` is called once before running any tests.
*
* @callback callback Callback to execute.
*/
begin(callback: (details: QUnit.BeginDetails) => void): void;
/**
* Configuration for QUnit
*
* QUnit has a bunch of internal configuration defaults, some of which are
* useful to override. Check the description for each option for details.
*/
config: Config
/**
* Register a callback to fire whenever the test suite ends.
*
* @param callback Callback to execute
*/
done(callback: (details: QUnit.DoneDetails) => void): void;
/**
* Advanced and extensible data dumping for JavaScript.
*
* This method does string serialization by parsing data structures and
* objects. It parses DOM elements to a string representation of their outer
* HTML. By default, nested structures will be displayed up to five levels
* deep. Anything beyond that is replaced by `[object Object]` and
* `[object Array]` placeholders.
*
* If you need more or less output, change the value of `QUnit.dump.maxDepth`,
* representing how deep the elements should be parsed.
*
* Note: This method used to be in QUnit.jsDump, which was changed to
* QUnit.dump. The old property will be removed in QUnit 3.0.
*/
dump: {
maxDepth: number;
parse(data: any): string
};
/**
* Copy the properties defined by the `mixin` object into the `target` object.
*
* This method will modify the `target` object to contain the "own" properties
* defined by the `mixin`. If the `mixin` object specifies the value of any
* attribute as undefined, this property will instead be removed from the
* `target` object.
*
* @param target An object whose properties are to be modified
* @param mixin An object describing which properties should be modified
*/
extend(target: any, mixin: any): void;
/**
* Register a callback to fire whenever an assertion completes.
*
* This is one of several callbacks QUnit provides. Its intended for
* integration scenarios like PhantomJS or Jenkins. The properties of the
* details argument are listed below as options.
*
* @param callback Callback to execute
*/
log(callback: (details: QUnit.LogDetails) => void): void;
/**
* Group related tests under a single label.
*
* You can use the module name to organize, select, and filter tests to run.
*
* All tests inside a module callback function will be grouped into that
* module. The test names will all be preceded by the module name in the
* test results. Other modules can be nested inside this callback function,
* where their tests' names will be labeled by their names recursively
* prefixed by their parent modules.
*
* If `QUnit.module` is defined without a `nested` callback argument, all
* subsequently defined tests will be grouped into the module until another
* module is defined.
*
* Modules with test group functions allow you to define nested modules, and
* QUnit will run tests on the parent module before going deep on the nested
* ones, even if they're declared first. Additionally, any hook callbacks on
* a parent module will wrap the hooks on a nested module. In other words,
* `before` and `beforeEach` callbacks will form a queue while the
* `afterEach` and `after` callbacks will form a stack.
*
* You can specify code to run before and after tests using the hooks
* argument, and also to create properties that will be shared on the
* testing context. Any additional properties on the `hooks` object will be
* added to that context. The `hooks` argument is still optional if you call
* `QUnit.module` with a callback argument.
*
* The module's callback is invoked with the test environment as its `this`
* context, with the environment's properties copied to the module's tests,
* hooks, and nested modules. Note that changes on tests' `this` are not
* preserved between sibling tests, where `this` will be reset to the initial
* value for each test.
*
* @param {string} name Label for this group of tests
* @param hookds Callbacks to run during test execution
* @param nested A callback with grouped tests and nested modules to run under the current module label
*/
module(name: string, hooks?: Hooks, nested?: (hooks: NestedHooks) => void): void;
module(name: string, nested?: (hooks: NestedHooks) => void): void;
/**
* Register a callback to fire whenever a module ends.
*
* @param callback Callback to execute
*/
moduleDone(callback: (details: QUnit.ModuleDoneDetails) => void): void;
/**
* Register a callback to fire whenever a module begins.
*
* @param callback Callback to execute
*/
moduleStart(callback: (details: QUnit.ModuleStartDetails) => void): void;
/**
* Adds a test to exclusively run, preventing all other tests from running.
*
* Use this method to focus your test suite on a specific test. QUnit.only
* will cause any other tests in your suite to be ignored.
*
* Note, that if more than one QUnit.only is present only the first instance
* will run.
*
* This is an alternative to filtering tests to run in the HTML reporter. It
* is especially useful when you use a console reporter or in a codebase
* with a large set of long running tests.
*
* @param {string} name Title of unit being tested
* @param callback Function to close over assertions
*/
only(name: string, callback: (assert: Assert) => void): void;
/**
* DEPRECATED: Report the result of a custom assertion.
*
* This method is deprecated and it's recommended to use pushResult on its
* direct reference in the assertion context.
*
* QUnit.push reflects to the current running test, and it may leak
* assertions in asynchronous mode. Checkout assert.pushResult() to set a
* proper custom assertion.
*
* Invoking QUnit.push allows to create a readable expectation that is not
* defined by any of QUnit's built-in assertions.
*
* @deprecated
*/
push(result: boolean, actual: any, expected: any, message: string): void;
/**
* Adds a test like object to be skipped.
*
* Use this method to replace QUnit.test() instead of commenting out entire
* tests.
*
* This test's prototype will be listed on the suite as a skipped test,
* ignoring the callback argument and the respective global and module's
* hooks.
*
* @param {string} Title of unit being tested
*/
skip(name: string, callback?: (assert: Assert) => void): void;
/**
* Returns a single line string representing the stacktrace (call stack).
*
* This method returns a single line string representing the stacktrace from
* where it was called. According to its offset argument, `QUnit.stack()` will
* return the correspondent line from the call stack.
*
* The default `offset` is `0` and will return the current location where it
* was called.
*
* Not all browsers support retrieving stracktraces. In those, `QUnit.stack()`
* will return undefined.
*
* @param {number} offset Set the stacktrace line offset.
*/
stack(offset?: number): string;
/**
* `QUnit.start()` must be used to start a test run that has
* `QUnit.config.autostart` set to `false`.
*
* This method was previously used to control async tests on text contexts
* along with QUnit.stop. For asynchronous tests, use assert.async instead.
*
* When your async test has multiple exit points, call `QUnit.start()` for the
* corresponding number of `QUnit.stop()` increments.
*/
start(): void;
/**
* Add a test to run.
*
* Add a test to run using `QUnit.test()`.
*
* The `assert` argument to the callback contains all of QUnit's assertion
* methods. Use this argument to call your test assertions.
*
* `QUnit.test()` can automatically handle the asynchronous resolution of a
* Promise on your behalf if you return a thenable Promise as the result of
* your callback function.
*
* @param {string} Title of unit being tested
* @param callback Function to close over assertions
*/
test(name: string, callback: (assert: Assert) => void): void;
/**
* Register a callback to fire whenever a test ends.
*
* @param callback Callback to execute
*/
testDone(callback: (details: {
name: string;
module: string;
failed: number;
passed: number;
total: number;
runtime: number;
}) => void): void;
/**
* Register a callback to fire whenever a test begins.
*
* @param callback Callback to execute
*/
testStart(callback: (details: QUnit.TestStartDetails) => void): void;
/**
* Adds a test which expects at least one failing assertion during its run.
*
* Use this method to test a unit of code which is still under development
* (in a todo state). The test will pass as long as one failing assertion
* is present.
*
* If all assertions pass, then the test will fail signaling that QUnit.todo
* should be replaced by QUnit.test.
*
* @param {string} Title of unit being tested
* @param callback Function to close over assertions
*/
todo(name: string, callback?: (assert: Assert) => void): void;
/**
* Compares two values. Returns true if they are equivalent.
*
* @param a The first value
* @param b The second value
*/
equiv<T>(a: T, b: T): boolean;
/**
* Are the test running from the server or not.
*/
isLocal: boolean;
/**
* QUnit version
*/
version: string;
}
/* QUnit */
declare const QUnit: QUnit;

Просмотреть файл

@ -1,148 +0,0 @@
// Commenting out for now as not currently used
// import { ISerializable } from '@microsoft/applicationinsights-common';
// import { TestClass } from '../TestFramework/TestClass';
// export class ContractTestHelper extends TestClass {
// public name: string;
// private initializer: () => ISerializable;
// constructor(initializer: () => ISerializable, name: string) {
// super();
// this.name = name;
// this.initializer = initializer;
// }
// /** Method called before the start of each test method */
// public testInitialize() {
// }
// /** Method called after each test method has completed */
// public testCleanup() {
// }
// public registerTests() {
// const name = this.name + ": ";
// this.testCase({
// name: name + "constructor does not throw errors",
// test: () => {
// this.getSubject(this.initializer, this.name);
// }
// });
// this.testCase({
// name: name + "serialization does not throw errors",
// test: () => {
// const subject = this.getSubject(this.initializer, this.name);
// this.serialize(subject, this.name);
// }
// });
// this.testCase({
// name: name + "all required fields are constructed",
// test: () => {
// this.allRequiredFieldsAreConstructed(this.initializer, this.name);
// }
// });
// this.testCase({
// name: name + "extra fields are removed upon serialization",
// test: () => {
// this.extraFieldsAreRemovedBySerializer(this.initializer, this.name);
// }
// });
// this.testCase({
// name: this.name + "optional fields are not required by the back end",
// test: () => {
// this.optionalFieldsAreNotRequired(this.initializer, this.name);
// }
// });
// this.testCase({
// name: this.name + "all fields are serialized if included",
// test: () => {
// this.allFieldsAreIncludedIfSpecified(this.initializer, this.name);
// }
// });
// }
// public checkSerializableObject(initializer: () => any, name: string) {
// this.allRequiredFieldsAreConstructed(initializer, name);
// this.extraFieldsAreRemovedBySerializer(initializer, name);
// this.allFieldsAreIncludedIfSpecified(initializer, name);
// }
// private allRequiredFieldsAreConstructed(initializer: () => any, name: string) {
// const subject = this.getSubject(initializer, name);
// for (const field in subject.aiDataContract) {
// if (subject.aiDataContract[field] & Microsoft.ApplicationInsights.FieldType.Required) {
// QUnit.assert.ok(subject[field] != null, "The required field '" + field + "' is constructed for: '" + name + "'");
// }
// }
// }
// private extraFieldsAreRemovedBySerializer(initializer: () => any, name: string) {
// const subject = this.getSubject(initializer, name);
// const extra = "extra";
// subject[extra + 0] = extra;
// subject[extra + 1] = extra;
// subject[extra + 3] = extra;
// const serializedSubject = this.serialize(subject, name);
// for (const field in serializedSubject) {
// QUnit.assert.ok(subject.aiDataContract[field] != null, "The field '" + field + "' exists in the contract for '" + name + "' and was serialized");
// }
// }
// private optionalFieldsAreNotRequired(initializer: () => any, name: string) {
// const subject = this.getSubject(this.initializer, this.name);
// for (const field in subject.aiDataContract) {
// if (!subject.aiDataContract[field]) {
// delete subject[field];
// }
// }
// }
// private allFieldsAreIncludedIfSpecified(initializer: () => any, name: string) {
// const subject = this.getSubject(this.initializer, this.name);
// for (const field in subject.aiDataContract) {
// subject[field] = field;
// }
// const serializedSubject = this.serialize(subject, this.name);
// for (field in subject.aiDataContract) {
// QUnit.assert.ok(serializedSubject[field] === field, "Field '" + field + "' was not serialized" + this.name);
// }
// for (field in serializedSubject) {
// QUnit.assert.ok(subject.aiDataContract[field] !== undefined, "Field '" + field + "' was included but is not specified in the contract " + this.name);
// }
// }
// private serialize(subject: Microsoft.ApplicationInsights.ISerializable, name: string) {
// let serialized = "";
// try {
// serialized = Microsoft.ApplicationInsights.Serializer.serialize(subject);
// } catch (e) {
// QUnit.assert.ok(false, "Failed to serialize '" + name + "'\r\n" + e);
// }
// return JSON.parse(serialized);
// }
// private getSubject(construction: () => Microsoft.ApplicationInsights.ISerializable, name: string): any {
// const subject = construction();
// QUnit.assert.ok(!!subject, "can construct " + name);
// return subject;
// }
// }

Просмотреть файл

@ -1,225 +0,0 @@
// Commenting out for now as not currently used
// interface IJSLitmus {
// test: (name: string, f: Function) => void;
// stop: () => void;
// runAll: (e?: Event) => JQueryDeferred<void>;
// _tests: any[];
// }
// interface IPerfResult {
// operationCount: number;
// timeInMs: number;
// name: string;
// opsPerSec: number;
// period: number;
// date: number;
// platform: string;
// os: string;
// oneHrDate: number;
// friendlyDate: string;
// group: string;
// millisecondsPerOp: number;
// microsecondsPerOp: number;
// secondsPerOp: number;
// browser: string;
// }
// declare var JSLitmus: IJSLitmus;
// class PerformanceTestHelper extends TestClass {
// public testCount;
// public appInsights;
// public testProperties;
// public testMeasurements;
// public results: IPerfResult[];
// private isDone;
// constructor(timeout?: number) {
// super();
// this.testCount = 0;
// this.synchronouslyLoadJquery();
// this.results = [];
// }
// /** Method called before the start of each test method */
// public testInitialize() {
// this.useFakeServer = false;
// sinon.fakeServer["restore"]();
// this.useFakeTimers = false;
// this.clock.restore();
// this.appInsights = new Microsoft.ApplicationInsights.AppInsights({
// instrumentationKey: "3e6a441c-b52b-4f39-8944-f81dd6c2dc46",
// url: "file:///C:/src/sdk/src/JavaScript/JavaScriptSDK.Tests//E2ETests/ai.js",
// endpointUrl: "https://dc.services.visualstudio.com/v2/track",
// maxBatchInterval: 0
// } as any);
// this.appInsights.context._sender._sender = () => null;
// this.testProperties = { p1: "val", p2: "val", p3: "val", p4: "val", p5: "val", p6: "val", p7: "val" };
// this.testMeasurements = { m1: 1, m2: 1, m3: 1, m4: 1, m5: 1, m6: 1, m7: 1, m8: 1, m9: 1 };
// }
// /** Method called after each test method has completed */
// public testCleanup() {
// this.useFakeServer = true;
// this.useFakeTimers = true;
// const serializedPerfResults: string = window["perfResults"] || "[]";
// let perfResults: IPerfResult[] = (JSON.parse(serializedPerfResults)) as any;
// perfResults = perfResults.concat(this.results);
// window["perfResults"] = JSON.stringify(perfResults);
// window["perfResultsCsv"] = this.toCsv(perfResults).csv;
// window["perfResultsCsvHeaders"] = this.toCsv(perfResults).headers;
// }
// public enqueueTest(name: string, action: () => void) {
// JSLitmus.test(name, (count) => {
// while (count--) {
// action();
// }
// });
// }
// public runTests() {
// JSLitmus.runAll().done(() => this.onTestsComplete());
// }
// public onTestsComplete() {
// const perfLogging = new Microsoft.ApplicationInsights.AppInsights({
// instrumentationKey: "1a6933ad-f260-447f-a2b0-e2233f6658eb",
// url: "file:///C:/src/sdk/src/JavaScript/JavaScriptSDK.Tests//E2ETests/ai.js",
// endpointUrl: "http://prodintdataforker.azurewebsites.net/dcservices?intKey=4d93aad0-cf1d-45b7-afc9-14f55504f6d5",
// sessionRenewalMs: 30 * 60 * 1000,
// sessionExpirationMs: 24 * 60 * 60 * 1000,
// maxBatchSizeInBytes: 1000000,
// maxBatchInterval: 0
// } as any);
// perfLogging.context._sender._sender = (payload) => {
// const xhr = new sinon["xhr"].workingXHR();
// xhr.open("POST", perfLogging.config.endpointUrl, true);
// xhr.setRequestHeader("Content-type", "application/json");
// xhr.send(payload);
// }
// JSLitmus.stop();
// for (let i = 0; i < JSLitmus._tests.length; i++) {
// const test = JSLitmus._tests[i];
// const opsPerSec = test.count / test.time;
// Assert.ok(true, test.name + " operations per sec:" + opsPerSec);
// const timeInMs = test.time as number;
// const date = +new Date;
// const oneHr = 60 * 60 * 1000;
// const oneHrDate = Math.floor(date / oneHr) * oneHr;
// const friendlyDate = new Date(oneHrDate).toISOString();
// const platform = test.platform as string;
// let browser = "internetExplorer";
// const name = test.name as string;
// const group = name.split(".")[0];
// if (platform.toLowerCase().indexOf("chrome") >= 0) {
// browser = "chrome";
// } else if (platform.toLowerCase().indexOf("firefox") >= 0) {
// browser = "firefox";
// } else if (platform.toLowerCase().indexOf("safari") >= 0) {
// browser = "safari";
// }
// const result: IPerfResult = {
// name,
// timeInMs,
// operationCount: 1,
// opsPerSec: 1 / (timeInMs / 1000),
// period: 1,
// date,
// oneHrDate,
// friendlyDate,
// group,
// platform,
// browser,
// os: test.os as string,
// millisecondsPerOp: (timeInMs / 1),
// microsecondsPerOp: (timeInMs / 1) * 1000,
// secondsPerOp: (timeInMs / 1) / 1000
// };
// perfLogging.trackMetric(result.name, opsPerSec);
// const event = new Microsoft.ApplicationInsights.Telemetry.Event(result.name, opsPerSec, result);
// const data = new Microsoft.ApplicationInsights.Telemetry.Common.Data<Microsoft.ApplicationInsights.Telemetry.Event>(
// Microsoft.ApplicationInsights.Telemetry.Event.dataType, event);
// const envelope = new Microsoft.ApplicationInsights.Telemetry.Common.Envelope(data, Microsoft.ApplicationInsights.Telemetry.Event.envelopeType);
// perfLogging.context.track(envelope);
// this.results.push(result);
// }
// JSLitmus._tests.length = 0;
// this.isDone = true;
// this.testCleanup();
// }
// public onTimeout() {
// if (!this.isDone) {
// Assert.ok(false, "timeout reached");
// this.onTestsComplete();
// }
// }
// private toCsv(array: any[]) {
// let headers = "";
// if (array.length > 0) {
// const names = [];
// for (const name in array[0]) {
// names.push(name);
// }
// headers = names.join(",");
// }
// const csv = [];
// for (let i = 0; i < array.length; i++) {
// const datum = array[i];
// const values = [];
// for (let j = 0; j < names.length; j++) {
// values.push(datum[names[j]]);
// }
// csv.push(values.join(","));
// }
// return { headers, csv: csv.join("\r\n") };
// }
// /**
// * Synchronously loads jquery
// * we could regress the test suite and develop sublte jquery dependencies in the product code
// * if jquery were added to all tests as it hides a lot of cross browser weirdness. However,
// * for these tests it is useful to manipulate the dom to display performance results.
// */
// private synchronouslyLoadJquery() {
// if (!window["$"]) {
// // get some kind of XMLHttpRequest
// let xhrObj = false as any;
// if (window["ActiveXObject"]) {
// xhrObj = (new ActiveXObject("Microsoft.XMLHTTP") as any);
// } else if (window["XMLHttpRequest"]) {
// xhrObj = (new XMLHttpRequest() as any);
// } else {
// alert("Please upgrade your browser! Your browser does not support AJAX!");
// }
// // open and send a synchronous request
// xhrObj.open('GET', "http://cdnjs.cloudflare.com/ajax/libs/jquery/1.11.1/jquery.js", false);
// xhrObj.send('');
// // add the returned content to a newly created script tag
// const script = document.createElement('script');
// script.type = "text/javascript";
// script.text = xhrObj.responseText;
// document.getElementsByTagName('head')[0].appendChild(script);
// }
// }
// }

Просмотреть файл

@ -1,33 +0,0 @@
import { TestClass } from '../TestFramework/TestClass';
export class PollingAssert {
/**
* Starts polling assertion function for a period of time after which it's considered failed.
* @param {() => boolean} assertionFunctionReturnsBoolean - funciton returning true if condition passes and false if condition fails. Assertion will be done on this function's result.
* @param {string} assertDescription - message shown with the assertion
* @param {number} timeoutSeconds - timeout in seconds after which assertion fails
* @param {number} pollIntervalMs - polling interval in milliseconds
* @returns {(nextTestStep) => void} callback which will be invoked by the TestClass
*/
public static createPollingAssert(assertionFunctionReturnsBoolean: () => boolean, assertDescription: string, timeoutSeconds: number = 30, pollIntervalMs: number = 500): (nextTestStep) => void {
const pollingAssert = (nextTestStep) => {
const timeout = new Date(new Date().getTime() + timeoutSeconds * 1000);
const polling = () => {
if (assertionFunctionReturnsBoolean.apply(this)) {
QUnit.assert.ok(true, assertDescription);
nextTestStep();
} else if (timeout < new Date()) {
QUnit.assert.ok(false, "assert didn't succeed for " + timeout + " seconds: " + assertDescription);
nextTestStep();
} else {
setTimeout(polling, pollIntervalMs);
}
}
setTimeout(polling, pollIntervalMs);
}
pollingAssert[TestClass.isPollingStepFlag] = true;
return pollingAssert;
}
}

Просмотреть файл

@ -1,22 +0,0 @@

/** Defines a test case */
export class TestCase {
/** Name to use for the test case */
public name: string;
/** Test case method */
public test: () => void;
}
/** Defines a test case */
export interface TestCaseAsync {
/** Name to use for the test case */
name: string;
/** time to wait after pre before invoking post and calling start() */
stepDelay: number;
/** async steps */
steps: Array<() => void>;
}

Просмотреть файл

@ -1,402 +0,0 @@
import { SinonSandbox, SinonSpy, SinonStub, SinonMock, SinonSandboxConfig, SinonFakeTimers, SinonFakeXMLHttpRequest } from 'sinon';
import * as sinon from 'sinon';
import { TestCase, TestCaseAsync } from './TestCase';
import { getNavigator } from '@microsoft/applicationinsights-core-js';
/// <reference path="../external/qunit.d.ts" />
// export interface FakeXMLHttpRequest extends XMLHttpRequest {
// url?: string;
// method?: string;
// requestHeaders?: any;
// respond: (status: number, headers: any, body: string) => void;
// }
export class TestClass {
public static isPollingStepFlag = "isPollingStep";
/** The instance of the currently running suite. */
public static currentTestClass: TestClass;
/** Turns on/off sinon's syncronous implementation of setTimeout. On by default. */
public useFakeTimers: boolean = true;
/** Turns on/off sinon's fake implementation of XMLHttpRequest. On by default. */
public useFakeServer: boolean = true;
/**** Sinon methods and properties ***/
// These methods and properties are injected by Sinon and will override the implementation here.
// These are here purely to make typescript happy.
public clock: SinonFakeTimers;
public server: SinonFakeXMLHttpRequest;
public sandbox: SinonSandbox;
private _xhrRequests: SinonFakeXMLHttpRequest[] = [];
private _orgNavigator: any;
private _beaconHooks = [];
constructor(name?: string) {
QUnit.module(name);
}
/** Method called before the start of each test method */
public testInitialize() {
}
/** Method called after each test method has completed */
public testCleanup() {
}
/** Method in which test class instances should call this.testCase(...) to register each of this suite's tests. */
public registerTests() {
}
/** Register an async Javascript unit testcase. */
public testCaseAsync(testInfo: TestCaseAsync) {
if (!testInfo.name) {
throw new Error("Must specify name in testInfo context in registerTestcase call");
}
if (isNaN(testInfo.stepDelay)) {
throw new Error("Must specify 'stepDelay' period between pre and post");
}
if (!testInfo.steps) {
throw new Error("Must specify 'steps' to take asynchronously");
}
// Create a wrapper around the test method so we can do test initilization and cleanup.
const testMethod = (assert) => {
const done = assert.async();
// Save off the instance of the currently running suite.
TestClass.currentTestClass = this;
// Run the test.
try {
this._testStarting();
const steps = testInfo.steps;
const trigger = () => {
if (steps.length) {
const step = steps.shift();
// The callback which activates the next test step.
const nextTestStepTrigger = () => {
setTimeout(() => {
trigger();
}, testInfo.stepDelay);
};
// There 2 types of test steps - simple and polling.
// Upon completion of the simple test step the next test step will be called.
// In case of polling test step the next test step is passed to the polling test step, and
// it is responsibility of the polling test step to call the next test step.
try {
if (step[TestClass.isPollingStepFlag]) {
step.call(this, nextTestStepTrigger);
} else {
step.call(this);
nextTestStepTrigger.call(this);
}
} catch (e) {
this._testCompleted();
QUnit.assert.ok(false, e.toString());
// done is QUnit callback indicating the end of the test
done();
return;
}
} else {
this._testCompleted();
// done is QUnit callback indicating the end of the test
done();
}
};
trigger();
} catch (ex) {
QUnit.assert.ok(false, "Unexpected Exception: " + ex);
this._testCompleted(true);
// done is QUnit callback indicating the end of the test
done();
}
};
// Register the test with QUnit
QUnit.test(testInfo.name, testMethod);
}
/** Register a Javascript unit testcase. */
public testCase(testInfo: TestCase) {
if (!testInfo.name) {
throw new Error("Must specify name in testInfo context in registerTestcase call");
}
if (!testInfo.test) {
throw new Error("Must specify 'test' method in testInfo context in registerTestcase call");
}
// Create a wrapper around the test method so we can do test initilization and cleanup.
const testMethod = () => {
// Save off the instance of the currently running suite.
TestClass.currentTestClass = this;
// Run the test.
try {
this._testStarting();
testInfo.test.call(this);
this._testCompleted();
}
catch (ex) {
QUnit.assert.ok(false, "Unexpected Exception: " + ex);
this._testCompleted(true);
}
};
// Register the test with QUnit
QUnit.test(testInfo.name, testMethod);
}
/** Creates an anonymous function that records arguments, this value, exceptions and return values for all calls. */
public spy(): SinonSpy;
/** Spies on the provided function */
public spy(funcToWrap: Function): SinonSpy;
/** Creates a spy for object.methodName and replaces the original method with the spy. The spy acts exactly like the original method in all cases. The original method can be restored by calling object.methodName.restore(). The returned spy is the function object which replaced the original method. spy === object.method. */
public spy(object: any, methodName: string, func?: Function): SinonSpy;
public spy(...args: any[]): SinonSpy { return null; }
/** Creates an anonymous stub function. */
public stub(): SinonStub;
/** Stubs all the object's methods. */
public stub(object: any): SinonStub;
/** Replaces object.methodName with a func, wrapped in a spy. As usual, object.methodName.restore(); can be used to restore the original method. */
public stub(object: any, methodName: string, func?: Function): SinonStub;
public stub(...args: any[]): SinonStub { return null; }
/** Creates a mock for the provided object.Does not change the object, but returns a mock object to set expectations on the object's methods. */
public mock(object: any): SinonMock { return null; }
/**** end: Sinon methods and properties ***/
/**
* Sends a JSON response to the provided request.
* @param request The request to respond to.
* @param data Data to respond with.
* @param errorCode Optional error code to send with the request, default is 200
*/
public sendJsonResponse(request: SinonFakeXMLHttpRequest, data: any, errorCode?: number) {
if (errorCode === undefined) {
errorCode = 200;
}
request.respond(
errorCode,
{ "Content-Type": "application/json" },
JSON.stringify(data));
}
protected setUserAgent(userAgent: string) {
// Hook Send beacon which also mocks navigator
this.hookSendBeacon(null);
try {
Object.defineProperty(window.navigator, 'userAgent',
{
configurable: true,
get () {
return userAgent;
}
});
} catch (e) {
QUnit.assert.ok(false, "Failed to set the userAgent - " + e);
throw e;
}
}
protected hookSendBeacon(cb: (url: string, data?: BodyInit | null) => undefined|boolean) {
if (!this._orgNavigator) {
let newNavigator = <any>{};
this._orgNavigator = window.navigator;
newNavigator.sendBeacon = (url, body) => {
let handled;
this._beaconHooks.forEach(element => {
let result = element(url, body);
if (result !== undefined) {
handled |= result;
}
});
if (handled !== undefined) {
return handled;
}
return this._orgNavigator.sendBeacon(url, body);
};
try {
// Just Blindly copy the properties over
// tslint:disable-next-line: forin
for (let name in navigator) {
if (!newNavigator.hasOwnProperty(name)) {
newNavigator[name] = navigator[name];
if (!newNavigator.hasOwnProperty(name)) {
// if it couldn't be set directly try and pretend
Object.defineProperty(newNavigator, name,
{
configurable: true,
get: function () {
return navigator[name];
}
});
}
}
}
} catch (e) {
QUnit.assert.ok(false, "Creating navigator copy failed - " + e);
throw e;
}
this.setNavigator(newNavigator);
}
this._beaconHooks.push(cb);
}
protected setNavigator(newNavigator: any) {
try {
Object.defineProperty(window, 'navigator',
{
configurable: true,
get: function () {
return newNavigator;
}
});
} catch (e) {
QUnit.assert.ok(true, "Set Navigator failed - " + e);
sinon.stub(window, "navigator").returns(newNavigator);
}
}
protected _getXhrRequests(url?: string): SinonFakeXMLHttpRequest[] {
let requests: SinonFakeXMLHttpRequest[] = [];
for (let lp = 0; lp < this._xhrRequests.length; lp++) {
let value = this._xhrRequests[lp];
if (value && value.url && (!url || value.url.indexOf(url) !== -1)) {
requests.push(value);
}
}
return requests;
}
/** Called when the test is starting. */
private _testStarting() {
// Initialize the sandbox similar to what is done in sinon.js "test()" override. See note on class.
//const config = (sinon as any).getConfig(sinon.config);
//config.useFakeTimers = this.useFakeTimers;
//config.useFakeServer = this.useFakeServer;
let sandboxConfig: SinonSandboxConfig = {};
sandboxConfig.injectInto = null;
sandboxConfig.properties = ["spy", "stub", "mock", "sandbox", "clock", "server"];
this.sandbox = sinon.createSandbox(sandboxConfig);
if (this.useFakeTimers) {
this.clock = sinon.useFakeTimers();
}
if (this.useFakeServer) {
this.server = sinon.useFakeXMLHttpRequest();
this._xhrRequests = [];
this.server.onCreate = (xhr: SinonFakeXMLHttpRequest) => {
this._xhrRequests.push(xhr);
};
} else {
this.server = null;
}
// Allow the derived class to perform test initialization.
this.testInitialize();
}
/** Called when the test is completed. */
private _testCompleted(failed?: boolean) {
if (this._orgNavigator) {
this.setNavigator(this._orgNavigator);
this._orgNavigator = null;
}
this._beaconHooks = [];
this._cleanupAllHooks();
if (this.clock) {
this.clock.restore();
this.clock = null;
}
if (failed) {
// Just cleanup the sandbox since the test has already failed.
this.sandbox.restore();
}
else {
// Verify the sandbox and restore.
(this.sandbox as any).verifyAndRestore();
}
this.testCleanup();
// Clear the instance of the currently running suite.
TestClass.currentTestClass = null;
}
private _removeFuncHooks(fn:any) {
if (typeof fn === "function") {
let aiHook:any = fn["_aiHooks"];
if (aiHook && aiHook.h) {
aiHook.h = [];
}
}
}
private _removeHooks(target:any) {
Object.keys(target).forEach(name => {
try {
this._removeFuncHooks(target[name]);
} catch (e) {
}
});
}
private _cleanupAllHooks() {
this._removeHooks(XMLHttpRequest.prototype);
this._removeHooks(XMLHttpRequest);
this._removeFuncHooks(window.fetch);
}
}
// Configure Sinon
sinon.assert.fail = (msg?) => {
QUnit.assert.ok(false, msg);
};
sinon.assert.pass = (assertion) => {
QUnit.assert.ok(assertion, "sinon assert");
};
// sinon.config = {
// injectIntoThis: true,
// injectInto: null,
// properties: ["spy", "stub", "mock", "clock", "sandbox"],
// useFakeTimers: true,
// useFakeServer: true
// };

Просмотреть файл

@ -1,10 +1,10 @@
import { TestClass } from './TestFramework/TestClass';
import { Sample } from "../src/TelemetryProcessors/Sample";
import { AITestClass } from "@microsoft/ai-test-framework";
import { Sample } from "../../../src/TelemetryProcessors/Sample";
import { ITelemetryItem } from "@microsoft/applicationinsights-core-js";
import { PageView, TelemetryItemCreator, IPageViewTelemetry, Util } from "@microsoft/applicationinsights-common";
import { HashCodeScoreGenerator } from "../src/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator";
import { HashCodeScoreGenerator } from "../../../src/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator";
export class SampleTests extends TestClass {
export class SampleTests extends AITestClass {
private sample: Sample
private item: ITelemetryItem;

Просмотреть файл

@ -1,11 +1,11 @@
import { TestClass } from './TestFramework/TestClass';
import { Sender } from "../src/Sender";
import { Offline } from '../src/Offline';
import { EnvelopeCreator } from '../src/EnvelopeCreator';
import { AITestClass } from "@microsoft/ai-test-framework";
import { Sender } from "../../../src/Sender";
import { Offline } from '../../../src/Offline';
import { EnvelopeCreator } from '../../../src/EnvelopeCreator';
import { Exception, CtxTagKeys, Util } from "@microsoft/applicationinsights-common";
import { ITelemetryItem, AppInsightsCore, ITelemetryPlugin, DiagnosticLogger, NotificationManager, SendRequestReason, _InternalMessageId, LoggingSeverity, getGlobalInst, getGlobal } from "@microsoft/applicationinsights-core-js";
export class SenderTests extends TestClass {
export class SenderTests extends AITestClass {
private _sender: Sender;
private _instrumentationKey = 'iKey';
@ -47,6 +47,7 @@ export class SenderTests extends TestClass {
this.testCase({
name: "processTelemetry can be called with optional fields undefined",
useFakeTimers: true,
test: () => {
this._sender.initialize({
instrumentationKey: 'abc'
@ -151,6 +152,7 @@ export class SenderTests extends TestClass {
this.testCase({
name: 'beaconSender is called when isBeaconApiDisabled flag is false',
useFakeTimers: true,
test: () => {
let sendBeaconCalled = false;
this.hookSendBeacon((url: string) => {
@ -193,6 +195,7 @@ export class SenderTests extends TestClass {
this.testCase({
name: 'BeaconAPI is not used when isBeaconApiDisabled flag is false but payload size is over 64k, fall off to xhr sender',
useFakeTimers: true,
test: () => {
let sendBeaconCalled = false;
this.hookSendBeacon((url: string) => {
@ -916,6 +919,7 @@ export class SenderTests extends TestClass {
this.testCase({
name: 'Offline watcher responds to offline events (window.addEventListener)',
useFakeTimers: true,
test: () => {
// Setup
const offlineEvent = new Event('offline');
@ -1020,6 +1024,7 @@ export class SenderTests extends TestClass {
this.testCase({
name: "Channel Config: Notification is sent when requests are being sent when requests exceed max batch size",
useFakeTimers: true,
test: () => {
let sendNotifications = [];
let notificationManager = new NotificationManager();
@ -1072,6 +1077,7 @@ export class SenderTests extends TestClass {
this.testCase({
name: "Channel Config: Notification is sent when requests are being sent with manual flush",
useFakeTimers: true,
test: () => {
let sendNotifications = [];
let notificationManager = new NotificationManager();

Просмотреть файл

@ -1,5 +1,5 @@
import { SenderTests } from "../Sender.tests";
import { SampleTests } from "../Sample.tests";
import { SenderTests } from "./Sender.tests";
import { SampleTests } from "./Sample.tests";
export function runTests() {
new SenderTests().registerTests();

Просмотреть файл

@ -5,17 +5,16 @@
<meta charset="utf-8">
<meta http-equiv="Cache-control" content="no-Cache" />
<title>Tests for Application Insights JavaScript API</title>
<link rel="stylesheet" href="https://code.jquery.com/qunit/qunit-2.9.1.css">
<!-- <script src="http://sinonjs.org/releases/sinon-7.3.1.js"></script> -->
<script src="http://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.js"></script>
<script src="../../../../common/Tests/Selenium/ModuleLoader.js"></script>
<script src="../../../../common/Tests/Selenium/SimpleSyncPromise.js"></script>
<link rel="stylesheet" href="../../../common/Tests//External/qunit-2.9.1.css">
<!-- <script src="../../../common/Tests/External/sinon-7.3.1.js"></script> -->
<script src="../../../common/Tests/External/require-2.3.6.js"></script>
<script src="../../../common/Tests/Selenium/ModuleLoader.js"></script>
<script src="../../../common/Tests/Selenium/SimpleSyncPromise.js"></script>
<script>
var modules = new ModuleLoader({
baseUrl: '../../',
baseUrl: '../',
paths: {
qunit: "../../common/Tests/External/qunit-2.9.1",
qunit: "../../common/Tests/External/qunit-1.23.1",
sinon: "../../common/Tests/External/sinon-7.3.1",
"whatwg-fetch": "../../common/Tests/External/whatwg-fetch.3.0.0"
}
@ -26,12 +25,7 @@
modules.add("sinon");
loadFetchModule(modules, "whatwg-fetch");
// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
loadCommonModules(modules);
// Load Core
modules.add("@microsoft/applicationinsights-core-js", "./node_modules/@microsoft/applicationinsights-core-js/browser/applicationinsights-core-js");
@ -39,7 +33,7 @@
// Load Common
modules.add("@microsoft/applicationinsights-common", "./node_modules/@microsoft/applicationinsights-common/browser/applicationinsights-common");
var testModule = modules.add("Tests/Selenium/aichannel.tests", "./aichannel.tests.js")
var testModule = modules.add("Tests/Unit/src/aichannel.tests", "./Unit/dist/aichannel.tests.js");
testModule.run = function (tests) {
console && console.log("Starting tests");
QUnit.start();

Просмотреть файл

@ -10,7 +10,6 @@
"declaration": true
},
"include": [
"./**/*.ts"
],
"exclude": [
"node_modules/"

Просмотреть файл

@ -20,16 +20,16 @@
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK Channel\""
},
"devDependencies": {
"@microsoft/ai-test-framework": "0.0.1",
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
"@microsoft/api-extractor": "^7.9.11",
"@types/qunit": "^2.5.3",
"@types/sinon": "4.3.3",
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"@rollup/plugin-commonjs": "^18.0.0",
@ -41,7 +41,6 @@
"tslib": "^1.13.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
"qunit": "^2.11.2",
"sinon": "^7.3.1"
},
"dependencies": {

436
common/Tests/External/qunit-2.9.1.css поставляемый Normal file
Просмотреть файл

@ -0,0 +1,436 @@
/*!
* QUnit 2.9.1
* https://qunitjs.com/
*
* Copyright jQuery Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2019-01-07T16:37Z
*/
/** Font Family and Sizes */
#qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult {
font-family: "Helvetica Neue Light", "HelveticaNeue-Light", "Helvetica Neue", Calibri, Helvetica, Arial, sans-serif;
}
#qunit-testrunner-toolbar, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-tests li { font-size: small; }
#qunit-tests { font-size: smaller; }
/** Resets */
#qunit-tests, #qunit-header, #qunit-banner, #qunit-filteredTest, #qunit-userAgent, #qunit-testresult, #qunit-modulefilter {
margin: 0;
padding: 0;
}
/** Header (excluding toolbar) */
#qunit-header {
padding: 0.5em 0 0.5em 1em;
color: #8699A4;
background-color: #0D3349;
font-size: 1.5em;
line-height: 1em;
font-weight: 400;
border-radius: 5px 5px 0 0;
}
#qunit-header a {
text-decoration: none;
color: #C2CCD1;
}
#qunit-header a:hover,
#qunit-header a:focus {
color: #FFF;
}
#qunit-banner {
height: 5px;
}
#qunit-filteredTest {
padding: 0.5em 1em 0.5em 1em;
color: #366097;
background-color: #F4FF77;
}
#qunit-userAgent {
padding: 0.5em 1em 0.5em 1em;
color: #FFF;
background-color: #2B81AF;
text-shadow: rgba(0, 0, 0, 0.5) 2px 2px 1px;
}
/** Toolbar */
#qunit-testrunner-toolbar {
padding: 0.5em 1em 0.5em 1em;
color: #5E740B;
background-color: #EEE;
}
#qunit-testrunner-toolbar .clearfix {
height: 0;
clear: both;
}
#qunit-testrunner-toolbar label {
display: inline-block;
}
#qunit-testrunner-toolbar input[type=checkbox],
#qunit-testrunner-toolbar input[type=radio] {
margin: 3px;
vertical-align: -2px;
}
#qunit-testrunner-toolbar input[type=text] {
box-sizing: border-box;
height: 1.6em;
}
.qunit-url-config,
.qunit-filter,
#qunit-modulefilter {
display: inline-block;
line-height: 2.1em;
}
.qunit-filter,
#qunit-modulefilter {
float: right;
position: relative;
margin-left: 1em;
}
.qunit-url-config label {
margin-right: 0.5em;
}
#qunit-modulefilter-search {
box-sizing: border-box;
width: 400px;
}
#qunit-modulefilter-search-container:after {
position: absolute;
right: 0.3em;
content: "\25bc";
color: black;
}
#qunit-modulefilter-dropdown {
/* align with #qunit-modulefilter-search */
box-sizing: border-box;
width: 400px;
position: absolute;
right: 0;
top: 50%;
margin-top: 0.8em;
border: 1px solid #D3D3D3;
border-top: none;
border-radius: 0 0 .25em .25em;
color: #000;
background-color: #F5F5F5;
z-index: 99;
}
#qunit-modulefilter-dropdown a {
color: inherit;
text-decoration: none;
}
#qunit-modulefilter-dropdown .clickable.checked {
font-weight: bold;
color: #000;
background-color: #D2E0E6;
}
#qunit-modulefilter-dropdown .clickable:hover {
color: #FFF;
background-color: #0D3349;
}
#qunit-modulefilter-actions {
display: block;
overflow: auto;
/* align with #qunit-modulefilter-dropdown-list */
font: smaller/1.5em sans-serif;
}
#qunit-modulefilter-dropdown #qunit-modulefilter-actions > * {
box-sizing: border-box;
max-height: 2.8em;
display: block;
padding: 0.4em;
}
#qunit-modulefilter-dropdown #qunit-modulefilter-actions > button {
float: right;
font: inherit;
}
#qunit-modulefilter-dropdown #qunit-modulefilter-actions > :last-child {
/* insert padding to align with checkbox margins */
padding-left: 3px;
}
#qunit-modulefilter-dropdown-list {
max-height: 200px;
overflow-y: auto;
margin: 0;
border-top: 2px groove threedhighlight;
padding: 0.4em 0 0;
font: smaller/1.5em sans-serif;
}
#qunit-modulefilter-dropdown-list li {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
#qunit-modulefilter-dropdown-list .clickable {
display: block;
padding-left: 0.15em;
}
/** Tests: Pass/Fail */
#qunit-tests {
list-style-position: inside;
}
#qunit-tests li {
padding: 0.4em 1em 0.4em 1em;
border-bottom: 1px solid #FFF;
list-style-position: inside;
}
#qunit-tests > li {
display: none;
}
#qunit-tests li.running,
#qunit-tests li.pass,
#qunit-tests li.fail,
#qunit-tests li.skipped,
#qunit-tests li.aborted {
display: list-item;
}
#qunit-tests.hidepass {
position: relative;
}
#qunit-tests.hidepass li.running,
#qunit-tests.hidepass li.pass:not(.todo) {
visibility: hidden;
position: absolute;
width: 0;
height: 0;
padding: 0;
border: 0;
margin: 0;
}
#qunit-tests li strong {
cursor: pointer;
}
#qunit-tests li.skipped strong {
cursor: default;
}
#qunit-tests li a {
padding: 0.5em;
color: #C2CCD1;
text-decoration: none;
}
#qunit-tests li p a {
padding: 0.25em;
color: #6B6464;
}
#qunit-tests li a:hover,
#qunit-tests li a:focus {
color: #000;
}
#qunit-tests li .runtime {
float: right;
font-size: smaller;
}
.qunit-assert-list {
margin-top: 0.5em;
padding: 0.5em;
background-color: #FFF;
border-radius: 5px;
}
.qunit-source {
margin: 0.6em 0 0.3em;
}
.qunit-collapsed {
display: none;
}
#qunit-tests table {
border-collapse: collapse;
margin-top: 0.2em;
}
#qunit-tests th {
text-align: right;
vertical-align: top;
padding: 0 0.5em 0 0;
}
#qunit-tests td {
vertical-align: top;
}
#qunit-tests pre {
margin: 0;
white-space: pre-wrap;
word-wrap: break-word;
}
#qunit-tests del {
color: #374E0C;
background-color: #E0F2BE;
text-decoration: none;
}
#qunit-tests ins {
color: #500;
background-color: #FFCACA;
text-decoration: none;
}
/*** Test Counts */
#qunit-tests b.counts { color: #000; }
#qunit-tests b.passed { color: #5E740B; }
#qunit-tests b.failed { color: #710909; }
#qunit-tests li li {
padding: 5px;
background-color: #FFF;
border-bottom: none;
list-style-position: inside;
}
/*** Passing Styles */
#qunit-tests li li.pass {
color: #3C510C;
background-color: #FFF;
border-left: 10px solid #C6E746;
}
#qunit-tests .pass { color: #528CE0; background-color: #D2E0E6; }
#qunit-tests .pass .test-name { color: #366097; }
#qunit-tests .pass .test-actual,
#qunit-tests .pass .test-expected { color: #999; }
#qunit-banner.qunit-pass { background-color: #C6E746; }
/*** Failing Styles */
#qunit-tests li li.fail {
color: #710909;
background-color: #FFF;
border-left: 10px solid #EE5757;
white-space: pre;
}
#qunit-tests > li:last-child {
border-radius: 0 0 5px 5px;
}
#qunit-tests .fail { color: #000; background-color: #EE5757; }
#qunit-tests .fail .test-name,
#qunit-tests .fail .module-name { color: #000; }
#qunit-tests .fail .test-actual { color: #EE5757; }
#qunit-tests .fail .test-expected { color: #008000; }
#qunit-banner.qunit-fail { background-color: #EE5757; }
/*** Aborted tests */
#qunit-tests .aborted { color: #000; background-color: orange; }
/*** Skipped tests */
#qunit-tests .skipped {
background-color: #EBECE9;
}
#qunit-tests .qunit-todo-label,
#qunit-tests .qunit-skipped-label {
background-color: #F4FF77;
display: inline-block;
font-style: normal;
color: #366097;
line-height: 1.8em;
padding: 0 0.5em;
margin: -0.4em 0.4em -0.4em 0;
}
#qunit-tests .qunit-todo-label {
background-color: #EEE;
}
/** Result */
#qunit-testresult {
color: #2B81AF;
background-color: #D2E0E6;
border-bottom: 1px solid #FFF;
}
#qunit-testresult .clearfix {
height: 0;
clear: both;
}
#qunit-testresult .module-name {
font-weight: 700;
}
#qunit-testresult-display {
padding: 0.5em 1em 0.5em 1em;
width: 85%;
float:left;
}
#qunit-testresult-controls {
padding: 0.5em 1em 0.5em 1em;
width: 10%;
float:left;
}
/** Fixture */
#qunit-fixture {
position: absolute;
top: -10000px;
left: -10000px;
width: 1000px;
height: 1000px;
}

2145
common/Tests/External/require-2.3.6.js поставляемый Normal file

Разница между файлами не показана из-за своего большого размера Загрузить разницу

Просмотреть файл

@ -33,7 +33,7 @@
"@types/sinon": "4.3.3",
"grunt": "^1.4.1",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
"tslint-microsoft-contrib": "^5.2.1",
@ -43,7 +43,6 @@
"rollup": "^2.32.0",
"typescript": "2.5.3",
"tslib": "^1.13.0",
"qunit": "^2.11.2",
"sinon": "^7.3.1",
"globby": "^11.0.0",
"magic-string": "^0.25.7"

Просмотреть файл

@ -22,6 +22,9 @@ const nodeUmdRollupConfigFactory = () => {
freeze: false,
sourcemap: true
},
globals: {
'qunit': 'QUnit'
},
plugins: [
nodeResolve()
]

Просмотреть файл

@ -37,7 +37,7 @@ export class AITestClass {
public static orgSetTimeout: (handler: Function, timeout?: number) => number;
public static orgClearTimeout: (handle?: number) => void;
public static orgObjectDefineProperty = Object.defineProperty;
/**** Sinon methods and properties ***/
// These methods and properties are injected by Sinon and will override the implementation here.

Просмотреть файл

@ -27,6 +27,17 @@ function loadFetchModule(moduleLoader, name) {
};
}
function loadCommonModules(moduleLoader) {
// Load and define the app insights test framework module
moduleLoader.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
// Load and define the app insights Shims module
moduleLoader.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
moduleLoader.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
}
function ModuleLoader(config) {
if (config) {

338
common/config/rush/npm-shrinkwrap.json сгенерированный
Просмотреть файл

@ -10,7 +10,7 @@
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -70,9 +70,9 @@
}
},
"node_modules/@babel/helper-validator-identifier": {
"version": "7.14.5",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz",
"integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg==",
"version": "7.14.8",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha512-ZGy6/XQjllhYQrNw/3zfWRwZCTVSiBLZ9DHVZxn9n2gip/7ab8mv2TWlKPIBk26RwedCBoWdjLmn+t9na2Gcow==",
"engines": {
"node": ">=6.9.0"
}
@ -147,35 +147,35 @@
}
},
"node_modules/@microsoft/api-extractor": {
"version": "7.18.0",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.18.0.tgz",
"integrity": "sha512-n9vrK5t7ycaO3NSfQFae5resy555b1jBiTN+E4XMpCbuvIz5x0UX5xzIX7xs8Q4F7YmTV3QRe15wpa/gwbyyrA==",
"version": "7.18.4",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.18.4.tgz",
"integrity": "sha512-Wx45VuIAu09Pk9Qwzt0I57OX31BaWO2r6+mfSXqYFsJjYTqwUkdFh92G1GKYgvuR9oF/ai7w10wrFpx5WZYbGg==",
"dependencies": {
"@microsoft/api-extractor-model": "7.13.3",
"@microsoft/api-extractor-model": "7.13.4",
"@microsoft/tsdoc": "0.13.2",
"@microsoft/tsdoc-config": "~0.15.2",
"@rushstack/node-core-library": "3.39.0",
"@rushstack/rig-package": "0.2.12",
"@rushstack/ts-command-line": "4.8.0",
"@rushstack/node-core-library": "3.39.1",
"@rushstack/rig-package": "0.2.13",
"@rushstack/ts-command-line": "4.8.1",
"colors": "~1.2.1",
"lodash": "~4.17.15",
"resolve": "~1.17.0",
"semver": "~7.3.0",
"source-map": "~0.6.1",
"typescript": "~4.3.2"
"typescript": "~4.3.5"
},
"bin": {
"api-extractor": "bin/api-extractor"
}
},
"node_modules/@microsoft/api-extractor-model": {
"version": "7.13.3",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.13.3.tgz",
"integrity": "sha512-uXilAhu2GcvyY/0NwVRk3AN7TFYjkPnjHLV2UywTTz9uglS+Af0YjNrCy+aaK8qXtfbFWdBzkH9N2XU8/YBeRQ==",
"version": "7.13.4",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.13.4.tgz",
"integrity": "sha512-NYaR3hJinh089/Gkee8fvmEFf9zKkoUvNxgkqUlKBCDXH2+Ou4tNDuL8G6zjhKBPicHkp2VcL8l7q9H6txUkjQ==",
"dependencies": {
"@microsoft/tsdoc": "0.13.2",
"@microsoft/tsdoc-config": "~0.15.2",
"@rushstack/node-core-library": "3.39.0"
"@rushstack/node-core-library": "3.39.1"
}
},
"node_modules/@microsoft/api-extractor/node_modules/typescript": {
@ -224,9 +224,9 @@
}
},
"node_modules/@nevware21/grunt-ts-plugin": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/@nevware21/grunt-ts-plugin/-/grunt-ts-plugin-0.3.0.tgz",
"integrity": "sha512-o2yy7ixn6faG2+C22uIbnk4I5KXvsPF6ETE6igHFv8GW2K7jBCfHdyBUD3Iy7bLhkYVUIfVueDf4NmPTgai9EA==",
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/@nevware21/grunt-ts-plugin/-/grunt-ts-plugin-0.4.3.tgz",
"integrity": "sha512-6y21uefOqKzwdvuqatAgLj8eqldUIKP1c354ZsMdzLnjKe/cs/QZtdKpku6IRh500I8gnHtTqUMLLigTdG54hw==",
"engines": {
"node": ">= 0.8.0"
},
@ -354,10 +354,10 @@
"node_modules/@rush-temp/ai-test-framework": {
"version": "0.0.0",
"resolved": "file:projects/ai-test-framework.tgz",
"integrity": "sha512-jEJ1Y+5cRwbDr2X72d7j6NSyyImNOQxm5YxHluoWbtiDYpf2LOMUDuMFnq1eLwRUk114q4+erRUcWbMd+PEiXA==",
"integrity": "sha512-O5sWHNO/dgZ1nPnr7Hc2AKALr1o2VgXM/gulD5LKSScXYWxXTU+GOIrbm1Un1+GM/FwynhkQWLORYdcnUxaoQA==",
"dependencies": {
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -367,7 +367,6 @@
"grunt": "^1.4.1",
"grunt-contrib-qunit": "^5.0.1",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"sinon": "^7.3.1",
"tslib": "^1.13.0",
@ -380,11 +379,11 @@
"node_modules/@rush-temp/applicationinsights-analytics-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-analytics-js.tgz",
"integrity": "sha512-pk/B9msjhjomAs6uhwBNfMVrk35UCFSBRQqFgt0RdA615ZKf99AG8njMYMi6TNGZ0/e3SSdD44ivzHPye/6mfg==",
"integrity": "sha512-ls/QkOcEzcAL7PIagUUQKIf99yaccQnwpMRyCNCfnUBx9t/FgyspjxzvpUoevQSs5E1BR93tU516HIgi+bSM5g==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -408,15 +407,14 @@
"node_modules/@rush-temp/applicationinsights-channel-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-channel-js.tgz",
"integrity": "sha512-+T1wV110tsO6XzxzqzD4tmHqysf2OHMltzvQs/pphPJilu1aJslMSpakFPvE7cu1HiStGgI6GKW5gNusPBUzpQ==",
"integrity": "sha512-9a0CQW8DMcXHUGP3/FLfdB5XBmwVuscdGuUyDfMt7/SsDb1Ri75ycfyF1Ump3XnyeUMEdsnplNQAizxOIfq2nA==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"@types/qunit": "^2.5.3",
"@types/sinon": "4.3.3",
"globby": "^11.0.0",
"grunt": "^1.4.1",
@ -424,7 +422,6 @@
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-cleanup": "3.2.1",
"sinon": "^7.3.1",
@ -437,11 +434,11 @@
"node_modules/@rush-temp/applicationinsights-clickanalytics-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-clickanalytics-js.tgz",
"integrity": "sha512-smezhpO1O9EFOmndmcnZmw5Jub8Xz4IltmFxqYHnzOl0RSi5p/bEekZYRaoueSFn8eKeFumZBka//ZuCBrVIbQ==",
"integrity": "sha512-VRmN5mJVGDXEiURCqw/li+RqS7FWO4z4vu8gAyAjCBiq6jeMIGNLWtgZd6khU76QT9VgbNt/osHMsjW6JfJH3Q==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -462,11 +459,11 @@
"node_modules/@rush-temp/applicationinsights-common": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-common.tgz",
"integrity": "sha512-DQF/Ba4szVINe3LD4nQuDpUivsdtpY9YKIGpFyG0X6dPaeQb3SBLpG53jOE+RQAj71UoanjagHUApmHcrJkqIQ==",
"integrity": "sha512-eJV7ic9aTu1yipwP1PThi+7Q6ZCVqZRQbzQcZX+L88AT+peyAlyuHqtuS5polmnJ3A7OOBNDg6MYwS9u5yOyVA==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -486,11 +483,11 @@
"node_modules/@rush-temp/applicationinsights-core-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-core-js.tgz",
"integrity": "sha512-Tw1A6ozx+HMlx4E8Jf9BFKjtF74oLkLjrBQsMZ4WPPp53tUCWt1p2UDwqwCbMDt05G4yiTxmgHu+amlUif9EKQ==",
"integrity": "sha512-Gabys7wZ9COkmNagVRJVXJvwZ5YRa3yHmprG9QswbfZEcPKM+235CGecpg/pkrqIlrYnQaNvL2GCfDzHTRuo7g==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -514,11 +511,11 @@
"node_modules/@rush-temp/applicationinsights-debugplugin-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-debugplugin-js.tgz",
"integrity": "sha512-xxNs82PKU9sEiMwtfzVrppDEag/+1LL8NooPSfWs7xiawvHiXF6iCXCOpBdA+h/bFlumIaxDud6hQuNyc3z/og==",
"integrity": "sha512-Vqe1/Gfjxlj4SMkgkT45VAw6+owba360nsvOsq59MQKNuIho76UxAoHnfLOOxgPG521WgRDoQnTEfSniIYpGzQ==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -539,11 +536,11 @@
"node_modules/@rush-temp/applicationinsights-dependencies-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-dependencies-js.tgz",
"integrity": "sha512-xxptLlP8wvY2NtZUjnbt1s9KfpQviH5EmvC8TQS/qlpbzYdO4PX/BGJ4pQKqwW9bxoeeV5TsID6OYzlA4yKX6A==",
"integrity": "sha512-w1Cuvsy67pCW2d9wgkHZHNXf2Kf78eWLhDYqJNlZ6z4cy3jKuLjRjj40HUvijMW5h7AwQ36hc2FyrEQwFfFLZA==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -553,8 +550,10 @@
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-cleanup": "3.2.1",
"sinon": "^7.3.1",
"tslib": "^1.13.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
@ -573,11 +572,11 @@
"node_modules/@rush-temp/applicationinsights-properties-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-properties-js.tgz",
"integrity": "sha512-jWYva1fv3GdMN76Hp+gED/uaeCfmt8UFX2BI4zsLz1AN/wfeyW2R0/A9DHkIxGDeu2XCdsq2YwFaD4q9+utEWA==",
"integrity": "sha512-1aOz8YMur14KM6AWLUEyIt+BUCSsG5mPLffSRrt1lhErI6kduepsy0PA9+HVc+r/Dnm90NDT4rk/l0cdn4TpgA==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -601,9 +600,9 @@
"node_modules/@rush-temp/applicationinsights-rollup-es3": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-rollup-es3.tgz",
"integrity": "sha512-hSeFFK81EZUJVQrYOHyv58SPlf7nXHkCZfN2C3TsK9mEOKw112q2s4yPEJCfKstEkf53rBTuqfw7edg40OceGQ==",
"integrity": "sha512-YFcbpW+zqG+mCX5JOLTLM5YY2SusaFwjZYbUNi+qfAkYmopif3B/1fRg2FRKgsLHxUghd256rtaaZzED1qwFIA==",
"dependencies": {
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -613,10 +612,8 @@
"grunt-contrib-qunit": "^5.0.1",
"grunt-tslint": "^5.0.2",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-minify-es": "^1.1.1",
"sinon": "^7.3.1",
"tslib": "^1.13.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
@ -627,9 +624,9 @@
"node_modules/@rush-temp/applicationinsights-rollup-plugin-uglify3-js": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-rollup-plugin-uglify3-js.tgz",
"integrity": "sha512-R39lvV815Hrg7l2frntrPzBRMU5A1EkSkL2hCK9Jgcd9oHxFzqEsBU9oQ3JfDkTJLFAbwqiymBodbMtbPCYbow==",
"integrity": "sha512-JJOYa9ElpRG+SyqxDZXh5evc86+KqlSnlbNrptZw9YzDLwRhjjxlvOdhnm1l9LyDf4wxMDn+Mu/wFZkKzIX42g==",
"dependencies": {
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -650,9 +647,9 @@
"node_modules/@rush-temp/applicationinsights-shims": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-shims.tgz",
"integrity": "sha512-40qNzCmaard3jQWBZ8iBxIf5yuVMVm/2CwcoX3pTVR5lf5WJxJf+ReGm9WBdq1dPbBSD9J/yx0xLo1UnsWddZQ==",
"integrity": "sha512-HLjXrlon6GqNNiVLRSmGG0Bh71YgHqln4ZpQSz1WNjokNE8/xGm3zKAX6ZhSCt4/Eyn8kAec7wFjQSI+zoo2eA==",
"dependencies": {
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -671,16 +668,14 @@
"node_modules/@rush-temp/applicationinsights-web": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-web.tgz",
"integrity": "sha512-Zzf90+yshhxkcoAFU/E8MZnSRIn0LegYUxosX23BT9M82LMJVaW28hACSLzHpLmhwO6us14ua4w9a5tnS8thvA==",
"integrity": "sha512-fuD/vI/9/Qhm967PDIq+2qasA72DXGKi7rxMvwuGELHbdSVqQku8R6IB/owuVazXmKNBOkGa9TvYgnIWpPlQWg==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"@types/qunit": "^2.5.3",
"@types/sinon": "4.3.3",
"chromedriver": "^2.45.0",
"finalhandler": "^1.1.1",
"globby": "^11.0.0",
@ -690,7 +685,6 @@
"grunt-tslint": "^5.0.2",
"magic-string": "^0.25.7",
"pako": "^2.0.3",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-cleanup": "3.2.1",
"selenium-server-standalone-jar": "^3.141.5",
@ -706,11 +700,11 @@
"node_modules/@rush-temp/applicationinsights-web-basic": {
"version": "0.0.0",
"resolved": "file:projects/applicationinsights-web-basic.tgz",
"integrity": "sha512-y4275UZWXLDYxbDEHuY+H7MfuM5etz7XYao2SOIimeBbfxn5r6wampF8+ucYq/XX64wNpyJC8TXDIJ9qbOKrmA==",
"integrity": "sha512-/OPlIzq8X/hhC2XgUr3lgk1aCfyAhYTQpzEPOc49CEaebYspxKx+eygJi25NaeeNUYzC+FYRy2H+pYxPv/eOvA==",
"dependencies": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -730,9 +724,9 @@
}
},
"node_modules/@rushstack/node-core-library": {
"version": "3.39.0",
"resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-3.39.0.tgz",
"integrity": "sha512-kgu3+7/zOBkZU0+NdJb1rcHcpk3/oTjn5c8cg5nUTn+JDjEw58yG83SoeJEcRNNdl11dGX0lKG2PxPsjCokZOQ==",
"version": "3.39.1",
"resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-3.39.1.tgz",
"integrity": "sha512-HHgMEHZTXQ3NjpQzWd5+fSt2Eod9yFwj6qBPbaeaNtDNkOL8wbLoxVimQNtcH0Qhn4wxF5u2NTDNFsxf2yd1jw==",
"dependencies": {
"@types/node": "10.17.13",
"colors": "~1.2.1",
@ -746,18 +740,18 @@
}
},
"node_modules/@rushstack/rig-package": {
"version": "0.2.12",
"resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.2.12.tgz",
"integrity": "sha512-nbePcvF8hQwv0ql9aeQxcaMPK/h1OLAC00W7fWCRWIvD2MchZOE8jumIIr66HGrfG2X1sw++m/ZYI4D+BM5ovQ==",
"version": "0.2.13",
"resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.2.13.tgz",
"integrity": "sha512-qQMAFKvfb2ooaWU9DrGIK9d8QfyHy/HiuITJbWenlKgzcDXQvQgEduk57YF4Y7LLasDJ5ZzLaaXwlfX8qCRe5Q==",
"dependencies": {
"resolve": "~1.17.0",
"strip-json-comments": "~3.1.1"
}
},
"node_modules/@rushstack/ts-command-line": {
"version": "4.8.0",
"resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.8.0.tgz",
"integrity": "sha512-nZ8cbzVF1VmFPfSJfy8vEohdiFAH/59Y/Y+B4nsJbn4SkifLJ8LqNZ5+LxCC2UR242EXFumxlsY1d6fPBxck5Q==",
"version": "4.8.1",
"resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.8.1.tgz",
"integrity": "sha512-rmxvYdCNRbyRs+DYAPye3g6lkCkWHleqO40K8UPvUAzFqEuj6+YCVssBiOmrUDCoM5gaegSNT0wFDYhz24DWtw==",
"dependencies": {
"@types/argparse": "1.0.38",
"argparse": "~1.0.9",
@ -809,9 +803,9 @@
"integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ=="
},
"node_modules/@szmarczak/http-timer": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.5.tgz",
"integrity": "sha512-PyRA9sm1Yayuj5OIoJ1hGt2YISX45w9WcFbh6ddT0Z/0yaFxOtGLInr4jUfU1EAFVs0Yfyfev4RNwBlUaHdlDQ==",
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",
"integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",
"dependencies": {
"defer-to-connect": "^2.0.0"
},
@ -1662,9 +1656,9 @@
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
},
"node_modules/fast-glob": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.6.tgz",
"integrity": "sha512-GnLuqj/pvQ7pX8/L4J84nijv6sAnlwvSDpMkJi9i7nPmPxGtRPkBSStfvDW5l6nMdX9VWe+pkKWFTgD+vF2QSQ==",
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz",
"integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==",
"dependencies": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
@ -2439,9 +2433,9 @@
}
},
"node_modules/is-core-module": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz",
"integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==",
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.5.0.tgz",
"integrity": "sha512-TXCMSDsEHMEEZ6eCA8rwRDbLu55MRGmrctljsBX/2v1d9/GzqHOxW5c5oPSgrUt2vBFXebu9rGqckXGPWOlYpg==",
"dependencies": {
"has": "^1.0.3"
},
@ -3504,9 +3498,9 @@
}
},
"node_modules/rechoir": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.0.tgz",
"integrity": "sha512-ADsDEH2bvbjltXEP+hTIAmeFekTFK0V2BTxMkok6qILyAJEXV0AFfoWcAq4yfll5VdIMd/RVXq0lR+wQi5ZU3Q==",
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz",
"integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==",
"dependencies": {
"resolve": "^1.9.0"
},
@ -3557,9 +3551,9 @@
}
},
"node_modules/resolve-alpn": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.1.2.tgz",
"integrity": "sha512-8OyfzhAtA32LVUsJSke3auIyINcwdh5l3cvYKdKO0nvsYSKuiLfTM5i78PJswFPT8y6cPW+L1v6/hE95chcpDA=="
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.0.tgz",
"integrity": "sha512-e4FNQs+9cINYMO5NMFc6kOUCdohjqFPSgMuwuZAOUWqrfWsen+Yjy5qZFkV5K7VO7tFSLKcUL97olkED7sCBHA=="
},
"node_modules/resolve-dir": {
"version": "1.0.1",
@ -3602,9 +3596,9 @@
}
},
"node_modules/rollup": {
"version": "2.52.8",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.52.8.tgz",
"integrity": "sha512-IjAB0C6KK5/lvqzJWAzsvOik+jV5Bt907QdkQ/gDP4j+R9KYNI1tjqdxiPitGPVrWC21Mf/ucXgowUjN/VemaQ==",
"version": "2.53.3",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.53.3.tgz",
"integrity": "sha512-79QIGP5DXz5ZHYnCPi3tLz+elOQi6gudp9YINdaJdjG0Yddubo6JRFUM//qCZ0Bap/GJrsUoEBVdSOc4AkMlRA==",
"bin": {
"rollup": "dist/bin/rollup"
},
@ -4290,9 +4284,9 @@
"integrity": "sha512-MVuS359B+YzaWqjCL/c+22gfryv+mCBPHAv3zyVI2GN8EY6IRP8VwtasXn8jyyhvvq84R4ImN1OKRtcbIasjYA=="
},
"node_modules/uglify-js": {
"version": "3.13.10",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.10.tgz",
"integrity": "sha512-57H3ACYFXeo1IaZ1w02sfA71wI60MGco/IQFjOqK+WtKoprh7Go2/yvd2HPtoJILO2Or84ncLccI4xoHMTSbGg==",
"version": "3.14.0",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.0.tgz",
"integrity": "sha512-R/tiGB1ZXp2BC+TkRGLwj8xUZgdfT2f4UZEgX6aVjJ5uttPrr4fYmwTWDGqVnBCLbOXRMY6nr/BTbwCtVfps0g==",
"bin": {
"uglifyjs": "bin/uglifyjs"
},
@ -4419,9 +4413,9 @@
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
"node_modules/ws": {
"version": "7.5.2",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.2.tgz",
"integrity": "sha512-lkF7AWRicoB9mAgjeKbGqVUekLnSNO4VjKVnuPHpQeOxZOErX6BPXwJk70nFslRCEEA8EVW7ZjKwXaP9N+1sKQ==",
"version": "7.5.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz",
"integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==",
"engines": {
"node": ">=8.3.0"
},
@ -4485,9 +4479,9 @@
}
},
"@babel/helper-validator-identifier": {
"version": "7.14.5",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.5.tgz",
"integrity": "sha512-5lsetuxCLilmVGyiLEfoHBRX8UCFD+1m2x3Rj97WrW3V7H3u4RWRXA4evMjImCsin2J2YT0QaVDGf+z8ondbAg=="
"version": "7.14.8",
"resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.14.8.tgz",
"integrity": "sha512-ZGy6/XQjllhYQrNw/3zfWRwZCTVSiBLZ9DHVZxn9n2gip/7ab8mv2TWlKPIBk26RwedCBoWdjLmn+t9na2Gcow=="
},
"@babel/highlight": {
"version": "7.14.5",
@ -4546,22 +4540,22 @@
}
},
"@microsoft/api-extractor": {
"version": "7.18.0",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.18.0.tgz",
"integrity": "sha512-n9vrK5t7ycaO3NSfQFae5resy555b1jBiTN+E4XMpCbuvIz5x0UX5xzIX7xs8Q4F7YmTV3QRe15wpa/gwbyyrA==",
"version": "7.18.4",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor/-/api-extractor-7.18.4.tgz",
"integrity": "sha512-Wx45VuIAu09Pk9Qwzt0I57OX31BaWO2r6+mfSXqYFsJjYTqwUkdFh92G1GKYgvuR9oF/ai7w10wrFpx5WZYbGg==",
"requires": {
"@microsoft/api-extractor-model": "7.13.3",
"@microsoft/api-extractor-model": "7.13.4",
"@microsoft/tsdoc": "0.13.2",
"@microsoft/tsdoc-config": "~0.15.2",
"@rushstack/node-core-library": "3.39.0",
"@rushstack/rig-package": "0.2.12",
"@rushstack/ts-command-line": "4.8.0",
"@rushstack/node-core-library": "3.39.1",
"@rushstack/rig-package": "0.2.13",
"@rushstack/ts-command-line": "4.8.1",
"colors": "~1.2.1",
"lodash": "~4.17.15",
"resolve": "~1.17.0",
"semver": "~7.3.0",
"source-map": "~0.6.1",
"typescript": "~4.3.2"
"typescript": "~4.3.5"
},
"dependencies": {
"typescript": {
@ -4572,13 +4566,13 @@
}
},
"@microsoft/api-extractor-model": {
"version": "7.13.3",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.13.3.tgz",
"integrity": "sha512-uXilAhu2GcvyY/0NwVRk3AN7TFYjkPnjHLV2UywTTz9uglS+Af0YjNrCy+aaK8qXtfbFWdBzkH9N2XU8/YBeRQ==",
"version": "7.13.4",
"resolved": "https://registry.npmjs.org/@microsoft/api-extractor-model/-/api-extractor-model-7.13.4.tgz",
"integrity": "sha512-NYaR3hJinh089/Gkee8fvmEFf9zKkoUvNxgkqUlKBCDXH2+Ou4tNDuL8G6zjhKBPicHkp2VcL8l7q9H6txUkjQ==",
"requires": {
"@microsoft/tsdoc": "0.13.2",
"@microsoft/tsdoc-config": "~0.15.2",
"@rushstack/node-core-library": "3.39.0"
"@rushstack/node-core-library": "3.39.1"
}
},
"@microsoft/dynamicproto-js": {
@ -4614,9 +4608,9 @@
}
},
"@nevware21/grunt-ts-plugin": {
"version": "0.3.0",
"resolved": "https://registry.npmjs.org/@nevware21/grunt-ts-plugin/-/grunt-ts-plugin-0.3.0.tgz",
"integrity": "sha512-o2yy7ixn6faG2+C22uIbnk4I5KXvsPF6ETE6igHFv8GW2K7jBCfHdyBUD3Iy7bLhkYVUIfVueDf4NmPTgai9EA==",
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/@nevware21/grunt-ts-plugin/-/grunt-ts-plugin-0.4.3.tgz",
"integrity": "sha512-6y21uefOqKzwdvuqatAgLj8eqldUIKP1c354ZsMdzLnjKe/cs/QZtdKpku6IRh500I8gnHtTqUMLLigTdG54hw==",
"requires": {}
},
"@nodelib/fs.scandir": {
@ -4708,10 +4702,10 @@
},
"@rush-temp/ai-test-framework": {
"version": "file:projects\\ai-test-framework.tgz",
"integrity": "sha512-jEJ1Y+5cRwbDr2X72d7j6NSyyImNOQxm5YxHluoWbtiDYpf2LOMUDuMFnq1eLwRUk114q4+erRUcWbMd+PEiXA==",
"integrity": "sha512-O5sWHNO/dgZ1nPnr7Hc2AKALr1o2VgXM/gulD5LKSScXYWxXTU+GOIrbm1Un1+GM/FwynhkQWLORYdcnUxaoQA==",
"requires": {
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4721,7 +4715,6 @@
"grunt": "^1.4.1",
"grunt-contrib-qunit": "^5.0.1",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"sinon": "^7.3.1",
"tslib": "^1.13.0",
@ -4733,11 +4726,11 @@
},
"@rush-temp/applicationinsights-analytics-js": {
"version": "file:projects\\applicationinsights-analytics-js.tgz",
"integrity": "sha512-pk/B9msjhjomAs6uhwBNfMVrk35UCFSBRQqFgt0RdA615ZKf99AG8njMYMi6TNGZ0/e3SSdD44ivzHPye/6mfg==",
"integrity": "sha512-ls/QkOcEzcAL7PIagUUQKIf99yaccQnwpMRyCNCfnUBx9t/FgyspjxzvpUoevQSs5E1BR93tU516HIgi+bSM5g==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4760,15 +4753,14 @@
},
"@rush-temp/applicationinsights-channel-js": {
"version": "file:projects\\applicationinsights-channel-js.tgz",
"integrity": "sha512-+T1wV110tsO6XzxzqzD4tmHqysf2OHMltzvQs/pphPJilu1aJslMSpakFPvE7cu1HiStGgI6GKW5gNusPBUzpQ==",
"integrity": "sha512-9a0CQW8DMcXHUGP3/FLfdB5XBmwVuscdGuUyDfMt7/SsDb1Ri75ycfyF1Ump3XnyeUMEdsnplNQAizxOIfq2nA==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"@types/qunit": "^2.5.3",
"@types/sinon": "4.3.3",
"globby": "^11.0.0",
"grunt": "^1.4.1",
@ -4776,7 +4768,6 @@
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-cleanup": "3.2.1",
"sinon": "^7.3.1",
@ -4788,11 +4779,11 @@
},
"@rush-temp/applicationinsights-clickanalytics-js": {
"version": "file:projects\\applicationinsights-clickanalytics-js.tgz",
"integrity": "sha512-smezhpO1O9EFOmndmcnZmw5Jub8Xz4IltmFxqYHnzOl0RSi5p/bEekZYRaoueSFn8eKeFumZBka//ZuCBrVIbQ==",
"integrity": "sha512-VRmN5mJVGDXEiURCqw/li+RqS7FWO4z4vu8gAyAjCBiq6jeMIGNLWtgZd6khU76QT9VgbNt/osHMsjW6JfJH3Q==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4812,11 +4803,11 @@
},
"@rush-temp/applicationinsights-common": {
"version": "file:projects\\applicationinsights-common.tgz",
"integrity": "sha512-DQF/Ba4szVINe3LD4nQuDpUivsdtpY9YKIGpFyG0X6dPaeQb3SBLpG53jOE+RQAj71UoanjagHUApmHcrJkqIQ==",
"integrity": "sha512-eJV7ic9aTu1yipwP1PThi+7Q6ZCVqZRQbzQcZX+L88AT+peyAlyuHqtuS5polmnJ3A7OOBNDg6MYwS9u5yOyVA==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4835,11 +4826,11 @@
},
"@rush-temp/applicationinsights-core-js": {
"version": "file:projects\\applicationinsights-core-js.tgz",
"integrity": "sha512-Tw1A6ozx+HMlx4E8Jf9BFKjtF74oLkLjrBQsMZ4WPPp53tUCWt1p2UDwqwCbMDt05G4yiTxmgHu+amlUif9EKQ==",
"integrity": "sha512-Gabys7wZ9COkmNagVRJVXJvwZ5YRa3yHmprG9QswbfZEcPKM+235CGecpg/pkrqIlrYnQaNvL2GCfDzHTRuo7g==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4862,11 +4853,11 @@
},
"@rush-temp/applicationinsights-debugplugin-js": {
"version": "file:projects\\applicationinsights-debugplugin-js.tgz",
"integrity": "sha512-xxNs82PKU9sEiMwtfzVrppDEag/+1LL8NooPSfWs7xiawvHiXF6iCXCOpBdA+h/bFlumIaxDud6hQuNyc3z/og==",
"integrity": "sha512-Vqe1/Gfjxlj4SMkgkT45VAw6+owba360nsvOsq59MQKNuIho76UxAoHnfLOOxgPG521WgRDoQnTEfSniIYpGzQ==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4886,11 +4877,11 @@
},
"@rush-temp/applicationinsights-dependencies-js": {
"version": "file:projects\\applicationinsights-dependencies-js.tgz",
"integrity": "sha512-xxptLlP8wvY2NtZUjnbt1s9KfpQviH5EmvC8TQS/qlpbzYdO4PX/BGJ4pQKqwW9bxoeeV5TsID6OYzlA4yKX6A==",
"integrity": "sha512-w1Cuvsy67pCW2d9wgkHZHNXf2Kf78eWLhDYqJNlZ6z4cy3jKuLjRjj40HUvijMW5h7AwQ36hc2FyrEQwFfFLZA==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4900,8 +4891,10 @@
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-cleanup": "3.2.1",
"sinon": "^7.3.1",
"tslib": "^1.13.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
@ -4918,11 +4911,11 @@
},
"@rush-temp/applicationinsights-properties-js": {
"version": "file:projects\\applicationinsights-properties-js.tgz",
"integrity": "sha512-jWYva1fv3GdMN76Hp+gED/uaeCfmt8UFX2BI4zsLz1AN/wfeyW2R0/A9DHkIxGDeu2XCdsq2YwFaD4q9+utEWA==",
"integrity": "sha512-1aOz8YMur14KM6AWLUEyIt+BUCSsG5mPLffSRrt1lhErI6kduepsy0PA9+HVc+r/Dnm90NDT4rk/l0cdn4TpgA==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4945,9 +4938,9 @@
},
"@rush-temp/applicationinsights-rollup-es3": {
"version": "file:projects\\applicationinsights-rollup-es3.tgz",
"integrity": "sha512-hSeFFK81EZUJVQrYOHyv58SPlf7nXHkCZfN2C3TsK9mEOKw112q2s4yPEJCfKstEkf53rBTuqfw7edg40OceGQ==",
"integrity": "sha512-YFcbpW+zqG+mCX5JOLTLM5YY2SusaFwjZYbUNi+qfAkYmopif3B/1fRg2FRKgsLHxUghd256rtaaZzED1qwFIA==",
"requires": {
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4957,10 +4950,8 @@
"grunt-contrib-qunit": "^5.0.1",
"grunt-tslint": "^5.0.2",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-minify-es": "^1.1.1",
"sinon": "^7.3.1",
"tslib": "^1.13.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
@ -4970,9 +4961,9 @@
},
"@rush-temp/applicationinsights-rollup-plugin-uglify3-js": {
"version": "file:projects\\applicationinsights-rollup-plugin-uglify3-js.tgz",
"integrity": "sha512-R39lvV815Hrg7l2frntrPzBRMU5A1EkSkL2hCK9Jgcd9oHxFzqEsBU9oQ3JfDkTJLFAbwqiymBodbMtbPCYbow==",
"integrity": "sha512-JJOYa9ElpRG+SyqxDZXh5evc86+KqlSnlbNrptZw9YzDLwRhjjxlvOdhnm1l9LyDf4wxMDn+Mu/wFZkKzIX42g==",
"requires": {
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -4992,9 +4983,9 @@
},
"@rush-temp/applicationinsights-shims": {
"version": "file:projects\\applicationinsights-shims.tgz",
"integrity": "sha512-40qNzCmaard3jQWBZ8iBxIf5yuVMVm/2CwcoX3pTVR5lf5WJxJf+ReGm9WBdq1dPbBSD9J/yx0xLo1UnsWddZQ==",
"integrity": "sha512-HLjXrlon6GqNNiVLRSmGG0Bh71YgHqln4ZpQSz1WNjokNE8/xGm3zKAX6ZhSCt4/Eyn8kAec7wFjQSI+zoo2eA==",
"requires": {
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -5012,16 +5003,14 @@
},
"@rush-temp/applicationinsights-web": {
"version": "file:projects\\applicationinsights-web.tgz",
"integrity": "sha512-Zzf90+yshhxkcoAFU/E8MZnSRIn0LegYUxosX23BT9M82LMJVaW28hACSLzHpLmhwO6us14ua4w9a5tnS8thvA==",
"integrity": "sha512-fuD/vI/9/Qhm967PDIq+2qasA72DXGKi7rxMvwuGELHbdSVqQku8R6IB/owuVazXmKNBOkGa9TvYgnIWpPlQWg==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"@types/qunit": "^2.5.3",
"@types/sinon": "4.3.3",
"chromedriver": "^2.45.0",
"finalhandler": "^1.1.1",
"globby": "^11.0.0",
@ -5031,7 +5020,6 @@
"grunt-tslint": "^5.0.2",
"magic-string": "^0.25.7",
"pako": "^2.0.3",
"qunit": "^2.11.2",
"rollup": "^2.32.0",
"rollup-plugin-cleanup": "3.2.1",
"selenium-server-standalone-jar": "^3.141.5",
@ -5046,11 +5034,11 @@
},
"@rush-temp/applicationinsights-web-basic": {
"version": "file:projects\\applicationinsights-web-basic.tgz",
"integrity": "sha512-y4275UZWXLDYxbDEHuY+H7MfuM5etz7XYao2SOIimeBbfxn5r6wampF8+ucYq/XX64wNpyJC8TXDIJ9qbOKrmA==",
"integrity": "sha512-/OPlIzq8X/hhC2XgUr3lgk1aCfyAhYTQpzEPOc49CEaebYspxKx+eygJi25NaeeNUYzC+FYRy2H+pYxPv/eOvA==",
"requires": {
"@microsoft/api-extractor": "^7.9.11",
"@microsoft/dynamicproto-js": "^1.1.4",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
@ -5070,9 +5058,9 @@
}
},
"@rushstack/node-core-library": {
"version": "3.39.0",
"resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-3.39.0.tgz",
"integrity": "sha512-kgu3+7/zOBkZU0+NdJb1rcHcpk3/oTjn5c8cg5nUTn+JDjEw58yG83SoeJEcRNNdl11dGX0lKG2PxPsjCokZOQ==",
"version": "3.39.1",
"resolved": "https://registry.npmjs.org/@rushstack/node-core-library/-/node-core-library-3.39.1.tgz",
"integrity": "sha512-HHgMEHZTXQ3NjpQzWd5+fSt2Eod9yFwj6qBPbaeaNtDNkOL8wbLoxVimQNtcH0Qhn4wxF5u2NTDNFsxf2yd1jw==",
"requires": {
"@types/node": "10.17.13",
"colors": "~1.2.1",
@ -5086,18 +5074,18 @@
}
},
"@rushstack/rig-package": {
"version": "0.2.12",
"resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.2.12.tgz",
"integrity": "sha512-nbePcvF8hQwv0ql9aeQxcaMPK/h1OLAC00W7fWCRWIvD2MchZOE8jumIIr66HGrfG2X1sw++m/ZYI4D+BM5ovQ==",
"version": "0.2.13",
"resolved": "https://registry.npmjs.org/@rushstack/rig-package/-/rig-package-0.2.13.tgz",
"integrity": "sha512-qQMAFKvfb2ooaWU9DrGIK9d8QfyHy/HiuITJbWenlKgzcDXQvQgEduk57YF4Y7LLasDJ5ZzLaaXwlfX8qCRe5Q==",
"requires": {
"resolve": "~1.17.0",
"strip-json-comments": "~3.1.1"
}
},
"@rushstack/ts-command-line": {
"version": "4.8.0",
"resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.8.0.tgz",
"integrity": "sha512-nZ8cbzVF1VmFPfSJfy8vEohdiFAH/59Y/Y+B4nsJbn4SkifLJ8LqNZ5+LxCC2UR242EXFumxlsY1d6fPBxck5Q==",
"version": "4.8.1",
"resolved": "https://registry.npmjs.org/@rushstack/ts-command-line/-/ts-command-line-4.8.1.tgz",
"integrity": "sha512-rmxvYdCNRbyRs+DYAPye3g6lkCkWHleqO40K8UPvUAzFqEuj6+YCVssBiOmrUDCoM5gaegSNT0wFDYhz24DWtw==",
"requires": {
"@types/argparse": "1.0.38",
"argparse": "~1.0.9",
@ -5143,9 +5131,9 @@
"integrity": "sha512-+iTbntw2IZPb/anVDbypzfQa+ay64MW0Zo8aJ8gZPWMMK6/OubMVb6lUPMagqjOPnmtauXnFCACVl3O7ogjeqQ=="
},
"@szmarczak/http-timer": {
"version": "4.0.5",
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.5.tgz",
"integrity": "sha512-PyRA9sm1Yayuj5OIoJ1hGt2YISX45w9WcFbh6ddT0Z/0yaFxOtGLInr4jUfU1EAFVs0Yfyfev4RNwBlUaHdlDQ==",
"version": "4.0.6",
"resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-4.0.6.tgz",
"integrity": "sha512-4BAffykYOgO+5nzBWYwE3W90sBgLJoUPRWWcL8wlyiM8IB8ipJz3UMJ9KXQd1RKQXpKp8Tutn80HZtWsu2u76w==",
"requires": {
"defer-to-connect": "^2.0.0"
}
@ -5793,9 +5781,9 @@
"integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q=="
},
"fast-glob": {
"version": "3.2.6",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.6.tgz",
"integrity": "sha512-GnLuqj/pvQ7pX8/L4J84nijv6sAnlwvSDpMkJi9i7nPmPxGtRPkBSStfvDW5l6nMdX9VWe+pkKWFTgD+vF2QSQ==",
"version": "3.2.7",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.7.tgz",
"integrity": "sha512-rYGMRwip6lUMvYD3BTScMwT1HtAs2d71SMv66Vrxs0IekGZEjhM0pcMfjQPnknBt2zeCwQMEupiN02ZP4DiT1Q==",
"requires": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
@ -6378,9 +6366,9 @@
}
},
"is-core-module": {
"version": "2.4.0",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.4.0.tgz",
"integrity": "sha512-6A2fkfq1rfeQZjxrZJGerpLCTHRNEBiSgnu0+obeJpEPZRUooHgsizvzv0ZjJwOz3iWIHdJtVWJ/tmPr3D21/A==",
"version": "2.5.0",
"resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.5.0.tgz",
"integrity": "sha512-TXCMSDsEHMEEZ6eCA8rwRDbLu55MRGmrctljsBX/2v1d9/GzqHOxW5c5oPSgrUt2vBFXebu9rGqckXGPWOlYpg==",
"requires": {
"has": "^1.0.3"
}
@ -7179,9 +7167,9 @@
}
},
"rechoir": {
"version": "0.7.0",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.0.tgz",
"integrity": "sha512-ADsDEH2bvbjltXEP+hTIAmeFekTFK0V2BTxMkok6qILyAJEXV0AFfoWcAq4yfll5VdIMd/RVXq0lR+wQi5ZU3Q==",
"version": "0.7.1",
"resolved": "https://registry.npmjs.org/rechoir/-/rechoir-0.7.1.tgz",
"integrity": "sha512-/njmZ8s1wVeR6pjTZ+0nCnv8SpZNRMT2D1RLOJQESlYFDBvwpTA4KWJpZ+sBJ4+vhjILRcK7JIFdGCdxEAAitg==",
"requires": {
"resolve": "^1.9.0"
}
@ -7222,9 +7210,9 @@
}
},
"resolve-alpn": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.1.2.tgz",
"integrity": "sha512-8OyfzhAtA32LVUsJSke3auIyINcwdh5l3cvYKdKO0nvsYSKuiLfTM5i78PJswFPT8y6cPW+L1v6/hE95chcpDA=="
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/resolve-alpn/-/resolve-alpn-1.2.0.tgz",
"integrity": "sha512-e4FNQs+9cINYMO5NMFc6kOUCdohjqFPSgMuwuZAOUWqrfWsen+Yjy5qZFkV5K7VO7tFSLKcUL97olkED7sCBHA=="
},
"resolve-dir": {
"version": "1.0.1",
@ -7257,9 +7245,9 @@
}
},
"rollup": {
"version": "2.52.8",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.52.8.tgz",
"integrity": "sha512-IjAB0C6KK5/lvqzJWAzsvOik+jV5Bt907QdkQ/gDP4j+R9KYNI1tjqdxiPitGPVrWC21Mf/ucXgowUjN/VemaQ==",
"version": "2.53.3",
"resolved": "https://registry.npmjs.org/rollup/-/rollup-2.53.3.tgz",
"integrity": "sha512-79QIGP5DXz5ZHYnCPi3tLz+elOQi6gudp9YINdaJdjG0Yddubo6JRFUM//qCZ0Bap/GJrsUoEBVdSOc4AkMlRA==",
"requires": {
"fsevents": "~2.3.2"
}
@ -7788,9 +7776,9 @@
}
},
"uglify-js": {
"version": "3.13.10",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.13.10.tgz",
"integrity": "sha512-57H3ACYFXeo1IaZ1w02sfA71wI60MGco/IQFjOqK+WtKoprh7Go2/yvd2HPtoJILO2Or84ncLccI4xoHMTSbGg=="
"version": "3.14.0",
"resolved": "https://registry.npmjs.org/uglify-js/-/uglify-js-3.14.0.tgz",
"integrity": "sha512-R/tiGB1ZXp2BC+TkRGLwj8xUZgdfT2f4UZEgX6aVjJ5uttPrr4fYmwTWDGqVnBCLbOXRMY6nr/BTbwCtVfps0g=="
},
"unbzip2-stream": {
"version": "1.4.3",
@ -7880,9 +7868,9 @@
"integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8="
},
"ws": {
"version": "7.5.2",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.2.tgz",
"integrity": "sha512-lkF7AWRicoB9mAgjeKbGqVUekLnSNO4VjKVnuPHpQeOxZOErX6BPXwJk70nFslRCEEA8EVW7ZjKwXaP9N+1sKQ==",
"version": "7.5.3",
"resolved": "https://registry.npmjs.org/ws/-/ws-7.5.3.tgz",
"integrity": "sha512-kQ/dHIzuLrS6Je9+uv81ueZomEwH0qVYstcAQ4/Z93K8zeko9gtAbttJWzoC5ukqXY1PpoouV3+VSOqEAFt5wg==",
"requires": {}
},
"yallist": {

Просмотреть файл

@ -16,7 +16,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};

Просмотреть файл

@ -16,7 +16,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
var __importStar = (this && this.__importStar) || function (mod) {
if (mod && mod.__esModule) return mod;
var result = {};
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
__setModuleDefault(result, mod);
return result;
};

Просмотреть файл

@ -28,15 +28,7 @@
modules.add("pako","./node_modules/pako/dist/pako");
loadFetchModule(modules, "whatwg-fetch");
// Load and define the app insights test framework module
modules.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
loadCommonModules(modules);
// Load Core
modules.add("@microsoft/applicationinsights-core-js", "./node_modules/@microsoft/applicationinsights-core-js/browser/applicationinsights-core-js");

Просмотреть файл

@ -42,7 +42,7 @@
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
"qunit": "^2.11.2",

Просмотреть файл

@ -24,15 +24,7 @@
modules.add("qunit");
loadFetchModule(modules, "whatwg-fetch");
// Load and define the app insights test framework module
modules.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
loadCommonModules(modules);
// Load Core
modules.add("@microsoft/applicationinsights-core-js", "./node_modules/@microsoft/applicationinsights-core-js/browser/applicationinsights-core-js");

Просмотреть файл

@ -35,7 +35,7 @@
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0"
},

Просмотреть файл

@ -31,7 +31,7 @@
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"@rollup/plugin-commonjs": "^18.0.0",

Просмотреть файл

@ -5,6 +5,7 @@ import {
AppInsightsCore, IConfiguration, ITelemetryItem, ITelemetryPlugin, IChannelControls, _InternalMessageId,
getPerformance, getGlobalInst, getGlobal
} from "@microsoft/applicationinsights-core-js";
import { SinonStub } from "sinon";
interface IFetchArgs {
input: RequestInfo,

Просмотреть файл

@ -24,15 +24,7 @@
modules.add("qunit");
loadFetchModule(modules, "whatwg-fetch");
// Load and define the app insights test framework module
modules.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
loadCommonModules(modules);
// Load Core
modules.add("@microsoft/applicationinsights-core-js", "./node_modules/@microsoft/applicationinsights-core-js/browser/applicationinsights-core-js");

Просмотреть файл

@ -32,7 +32,7 @@
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"@rollup/plugin-commonjs": "^18.0.0",
@ -41,7 +41,9 @@
"rollup-plugin-cleanup": "3.2.1",
"rollup": "^2.32.0",
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0"
"tslint-config-prettier": "^1.18.0",
"qunit": "^2.11.2",
"sinon": "^7.3.1"
},
"dependencies": {
"@microsoft/dynamicproto-js": "^1.1.4",

Просмотреть файл

@ -25,15 +25,7 @@
modules.add("pako","./node_modules/pako/dist/pako");
loadFetchModule(modules, "whatwg-fetch");
// Load and define the app insights test framework module
modules.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
loadCommonModules(modules);
// Load Core
modules.add("@microsoft/applicationinsights-core-js", "./node_modules/@microsoft/applicationinsights-core-js/browser/applicationinsights-core-js");

Просмотреть файл

@ -32,7 +32,7 @@
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"pako":"^2.0.3",

Просмотреть файл

@ -25,7 +25,7 @@
"grunt-contrib-qunit": "^5.0.1",
"grunt-contrib-uglify": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"grunt-tslint": "^5.0.2",
"qunit": "^2.11.2",
"react": "16.13.1",

Просмотреть файл

@ -145,10 +145,9 @@ module.exports = function (grunt) {
aichanneltest: {
tsconfig: './channels/applicationinsights-channel-js/Tests/tsconfig.json',
src: [
'./channels/applicationinsights-channel-js/Tests/Selenium/*.ts',
'./channels/applicationinsights-channel-js/Tests/*.ts',
'./channels/applicationinsights-channel-js/Tests/Unit/src/**/*.ts'
],
out: './channels/applicationinsights-channel-js/Tests/Selenium/aichannel.tests.js'
out: './channels/applicationinsights-channel-js/Tests/Unit/dist/aichannel.tests.js'
},
rollupuglify: {
tsconfig: './tools/rollup-plugin-uglify3-js/tsconfig.json',
@ -302,7 +301,7 @@ module.exports = function (grunt) {
aichannel: {
options: {
urls: [
'http://localhost:9001/channels/applicationinsights-channel-js/Tests/Selenium/Tests.html'
'http://localhost:9001/channels/applicationinsights-channel-js/Tests/UnitTests.html'
],
timeout: 300 * 1000, // 5 min
console: false,

Просмотреть файл

@ -20,7 +20,7 @@
"rupdate": "node common/scripts/install-run-rush.js update --recheck --purge --full",
"serve": "grunt serve",
"setVersion": "node ./tools/release-tools/setVersion.js",
"fullClean": "git clean -xdf && npm install && rush update --recheck --purge --full",
"fullClean": "git clean -xdf && npm install && rush update --recheck --full",
"fullCleanBuild": "npm run fullClean && npm run rebuild"
},
"repository": {
@ -34,22 +34,23 @@
},
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
"devDependencies": {
"@microsoft/rush": "^5.49.2",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"chromium": "^3.0.2",
"connect": "^3.7.0",
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-connect": "^3.0.0",
"grunt-contrib-qunit": "^5.0.1",
"grunt-contrib-uglify": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"grunt-tslint": "^5.0.2",
"tslint": "^5.19.0",
"tslint-microsoft-contrib": "^5.2.1",
"tslint-config-prettier": "^1.18.0",
"typescript": "2.5.3",
"whatwg-fetch": "^3.0.0",
"typedoc": "^0.16.9",
"connect": "^3.7.0",
"puppeteer": "^10.1.0",
"chromium": "^3.0.2"
"tslint": "^5.19.0",
"tslint-config-prettier": "^1.18.0",
"tslint-microsoft-contrib": "^5.2.1",
"typedoc": "^0.16.9",
"typescript": "2.5.3",
"whatwg-fetch": "^3.0.0"
}
}

Просмотреть файл

@ -2,8 +2,8 @@
{
"$schema": "https://developer.microsoft.com/json-schemas/rush/v5/rush.schema.json",
"npmVersion": "7.19.1",
"rushVersion": "5.47.0",
"npmVersion": "7.20.0",
"rushVersion": "5.49.2",
"projectFolderMaxDepth": 4,
"projects": [
{

Просмотреть файл

@ -23,15 +23,7 @@
modules.add("qunit");
loadFetchModule(modules, "whatwg-fetch");
// Load and define the app insights test framework module
modules.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
loadCommonModules(modules);
// Load and initialize ai core
modules.add("@microsoft/applicationinsights-core-js", "./node_modules/@microsoft/applicationinsights-core-js/browser/applicationinsights-core-js");

Просмотреть файл

@ -29,7 +29,7 @@
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",

Просмотреть файл

@ -26,15 +26,7 @@
modules.add("pako","./node_modules/pako/dist/pako");
loadFetchModule(modules, "whatwg-fetch");
// Load and define the app insights test framework module
modules.add("@microsoft/ai-test-framework", "./node_modules/@microsoft/ai-test-framework/dist/ai-test-framework");
// Load and define the app insights Shims module
modules.add("@microsoft/applicationinsights-shims", "./node_modules/@microsoft/applicationinsights-shims/browser/applicationinsights-shims");
// Load DynamicProto
modules.add("@microsoft/dynamicproto-js", "./node_modules/@microsoft/dynamicproto-js/lib/dist/umd/dynamicproto-js", true);
loadCommonModules(modules);
var testModule = modules.add("Tests/Unit/src/aiunittests", "./Unit/dist/aicoreunit.tests.js")
testModule.run = function (tests) {

Просмотреть файл

@ -41,7 +41,7 @@
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"globby": "^11.0.0",
"magic-string": "^0.25.7",
"pako":"^2.0.3",

Просмотреть файл

@ -1,8 +1,6 @@
import { AITestClass } from "@microsoft/ai-test-framework";
import { es3Check, es3Poly, importCheck } from "../../../src/applicationinsights-rollup-es3";
//import * as sinon from 'sinon';
export class Es3RollupTests extends AITestClass {
public testInitialize() {

Просмотреть файл

@ -37,7 +37,7 @@
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"grunt-tslint": "^5.0.2",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
@ -50,8 +50,6 @@
"typescript": "2.5.3",
"tslib": "^1.13.0",
"magic-string": "^0.25.7",
"qunit": "^2.11.2",
"sinon": "^7.3.1",
"chromium": "^3.0.2"
},
"dependencies": {

Просмотреть файл

@ -28,7 +28,7 @@
"grunt": "^1.4.1",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"grunt-tslint": "^5.0.2",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",

Просмотреть файл

@ -3,14 +3,8 @@ import {
objCreateFn, getGlobal,
strShimFunction, strShimHasOwnProperty, strShimObject, strShimPrototype, strShimUndefined
} from "../../../src/applicationinsights-shims";
import {
__extendsFn, __assignFn, __objAssignFnImpl
} from "../../../src/TsLibShims";
import {
__exposeGlobalTsLib
} from "../../../src/TsLibGlobals";
import { __extendsFn, __assignFn, __objAssignFnImpl } from "../../../src/TsLibShims";
import { __exposeGlobalTsLib } from "../../../src/TsLibGlobals";
__exposeGlobalTsLib();

Просмотреть файл

@ -41,7 +41,7 @@
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"grunt-run": "^0.8.1",
"@nevware21/grunt-ts-plugin": "^0.3.0",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",