Socket
Socket
Sign inDemoInstall

rollup-plugin-sourcemaps

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rollup-plugin-sourcemaps - npm Package Compare versions

Comparing version 0.3.1 to 0.3.2

13

dist/rollup-plugin-sourcemaps.es.js
import _regeneratorRuntime from 'babel-runtime/regenerator';
import _asyncToGenerator from 'babel-runtime/helpers/asyncToGenerator';
import { createFilter } from 'rollup-pluginutils';
import { resolveSourceMap } from 'source-map-resolve';
import { resolve } from 'source-map-resolve';
import { readFile } from 'fs';

@@ -27,3 +27,3 @@ import _Promise from 'babel-runtime/core-js/promise';

var readFileAsync = promisify(readFile);
var resolveSourceMapAsync = promisify(resolveSourceMap);
var resolveSourceMapAsync = promisify(resolve);

@@ -43,3 +43,3 @@ function sourcemaps() {

return _asyncToGenerator(_regeneratorRuntime.mark(function _callee() {
var code, sourceMap, _sourceMap, map;
var code, sourceMap, _sourceMap, map, sourcesContent;

@@ -102,5 +102,10 @@ return _regeneratorRuntime.wrap(function _callee$(_context) {

map = _sourceMap.map;
sourcesContent = _sourceMap.sourcesContent;
map.sourcesContent = sourcesContent;
return _context.abrupt('return', { code: code, map: map });
case 28:
case 30:
case 'end':

@@ -107,0 +112,0 @@ return _context.stop();

@@ -31,3 +31,3 @@ 'use strict';

var readFileAsync = promisify(fs.readFile);
var resolveSourceMapAsync = promisify(sourceMapResolve.resolveSourceMap);
var resolveSourceMapAsync = promisify(sourceMapResolve.resolve);

@@ -47,3 +47,3 @@ function sourcemaps() {

return _asyncToGenerator(_regeneratorRuntime.mark(function _callee() {
var code, sourceMap, _sourceMap, map;
var code, sourceMap, _sourceMap, map, sourcesContent;

@@ -106,5 +106,10 @@ return _regeneratorRuntime.wrap(function _callee$(_context) {

map = _sourceMap.map;
sourcesContent = _sourceMap.sourcesContent;
map.sourcesContent = sourcesContent;
return _context.abrupt('return', { code: code, map: map });
case 28:
case 30:
case 'end':

@@ -111,0 +116,0 @@ return _context.stop();

{
"name": "rollup-plugin-sourcemaps",
"version": "0.3.1",
"version": "0.3.2",
"description": "Rollup plugin for grabbing source maps from sourceMappingURLs",

@@ -5,0 +5,0 @@ "author": "Max Davidson <davidsonmax@gmail.com>",

Sorry, the diff of this file is not supported yet

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