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

wiredep

Package Overview
Dependencies
Maintainers
1
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wiredep - npm Package Compare versions

Comparing version 0.2.0 to 0.3.0

9

lib/inject-dependencies.js

@@ -15,2 +15,4 @@ /*

var ignorePath;
var jsPattern = '<script src="{{filePath}}"></script>';
var cssPattern = '<link rel="stylesheet" href="{{filePath}}" />';

@@ -58,6 +60,6 @@ var regex = {

css: function (path) {
return '<link rel="stylesheet" href="' + path + '" />';
return cssPattern.replace('{{filePath}}', path);
},
js: function (path) {
return '<script src="' + path + '"></script>';
return jsPattern.replace('{{filePath}}', path);
}

@@ -122,2 +124,5 @@ }[blockType];

module.exports = function inject(config) {
jsPattern = config.get('js-pattern') || jsPattern;
cssPattern = config.get('css-pattern') || cssPattern;
globalDependenciesSorted = config.get('global-dependencies-sorted');

@@ -124,0 +129,0 @@ ignorePath = config.get('ignore-path');

{
"name": "wiredep",
"version": "0.2.0",
"version": "0.3.0",
"description": "Wire dependencies to your source code.",

@@ -5,0 +5,0 @@ "homepage": "https://github.com/stephenplusplus/wiredep",

@@ -13,3 +13,5 @@ # wiredep

ignorePath: 'optional path to ignore from the injected filepath.',
htmlFile: 'the path to the HTML file to take control of.'
htmlFile: 'the path to the HTML file to take control of.',
jsPattern: 'default: <script src="{{filePath}}"></script>',
cssPattern: 'default: <link rel="stylesheet" href="{{filePath}}" />'
});

@@ -16,0 +18,0 @@ ```

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