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

commenting

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

commenting - npm Package Compare versions

Comparing version 1.0.5 to 1.1.0

1

index.js

@@ -35,2 +35,3 @@ 'use strict';

extension['.svg'] =
extension['.xml'] =
extension['.html'] = styles.html;

@@ -37,0 +38,0 @@

2

package.json
{
"name": "commenting",
"version": "1.0.5",
"version": "1.1.0",
"description": "Wrap content in a comment that is valid for a given file type.",

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

@@ -91,2 +91,10 @@ describe('commenting', function () {

});
it('maps xml extension to html style', function () {
var comment = commenting(['hello', 'world'], {
extension: '.xml'
});
assume(comment).equals('<!--\n // hello\n // world\n-->\n');
});
});
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