inline-source-map
Advanced tools
Comparing version 0.2.4 to 0.2.5
{ | ||
"name": "inline-source-map", | ||
"version": "0.2.4", | ||
"version": "0.2.5", | ||
"description": "Adds source mappings and base64 encodes them, so they can be inlined in your generated file.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "tap ./test/*.js" | ||
"test-main": "tap test/*.js", | ||
"test-0.8": "nave use 0.8 npm run test-main", | ||
"test-0.10": "nave use 0.10 npm run test-main", | ||
"test-all": "npm run test-main && npm run test-0.8 && npm run test-0.10", | ||
"test": "if [ -e $TRAVIS ]; then npm run test-all; else npm run test-main; fi" | ||
}, | ||
@@ -15,6 +19,7 @@ "repository": { | ||
"dependencies": { | ||
"source-map": "~0.1.9" | ||
"source-map": "~0.1.25" | ||
}, | ||
"devDependencies": { | ||
"tap": "~0.4.3" | ||
"tap": "~0.4.3", | ||
"nave": "~0.4.4" | ||
}, | ||
@@ -21,0 +26,0 @@ "keywords": [ |
@@ -107,3 +107,3 @@ 'use strict'; | ||
decode(gen.base64Encode()) | ||
, '{"version":3,"file":"","sources":["foo.js","bar.js"],"names":[],"mappings":"AAAA,ACAA;ADCA,ACAA;ADCA,ACAA;ADCA;AACA"}' | ||
, '{"version":3,"file":"","sources":["foo.js","bar.js"],"names":[],"mappings":"ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA"}' | ||
, 'encodes generated mappings' | ||
@@ -113,3 +113,3 @@ ) | ||
gen.inlineMappingUrl() | ||
, '//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsQUNBQTtBRENBLEFDQUE7QURDQSxBQ0FBO0FEQ0E7QUFDQSJ9' | ||
, '//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFDQUEsQURBQTtBQ0NBLEFEQUE7QUNDQSxBREFBO0FBQ0E7QUFDQSJ9' | ||
, 'returns correct inline mapping url' | ||
@@ -116,0 +116,0 @@ ) |
@@ -77,3 +77,3 @@ 'use strict'; | ||
"names": [], | ||
"mappings": "AAAA,ACAA;ADCA,ACAA;ADCA,ACAA;ADCA;AACA", | ||
"mappings": "ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA", | ||
"sourcesContent": [ | ||
@@ -89,3 +89,3 @@ "function foo() {\n var hello = 'hello';\n var world = 'world';\n console.log('%s %s', hello, world);\n}", | ||
decode(gen.base64Encode()) | ||
, '{"version":3,"file":"","sources":["foo.js","bar.js"],"names":[],"mappings":"AAAA,ACAA;ADCA,ACAA;ADCA,ACAA;ADCA;AACA","sourcesContent":["function foo() {\\n var hello = \'hello\';\\n var world = \'world\';\\n console.log(\'%s %s\', hello, world);\\n}","function bar() {\\n console.log(\'yes?\');\\n}"]}' | ||
, '{"version":3,"file":"","sources":["foo.js","bar.js"],"names":[],"mappings":"ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA","sourcesContent":["function foo() {\\n var hello = \'hello\';\\n var world = \'world\';\\n console.log(\'%s %s\', hello, world);\\n}","function bar() {\\n console.log(\'yes?\');\\n}"]}' | ||
, 'encodes generated mappings including source content' | ||
@@ -95,3 +95,3 @@ ) | ||
gen.inlineMappingUrl() | ||
, '//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsQUNBQTtBRENBLEFDQUE7QURDQSxBQ0FBO0FEQ0E7QUFDQSIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIGZvbygpIHtcbiAgdmFyIGhlbGxvID0gJ2hlbGxvJztcbiAgdmFyIHdvcmxkID0gJ3dvcmxkJztcbiAgY29uc29sZS5sb2coJyVzICVzJywgaGVsbG8sIHdvcmxkKTtcbn0iLCJmdW5jdGlvbiBiYXIoKSB7XG4gIGNvbnNvbGUubG9nKCd5ZXM/Jyk7XG59Il19' | ||
, '//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFDQUEsQURBQTtBQ0NBLEFEQUE7QUNDQSxBREFBO0FBQ0E7QUFDQSIsInNvdXJjZXNDb250ZW50IjpbImZ1bmN0aW9uIGZvbygpIHtcbiAgdmFyIGhlbGxvID0gJ2hlbGxvJztcbiAgdmFyIHdvcmxkID0gJ3dvcmxkJztcbiAgY29uc29sZS5sb2coJyVzICVzJywgaGVsbG8sIHdvcmxkKTtcbn0iLCJmdW5jdGlvbiBiYXIoKSB7XG4gIGNvbnNvbGUubG9nKCd5ZXM/Jyk7XG59Il19' | ||
, 'returns correct inline mapping url including source content' | ||
@@ -117,3 +117,3 @@ ) | ||
"names": [], | ||
"mappings": "AAAA,ACAA;ADCA,ACAA;ADCA,ACAA;ADCA;AACA", | ||
"mappings": "ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA", | ||
"sourcesContent": [ null, "function bar() {\n console.log('yes?');\n}" ] | ||
@@ -126,3 +126,3 @@ } | ||
decode(gen.base64Encode()) | ||
, '{"version":3,"file":"","sources":["foo.js","bar.js"],"names":[],"mappings":"AAAA,ACAA;ADCA,ACAA;ADCA,ACAA;ADCA;AACA","sourcesContent":[null,"function bar() {\\n console.log(\'yes?\');\\n}"]}' | ||
, '{"version":3,"file":"","sources":["foo.js","bar.js"],"names":[],"mappings":"ACAA,ADAA;ACCA,ADAA;ACCA,ADAA;AACA;AACA","sourcesContent":[null,"function bar() {\\n console.log(\'yes?\');\\n}"]}' | ||
, 'encodes generated mappings including source content' | ||
@@ -132,3 +132,3 @@ ) | ||
gen.inlineMappingUrl() | ||
, '//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsQUNBQTtBRENBLEFDQUE7QURDQSxBQ0FBO0FEQ0E7QUFDQSIsInNvdXJjZXNDb250ZW50IjpbbnVsbCwiZnVuY3Rpb24gYmFyKCkge1xuICBjb25zb2xlLmxvZygneWVzPycpO1xufSJdfQ==' | ||
, '//@ sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiIiwic291cmNlcyI6WyJmb28uanMiLCJiYXIuanMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFDQUEsQURBQTtBQ0NBLEFEQUE7QUNDQSxBREFBO0FBQ0E7QUFDQSIsInNvdXJjZXNDb250ZW50IjpbbnVsbCwiZnVuY3Rpb24gYmFyKCkge1xuICBjb25zb2xlLmxvZygneWVzPycpO1xufSJdfQ==' | ||
, 'returns correct inline mapping url including source content' | ||
@@ -135,0 +135,0 @@ ) |
Sorry, the diff of this file is not supported yet
23991
2
Updatedsource-map@~0.1.25