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

siren-parser

Package Overview
Dependencies
Maintainers
1
Versions
29
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

siren-parser - npm Package Compare versions

Comparing version 8.1.0 to 8.2.0

12

dist/util.js

@@ -16,5 +16,11 @@ "use strict";

var match = arrayLike.find(function (item) {
return item.match(stringOrRegex);
});
var match;
for (var i = 0; i < arrayLike.length; i++) {
if (arrayLike[i].match(stringOrRegex)) {
match = arrayLike[i].match(stringOrRegex);
break;
}
}
return match !== undefined;

@@ -21,0 +27,0 @@ }

{
"name": "siren-parser",
"version": "8.1.0",
"version": "8.2.0",
"description": "Pretty much the opposite of dominicbarnes/node-siren-writer",

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

@@ -6,5 +6,9 @@ export function contains(arrayLike, stringOrRegex) {

const match = arrayLike.find(function(item) {
return item.match(stringOrRegex);
});
let match;
for (let i = 0; i < arrayLike.length; i++) {
if (arrayLike[i].match(stringOrRegex)) {
match = arrayLike[i].match(stringOrRegex);
break;
}
}

@@ -11,0 +15,0 @@ return (match !== undefined);

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