Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tracekit

Package Overview
Dependencies
Maintainers
2
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tracekit - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

spec/tracekit-computestacktrace-spec.js

2

bower.json
{
"name": "tracekit",
"main": "tracekit.js",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/csnover/TraceKit",

@@ -6,0 +6,0 @@ "description": "Cross browser stack traces",

@@ -6,22 +6,2 @@ /*global module:false*/

grunt.initConfig({
closureCompiler: {
options: {
compilerFile: './closure/compiler.jar',
checkModified: true,
compilerOpts: {
compilation_level: 'ADVANCED_OPTIMIZATIONS',
warning_level: 'verbose',
jscomp_off: ['checkTypes', 'checkVars', 'fileoverviewTags'],
summary_detail_level: 3,
output_wrapper: '"(function(){%output%}).call(this);"'
},
execOpts: {
maxBuffer: 200 * 1024
}
},
compile: {
src: './tracekit.js',
dest: './tracekit.min.js'
}
},
jshint: {

@@ -51,6 +31,5 @@ options: {

grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-closure-tools');
grunt.registerTask('test', ['jasmine']);
grunt.registerTask('default', ['jshint:lint', 'closureCompiler:compile']);
grunt.registerTask('default', ['jshint:lint']);
};
{
"name": "tracekit",
"main": "./tracekit.js",
"version": "0.3.1",
"version": "0.3.2",
"homepage": "https://github.com/csnover/TraceKit",

@@ -20,12 +20,11 @@ "description": "Cross browser stack traces",

"devDependencies": {
"grunt": "^0.4.5",
"grunt-cli": "~0.1.13",
"grunt-closure-tools": "~0.9.9",
"grunt-contrib-jasmine": "^0.9.2",
"grunt-contrib-jshint": "~0.11.2",
"jasmine": "^2.3.2",
"jasmine-core": "^2.3.4",
"karma": "^0.13.9",
"karma-chrome-launcher": "^0.2.0",
"karma-jasmine": "^0.3.6"
"grunt": "0.4.5",
"grunt-cli": "0.1.13",
"grunt-contrib-jasmine": "1.0.0",
"grunt-contrib-jshint": "0.12.0",
"jasmine": "2.4.1",
"jasmine-core": "2.4.1",
"karma": "0.13.19",
"karma-chrome-launcher": "0.2.2",
"karma-jasmine": "0.3.7"
},

@@ -32,0 +31,0 @@ "scripts": {

TraceKit - Cross browser stack traces.
=====================================
[![Build status](https://ci.appveyor.com/api/projects/status/jaj7yuc29nny4tre/branch/master?svg=true)](https://ci.appveyor.com/project/niemyjski/tracekit/branch/master)
[![Build status](https://ci.appveyor.com/api/projects/status/t886g3yu29r6yshq/branch/master?svg=true)](https://ci.appveyor.com/project/Exceptionless/tracekit/branch/master)

@@ -6,0 +6,0 @@ ### Supports all major browsers, from IE6 to Opera, the Android webview and everywhere in between.

@@ -173,3 +173,4 @@ /* exported CapturedExceptions */

" at dumpExceptionError (http://localhost:8080/file.js:41:27)\n" +
" at HTMLButtonElement.onclick (http://localhost:8080/file.js:107:146)"
" at HTMLButtonElement.onclick (http://localhost:8080/file.js:107:146)\n" +
" at I.e.fn.(anonymous function) [as index] (http://localhost:8080/file.js:10:3651)"
};

@@ -220,2 +221,3 @@

"bar@http://path/to/file.js:1:1\n" +
".plugin/e.fn[c]/<@http://path/to/file.js:1:1\n" +
"",

@@ -222,0 +224,0 @@ fileName: "http://path/to/file.js",

@@ -101,5 +101,6 @@ (function() {

expect(stackFrames).toBeTruthy();
expect(stackFrames.stack.length).toBe(2);
expect(stackFrames.stack.length).toBe(3);
expect(stackFrames.stack[0]).toEqual({ url: 'http://path/to/file.js', func: 'foo', args: [], line: 41, column: 13, context: null });
expect(stackFrames.stack[1]).toEqual({ url: 'http://path/to/file.js', func: 'bar', args: [], line: 1, column: 1, context: null });
expect(stackFrames.stack[2]).toEqual({ url: 'http://path/to/file.js', func: '.plugin/e.fn[c]/<', args: [], line: 1, column: 1, context: null });
});

@@ -126,5 +127,6 @@

expect(stackFrames).toBeTruthy();
expect(stackFrames.stack.length).toBe(2);
expect(stackFrames.stack.length).toBe(3);
expect(stackFrames.stack[0]).toEqual({ url: 'http://localhost:8080/file.js', func: 'dumpExceptionError', args: [], line: 41, column: 27, context: null });
expect(stackFrames.stack[1]).toEqual({ url: 'http://localhost:8080/file.js', func: 'HTMLButtonElement.onclick', args: [], line: 107, column: 146, context: null });
expect(stackFrames.stack[2]).toEqual({ url: 'http://localhost:8080/file.js', func: 'I.e.fn.(anonymous function) [as index]', args: [], line: 10, column: 3651, context: null });
});

@@ -131,0 +133,0 @@

@@ -70,3 +70,3 @@ declare module TraceKit {

*/
ofCaller:(depth:string|number) => StackTrace;
ofCaller:(depth?:string|number) => StackTrace;

@@ -73,0 +73,0 @@ /**

@@ -367,3 +367,4 @@ /*

try { domain = document.domain; } catch (e) {}
if (url.indexOf(domain) !== -1) {
var match = /(.*)\:\/\/([^\/]+)\/{0,1}([\s\S]*)/.exec(url);
if (match && match[2] === domain) {
source = loadSource(url);

@@ -642,3 +643,3 @@ }

var chrome = /^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval).*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,
gecko = /^\s*(.*?)(?:\((.*?)\))?@?((?:file|https?|blob|chrome|\[).*?)(?::(\d+))?(?::(\d+))?\s*$/i,
gecko = /^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|\[).*?)(?::(\d+))?(?::(\d+))?\s*$/i,
winjs = /^\s*at (?:((?:\[object object\])?.+) )?\(?((?:ms-appx|https?|blob):.*?):(\d+)(?::(\d+))?\)?\s*$/i,

@@ -645,0 +646,0 @@ lines = ex.stack.split('\n'),

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc