Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

asset-map-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

asset-map-webpack-plugin - npm Package Compare versions

Comparing version 1.1.1 to 1.2.0

test/publicPath.js

6

lib/index.js

@@ -15,2 +15,4 @@ "use strict";

var url = _interopRequire(require("url"));
var RequestShortener = _interopRequire(require("webpack/lib/RequestShortener"));

@@ -37,3 +39,3 @@

}).reduce(function (acc, m) {
acc[m.name] = path.join(publicPath, m.asset);
acc[m.name] = url.resolve(publicPath, m.asset);
return acc;

@@ -53,3 +55,3 @@ }, {});

}).map(function (f) {
return path.join(publicPath, f);
return url.resolve(publicPath, f);
})

@@ -56,0 +58,0 @@ };

{
"name": "asset-map-webpack-plugin",
"version": "1.1.1",
"version": "1.2.0",
"description": "Webpack plugin that creates a map of assets to public url slug for server agnostic usage.",

@@ -13,2 +13,3 @@ "main": "lib/index.js",

"dependencies": {
"url": "^0.10.3",
"webpack": "^1.5.3"

@@ -15,0 +16,0 @@ },

import fs from 'fs';
import path from 'path';
import url from 'url';
import RequestShortener from 'webpack/lib/RequestShortener';

@@ -25,3 +26,3 @@

}).reduce((acc, m) => {
acc[m.name] = path.join(publicPath, m.asset);
acc[m.name] = url.resolve(publicPath, m.asset);
return acc;

@@ -41,3 +42,3 @@ }, {});

.filter(f => path.extname(f) !== '.map')
.map(f => path.join(publicPath, f))
.map(f => url.resolve(publicPath, f))
};

@@ -44,0 +45,0 @@ })

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