Socket
Socket
Sign inDemoInstall

sorcery

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

sorcery - npm Package Compare versions

Comparing version 0.6.0 to 0.6.1

4

CHANGELOG.md
# changelog
## 0.6.1
* Handle URLs that look a bit like data URIs
## 0.6.0

@@ -4,0 +8,0 @@

4

dist/sorcery.js

@@ -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

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