source-map
Advanced tools
Comparing version 0.1.8 to 0.1.9
@@ -184,4 +184,4 @@ /* -*- Mode: js; js-indent-level: 2; -*- */ | ||
} | ||
chunk.split('').forEach(function (char) { | ||
if (char === '\n') { | ||
chunk.split('').forEach(function (ch) { | ||
if (ch === '\n') { | ||
generated.line++; | ||
@@ -188,0 +188,0 @@ generated.column = 0; |
{ | ||
"name": "source-map", | ||
"description": "Generates and consumes source maps", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"homepage": "https://github.com/mozilla/source-map", | ||
@@ -6,0 +6,0 @@ "author": "Nick Fitzgerald <nfitzgerald@mozilla.com>", |
@@ -16,3 +16,3 @@ # Source Map | ||
* With NodeJS versions 0.4.X and higher | ||
* With NodeJS versions 0.8.X and higher | ||
@@ -256,3 +256,3 @@ ## Installing with NPM (for use with NodeJS) | ||
Install NodeJS version 0.4.0 or greater, then run `node test/run-tests.js`. | ||
Install NodeJS version 0.8.0 or greater, then run `node test/run-tests.js`. | ||
@@ -259,0 +259,0 @@ To add new tests, create a new file named `test/test-<your new test name>.js` |
@@ -12,3 +12,9 @@ /* -*- Mode: js; js-indent-level: 2; -*- */ | ||
var sourceMap = require('../../lib/source-map'); | ||
var sourceMap; | ||
try { | ||
sourceMap = require('../../lib/source-map'); | ||
} catch (e) { | ||
sourceMap = {}; | ||
Components.utils.import('resource:///modules/devtools/SourceMap.jsm', sourceMap); | ||
} | ||
@@ -15,0 +21,0 @@ exports['test that the api is properly exposed in the top level'] = function (assert, util) { |
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
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
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
93143
2236
1