New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

electrode-cdn-file-loader

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

electrode-cdn-file-loader - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

21

index.js

@@ -1,3 +0,5 @@

var loaderUtils = require("loader-utils");
"use strict";
const loaderUtils = require("loader-utils");
module.exports = function (content) {

@@ -9,5 +11,11 @@ this.cacheable && this.cacheable();

var query = loaderUtils.parseQuery(this.query);
var name = query.name || "[hash].[ext]";
var url = loaderUtils.interpolateName(this, name, {
const tof = typeof this.query;
let query = {};
if (tof === "object") {
query = this.query;
} else if (tof === "string") {
query = loaderUtils.parseQuery(this.query);
}
const name = query.name || "[hash].[ext]";
const url = loaderUtils.interpolateName(this, name, {
context: query.context || this.options.context,

@@ -20,4 +28,4 @@ content: content,

var cdn = "var url = " + JSON.stringify(url) + ";\n" +
"var cdnUrl = typeof _wml !== \"undefined\" && _wml.cdn && _wml.cdn.map(url);\n";
const cdn = "const url = " + JSON.stringify(url) + ";\n" +
"const cdnUrl = typeof _wml !== \"undefined\" && _wml.cdn && _wml.cdn.map(url);\n";

@@ -28,2 +36,1 @@ return cdn + "module.exports = cdnUrl || __webpack_public_path__ + url;";

module.exports.raw = true;
{
"name": "electrode-cdn-file-loader",
"version": "1.0.0",
"version": "1.1.0",
"description": "Webpack CDN file loader",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"test": "node ./b"
},
"repository": {
"type": "git",
"url": "https://github.com/electrode-io/cdn-file-loader.git"
"url": "https://github.com/electrode-io/electrode-cdn-file-loader.git"
},

@@ -17,4 +17,4 @@ "keywords": [],

"dependencies": {
"loader-utils": "^0.2.12"
"loader-utils": "^1.1.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