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

mdast

Package Overview
Dependencies
Maintainers
1
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mdast - npm Package Compare versions

Comparing version 0.5.1 to 0.5.2

5

History.md
0.5.2 / 2015-02-19
==================
* Refactor to improve performance on repeated character
0.5.1 / 2015-02-19

@@ -3,0 +8,0 @@ ==================

14

lib/utilities.js

@@ -184,3 +184,15 @@ 'use strict';

function repeat(times, character) {
return new Array(times + 1).join(character);
var result = '';
while (times > 0) {
if (times % 2 === 1) {
result += character;
}
character += character;
times >>= 1;
}
return result;
}

@@ -187,0 +199,0 @@

2

package.json
{
"name": "mdast",
"version": "0.5.1",
"version": "0.5.2",
"description": "Speedy Markdown parser/stringifier for multipurpose analysis",

@@ -5,0 +5,0 @@ "license": "MIT",

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