Socket
Socket
Sign inDemoInstall

automat

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

automat - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

4

index.js

@@ -5,3 +5,3 @@ /* eslint-env browser */

var FUNCTION_CONSISTING_ENTIRELY_SINGLE_MULTILINE_COMMENT = /^function\s*\w*\(\)\s*\{\s*\/\*\s*([^]+?)\s*\*\/\s*\s*}$/;
var FIRST_MULTILINE_COMMENT = /\/\*\s*([^]+?)\s*\*\//;

@@ -36,3 +36,3 @@ var ENCODERS = /%\{(\d+)\}/g; // double $$ to encode

if (typeof template === 'function') {
var format = template.toString().match(FUNCTION_CONSISTING_ENTIRELY_SINGLE_MULTILINE_COMMENT);
var format = template.toString().match(FIRST_MULTILINE_COMMENT);
template = format

@@ -39,0 +39,0 @@ ? format[1] // template function: extract text from comment

{
"name": "automat",
"version": "1.1.0",
"version": "1.1.1",
"description": "String and markup formatter.",

@@ -5,0 +5,0 @@ "repository": {

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