applicationinsights-js
Advanced tools
Comparing version 1.0.11 to 1.0.12
@@ -232,3 +232,3 @@ <properties | ||
// If true, data is sent immediately and not batched. | ||
// If true, debugging data is thrown as an exception by the logger. Default false. | ||
enableDebug: boolean; | ||
@@ -235,0 +235,0 @@ |
{ | ||
"name": "applicationinsights-js", | ||
"main": "dist/ai.0.js", | ||
"version": "1.0.11", | ||
"version": "1.0.12", | ||
"homepage": "https://github.com/Microsoft/ApplicationInsights-JS", | ||
@@ -6,0 +6,0 @@ "authors": [ |
{ | ||
"name": "applicationinsights-js", | ||
"version": "1.0.11", | ||
"description": "Microsoft Application Insights JavaScript SDK", | ||
"main": "JavaScript/JavaScriptSDK.Module/AppInsightsModule.js", | ||
"keywords": [ | ||
"browser performance monitoring", | ||
"script errors", | ||
"application insights", | ||
"microsoft", | ||
"azure" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Microsoft/ApplicationInsights-JS.git" | ||
}, | ||
"author": "Microsoft Application Insights Team", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Microsoft/ApplicationInsights-JS/issues" | ||
}, | ||
"homepage": "https://github.com/Microsoft/ApplicationInsights-JS#readme" | ||
} | ||
"name": "applicationinsights-js", | ||
"version": "1.0.12", | ||
"description": "Microsoft Application Insights JavaScript SDK", | ||
"main": "bundle/ai.module.js", | ||
"keywords": [ | ||
"browser performance monitoring", | ||
"script errors", | ||
"application insights", | ||
"microsoft", | ||
"azure" | ||
], | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/Microsoft/ApplicationInsights-JS.git" | ||
}, | ||
"author": "Microsoft Application Insights Team", | ||
"license": "MIT", | ||
"bugs": { | ||
"url": "https://github.com/Microsoft/ApplicationInsights-JS/issues" | ||
}, | ||
"homepage": "https://github.com/Microsoft/ApplicationInsights-JS#readme", | ||
"devDependencies": { | ||
"grunt": "1.0.1", | ||
"grunt-contrib-qunit": "2.0.0", | ||
"grunt-contrib-uglify": "2.3.0", | ||
"grunt-ts": "^6.0.0-beta.15", | ||
"typescript": "2.4.1" | ||
} | ||
} |
@@ -24,8 +24,8 @@ # Microsoft Application Insights JavaScript SDK | ||
<script type="text/javascript"> | ||
var appInsights=window.appInsights||function(config){ | ||
function i(config){t[config]=function(){var i=arguments;t.queue.push(function(){t[config].apply(t,i)})}}var t={config:config},u=document,e=window,o="script",s="AuthenticatedUserContext",h="start",c="stop",l="Track",a=l+"Event",v=l+"Page",y=u.createElement(o),r,f;y.src=config.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js";u.getElementsByTagName(o)[0].parentNode.appendChild(y);try{t.cookie=u.cookie}catch(p){}for(t.queue=[],t.version="1.0",r=["Event","Exception","Metric","PageView","Trace","Dependency"];r.length;)i("track"+r.pop());return i("set"+s),i("clear"+s),i(h+a),i(c+a),i(h+v),i(c+v),i("flush"),config.disableExceptionTracking||(r="onerror",i("_"+r),f=e[r],e[r]=function(config,i,u,e,o){var s=f&&f(config,i,u,e,o);return s!==!0&&t["_"+r](config,i,u,e,o),s}),t | ||
var appInsights=window.appInsights||function(a){ | ||
function b(a){c[a]=function(){var b=arguments;c.queue.push(function(){c[a].apply(c,b)})}}var c={config:a},d=document,e=window;setTimeout(function(){var b=d.createElement("script");b.src=a.url||"https://az416426.vo.msecnd.net/scripts/a/ai.0.js",d.getElementsByTagName("script")[0].parentNode.appendChild(b)});try{c.cookie=d.cookie}catch(a){}c.queue=[];for(var f=["Event","Exception","Metric","PageView","Trace","Dependency"];f.length;)b("track"+f.pop());if(b("setAuthenticatedUserContext"),b("clearAuthenticatedUserContext"),b("startTrackEvent"),b("stopTrackEvent"),b("startTrackPage"),b("stopTrackPage"),b("flush"),!a.disableExceptionTracking){f="onerror",b("_"+f);var g=e[f];e[f]=function(a,b,d,e,h){var i=g&&g(a,b,d,e,h);return!0!==i&&c["_"+f](a,b,d,e,h),i}}return c | ||
}({ | ||
instrumentationKey: "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxx" | ||
}); | ||
window.appInsights = appInsights; | ||
@@ -99,11 +99,13 @@ appInsights.trackPageView(); | ||
* Build | ||
* Visual Studio 2013 Ultimate with Update 4 or later | ||
* Clone the Git repository | ||
* Open Visual Studio solution (devenv JavaScript\Microsoft.ApplicationInsights.JavaScript.sln) | ||
* Build solution in Visual Studio | ||
* `npm install -g grunt-cli` | ||
* `npm install` | ||
* `grunt` or Ctrl+Shift+B in VisualStudio Code | ||
* `grunt module` to build the npm module | ||
* compiled files are dropped into a `/bundle` folder | ||
* Run check-in tests | ||
* `powershell "& .\scripts\RunTestsInBrowser.ps1"` to run `Tests.html` in a browser (you might need to call Set-ExecutionPolicy to be able to execute the script) | ||
* Don't forget to build the solution after changing TypeScript files | ||
* Refresh Tests.html in the browser to re-run tests | ||
* `grunt test` to build and run tests | ||
* You can also open `JavaScriptSDK.Tests/Selenium/Tests.html` directly in your browser to debug failing tests. | ||
To debug tests in PhantomJS use a remote debugger: `phantomjs.exe --remote-debugger-port=9000 \JavaScript\JavaScriptSDK.Tests\phantomJS.debug.js`. If webkit console isn't working execute the following script in a browser's console: `function isEnterKey(event) { return (event.keyCode !== 229 && event.keyIdentifier === "Enter") || event.keyCode === 13; }`. | ||
@@ -110,0 +112,0 @@ ## Contributing |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
446764
10
6124
119
5