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

robotstxt

Package Overview
Dependencies
Maintainers
0
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

robotstxt - npm Package Compare versions

Comparing version 0.0.1-5 to 0.0.1-6

8

index.js

@@ -199,3 +199,3 @@ (function() {

RobotsTxt.prototype.parse = function(txt) {
var currUserAgentGroup, evaluate, line, lineA, myGateKeeper, _i, _len;
var currUserAgentGroup, evaluate, i, line, lineA, myGateKeeper, _i, _len;
if (txt == null) {

@@ -207,3 +207,3 @@ txt = txt;

currUserAgentGroup = false;
evaluate = __bind(function(line) {
evaluate = __bind(function(line, nr) {
var kvA, regExStr, rx, url;

@@ -253,2 +253,3 @@ line = _.trim(line);

line: line,
linenumber: nr,
priority: kvA[1].length,

@@ -275,5 +276,6 @@ type: kvA[0],

}, this);
i = 0;
for (_i = 0, _len = lineA.length; _i < _len; _i++) {
line = lineA[_i];
evaluate(line);
evaluate(line, ++i);
}

@@ -280,0 +282,0 @@ if (myGateKeeper) {

@@ -19,3 +19,3 @@ {

"main" : "./index.js",
"version" : "0.0.1-5"
"version" : "0.0.1-6"
}

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