Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "tracekit", | ||
"main": "TraceKit.js", | ||
"version": "0.2.0", | ||
"main": "tracekit.js", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/csnover/TraceKit", | ||
@@ -6,0 +6,0 @@ "description": "Cross browser stack traces", |
@@ -6,3 +6,3 @@ /*global module:false*/ | ||
grunt.initConfig({ | ||
'closureCompiler': { | ||
closureCompiler: { | ||
options: { | ||
@@ -22,3 +22,3 @@ compilerFile: './closure/compiler.jar', | ||
}, | ||
'compile': { | ||
compile: { | ||
src: './tracekit.js', | ||
@@ -38,9 +38,17 @@ dest: './tracekit.min.js' | ||
} | ||
}, | ||
jasmine : { | ||
src: 'tracekit.js', | ||
options: { | ||
specs: 'tracekit-spec.js' | ||
} | ||
} | ||
}); | ||
grunt.loadNpmTasks('grunt-contrib-jasmine'); | ||
grunt.loadNpmTasks('grunt-contrib-jshint'); | ||
grunt.loadNpmTasks('grunt-closure-tools'); | ||
grunt.registerTask('test', ['jasmine']); | ||
grunt.registerTask('default', ['jshint:lint', 'closureCompiler:compile']); | ||
}; |
{ | ||
"name": "tracekit", | ||
"main": "./tracekit.js", | ||
"version": "0.2.0", | ||
"homepage": "https://github.com/csnover/TraceKit", | ||
"description": "Cross browser stack traces", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/csnover/TraceKit.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/csnover/TraceKit/issues" | ||
}, | ||
"keywords": [ | ||
"TraceKit", | ||
"stack traces" | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"grunt": "~0.4.5", | ||
"grunt-contrib-jshint": "~0.11.2", | ||
"grunt-cli": "~0.1.13", | ||
"grunt-closure-tools": "~0.9.8" | ||
}, | ||
"scripts": { | ||
"test": "grunt --verbose travis" | ||
} | ||
"name": "tracekit", | ||
"main": "./tracekit.js", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/csnover/TraceKit", | ||
"description": "Cross browser stack traces", | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/csnover/TraceKit.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/csnover/TraceKit/issues" | ||
}, | ||
"keywords": [ | ||
"TraceKit", | ||
"stack traces" | ||
], | ||
"license": "MIT", | ||
"devDependencies": { | ||
"grunt": "^0.4.5", | ||
"grunt-cli": "~0.1.13", | ||
"grunt-closure-tools": "~0.9.8", | ||
"grunt-contrib-jasmine": "^0.8.2", | ||
"grunt-contrib-jshint": "~0.11.2" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
} | ||
} |
TraceKit - Cross browser stack traces. | ||
===================================== | ||
[![Build Status](https://travis-ci.org/occ/TraceKit.png?branch=master)](https://travis-ci.org/occ/TraceKit) | ||
[![Build status](https://ci.appveyor.com/api/projects/status/jaj7yuc29nny4tre/branch/master?svg=true)](https://ci.appveyor.com/project/niemyjski/tracekit/branch/master) | ||
@@ -81,4 +81,13 @@ ### Supports all major browsers, from IE6 to Opera, the Andriod webview and everywhere in between. | ||
All code must pass JSHint and tests, run `grunt` for this. New features need accompanying documentation in the README, changes to existing api's need updated documentation. In general, open an issue for whatever it is you're thinking, get some quick feedback, make good stuff, and we'll accept the PR. | ||
All code must pass JSHint and tests. | ||
Run `grunt` to compile and run JSHint and `grunt test` for the test suite. | ||
New features need accompanying documentation in the README, changes to existing api's need updated documentation. | ||
In general, open an issue for whatever it is you're thinking, get some quick feedback, make good stuff, and we'll accept the PR. | ||
Before building (minifying) you will need to get the closure compiler jar: | ||
``` | ||
wget http://dl.google.com/closure-compiler/compiler-latest.zip | ||
unzip compiler-latest.zip -d closure | ||
``` | ||
## License | ||
@@ -85,0 +94,0 @@ |
@@ -71,2 +71,9 @@ declare module TraceKit { | ||
ofCaller:(depth:string|number) => StackTrace; | ||
/** | ||
* Retrieves source code from the source code cache. | ||
* @param {string} url URL of source code. | ||
* @return {Array.<string>} Source contents. | ||
*/ | ||
getSource:(url:string) => string[]; | ||
} | ||
@@ -73,0 +80,0 @@ |
@@ -976,3 +976,3 @@ /* | ||
try { | ||
item.func = parts.input.substring(0, parts.input.indexOf('{')) | ||
item.func = parts.input.substring(0, parts.input.indexOf('{')); | ||
} catch (e) { } | ||
@@ -1101,2 +1101,3 @@ } | ||
computeStackTrace.ofCaller = computeStackTraceOfCaller; | ||
computeStackTrace.getSource = getSource; | ||
@@ -1103,0 +1104,0 @@ return computeStackTrace; |
Sorry, the diff of this file is not supported yet
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Dynamic require
Supply chain riskDynamic require can indicate the package is performing dangerous or unsafe dynamic code execution.
Found 1 instance in 1 package
103
0
1
59986
5
11
1355