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

express-manifest-helpers

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

express-manifest-helpers - npm Package Compare versions

Comparing version 0.2.1 to 0.2.2

2

lib/index.js

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

return trimTag('<link rel="' + lookup(source) + '" ' + mapAttrs(attrs) + ' />');
return trimTag('<link rel="stylesheet" href="' + lookup(source) + '" ' + mapAttrs(attrs) + ' />');
}

@@ -84,0 +84,0 @@

{
"name": "express-manifest-helpers",
"version": "0.2.1",
"version": "0.2.2",
"description": "View helpers to use with an asset manifest",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -30,3 +30,3 @@ import fs from 'fs'

let result = stylesheetTag(source)
let expected = `<link rel="${manifest[source]}" />`
let expected = `<link rel="stylesheet" href="${manifest[source]}" />`

@@ -39,3 +39,3 @@ expect(result).to.equal(expected)

let result = stylesheetTag(source, { 'data-one': '1', 'data-two': '2' })
let expected = `<link rel="${manifest[source]}" data-one="1" data-two="2" />`
let expected = `<link rel="stylesheet" href="${manifest[source]}" data-one="1" data-two="2" />`

@@ -46,3 +46,3 @@ expect(result).to.equal(expected)

it('handles malformed input', function(){
let expected = '<link rel="" />'
let expected = '<link rel="stylesheet" href="" />'

@@ -49,0 +49,0 @@ expect(stylesheetTag('missing-file.js')).to.equal(expected)

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