Comparing version 0.6.0 to 0.6.1
# changelog | ||
## 0.6.1 | ||
* Handle URLs that look a bit like data URIs | ||
## 0.6.0 | ||
@@ -4,0 +8,0 @@ |
@@ -7,2 +7,3 @@ 'use strict'; | ||
var crc32 = require('buffer-crc32'); | ||
crc32 = 'default' in crc32 ? crc32['default'] : crc32; | ||
@@ -337,3 +338,4 @@ var SOURCEMAPPING_URL = 'sourceMa'; | ||
function getMapFromUrl(url, base, sync) { | ||
if (/^data/.test(url)) { | ||
if (/^data:/.test(url)) { | ||
// TODO beef this up | ||
var match = /base64,(.+)$/.exec(url); | ||
@@ -340,0 +342,0 @@ |
{ | ||
"name": "sorcery", | ||
"description": "Resolve a chain of sourcemaps back to the original source", | ||
"version": "0.6.0", | ||
"version": "0.6.1", | ||
"author": "Rich Harris", | ||
@@ -6,0 +6,0 @@ "repository": "https://github.com/Rich-Harris/sorcery", |
@@ -1,3 +0,3 @@ | ||
import * as crc32 from 'buffer-crc32'; | ||
import * as vlq from 'vlq'; | ||
import crc32 from 'buffer-crc32'; | ||
import { decode } from 'vlq'; | ||
@@ -11,3 +11,3 @@ let cache = {}; | ||
while ( i-- ) { | ||
segments[i] = vlq.decode( encodedSegments[i] ); | ||
segments[i] = decode( encodedSegments[i] ); | ||
} | ||
@@ -14,0 +14,0 @@ |
@@ -1,2 +0,2 @@ | ||
import * as vlq from 'vlq'; | ||
import { encode } from 'vlq'; | ||
@@ -45,4 +45,4 @@ export default function encodeMappings ( decoded ) { | ||
return vlq.encode( result ); | ||
return encode( result ); | ||
} | ||
} |
@@ -16,3 +16,3 @@ import { dirname, resolve } from 'path'; | ||
export default function getMapFromUrl ( url, base, sync ) { | ||
if ( /^data/.test( url ) ) { | ||
if ( /^data:/.test( url ) ) { // TODO beef this up | ||
const match = /base64,(.+)$/.exec( url ); | ||
@@ -36,2 +36,2 @@ | ||
} | ||
} | ||
} |
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
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
124731
1013